/* onyshop Events */
:root {
  --gruen: #14532D; --gruen2: #166534; --gruen-hell: #DCFCE7; --akzent: #F59E0B;
  --text: #1C1917; --leise: #78716C; --linie: #E7E5E4; --fl: #FFFFFF; --grund: #F5F5F4;
  --rot: #B91C1C; --rot-hell: #FEE2E2; --gelb-hell: #FEF3C7;
  --r: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
a { color: var(--gruen2); }
h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 12px; }
code { background: #F5F5F4; border: 1px solid var(--linie); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; word-break: break-all; }
.klein { font-size: 13px; color: var(--leise); }
.mitte { text-align: center; }

/* Kopfleiste */
.leiste { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--gruen); color: #fff; }
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 17px; white-space: nowrap; }
.marke img { width: 30px; height: 30px; border-radius: 8px; }
.marke b { color: var(--akzent); }
.leiste nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.leiste nav a, .leiste nav button { color: #D1FAE5; text-decoration: none; font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 999px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.leiste nav a.aktiv, .leiste nav a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.abmelden { margin: 0; }
@media (max-width: 480px) { .marke span { display: none; } .leiste { padding-left: 12px; padding-right: 8px; } }

.inhalt { max-width: 560px; margin: 0 auto; padding: 18px 16px 48px; }
.inhalt.breit { max-width: 1040px; }

/* Bausteine */
.karte { background: var(--fl); border: 1px solid var(--linie); border-radius: var(--r); padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.karte.leer { text-align: center; color: var(--leise); }
details.karte summary { cursor: pointer; font-weight: 700; }
details.karte[open] summary { margin-bottom: 10px; }
.meldung { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 15px; }
.meldung.ok { background: var(--gruen-hell); color: #14532D; }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.meldung.hinweis { background: var(--gelb-hell); color: #78350F; }
.passwort { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: 0.06em; user-select: all; }
.zurueck { display: inline-block; margin-bottom: 6px; text-decoration: none; font-size: 14px; }
.titelzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.titelzeile h1, .titelzeile h2 { margin: 0; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--linie); background: #fff; color: var(--text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 46px; }
.knopf.haupt { background: var(--gruen2); border-color: var(--gruen2); color: #fff; }
.knopf.haupt:disabled { background: #A8A29E; border-color: #A8A29E; cursor: default; }
.knopf.zweit { background: #fff; }
.knopf.voll { width: 100%; margin-top: 10px; }
.knopf.gross { width: 100%; min-height: 60px; font-size: 19px; }
.knopf.link { border: 0; background: none; padding: 6px 8px; min-height: 0; color: var(--gruen2); font-weight: 600; }
.knopf.warnung { color: var(--rot); }
.knopf.link.warnung { color: var(--rot); }
.knopf.google { width: 100%; background: #fff; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.knopfreihe form { margin: 0; }

.formular { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.formular > *, .karte { min-width: 0; }
.formular label, label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: #44403C; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #D6D3D1; border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22,101,52,0.18); border-color: var(--gruen2); }
textarea { resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
label.haken { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
label.haken input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--gruen2); }
.mit-knopf { display: flex; gap: 8px; }
.mit-knopf input { flex: 1; min-width: 0; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.zwei input, .drei input { min-width: 0; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .drei { grid-template-columns: minmax(0, 1fr); } }
.praefix { display: flex; align-items: stretch; }
.praefix span { display: flex; align-items: center; padding: 0 10px; background: #F5F5F4; border: 1px solid #D6D3D1; border-right: 0; border-radius: 12px 0 0 12px; font-weight: 600; color: var(--leise); }
.praefix input { border-radius: 0 12px 12px 0; }
.abzeichen { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.abzeichen.an { background: var(--gruen-hell); color: var(--gruen); }
.abzeichen.aus { background: #F5F5F4; color: var(--leise); }

/* Anmeldung */
.login-seite .leiste { display: none; }
.login-kopf { text-align: center; padding: 26px 0 8px; }
.login-kopf img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 24px rgba(20,83,45,0.25); }
.login-kopf h1 { margin: 12px 0 4px; font-size: 28px; }
.login-kopf h1 b { color: var(--gruen2); }
.login-kopf p { margin: 0; color: var(--leise); }
.karte.login { margin-top: 18px; }
.reiter { display: grid; grid-template-columns: 1fr 1fr; background: #F5F5F4; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.reiter a { text-align: center; padding: 9px; border-radius: 9px; text-decoration: none; color: var(--leise); font-weight: 650; }
.reiter a.aktiv { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.oder { display: flex; align-items: center; gap: 10px; color: var(--leise); font-size: 13px; margin: 14px 0; }
.oder::before, .oder::after { content: ''; flex: 1; height: 1px; background: var(--linie); }

/* Gast */
.wallet-karte { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; margin-bottom: 12px; border-radius: var(--r); text-decoration: none; color: #fff; background: linear-gradient(135deg, #14532D, #166534 55%, #1F7A43); box-shadow: 0 10px 24px rgba(20,83,45,0.22); }
.wallet-karte .klein { color: #BBF7D0; }
.wallet-karte .titel { font-size: 19px; font-weight: 800; }
.wallet-karte .saldo { text-align: right; font-size: 20px; font-weight: 800; white-space: nowrap; }
.wallet-karte .saldo span { display: block; font-size: 12px; font-weight: 600; color: var(--akzent); }
.qr-karte { text-align: center; }
.qr-karte h1 { margin: 2px 0 10px; }
.qr { width: min(78vw, 300px); margin: 6px auto 8px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--linie); }
.qr svg { width: 100%; height: auto; display: block; }
.saldo-gross { margin: 14px 0 2px; font-size: 32px; font-weight: 850; letter-spacing: -0.02em; color: var(--gruen); }
.saldo-gross span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leise); }
.stand.offline { color: #B45309; font-weight: 700; }
.betraege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.knopf.betrag { font-size: 16px; padding: 12px 6px; }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf li > div:first-child { display: grid; }
.verlauf .rechts { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.plus { color: var(--gruen2); font-weight: 750; white-space: nowrap; }
.minus { color: var(--text); font-weight: 750; white-space: nowrap; }
.lader { width: 42px; height: 42px; margin: 10px auto; border: 4px solid var(--gruen-hell); border-top-color: var(--gruen2); border-radius: 50%; animation: dreh 0.9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Kamera */
.kamera { position: relative; background: #0C0A09; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; }
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kamera .rahmen { position: absolute; inset: 14% 22%; border: 3px solid rgba(255,255,255,0.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,0.28); pointer-events: none; }
.kamera-text { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.6); padding: 0 10px; }
.klein-kamera { aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto; }
.klein-kamera .knopf { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }

/* Scanner */
.scan-seite .inhalt { padding-top: 12px; }
.scan-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.scan-kopf select { flex: 1; font-weight: 700; }
.gast-karte { padding: 14px 16px; }
.gast-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gast-kopf .titel { font-size: 20px; font-weight: 800; }
.gast-kopf .saldo-gross { margin: 0; text-align: right; font-size: 28px; }
.gast-kopf .saldo-gross.leer b { color: var(--rot); }
.produkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.produkt { position: relative; display: grid; gap: 2px; text-align: left; padding: 12px 12px; min-height: 70px; border-radius: 14px; border: 1px solid var(--linie); background: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.produkt:active { transform: scale(0.98); }
.produkt.gewaehlt { border-color: var(--gruen2); background: #F0FDF4; box-shadow: inset 0 0 0 1px var(--gruen2); }
.produkt .pname { font-weight: 700; line-height: 1.25; padding-right: 24px; }
.produkt .ppreis { font-size: 14px; color: var(--leise); }
.produkt .anz { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--gruen2); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.produkt .minus { position: absolute; right: 8px; bottom: 6px; width: 30px; height: 30px; border-radius: 999px; background: #F5F5F4; color: var(--text); font-weight: 800; display: none; align-items: center; justify-content: center; }
.produkt.gewaehlt .minus { display: flex; }
.summe { display: flex; align-items: baseline; gap: 10px; margin: 12px 2px; font-size: 18px; }
.summe b { font-size: 26px; margin-left: auto; }
#abbuchenKnopf.zu-wenig { background: #B45309; border-color: #B45309; }
.ergebnis { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,10,9,0.55); }
.ergebnis-kasten { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 26px 22px 20px; text-align: center; max-height: 90vh; overflow: auto; }
.ergebnis-kasten.links { text-align: left; }
.ergebnis-kasten .titel { font-size: 22px; font-weight: 850; margin-bottom: 6px; }
.ergebnis .zeichen { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; color: #fff; }
.ergebnis.gut .zeichen { background: var(--gruen2); }
.ergebnis.schlecht .zeichen { background: var(--rot); }
.ergebnis.gut .ergebnis-kasten { box-shadow: 0 0 0 6px var(--gruen-hell); }
.ergebnis.schlecht .ergebnis-kasten { box-shadow: 0 0 0 6px var(--rot-hell); }
.ergebnis .gross-text { font-size: 18px; font-weight: 700; margin: 4px 0; }
.ergebnis .knopf.gross { margin-top: 16px; }

/* Veranstalter */
.event-karte { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: start; padding: 18px; margin-bottom: 12px; background: #fff; border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--text); }
.event-karte:hover { border-color: var(--gruen2); }
.event-karte .titel { font-weight: 800; font-size: 18px; }
.event-karte .zahlen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.event-karte .zahlen div { background: #FAFAF9; border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.event-karte .zahlen span { display: block; font-size: 12px; color: var(--leise); }
.tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--linie); overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--leise); font-weight: 650; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.aktiv { color: var(--gruen2); border-bottom-color: var(--gruen2); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kacheln div { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; }
.kacheln span { display: block; font-size: 12px; color: var(--leise); font-weight: 600; }
.kacheln b { font-size: 20px; }
.kacheln small { display: block; color: var(--leise); }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--leise); padding: 8px; border-bottom: 1px solid var(--linie); }
td { padding: 9px 8px; border-bottom: 1px solid #F5F5F4; vertical-align: middle; }
td form { margin: 0; }
.r { text-align: right; }
tr.durch td { color: #A8A29E; text-decoration: line-through; }
tr.durch td:last-child { text-decoration: none; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter select { width: auto; }
.filter input { flex: 1; min-width: 160px; }
.suche { min-width: 260px; }
details.team summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Rechtliches */
.fuss { text-align: center; font-size: 12px; color: var(--leise); padding: 0 16px 28px; }
.fuss a { color: var(--leise); }
.scan-seite .fuss { display: none; }
.recht h1 { margin-bottom: 10px; }
.recht h2 { margin-top: 24px; font-size: 17px; }
.recht p, .recht li { font-size: 15px; color: #44403C; }
.recht ul { padding-left: 20px; }
.recht mark { background: var(--gelb-hell); color: #92400E; padding: 0 4px; border-radius: 4px; }
.hinweis-google { margin: 8px 0 0; }
.veranstalter-karte p { margin: 4px 0; }

/* Öffentliche Startseite */
.held { text-align: center; padding: 22px 4px 18px; }
.held-logo { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 28px rgba(20,83,45,0.28); }
.held h1 { font-size: 34px; margin: 14px 0 8px; }
.held h1 b { color: var(--gruen2); }
.held-text { font-size: 17px; color: #44403C; margin: 0 auto 18px; max-width: 460px; }
.held-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gross-knopf { min-height: 52px; font-size: 17px; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schritte li { display: flex; gap: 12px; align-items: flex-start; }
.schritte .nr { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gruen2); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.schritte p { margin: 2px 0 0; color: #44403C; font-size: 15px; }
.haken-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.haken-liste li { padding-left: 28px; position: relative; color: #44403C; }
.haken-liste li::before { content: '✓'; position: absolute; left: 4px; color: var(--gruen2); font-weight: 900; }

/* Anbieter */
fieldset { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; margin: 0; display: grid; gap: 8px; }
legend { font-size: 14px; font-weight: 600; color: #44403C; padding: 0 6px; }
label.eingerueckt { padding-left: 26px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
.top-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.top-liste li { display: flex; justify-content: space-between; gap: 8px; background: #FAFAF9; border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* Produkt-Editor */
.feld-titel { font-size: 14px; font-weight: 600; color: #44403C; margin-bottom: -8px; }
.feld-hinweis { margin: 0 0 -6px; }
.pz-editor { display: grid; gap: 8px; }
.pz { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; background: #FAFAF9; border: 1px solid var(--linie); border-radius: 14px; padding: 8px; }
.pz input { padding: 10px; min-width: 0; width: 100%; }
.pz > * { min-width: 0; }
.pz-preis { display: flex !important; align-items: stretch; gap: 0 !important; min-width: 0; }
.pz-preis span { display: flex; align-items: center; padding: 0 8px; background: #F5F5F4; border: 1px solid #D6D3D1; border-right: 0; border-radius: 12px 0 0 12px; font-size: 13px; color: var(--leise); }
.pz-preis input { border-radius: 0 12px 12px 0; text-align: right; min-width: 0; }
.pz-knoepfe { display: flex; gap: 4px; }
.pz-k { width: 38px; height: 42px; border-radius: 10px; border: 1px solid var(--linie); background: #fff; font-size: 16px; cursor: pointer; color: var(--text); }
.pz-k.weg { color: var(--rot); }
.pz-neu { justify-self: start; }
@media (max-width: 560px) {
  .pz { grid-template-columns: minmax(0, 1fr) auto; }
  .pz-k { width: 36px; }
  .pz-name { grid-column: 1 / -1; }
}
