/* Vereinsheimkasse – Design im Stil der DLRG (Rot/Gelb) */
:root {
  --rot: #e30613;
  --rot-dunkel: #b30510;
  --rot-hell: #fde7e8;
  --gelb: #ffed00;
  --gelb-hell: #fffbd6;
  --gelb-rand: #e8d400;
  --gruen: #1b7a3a;
  --grund: #f6f4ef;
  --weiss: #ffffff;
  --text: #1c1b1a;
  --text-2: #4a4744;
  --text-3: #6b6763;
  --linie: #e4dfd6;
  --linie-2: #cfc9bf;
  --schrift: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titel: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--schrift);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--schrift); color: var(--text); background: var(--grund); -webkit-tap-highlight-color: transparent; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Kopfzeile ---------- */
.kopf { height: 76px; background: var(--rot); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 16px; flex-shrink: 0; }
.kopf-links { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo-bild { height: 52px; max-width: 160px; object-fit: contain; }
.logo-platzhalter { width: 96px; height: 48px; border: 2px dashed var(--gelb); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gelb); font-size: 12px; font-weight: 700; }
.kopf-titel { font-family: var(--titel); font-weight: 700; font-size: 30px; line-height: 1; color: #fff; margin: 0; letter-spacing: .5px; }
.kopf-unter { font-size: 15px; font-weight: 600; color: var(--gelb); margin-top: 3px; }
.kopf-rechts { display: flex; align-items: center; gap: 14px; color: #fff; }
.pille-dunkel { background: rgba(0,0,0,.18); color: #fff; font-weight: 600; font-size: 16px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.btn-gelb { height: 48px; padding: 0 20px; border: none; border-radius: 10px; background: var(--gelb); color: var(--text); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Allgemeine Knöpfe ---------- */
.btn { height: 52px; padding: 0 22px; border-radius: 12px; font-size: 18px; font-weight: 700; border: 2px solid var(--text); background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn-gruen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.btn-dunkel { background: var(--text); border-color: var(--text); color: #fff; }
.btn-gross { height: 72px; font-size: 24px; padding: 0 34px; border-radius: 14px; }
.btn-breit { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-klein { height: 38px; padding: 0 12px; font-size: 15px; border-radius: 8px; border-width: 2px; }
.btn-link { background: none; border: none; color: var(--rot-dunkel); font-weight: 700; padding: 0; font-size: 15px; }

.etikett { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.etikett-mitglied { background: var(--rot-hell); color: #a3040e; }
.etikett-gast { background: #ecebe8; color: #3d3a37; }
.etikett-offen { background: var(--gelb-hell); color: #6b5d00; }
.etikett-bezahlt { background: #e3f3e8; color: #155e2d; }

/* ============ KASSE (Tablet) ============ */
.kasse-app { height: 100%; display: flex; flex-direction: column; overflow: hidden; user-select: none; }
.screen { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; }

/* Start */
.start { align-items: center; padding: 64px 24px 24px; overflow-y: auto; }
.start-inhalt { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.gross-titel { margin: 0; font-family: var(--titel); font-size: 64px; line-height: 1; font-weight: 700; }
.start label { font-size: 20px; color: var(--text-2); }
.suchfeld { position: relative; }
.suchfeld svg { position: absolute; left: 22px; top: 24px; pointer-events: none; }
.suchfeld input { width: 100%; height: 76px; padding: 0 20px 0 64px; font-size: 30px; border: 3px solid var(--rot); border-radius: 14px; background: #fff; outline: none; color: var(--text); user-select: text; }
.vorschlaege { display: flex; flex-direction: column; gap: 10px; }
.vorschlag { min-height: 68px; border: 1px solid #ddd8cf; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; font-size: 26px; color: var(--text); text-align: left; }
.vorschlag-neu { border: 2px dashed var(--rot); background: #fff7f7; color: var(--rot-dunkel); font-weight: 700; justify-content: flex-start; gap: 14px; font-size: 24px; }
.hinweis { font-size: 16px; color: var(--text-3); }
.gross-hinweis { font-size: 22px; line-height: 1.4; }
.warnung { background: var(--gelb-hell); border: 2px solid var(--gelb-rand); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.version { font-size: 13px; color: rgba(255,255,255,.8); }

/* Strichliste */
.personleiste { height: 76px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--linie); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 12px; }
.personleiste-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.person-name { font-family: var(--titel); font-size: 36px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kassenbereich { flex-grow: 1; min-height: 0; display: flex; gap: 24px; padding: 18px 24px; }
.produkte { flex-grow: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.kategorie-titel { margin: 0; font-family: var(--titel); font-size: 24px; font-weight: 700; color: var(--rot-dunkel); text-transform: uppercase; letter-spacing: 1px; }
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.kachel { background: #fff; border: 1px solid #ddd8cf; border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 124px; }
.kachel.hat-anzahl { border: 3px solid var(--rot); padding: 12px 12px 10px; }
.kachel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kachel-name { font-size: 21px; font-weight: 700; line-height: 1.1; }
.kachel-preis { font-size: 17px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.kachel-steuerung { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rund-btn { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.minus-btn { border: 2px solid var(--linie-2); background: var(--grund); color: var(--text); }
.plus-btn { border: none; background: var(--rot); color: #fff; }
.anzahl { font-size: 34px; font-weight: 700; min-width: 44px; text-align: center; color: #9a948c; }
.hat-anzahl .anzahl { color: var(--rot-dunkel); }

.seitenleiste { width: 290px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.offen-box { background: var(--gelb-hell); border: 2px solid var(--gelb-rand); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.offen-titel { font-family: var(--titel); font-size: 24px; font-weight: 700; }
.offen-tag { font-size: 15px; font-weight: 700; color: #6b5d00; margin-top: 4px; }
.zeile { display: flex; justify-content: space-between; gap: 8px; font-size: 18px; }
.zeile-summe { border-top: 1px solid var(--gelb-rand); padding-top: 8px; font-size: 20px; font-weight: 700; }
.info-text { font-size: 15px; color: var(--text-3); line-height: 1.4; padding: 0 4px; }

.summenleiste { min-height: 112px; flex-shrink: 0; background: #fff; border-top: 1px solid var(--linie); display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px; flex-wrap: wrap; }
.summen { display: flex; align-items: center; gap: 24px; }
.summe { display: flex; flex-direction: column; }
.summe span:first-child { font-size: 15px; color: var(--text-3); font-weight: 600; }
.summe span:last-child { font-size: 24px; font-weight: 700; }
.summe-gesamt span { color: var(--rot-dunkel) !important; }
.summe-gesamt span:last-child { font-family: var(--titel); font-size: 48px; line-height: 1; }
.rechen { font-size: 26px; color: #9a948c; }
.aktionen { display: flex; align-items: center; gap: 14px; }

/* Danke */
.danke { align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
.danke-kreis { width: 120px; height: 120px; border-radius: 999px; background: var(--gruen); display: flex; align-items: center; justify-content: center; }
.danke-kreis.offen { background: #8a6d00; }
.danke p { margin: 0; font-size: 26px; color: var(--text-2); }

/* Countdown */
.countdown { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 14px 24px; border-radius: 12px; font-size: 20px; font-weight: 700; z-index: 60; border: none; }

/* Dialoge */
.overlay { position: fixed; inset: 0; background: rgba(20,18,16,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { width: 100%; max-width: 540px; background: #fff; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; max-height: 100%; overflow-y: auto; }
.dialog.mittig { align-items: center; text-align: center; }
.dialog h2 { margin: 0; font-family: var(--titel); font-size: 36px; font-weight: 700; }
.dialog label { font-size: 16px; font-weight: 600; }
.dialog input[type=text], .dialog input[type=password] { height: 60px; font-size: 22px; padding: 0 14px; border: 2px solid var(--linie-2); border-radius: 10px; margin-top: -6px; user-select: text; }
.dialog-knoepfe { display: flex; gap: 12px; margin-top: 8px; width: 100%; }
.dialog-knoepfe .btn { flex: 1; }
.wahl-raster { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; width: 100%; }
.wahl { height: 64px; border-radius: 10px; font-size: 20px; font-weight: 700; border: 2px solid var(--linie-2); background: #fff; color: var(--text); }
.wahl.aktiv { border: 3px solid var(--rot); background: var(--rot-hell); }
.wahl-gross { height: 150px; border: 2px solid var(--linie-2); border-radius: 14px; background: var(--grund); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--text); }
.betrag-gross { font-family: var(--titel); font-size: 72px; line-height: 1; font-weight: 700; color: var(--rot-dunkel); }
.qr-bild { width: 260px; height: 260px; object-fit: contain; border: 1px solid var(--linie); border-radius: 12px; }
.qr-leer { width: 240px; height: 240px; border: 3px dashed #9a948c; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 20px; font-size: 17px; color: var(--text-3); }
.fehlertext { color: var(--rot-dunkel); font-weight: 700; font-size: 17px; min-height: 1em; margin: 0; }

@media (max-width: 900px) {
  .kassenbereich { flex-direction: column; overflow-y: auto; }
  .produkte { overflow: visible; }
  .seitenleiste { width: 100%; }
  .gross-titel { font-size: 48px; }
  .pille-dunkel { display: none; }
}

/* ============ ADMIN ============ */
.admin-app { min-height: 100%; display: flex; flex-direction: column; }
.admin-app .kopf { height: 64px; }
.admin-app .kopf-titel { font-size: 26px; }
.admin-rumpf { flex-grow: 1; display: flex; min-height: 0; }
.menue { width: 236px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--linie); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.menue a { min-height: 42px; border-radius: 8px; display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text); }
.menue a.aktiv { background: var(--rot-hell); color: #a3040e; font-weight: 700; }
.menue a.zur-kasse { background: var(--gelb); font-weight: 700; margin-bottom: 12px; height: 48px; }
.inhalt { flex-grow: 1; padding: 24px 28px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.seitenkopf h1 { margin: 0; font-family: var(--titel); font-size: 40px; font-weight: 700; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.karte h2 { margin: 0; font-size: 20px; font-weight: 700; }
.kpi-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi-wert { font-family: var(--titel); font-size: 38px; font-weight: 700; }
.kpi-label { font-size: 15px; font-weight: 600; color: var(--text-3); }
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.tabelle-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 14px; color: var(--text-3); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 8px 8px; border-bottom: 1px solid #f0ece5; vertical-align: middle; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
.filterleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.feld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.feld input, .feld select, .inline-input { height: 42px; padding: 0 10px; border: 2px solid var(--linie-2); border-radius: 8px; background: #fff; font-size: 16px; color: var(--text); }
.inline-input { height: 38px; width: 100%; min-width: 80px; }
.aktionen-zelle { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.leer { color: var(--text-3); padding: 12px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #ecebe8; color: #3d3a37; border: none; }
.chip.aktiv { background: var(--text); color: #fff; }
.meldung { position: fixed; right: 24px; bottom: 24px; padding: 14px 20px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 700; z-index: 80; max-width: 420px; }
.meldung.fehler { background: var(--rot-dunkel); }
.bild-vorschau { max-width: 220px; max-height: 140px; object-fit: contain; border: 1px solid var(--linie); border-radius: 8px; background: var(--grund); padding: 6px; }
.formular-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.klein { font-size: 14px; color: var(--text-3); }
.login-seite { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-seite .dialog { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
@media (max-width: 900px) {
  .admin-rumpf { flex-direction: column; }
  .menue { width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--linie); }
  .menue a.zur-kasse { margin-bottom: 0; }
  .zwei-spalten { grid-template-columns: 1fr; }
}
a.chip { text-decoration: none; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--rot); }

/* ============ ANIMATIONEN ============ */
/* L1: Ladeanzeige – hüpfende Punkte in Rot/Gelb */
.lader { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 28px 0; }
.lader span { width: 16px; height: 16px; border-radius: 50%; background: var(--rot); animation: lader-hopsen 1s infinite ease-in-out; }
.lader span:nth-child(2) { background: #f5c400; animation-delay: .15s; }
.lader span:nth-child(3) { animation-delay: .3s; }
.lader-klein { padding: 0; gap: 7px; }
.lader-klein span { width: 11px; height: 11px; background: #fff; }
.lader-klein span:nth-child(2) { background: var(--gelb); }
@keyframes lader-hopsen { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-10px); opacity: 1; } }

/* P2: Plus – Kachel leuchtet gelb, Zahl und Summe hüpfen, Knopf drückt sich ein */
.kachel.aufleuchten { animation: aufleuchten .6s ease-out; }
@keyframes aufleuchten { 0% { background: #fff3a0; } 100% { background: #fff; } }
.huepfen { display: inline-block; animation: huepfen .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes huepfen { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.summe-gesamt .huepfen { transform-origin: left center; }
.gedrueckt { animation: gedrueckt .25s ease-out; }
@keyframes gedrueckt { 0% { transform: scale(1); } 40% { transform: scale(.85); } 100% { transform: scale(1); } }

/* B2: Bezahlt – Kreis wächst, Haken wird gezeichnet, Konfetti */
.kreis-wachsen { animation: kreis-wachsen .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes kreis-wachsen { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.haken-zeichnen path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: haken-zeichnen .4s .35s ease-out forwards; }
@keyframes haken-zeichnen { to { stroke-dashoffset: 0; } }
.konfetti { position: fixed; width: 11px; height: 17px; border-radius: 2px; z-index: 70; pointer-events: none; margin: -8px 0 0 -5px; animation: konfetti 1.4s ease-out forwards; }
@keyframes konfetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Wer „Bewegung reduzieren“ eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .haken-zeichnen path { stroke-dashoffset: 0; }
}

/* ============ 1.2.0: Anleitung, Offline, Wie immer, Jugendschutz, PayPal ============ */
.personleiste-knoepfe { display: flex; gap: 10px; }
.produkte-spalte { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.wie-immer { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 2px dashed var(--linie-2); border-radius: 14px; padding: 12px 16px; font-size: 18px; }
.wie-immer-titel { font-weight: 700; font-size: 19px; }
.wie-immer .btn { flex-shrink: 0; }
.limit-hinweis { max-width: 220px; font-size: 15px; font-weight: 700; color: var(--rot-dunkel); text-align: right; }
.feld-titel { font-size: 16px; margin-top: 4px; }
#neuJugend { display: flex; flex-direction: column; gap: 12px; }
#neuJahrFeld { display: flex; flex-direction: column; gap: 12px; }
#neuJahr { height: 60px; font-size: 22px; padding: 0 14px; border: 2px solid var(--linie-2); border-radius: 10px; }

/* Jugendschutz: gesperrte Kachel */
.kachel-sperre { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #6b5d00; background: var(--gelb-hell); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.kachel.gesperrt { opacity: .65; }
.kachel.gesperrt .kachel-sperre { display: inline-flex; }
.kachel.gesperrt .plus-btn { background: #9a948c; }

/* PayPal-Dialog */
.paypal-info { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.paypal-hinweis { background: var(--gelb-hell); border: 2px solid var(--gelb-rand); border-radius: 12px; padding: 12px; font-size: 18px; font-weight: 700; }
.klein-titel { font-size: 15px; color: var(--text-3); font-weight: 600; }
.paypal-nachricht { background: var(--grund); border: 2px dashed var(--linie-2); border-radius: 12px; padding: 12px; font-size: 20px; font-weight: 700; user-select: text; word-break: break-word; }

/* Offline-Popup */
.overlay.offline { z-index: 90; background: rgba(20,18,16,.8); }
.offline .dialog { max-width: 600px; gap: 16px; }
.offline-symbol { width: 110px; height: 110px; border-radius: 50%; background: var(--rot-hell); display: flex; align-items: center; justify-content: center; animation: off-puls 2s ease-out infinite; }
@keyframes off-puls { 0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, .35); } 70%, 100% { box-shadow: 0 0 0 22px rgba(227, 6, 19, 0); } }
@media (prefers-reduced-motion: reduce) { .offline-symbol { animation: none; } }

/* Anleitung */
#anleitung { z-index: 55; }
.dialog.anleitung { max-width: 620px; position: relative; gap: 14px; padding: 26px 28px 24px; }
.anl-x { position: absolute; right: 14px; top: 14px; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--linie-2); background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; }
.anl-schritt { margin: 0; font-size: 16px; color: var(--text-3); font-weight: 600; }
.dialog.anleitung h2 { font-size: 34px; padding-right: 70px; line-height: 1.15; }
.anl-text { margin: 0; font-size: 21px; line-height: 1.5; }
.anl-szene { background: var(--grund); border-radius: 14px; height: 230px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.anl-kachel { width: 220px; }
.anl-hand { position: absolute; left: 80%; top: 160px; transition: left .6s ease, top .6s ease; pointer-events: none; z-index: 3; }
.anl-tippen { animation: anl-tippen .3s ease-out; }
@keyframes anl-tippen { 50% { transform: scale(.8) translateY(5px); } }
.anl-winken { animation: anl-winken 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes anl-winken { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 75% { transform: rotate(-12deg); } }
.anl-leiste { background: #fff; border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; gap: 16px; }
.anl-leuchten { animation: anl-leuchten 1.4s ease-in-out infinite; border-radius: 10px; padding: 2px 10px; }
@keyframes anl-leuchten { 0%, 100% { background: transparent; } 50% { background: #fff3a0; } }
.anl-reihe { display: flex; gap: 16px; }
.anl-info { min-height: 24px; font-size: 17px; font-weight: 600; color: var(--text-2); }
.anl-suche { width: 85%; display: flex; flex-direction: column; gap: 8px; }
.anl-eingabe { height: 60px; border: 3px solid var(--rot); border-radius: 12px; background: #fff; font-size: 26px; display: flex; align-items: center; padding: 0 16px; }
.anl-cursor { display: inline-block; width: 2px; height: 30px; background: var(--text); margin-left: 2px; animation: anl-blinken 1s steps(1) infinite; }
@keyframes anl-blinken { 50% { opacity: 0; } }
.anl-vorschlag { opacity: 0; transition: opacity .3s, background .2s; min-height: 58px; }
.anl-vorschlag.sichtbar { opacity: 1; }
.anl-vorschlag.gewaehlt { background: var(--rot-hell); }
.anl-punkte { display: flex; gap: 8px; justify-content: center; }
.anl-punkte span { width: 12px; height: 12px; border-radius: 6px; background: var(--linie-2); transition: width .3s; }
.anl-punkte span.aktiv { width: 30px; background: var(--rot); }
@media (max-width: 900px) { .personleiste-knoepfe .btn { padding: 0 12px; font-size: 16px; } .wie-immer { flex-direction: column; align-items: stretch; } }
.schalter-liste { display: flex; flex-direction: column; gap: 12px; }
.schalter { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.schalter input { margin-top: 2px; flex-shrink: 0; }
.schalter > span { display: flex; flex-direction: column; gap: 2px; }
.paypal-vorschau { display: flex; flex-direction: column; gap: 8px; max-width: 520px; background: var(--grund); border-radius: 12px; padding: 12px; }
.rot-text { color: var(--rot-dunkel); }

/* ============ 1.2.1: Optimierung Handy & Tablet ============ */
/* Dialog-Inhalte dürfen nie zusammengedrückt werden – lieber scrollt der Dialog */
.dialog > * { flex-shrink: 0; }
/* Mobile Browser: echte sichtbare Höhe (ohne Adressleiste) + Aussparung für Notch/Home-Balken */
.kasse-app { height: 100vh; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
.kopf { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.kopf-links > div { min-width: 0; }
.kopf-titel, .kopf-unter { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tablet hochkant und kleiner */
@media (max-width: 900px) {
  .person-name { white-space: normal; overflow: visible; font-size: 30px; line-height: 1.1; }
  .personleiste { height: auto; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
  .kassenbereich { flex-direction: column; overflow-y: auto; gap: 16px; }
  .kassenbereich > *, .produkte-spalte > * { flex-shrink: 0; }
  .produkte-spalte { min-height: auto; }
  .produkte { overflow: visible; }
  .limit-hinweis { text-align: left; max-width: none; }
}

/* Handys */
@media (max-width: 600px) {
  .kopf { height: 60px; padding: 0 12px; gap: 10px; }
  .kopf-links { gap: 10px; }
  .logo-bild { height: 38px; max-width: 80px; }
  .logo-platzhalter { width: 56px; height: 34px; font-size: 10px; }
  .kopf-titel { font-size: 22px; }
  .kopf-unter { font-size: 12px; }
  .btn-gelb { height: 42px; padding: 0 12px; font-size: 15px; }

  .start { padding: 28px 16px 16px; }
  .gross-titel { font-size: 40px; }
  .start label { font-size: 17px; }
  .suchfeld input { height: 64px; font-size: 24px; padding-left: 56px; }
  .suchfeld svg { left: 18px; top: 18px; }
  .vorschlag { min-height: 60px; font-size: 20px; padding: 8px 16px; }
  .vorschlag-neu { font-size: 19px; }

  .personleiste { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .personleiste-name { width: 100%; }
  .person-name { font-size: 26px; }
  .personleiste-knoepfe { width: 100%; }
  .personleiste-knoepfe .btn { flex: 1; height: 46px; font-size: 16px; padding: 0 10px; }
  .kassenbereich { padding: 12px 16px; }
  .kachel-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kachel { min-height: 110px; padding: 10px; gap: 8px; }
  .kachel.hat-anzahl { padding: 8px; }
  .kachel-kopf { flex-direction: column; gap: 2px; }
  .kachel-name { font-size: 18px; }
  .kachel-preis { font-size: 15px; }
  .rund-btn { width: 48px; height: 48px; }
  .anzahl { font-size: 28px; min-width: 32px; }
  .kategorie-titel { font-size: 21px; }
  .wie-immer { font-size: 16px; padding: 10px 12px; }

  .summenleiste { padding: 10px 16px; gap: 10px; min-height: 0; }
  .summen { gap: 10px; width: 100%; justify-content: space-between; }
  .summe span:last-child { font-size: 18px; white-space: nowrap; }
  .summe-gesamt span:last-child { font-size: 34px; }
  .rechen { font-size: 18px; }
  .aktionen { width: 100%; gap: 10px; }
  .aktionen .btn-gross { flex: 1; height: 58px; font-size: 20px; padding: 0 12px; }

  .overlay { padding: 10px; }
  .dialog { padding: 20px; gap: 12px; border-radius: 16px; }
  .dialog h2 { font-size: 28px; }
  .betrag-gross { font-size: 56px; }
  .qr-bild { width: 220px; height: 220px; }
  .wahl-gross { height: 120px; font-size: 22px; }
  .paypal-nachricht { font-size: 17px; }
  .paypal-hinweis { font-size: 16px; }
  .danke p { font-size: 20px; }
  .countdown { top: 70px; width: calc(100% - 24px); font-size: 17px; }

  .dialog.anleitung { padding: 18px 18px 18px; }
  .dialog.anleitung h2 { font-size: 25px; padding-right: 60px; }
  .anl-x { width: 52px; height: 52px; right: 10px; top: 10px; }
  .anl-text { font-size: 18px; }
  .anl-szene { height: 200px; }
  .anl-leiste { gap: 8px; padding: 10px; }
  .anl-leiste .summe span:last-child { font-size: 16px; }
  .anl-leiste .summe-gesamt span:last-child { font-size: 26px; }
  .anl-reihe .btn-gross { height: 54px; font-size: 18px; padding: 0 16px; }
}

/* Handy quer / sehr niedrige Bildschirme */
@media (max-height: 500px) and (orientation: landscape) {
  .kopf { height: 52px; }
  .logo-bild { height: 34px; }
  .kopf-titel { font-size: 22px; }
  .kopf-unter { display: none; }
  .personleiste { min-height: 0; height: auto; padding: 6px 16px; }
  .person-name { font-size: 24px; }
  .start { padding-top: 16px; }
  .gross-titel { font-size: 34px; }
  .summenleiste { min-height: 0; padding: 6px 16px; }
  .btn-gross { height: 52px; }
  .summe-gesamt span:last-child { font-size: 32px; }
  .anl-szene { height: 170px; }
}

/* Admin auf Handy */
@media (max-width: 700px) {
  .admin-app .kopf { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 12px; }
  .admin-app .kopf-titel { font-size: 19px; }
  #angemeldetAls, .version { display: none; }
  .admin-app .kopf-rechts { gap: 8px; }
  .menue { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px; gap: 6px; -webkit-overflow-scrolling: touch; }
  .menue a { white-space: nowrap; flex-shrink: 0; min-height: 40px; padding: 0 12px; }
  .menue a.zur-kasse { height: 40px; }
  .inhalt { padding: 16px 12px; gap: 14px; }
  .seitenkopf h1 { font-size: 30px; }
  .karte { padding: 14px; }
  .kpi-wert { font-size: 30px; }
  .filterleiste .feld { flex: 1 1 140px; }
  .filterleiste .feld input, .filterleiste .feld select { width: 100%; }
  .formular-raster { grid-template-columns: 1fr; }
  .meldung { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  table { font-size: 15px; }
}
@media (max-width: 420px) { .login-text { display: none; } .btn-gelb { width: 46px; padding: 0; justify-content: center; } }
.kachel-kopf { flex-wrap: wrap; row-gap: 2px; }
.kachel-name { overflow-wrap: anywhere; }

/* ============ 1.4.0: Kostenfreie Konten ============ */
.etikett-kostenfrei { background: #e3f3e8; color: #155e2d; }
.ist-kostenfrei .kachel.hat-anzahl { border-color: var(--gruen); }
.ist-kostenfrei .hat-anzahl .anzahl { color: var(--gruen); }
.ist-kostenfrei .kachel.aufleuchten { animation-name: aufleuchten-gruen; }
@keyframes aufleuchten-gruen { 0% { background: #d8f0df; } 100% { background: #fff; } }
.ist-kostenfrei .summe-gesamt span { color: #155e2d !important; }
.kf-box { background: #e3f3e8; border: 2px solid #8ccb9f; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: #1c1b1a; }
.kf-box b { font-size: 20px; }
.kf-box.voll { background: var(--gelb-hell); border-color: var(--gelb-rand); }
.kf-balken { height: 14px; background: #fff; border: 1px solid #8ccb9f; border-radius: 7px; overflow: hidden; }
.kf-fuellung { height: 100%; width: 0; background: var(--gruen); transition: width .3s; }
.kf-box.voll .kf-balken { border-color: var(--gelb-rand); }
.kf-box.voll .kf-fuellung { background: #d6a800; }
.kachel.limit .plus-btn { background: #9a948c; }
.kachel.limit { opacity: .6; }
.kachel-limit { display: none; font-size: 14px; font-weight: 700; color: #5c4f00; background: var(--gelb-hell); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.kachel.limit .kachel-limit { display: inline-flex; }
.summe-zusatz { font-size: 13px !important; font-weight: 700; color: #155e2d !important; }
.etikett-status-kf { background: #e3f3e8; color: #155e2d; }

/* ============ 1.4.0: Prost-Animation ============ */
.prost-buehne { position: fixed; width: 260px; height: 250px; pointer-events: none; z-index: 40; overflow: visible; }
.kachel.prost-vorne { position: relative; z-index: 41; }

/* ============ 1.4.0: Roulette (Rettungsring) ============ */
.btn-weiss { height: 48px; padding: 0 16px; border: none; border-radius: 10px; background: #fff; color: var(--text); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
#roulette { z-index: 56; }
.dialog.roulette { max-width: 600px; gap: 10px; padding: 18px 20px; position: relative; }
.rl-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-titel { flex: 1; min-width: 150px; }
.rl-titel h2 { font-size: 30px; }
.rl-rund { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--linie-2); background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.rl-knopf.aktiv { background: var(--rot-hell); border-color: var(--rot); color: #a3040e; }
.rl-frage { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--rot-hell); border-radius: 12px; padding: 12px; font-size: 17px; color: #791f1f; }
.rl-frage span { flex: 1; }
.rl-ja { border-color: #a3040e; color: #a3040e; }
.rl-rad { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1; margin: 2px auto 0; }
.rl-svg { width: 100%; height: 100%; display: block; }
.rl-zeiger { position: absolute; left: 50%; top: -4px; margin-left: -17px; width: 34px; height: 42px; transform-origin: 50% 22%; z-index: 3; }
.rl-zeiger.wackeln { animation: rl-wackeln .12s ease-out; }
@keyframes rl-wackeln { 40% { transform: rotate(-16deg); } }
.rl-drehen { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; transform: translate(-50%, -50%); border-radius: 50%; background: transparent; border: none; color: var(--rot); font-size: 30px; font-weight: 700; padding: 0; z-index: 2; -webkit-tap-highlight-color: transparent; }
.rl-drehen span { display: inline-block; }
.rl-drehen.puls span { animation: rl-atmen 1.6s ease-in-out infinite; }
.rl-drehen.puls::before, .rl-drehen.puls::after { content: ''; position: absolute; left: 50%; top: 50%; width: 74%; height: 74%; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--rot); animation: rl-welle 1.8s ease-out infinite; pointer-events: none; }
.rl-drehen.puls::after { animation-delay: .9s; }
@keyframes rl-atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes rl-welle { 0% { transform: translate(-50%, -50%) scale(.7); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
.rl-drehen:disabled { color: #7fa9bd; }
.rl-welle { animation: rl-fliessen linear infinite; }
@keyframes rl-fliessen { from { transform: translateX(0); } to { transform: translateX(-48px); } }
.rl-wippen { animation: rl-wippen ease-in-out infinite alternate; }
@keyframes rl-wippen { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
.rl-status { text-align: center; min-height: 22px; color: var(--text-2); }
.rl-eingabe { position: relative; display: flex; gap: 8px; }
.rl-eingabe input { flex: 1; min-width: 0; height: 54px; font-size: 19px; border: 2px solid var(--linie-2); border-radius: 10px; padding: 0 12px; background: #fff; color: var(--text); user-select: text; }
.rl-eingabe input:focus { border-color: var(--rot); outline: none; }
.rl-eingabe .btn { height: 54px; }
.rl-vorschlaege { position: absolute; left: 0; right: 0; top: 58px; background: #fff; border: 1px solid var(--linie-2); border-radius: 10px; z-index: 4; overflow: hidden; }
.rl-vorschlaege button { display: block; width: 100%; text-align: left; padding: 12px; font-size: 17px; background: #fff; border: none; border-bottom: 1px solid #f0ece5; color: var(--text); }
.rl-vorschlaege button.frei { color: var(--rot-dunkel); font-weight: 700; }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--grund); border: 1px solid var(--linie-2); border-radius: 999px; padding: 6px 12px; font-size: 16px; }
.rl-chip button { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--rot); color: #fff; font-size: 16px; line-height: 1; padding: 0; }
.rl-ebene { position: absolute; inset: 0; background: #fff; border-radius: 18px; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; overflow: hidden; text-align: center; }
.rl-ebene[hidden] { display: none !important; }
.rl-sieger { font-size: 48px; font-weight: 700; color: var(--rot-dunkel); animation: rl-sieger .6s cubic-bezier(.3, 1.8, .5, 1); word-break: break-word; }
@keyframes rl-sieger { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.rl-ergebnis-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.rl-konfetti { position: absolute; width: 11px; height: 17px; border-radius: 2px; top: 38%; left: 50%; border: 1px solid rgba(0,0,0,.15); animation: konfetti 1.6s ease-out forwards; }
.rl-anl { justify-content: flex-start; align-items: stretch; text-align: left; }
.rl-anl-kopf { display: flex; justify-content: space-between; align-items: center; }
.rl-anl h2 { font-size: 26px; }
.rl-mini-eingabe { display: flex; gap: 8px; width: 86%; }
.rl-mini-feld { flex: 1; height: 54px; display: flex; align-items: center; background: #fff; border: 2px solid var(--linie-2); border-radius: 10px; padding: 0 12px; font-size: 19px; }
.rl-mini-rad { position: relative; width: 170px; height: 170px; }
.rl-mini-rad .rl-mini-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--rot); font-size: 16px; font-weight: 700; }
.rl-mini-knoepfe { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .btn-weiss { height: 42px; padding: 0 12px; font-size: 15px; }
  .dialog.roulette { padding: 14px; }
  .rl-titel h2 { font-size: 24px; }
  .rl-drehen { font-size: 24px; }
  .rl-sieger { font-size: 36px; }
}
@media (max-width: 420px) { .rl-text { display: none; } .btn-weiss { width: 46px; padding: 0; justify-content: center; } }
@media print { body * { visibility: hidden; } #druckBereich, #druckBereich * { visibility: visible; } #druckBereich { position: absolute; left: 0; top: 0; width: 100%; } .kein-druck { display: none !important; } }
.rl-x { width: 24px; height: 24px; border-radius: 50%; background: var(--rot); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.schalter-kurz { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.zelle-stapel { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.medaille { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #1c1b1a; }
.medaille.m1 { background: #f5c400; } .medaille.m2 { background: #cfc9bf; } .medaille.m3 { background: #d39a62; }
.druck-blatt { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linie); padding-top: 12px; }
.druck-verein { font-size: 13px; color: var(--text-3); font-weight: 600; }
.druck-blatt h2 { margin: 2px 0; }
@media print { #druckBereich { padding: 10mm; } #druckBereich table { font-size: 12pt; } }
.rl-kopf { flex-wrap: nowrap; }
.rl-titel { min-width: 0; }
.rl-titel .hinweis { font-size: 14px; }
.rl-knopf { flex-shrink: 0; }
@media (max-width: 600px) { .rl-kopf { flex-wrap: wrap; } .rl-titel { flex-basis: calc(100% - 60px); } }
.rl-kopf { position: relative; padding-right: 58px; }
#rlZu { position: absolute; right: 0; top: 0; }
@media (max-width: 600px) { .rl-titel { flex-basis: calc(100% - 60px); } .rl-eingabe .btn { padding: 0 14px; } }
@media (max-width: 600px) {
  .rl-kopf { padding-right: 0; }
  .rl-titel { flex-basis: calc(100% - 124px); }
  #rlHilfe { margin-right: 58px; }
  .rl-knopf { font-size: 15px; padding: 0 10px; flex: 1; }
}

/* ============ 1.5.0: Zeitleiste fürs automatische Abmelden ============ */
.zeitleiste { flex-shrink: 0; }
.zl-spur { position: relative; background: #ece7de; overflow: hidden; transition: height .25s; }
.zl-fuellung { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--gruen); transition: width .25s linear, background-color .4s; }
.zl-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.zeitleiste.gelb .zl-fuellung { background: #d6a800; }
.zeitleiste.warn .zl-fuellung { background: var(--rot); animation: zl-blinken 1s ease-in-out infinite; }
.zeitleiste.warn .zl-text { opacity: 1; }
@keyframes zl-blinken { 50% { opacity: .75; } }
.zl-oben .zl-spur { height: 6px; }
.zl-oben.warn .zl-spur { height: 36px; }
.zl-unten { background: #fff; border-top: 1px solid var(--linie); padding: 6px 24px 8px; }
.zl-beschriftung { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.zl-unten .zl-spur { height: 10px; border-radius: 6px; }
.zl-unten .zl-fuellung { border-radius: 6px; }
.zl-unten.warn .zl-spur { height: 36px; border-radius: 8px; }
@media (max-width: 600px) { .zl-unten { padding: 6px 16px 6px; } .zl-text { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .zeitleiste.warn .zl-fuellung { animation: none; } }
.bearbeiten-karte { border: 2px solid var(--rot); }
.aktionen-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.formular-raster .schalter { align-self: end; padding-bottom: 8px; }
.zeitleiste.warn .zl-spur { background: #6b0a10; }
.zeitleiste.warn .zl-fuellung { background: #e30613; }
.aktionen-zelle { flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-width: 0; }
.aktionen-zelle .btn-klein { height: 34px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.aktionen-zelle .etikett { text-align: center; }
td { padding: 8px 6px; }

/* ============ 1.5.1: PayPal-Fenster – Erinnerung & Abmelde-Hinweis ============ */
.pp-erinnerung { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--rot-hell); border: 2px solid var(--rot); border-radius: 12px; padding: 10px 12px; font-size: 19px; font-weight: 700; color: #a3040e; }
.pp-erinnerung svg { animation: pp-pfeil 1s ease-in-out infinite; flex-shrink: 0; }
@keyframes pp-pfeil { 50% { transform: translateY(6px); } }
#ppBezahlt.erinnern { animation: pp-wackeln 2.4s ease-in-out infinite; }
@keyframes pp-wackeln { 0%, 70%, 100% { transform: translateX(0); } 74% { transform: translateX(-7px) rotate(-1deg); } 78% { transform: translateX(7px) rotate(1deg); } 82% { transform: translateX(-5px); } 86% { transform: translateX(5px); } 90% { transform: translateX(0); } }
.pp-abmeldung { width: 100%; background: #1c1b1a; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 700; text-align: center; }
@media (prefers-reduced-motion: reduce) { #ppBezahlt.erinnern, .pp-erinnerung svg { animation: none; } }
@media (max-width: 600px) { .pp-erinnerung { font-size: 16px; gap: 6px; } .pp-erinnerung svg { width: 22px; height: 22px; } }

/* ============ 1.6.0 ============ */
/* Bezahl-Erinnerung gilt für PayPal und Bar */
.zahl-knopf.erinnern { animation: pp-wackeln 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .zahl-knopf.erinnern { animation: none; } }
/* Admin: Aktionsknöpfe kompakt nebeneinander statt riesig gestapelt */
.aktionen-zelle { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.aktionen-zelle .btn-klein { width: auto; }
/* Admin: Eingabefelder in Formularen auf einer Linie, auch bei zweizeiligen Beschriftungen */
.formular-raster { align-items: end; }
.filterleiste { align-items: flex-end; }
/* Admin: Rückfrage im Bearbeiten-Formular */
.frage-box { display: flex; flex-direction: column; gap: 10px; background: var(--gelb-hell); border: 2px solid var(--gelb-rand); border-radius: 12px; padding: 14px; font-size: 16px; }
.frage-box[hidden] { display: none; }

/* ============ 1.7.0 ============ */
.kf-gueltig { font-weight: 700; }
/* Admin-Fenster (Popup) */
.admin-overlay { position: fixed; inset: 0; background: rgba(20,18,16,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 14px; z-index: 70; overflow-y: auto; }
.admin-fenster { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.admin-fenster h2 { margin: 0; font-size: 22px; padding-right: 48px; }
.admin-fenster .feld input, .admin-fenster .feld select { width: 100%; }
.fenster-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--linie-2); background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.wahl-raster-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.wahl-raster-admin[hidden] { display: none; }
.wahl-knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 2px solid var(--linie-2); border-radius: 10px; background: #fff; padding: 10px 12px; font-size: 15px; color: var(--text); }
.wahl-knopf span { font-size: 13px; color: var(--text-3); }
.wahl-knopf.aktiv { border-color: var(--rot); background: var(--rot-hell); }
.personen-auswahl { width: 100%; border: 2px solid var(--linie-2); border-radius: 8px; padding: 4px; font-size: 16px; }
.pfand-betrag { font-size: 20px; color: var(--text); }
.vorschau-box { background: var(--grund); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
/* Leihartikel: Bestand */
.leih-zahl { font-size: 15px; white-space: nowrap; }
.leih-balken { height: 10px; border-radius: 5px; background: #e3f3e8; overflow: hidden; display: flex; }
.leih-v { background: var(--rot); } .leih-l { background: #9a948c; }
.leih-stuecke { display: flex; flex-wrap: wrap; gap: 6px; }
.leih-stueck { min-width: 76px; min-height: 48px; border-radius: 8px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 14px; line-height: 1.15; }
.leih-stueck span { font-size: 11px; font-weight: 600; }
.leih-stueck.frei { background: #e3f3e8; color: #155e2d; border: 1.5px solid #8ccb9f; }
.leih-stueck.vergeben { background: var(--rot-hell); color: #a3040e; border: 1.5px solid var(--rot); }
.leih-stueck.verloren { background: #ecebe8; color: var(--text-2); border: 1.5px dashed #9a948c; }
@media (max-width: 600px) { .admin-overlay { padding: 12px 8px; } .admin-fenster { padding: 16px; } .leih-zahl { white-space: normal; } }
.etikett-geplant { background: #e6f1fb; color: #0c447c; }
.kf-erweitert { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linie); padding-top: 10px; }
.kf-erweitert[hidden], .formular-raster[hidden] { display: none; }
.feld input[type=file] { width: 100%; max-width: 100%; min-width: 0; font-size: 14px; }
.zwei-spalten > .karte { min-width: 0; }
/* Tablet hochkant und kleiner */
@media (max-width: 900px) {
  /* Kasse: Fertig/Bezahlen über die volle Breite – angenehmer zu tippen */
  .summenleiste .aktionen { width: 100%; }
  .summenleiste .aktionen .btn-gross { flex: 1; }
  .summenleiste .limit-hinweis { flex-basis: 100%; }
  .summenleiste .aktionen { flex-wrap: wrap; }
  /* Admin: kompakter Kopf, unwichtige Tabellenspalten ausblenden */
  #angemeldetAls, .version { display: none; }
  .admin-app .kopf-titel { font-size: 22px; }
  .nur-breit { display: none; }
}

/* ============ 1.8.0: Flaschenpfand an der Kasse ============ */
.kachel.pfand-kachel { background: #f3f8fd; border-color: #b5d4f4; }
.kachel-pfand { font-size: 13px; font-weight: 700; color: #0c447c; }
.kachel-rueckgabe { font-size: 14px; font-weight: 700; color: #1e5fb4; min-height: 0; }
.kachel-rueckgabe:empty { display: none; }
.kachel.rueckgabe { border: 3px solid #1e5fb4; background: #e6f1fb; padding: 14px; }
.kachel.rueckgabe .anzahl { color: #1e5fb4; }
.ist-guthaben .summe-gesamt span { color: #1e5fb4 !important; }
.ist-guthaben #zahlenBtn { background: #1e5fb4; border-color: #1e5fb4; color: #fff; }
.betrag-blau { color: #1e5fb4 !important; }

/* ============ 1.8.0: Scroll-Hinweise ============ */
/* 1 · Verlauf + Knopf unten (klebt am unteren Rand des sichtbaren Bereichs) */
.scroll-hinweis { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: center; align-items: flex-end; padding: 34px 0 8px; pointer-events: none; flex-shrink: 0; }
.scroll-hinweis[hidden] { display: none; }
.scroll-hinweis.mit-verlauf { background: linear-gradient(to bottom, rgba(246,244,239,0), var(--grund) 70%); }
.scroll-knopf { pointer-events: auto; height: 46px; border-radius: 999px; border: none; background: var(--text); color: #fff; font-size: 17px; font-weight: 700; padding: 0 20px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.scroll-hinweis.mit-verlauf .scroll-knopf { animation: scroll-huepfen 1.6s ease-in-out infinite; }
.scroll-hinweis:not(.mit-verlauf) .scroll-knopf { background: rgba(28,27,26,.8); height: 40px; font-size: 15px; }
@keyframes scroll-huepfen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* 2 · Kategorie-Leiste */
.kat-leiste { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; flex-shrink: 0; scrollbar-width: none; }
.kat-leiste::-webkit-scrollbar { display: none; }
.kat-leiste[hidden] { display: none; }
.kat-knopf { flex-shrink: 0; height: 44px; border-radius: 999px; border: 2px solid var(--linie-2); background: #fff; color: var(--text); font-size: 16px; font-weight: 700; padding: 0 18px; }
.kat-knopf.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; }
.kategorie-titel { scroll-margin-top: 70px; }
@media (max-width: 900px) { .kat-leiste { position: sticky; top: -12px; z-index: 6; background: var(--grund); padding: 12px 0 8px; margin-top: -12px; } }
/* 3 · Sichtbarer Scrollbalken */
.scroll-balken { scrollbar-width: auto; scrollbar-color: var(--rot) #ece7de; }
.scroll-balken::-webkit-scrollbar { width: 14px; }
.scroll-balken::-webkit-scrollbar-thumb { background: var(--rot); border-radius: 7px; border: 3px solid #ece7de; }
.scroll-balken::-webkit-scrollbar-track { background: #ece7de; border-radius: 7px; }
/* 4 · Kacheln angeschnitten */
.produkte.anschnitt .kachel { min-height: var(--kachel-h, 124px); }
/* Lange Fenster */
.dialog-mehr { position: sticky; bottom: -4px; align-self: center; margin-top: -8px; height: 40px; border-radius: 999px; border: none; background: rgba(28,27,26,.85); color: #fff; font-size: 15px; font-weight: 700; padding: 0 18px; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 5; flex-shrink: 0; }
.dialog-mehr[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hinweis.mit-verlauf .scroll-knopf { animation: none; } }
/* Admin: Pfand */
.pfand-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pfand-zahl { background: var(--grund); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); }
.pfand-zahl b { font-size: 22px; color: var(--text); }
.pfand-zahl b.rot { color: var(--rot-dunkel); }
.pf-haus { background: var(--gruen); } .pf-umlauf { background: #1e5fb4; } .pf-schwund { background: #9a948c; }
.karte-warnung { border: 2px solid var(--gelb-rand); }
.zeitlinie { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 3px solid var(--linie); display: flex; flex-direction: column; gap: 10px; }
.zeitlinie li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.zeitlinie li span { font-size: 13px; color: var(--text-3); }
.zeitlinie li::before { content: ''; position: absolute; left: -24px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #9a948c; border: 2px solid #fff; }
.zeitlinie li.jetzt::before { background: var(--rot); }
.verlauf { max-height: 240px; overflow-y: auto; }
.etikett-pfand { background: #e6f1fb; color: #0c447c; }
.unter-titel { font-size: 17px; margin: 8px 0 0; }
/* Sehr flache Bildschirme (z. B. Handy quer): Kategorie-Leiste nicht mitlaufen lassen, sonst verdeckt sie die Kacheln */
@media (max-width: 900px) and (max-height: 520px) { .kat-leiste { position: static; margin-top: 0; padding: 2px 0 4px; } }
@media (max-width: 900px) and (max-height: 520px) {
  .scroll-hinweis { display: none !important; }
  .zl-unten { padding: 4px 16px; } .zl-unten .zl-beschriftung { display: none; }
  .personleiste { padding-top: 6px; padding-bottom: 6px; }
  .summenleiste { padding-top: 6px; padding-bottom: 6px; gap: 8px; }
  .summe-gesamt span:last-child { font-size: 28px; }
  .summenleiste .btn-gross { height: 48px; }
}

/* ============ 1.9.0: Gestaltung der Kacheln ============ */
.kachel-raster { grid-auto-flow: dense; }
.kachel { position: relative; }
.kachel-untertitel { font-size: 15px; font-weight: 600; opacity: .8; margin-top: 2px; }
.kachel.eigene-farbe .kachel-preis, .kachel.eigene-farbe .kachel-name, .kachel.eigene-farbe .anzahl { color: inherit; }
.kachel.eigene-farbe .kachel-preis { opacity: .85; }
.kachel-notiz { background: #fff59d; color: #3d3500; border: 1px solid #e8d400; border-radius: 4px; padding: 6px 8px; font-size: 14px; font-weight: 700; transform: rotate(-1deg); box-shadow: 1px 2px 0 rgba(0,0,0,.08); }
.abzeichen { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; font-size: 12px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; line-height: 1; }
.abzeichen svg { flex-shrink: 0; }
.kachel-symbol { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.kachel.kachel-gross .kachel-name { font-size: 28px; }
.kachel.kachel-gross .kachel-preis { font-size: 20px; }
.kachel.kachel-gross .rund-btn { width: 72px; height: 72px; }
.kachel.kachel-gross .anzahl { font-size: 40px; }
.kachel[data-hoehe="2"] .kachel-steuerung { margin-top: auto; }
.notiz-gross { border-radius: 6px; padding: 16px 18px; font-size: 19px; font-weight: 700; line-height: 1.35; box-shadow: 2px 3px 0 rgba(0,0,0,.1); transform: rotate(-.5deg); border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; min-height: 80px; white-space: pre-line; word-break: break-word; }
@media (max-width: 600px) { .notiz-gross { font-size: 16px; padding: 12px 14px; } .kachel.kachel-gross .kachel-name { font-size: 22px; } .kachel.kachel-gross .rund-btn { width: 60px; height: 60px; } }

/* ============ 1.9.0: Layout-Editor (Admin) ============ */
.le-status { font-size: 14px; font-weight: 700; color: #a3040e; }
.le-leiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-neu-zettel { border: 2px dashed var(--gelb-rand); background: var(--gelb-hell); color: #5c4f00; }
.le-rumpf { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.le-vorschau { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; }
.le-vorschau[data-geraet="hoch"] .le-rahmen { max-width: 600px; }
.le-vorschau[data-geraet="handy"] .le-rahmen { max-width: 360px; }
.le-rahmen { width: 100%; max-width: 900px; background: #1c1b1a; border-radius: 18px; padding: 12px; }
.le-schirm { background: var(--grund); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; max-height: 760px; overflow-y: auto; }
.le-kat { font-size: 15px; font-weight: 700; color: var(--rot-dunkel); text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }
.le-raster { display: grid; gap: 8px; grid-auto-rows: minmax(104px, auto); grid-auto-flow: dense; min-height: 60px; padding: 3px; border-radius: 8px; }
.le-raster.ziel { outline: 2px dashed #1e5fb4; background: #eef5fc; }
.le-leer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; border: 2px dashed var(--linie-2); border-radius: 8px; }
.le-kachel { position: relative; background: #fff; border: 1px solid #ddd8cf; border-radius: 10px; padding: 8px 8px 8px 30px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; }
.le-kachel.sel, .le-zettel.sel { outline: 3px solid #1e5fb4; outline-offset: 2px; }
.le-kachel.aus { opacity: .45; }
.le-kachel.pfand:not([style*="background"]) { background: #f3f8fd; }
.le-kopf { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.le-name { font-weight: 700; font-size: 15px; line-height: 1.1; word-break: break-word; }
.le-ut { font-size: 12px; opacity: .8; }
.le-preis { font-size: 12px; opacity: .85; white-space: nowrap; }
.le-hinweis { font-size: 11px; font-weight: 700; }
.le-steuer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.le-knopf { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.le-minus { background: #f6f4ef; border: 2px solid #cfc9bf; color: #1c1b1a; }
.le-plus { background: var(--rot); color: #fff; }
.le-zahl { font-size: 18px; font-weight: 700; }
.le-kachel.gross .le-name { font-size: 22px; } .le-kachel.gross .le-knopf { width: 44px; height: 44px; font-size: 26px; }
.le-notiz { background: #fff59d; color: #3d3500; border: 1px solid #e8d400; border-radius: 4px; padding: 4px 6px; font-size: 11px; font-weight: 700; }
.le-zettel { position: relative; border-radius: 6px; padding: 10px 12px 10px 32px; font-size: 14px; font-weight: 700; display: flex; align-items: center; cursor: pointer; border: 1px solid rgba(0,0,0,.08); white-space: pre-line; word-break: break-word; }
.le-zettel small { display: block; font-size: 11px; font-weight: 400; opacity: .8; margin-top: 3px; }
.le-griff { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.08); color: #4a4744; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: grab; touch-action: none; z-index: 4; }
.le-symbol { position: absolute; transform: translate(-50%, -50%); cursor: grab; touch-action: none; z-index: 3; }
.le-ecke { position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; border-radius: 7px; background: #1e5fb4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: nwse-resize; touch-action: none; z-index: 5; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.le-mass { position: absolute; left: 30px; bottom: 6px; font-size: 11px; font-weight: 700; background: #1e5fb4; color: #fff; border-radius: 6px; padding: 1px 6px; }
.le-zieht { opacity: .35; }
.le-geist { position: fixed; pointer-events: none; z-index: 90; opacity: .85; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.le-groesse-rahmen { position: fixed; border: 2px dashed #1e5fb4; background: rgba(30,95,180,.08); border-radius: 10px; pointer-events: none; z-index: 90; }
.le-panel { flex: 0 1 340px; min-width: 280px; background: var(--grund); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.le-panel h3 { margin: 0; font-size: 18px; }
.le-panel textarea { width: 100%; border: 2px solid var(--linie-2); border-radius: 8px; padding: 8px 10px; font-size: 15px; font-family: inherit; resize: vertical; }
.le-farben { display: flex; flex-wrap: wrap; gap: 6px; }
.le-farbe { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--linie-2); padding: 0; }
.le-farbe.aktiv { outline: 3px solid var(--text); outline-offset: 2px; }
.le-standard { width: auto; padding: 0 8px; border-radius: 16px; font-size: 12px; font-weight: 700; background: #fff; color: var(--text); }
.le-symbolwahl { display: flex; flex-wrap: wrap; gap: 4px; }
.le-symbolknopf { background: transparent; border: none; padding: 2px; }
.le-symbolliste { display: flex; flex-wrap: wrap; gap: 6px; }
.le-symbolliste > span { display: inline-flex; align-items: center; gap: 3px; background: #fff; border-radius: 999px; padding: 2px 4px 2px 2px; }
.le-symbolliste button { width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--rot); color: #fff; font-size: 12px; line-height: 1; padding: 0; }
.le-gueltig { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .le-panel { flex-basis: 100%; } }

/* ============ 2.0.0: Infobrett auf der Startseite ============ */
.infobrett { width: 100%; max-width: 1100px; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 14px; grid-auto-flow: dense; }
.infobrett[hidden] { display: none; }
.info-baustein { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--linie); box-shadow: 0 1px 3px rgba(0,0,0,.06); min-width: 0; }
.ib-inhalt { height: 100%; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; }
.ib-inhalt h3 { margin: 0; font-size: 22px; line-height: 1.2; color: inherit; }
.ib-inhalt p { margin: 0; font-size: 17px; line-height: 1.35; white-space: pre-line; color: inherit; }
.info-banner .ib-inhalt h3 { font-size: 26px; }
.info-countdown { align-items: center; text-align: center; }
.info-countdown b { font-size: 34px; line-height: 1.1; }
.info-klein { font-size: 15px; font-weight: 700; opacity: .85; }
.info-qr { flex-direction: row; align-items: center; gap: 14px; }
.info-qr img { height: min(150px, 90%); aspect-ratio: 1; border-radius: 6px; background: #fff; padding: 4px; flex-shrink: 0; }
.info-medium { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1c1b1a; }
.info-video .info-medium { object-fit: contain; }
.dia-bild { opacity: 0; transition: opacity 1s; }
.dia-bild.sichtbar { opacity: 1; }
.info-unterschrift { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 10px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.65)); }
@media (max-width: 900px) { .infobrett { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; gap: 12px; } }
@media (max-width: 520px) { .infobrett { grid-template-columns: 1fr; grid-auto-rows: 100px; margin-top: 18px; } .ib-inhalt h3 { font-size: 19px; } .ib-inhalt p { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .dia-bild { transition: none; } }
/* Admin: Infobrett-Editor */
.ib-schirm { gap: 10px; }
.ib-titel { font-family: var(--titel); font-size: 28px; font-weight: 700; }
.ib-suche { height: 44px; border: 3px solid var(--rot); border-radius: 12px; background: #fff; display: flex; align-items: center; padding: 0 12px; color: var(--text-3); font-size: 15px; }
.ib-raster { margin-top: 6px; grid-auto-rows: 84px; gap: 14px; max-width: none; }
.ib-raster.ziel { outline: 2px dashed #1e5fb4; background: #eef5fc; border-radius: 10px; }
.ib-leerfeld { min-height: 120px; }
.ib-edit { cursor: pointer; overflow: visible; }
.ib-edit.sel { outline: 3px solid #1e5fb4; outline-offset: 2px; }
.ib-edit .info-medium, .ib-edit .info-unterschrift { border-radius: inherit; }
.ib-edit .ib-inhalt { padding-left: 34px; }
.ib-edit .ib-inhalt h3 { font-size: 16px; } .ib-edit .ib-inhalt p { font-size: 13px; } .ib-edit .info-countdown b { font-size: 24px; }
.ib-qr-platz { width: 56px; height: 56px; flex-shrink: 0; border-radius: 6px; background: repeating-conic-gradient(#1c1b1a 0 25%, #fff 0 50%) 0 0 / 12px 12px; border: 4px solid #fff; color: transparent; }
.ib-leer { background: repeating-linear-gradient(45deg, #f6f4ef, #f6f4ef 10px, #ece7de 10px, #ece7de 20px); }
.ib-anzahl, .ib-bis { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.92); color: #1c1b1a; border-radius: 6px; padding: 2px 6px; z-index: 3; }
.ib-bis { top: auto; bottom: 6px; right: 34px; }
.ib-geist { padding: 10px 14px; background: #fff; border: 2px solid #1e5fb4; border-radius: 10px; font-weight: 700; }
.ib-auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ib-auswahl-knopf { border: 2px solid var(--linie-2); border-radius: 10px; padding: 8px 10px; background: #fff; cursor: grab; touch-action: none; user-select: none; display: flex; flex-direction: column; }
.ib-auswahl-knopf b { font-size: 14px; } .ib-auswahl-knopf span { font-size: 11px; color: var(--text-3); }
.ib-dateiwahl { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-datei { position: relative; width: 64px; height: 48px; border-radius: 8px; border: 2px solid var(--linie-2); padding: 0; overflow: hidden; background: #1c1b1a; }
.ib-datei img { width: 100%; height: 100%; object-fit: cover; }
.ib-datei.aktiv { border-color: var(--rot); outline: 3px solid var(--rot); }
.ib-nr { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ib-vid { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; background: #1c1b1a; width: 100%; height: 100%; }
.ib-speicher { height: 14px; }
.ib-ablage { border: 2px dashed #85b7eb; border-radius: 12px; background: #eef5fc; padding: 14px; text-align: center; color: #0c447c; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.ib-ablage span { font-size: 12px; } .ib-ablage.ziel { background: #d6e8fa; border-color: #1e5fb4; }
.ib-uploads { display: flex; flex-direction: column; gap: 6px; }
.ib-upload { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.ib-fortschritt { height: 8px; border-radius: 4px; background: #ecebe8; overflow: hidden; }
.ib-fortschritt div { height: 100%; width: 0; background: var(--gruen); transition: width .15s; }
.ib-ok { color: #155e2d; font-weight: 700; }
.ib-liste { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.ib-eintrag { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 6px; }
.ib-vorschau { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ib-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.ib-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-info em { color: var(--rot-dunkel); font-style: normal; font-weight: 700; }
/* 2.0.1: Vorschau im Layout-/Infobrett-Editor – Kategorien nie zusammendrücken, stattdessen scrollen */
.le-schirm > * { flex-shrink: 0; }
.le-schirm { max-height: none; overflow: visible; }
@media (min-width: 901px) { .le-panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; } }

/* ============ 2.1.0: feste Positionen, Schriftgrößen, Kategorien ============ */
.raster-fest { grid-auto-rows: minmax(124px, auto); grid-auto-flow: row; }
#infobrett.raster-fest { grid-auto-rows: 120px; }
.kachel { overflow: visible; }
.kachel.schrift-1 .kachel-name { font-size: 16px; } .kachel.schrift-2 .kachel-name { font-size: 21px; } .kachel.schrift-3 .kachel-name { font-size: 25px; }
.kachel.schrift-4 .kachel-name { font-size: 30px; } .kachel.schrift-5 .kachel-name { font-size: 36px; }
.notiz-gross.schrift-1 { font-size: 15px; } .notiz-gross.schrift-2 { font-size: 17px; } .notiz-gross.schrift-3 { font-size: 19px; } .notiz-gross.schrift-4 { font-size: 24px; } .notiz-gross.schrift-5 { font-size: 30px; }
.info-baustein.schrift-1 .ib-inhalt h3 { font-size: 17px; } .info-baustein.schrift-1 .ib-inhalt p { font-size: 14px; }
.info-baustein.schrift-3 .ib-inhalt h3 { font-size: 27px; } .info-baustein.schrift-3 .ib-inhalt p { font-size: 20px; }
.info-baustein.schrift-4 .ib-inhalt h3 { font-size: 33px; } .info-baustein.schrift-4 .ib-inhalt p { font-size: 24px; }
.info-baustein.schrift-5 .ib-inhalt h3 { font-size: 40px; } .info-baustein.schrift-5 .ib-inhalt p { font-size: 29px; }
@media (max-width: 600px) { .kachel.schrift-4 .kachel-name { font-size: 24px; } .kachel.schrift-5 .kachel-name { font-size: 28px; } }
/* Kategorien */
.kategorie-titel { display: flex; align-items: center; gap: 10px; }
.kategorie-titel.schrift-1 { font-size: 17px; } .kategorie-titel.schrift-2 { font-size: 20px; } .kategorie-titel.schrift-3 { font-size: 24px; }
.kategorie-titel.schrift-4 { font-size: 29px; } .kategorie-titel.schrift-5 { font-size: 35px; }
.kategorie-titel svg { flex-shrink: 0; }
.kat-block { border-radius: 16px; }
.kat-block.abstand-klein { margin-bottom: -6px; } .kat-block.abstand-gross { margin-bottom: 18px; }
.kat-block.stil-flaeche { background: var(--kat-hell); padding: 14px 14px 16px; }
.kat-block.stil-kasten { background: var(--kat-hell); border: 3px solid var(--kat-farbe); padding: 12px 12px 14px; }
.kat-linie { margin-top: 6px; border-top: 3px solid var(--kat-farbe); }
.stil-linie-duenn .kat-linie { border-top-width: 2px; } .stil-linie-dick .kat-linie { border-top-width: 6px; border-radius: 3px; }
.stil-linie-strich .kat-linie { border-top-style: dashed; }
.scroll-hinweis.mit-verlauf { background: linear-gradient(to bottom, rgba(246,244,239,0) 0%, rgba(246,244,239,.85) 45%, var(--grund) 75%, var(--grund) 100%); }
/* Admin: Layout-Editor mit festem Raster (2.1.0) */
.le-raster { grid-auto-rows: unset; grid-auto-flow: row; position: relative; }
.le-raster.le-handy { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(96px, auto); grid-auto-flow: dense; }
.le-feld { border: 2px dashed #d9d3c8; border-radius: 10px; background: rgba(255,255,255,.35); min-height: 96px; }
.le-feld.ziel { border-color: #1e5fb4; background: #e6f1fb; }
.le-feld.besetzt { border-color: var(--rot); background: var(--rot-hell); }
.le-raster > .le-kachel, .le-raster > .le-zettel { z-index: 1; }
.le-raster > .sel { z-index: 3; }
.le-kat-block { margin-bottom: 10px; }
.le-kat-block .kategorie-titel { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: 0 -4px 6px; }
.le-kat-block .kategorie-titel:hover { background: rgba(0,0,0,.05); }
.le-kat-block.sel .kategorie-titel { outline: 3px solid #1e5fb4; outline-offset: 2px; }
.le-leiste-gruppe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.le-spalteninfo { font-size: 13px; color: var(--text-2); }
.le-warnung { color: #a3040e; font-weight: 700; }
.le-handyhinweis { background: #fffbd6; border: 1.5px solid #e8d400; border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #5c4f00; }
.le-katsymbol { width: 36px; height: 32px; border-radius: 8px; border: 2px solid var(--linie-2); background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text); }
.le-katsymbol.aktiv { border-color: var(--rot); background: var(--rot-hell); }
.le-kachel.schrift-1 .le-name { font-size: 12px; } .le-kachel.schrift-3 .le-name { font-size: 18px; } .le-kachel.schrift-4 .le-name { font-size: 21px; } .le-kachel.schrift-5 .le-name { font-size: 25px; }
.le-zettel.schrift-1 { font-size: 12px; } .le-zettel.schrift-2 { font-size: 13px; } .le-zettel.schrift-3 { font-size: 15px; } .le-zettel.schrift-4 { font-size: 18px; } .le-zettel.schrift-5 { font-size: 22px; }
.le-kachel { overflow: visible; }
.le-vorschau[data-geraet="hoch"] .le-rahmen { max-width: 760px; }
.le-vorschau[data-geraet="quer"] .le-rahmen { max-width: 920px; }
.le-vorschau[data-geraet="handy"] .le-rahmen { max-width: 380px; }
/* 2.2.0 */
.update-hinweis { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95; background: #1c1b1a; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.update-hinweis .btn { background: #ffed00; border-color: #ffed00; color: #1c1b1a; }
/* 2.3.0: Umbenennung im Verlauf eines Leihstücks */
.zeitlinie li.umbenannt::before { background: #1e5fb4; }
.zeitlinie li.umbenannt b { color: #0c447c; }

/* ============ 2.4.0: Gesichtsanmeldung ============ */
.suchzeile { display: flex; gap: 12px; align-items: stretch; width: 100%; }
.suchzeile .suchfeld { flex: 1; min-width: 0; }
.gesicht-btn { flex-shrink: 0; min-width: 76px; height: 76px; border-radius: 14px; border: 3px solid var(--rot); background: #fff; color: var(--rot); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 700; padding: 0 14px; transition: min-width .25s ease; }
.gesicht-btn:active { transform: scale(.97); }
.gesicht-btn.scan { min-width: 210px; border-color: #1e5fb4; color: #1e5fb4; }
.gesicht-btn.gross { height: 64px; min-width: 260px; }
.gesicht-puls { width: 14px; height: 14px; border-radius: 50%; background: #1e5fb4; animation: gesichtPuls 1s ease-in-out infinite; }
@keyframes gesichtPuls { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.2); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gesicht-puls { animation: none; } }
.gesicht-meldung { margin-top: 10px; font-size: 18px; font-weight: 700; color: var(--text-2); }
.gesicht-gruss { background: #e3f3e8; color: #155e2d; font-weight: 700; font-size: 18px; padding: 10px 18px; text-align: center; }
.gesicht-status { background: #e3f3e8; color: #155e2d; font-weight: 700; border-radius: 10px; padding: 8px 12px; display: inline-block; }
.gesicht-einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; background: var(--grund); border-radius: 10px; padding: 12px; }
.gesicht-einwilligung input { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.gesicht-scan-zeile { display: flex; justify-content: center; padding: 10px 0; }
.dialog-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-kopfzeile h2 { margin: 0; }
.schliessen-x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--linie-2); background: #fff; font-size: 26px; line-height: 1; color: var(--text); }
.btn-gefahr { background: #fff; border-color: #a3040e; color: #a3040e; }
#dlgGesicht .dialog { display: flex; flex-direction: column; gap: 12px; }
#gesichtInhalt { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) { .gesicht-btn { min-width: 64px; height: 64px; } .gesicht-btn.scan { min-width: 170px; font-size: 17px; } }
/* Admin: Gesichtsanmeldung */
.gesicht-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.gesicht-kopf h2 { margin: 0 0 4px; }
.schiebeschalter { width: 58px; height: 32px; border-radius: 16px; border: none; background: #cfc9bf; position: relative; flex-shrink: 0; padding: 0; }
.schiebeschalter::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.schiebeschalter.an { background: var(--gruen); } .schiebeschalter.an::after { left: 30px; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kennzahl { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; }
.kennzahl span { display: block; font-size: 13px; color: var(--text-2); } .kennzahl b { font-size: 26px; }
.etiketten { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.etikett-gesicht { background: #e6f1fb; color: #0c447c; }
/* 2.4.1: Begrüßung in der Namenszeile (ohne dass sich etwas verschiebt) */
.personleiste-name { position: relative; }
.gruss-hallo { position: absolute; font-family: var(--titel); font-weight: 700; color: var(--text-2); white-space: nowrap; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============ 2.5.0: Gesichtsanmeldung – Fortschrittsring, Selfie-Ansicht, Scanlinie ============ */
.gesicht-btn { position: relative; }
.gesicht-btn.scan { min-width: 76px; border-color: #1e5fb4; color: #1e5fb4; }
.gesicht-ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; opacity: 0; transition: opacity .2s; }
.gesicht-btn.scan .gesicht-ring { opacity: 1; }
.gesicht-ring circle { fill: none; stroke-width: 5; }
.ring-spur { stroke: #e6f1fb; }
.ring-fort { stroke: #1e5fb4; stroke-linecap: round; transition: stroke-dashoffset .3s ease; }
.gesicht-btn > svg:not(.gesicht-ring) { position: relative; }
@media (max-width: 600px) { .gesicht-btn.scan { min-width: 64px; } }
.gesicht-meldung { min-height: 1.4em; }
/* Selfie-Ansicht */
.gesicht-spiegel { position: relative; width: 240px; height: 300px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #2b2a28; border: 5px solid #cfc9bf; transition: border-color .25s; }
.gesicht-spiegel.ok { border-color: var(--gruen); }
.gesicht-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.scan-linie { position: absolute; left: 0; right: 0; top: -6px; height: 4px; background: #5fd3ff; box-shadow: 0 0 16px 5px rgba(95, 211, 255, .65); opacity: 0; }
.scan-schleier { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(to bottom, rgba(95, 211, 255, 0), rgba(95, 211, 255, .2)); pointer-events: none; }
.scan-linie.lauf { animation: scanLinie 1.1s cubic-bezier(.45, 0, .55, 1) forwards; }
.scan-schleier.lauf { animation: scanSchleier 1.1s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes scanLinie { 0% { top: -6px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
@keyframes scanSchleier { 0% { height: 0; } 100% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .scan-linie.lauf, .scan-schleier.lauf { animation-duration: .01s; } }
.gesicht-chip { align-self: center; font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #fffbd6; color: #5c4f00; }
.gesicht-chip.ok { background: #e3f3e8; color: #155e2d; }
.gesicht-punkte { display: flex; gap: 10px; justify-content: center; }
.gesicht-punkte i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cfc9bf; }
.gesicht-punkte i.voll { background: var(--gruen); border-color: var(--gruen); }
.gesicht-haken { width: 84px; height: 84px; border-radius: 50%; background: #e3f3e8; color: #155e2d; display: flex; align-items: center; justify-content: center; margin: 6px auto 0; }
.gesicht-fertig { text-align: center; font-size: 22px; font-weight: 700; }
.klein-zentriert { text-align: center; font-size: 14px; color: var(--text-2); margin: 0; }
/* Admin: Erkennungssicherheit */
.ab-bereich { position: relative; padding-top: 22px; }
.ab-balken { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; height: 120px; align-items: end; border-bottom: 1px solid var(--linie-2); }
.ab-spalte { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.ab-gruen { background: var(--gruen); border-radius: 3px 3px 0 0; }
.ab-grau { background: #9a948c; border-radius: 3px 3px 0 0; }
.ab-grenze { position: absolute; top: 0; bottom: 18px; border-left: 2px dashed #a3040e; font-size: 12px; font-weight: 700; color: #a3040e; padding-left: 4px; white-space: nowrap; }
.ab-achse { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.ab-legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin: 8px 0; }
.ab-l-gruen::before, .ab-l-grau::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ab-l-gruen::before { background: var(--gruen); } .ab-l-grau::before { background: #9a948c; }
/* Scanlinie flüssig auch bei Rechenlast: nur Verschiebung/Skalierung (läuft auf der Grafikeinheit) */
.scan-linie { top: 0; transform: translateY(-8px); will-change: transform; }
.scan-schleier { height: 100%; transform: scaleY(0); transform-origin: top; will-change: transform; }
.scan-linie.lauf { animation: scanLinie2 1.1s cubic-bezier(.45, 0, .55, 1) forwards; }
.scan-schleier.lauf { animation: scanSchleier2 1.1s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes scanLinie2 { 0% { transform: translateY(-8px); opacity: 1; } 100% { transform: translateY(292px); opacity: 1; } }
@keyframes scanSchleier2 { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .scan-linie.lauf, .scan-schleier.lauf { animation-duration: .01s; } }

/* ============ 2.6.0: Anleitung und „Was ist neu?“ (Präfix hl-) ============ */
.hl-trenner { height: 1px; background: var(--linie); margin: 10px 6px; flex-shrink: 0; }
.hl-punkt { margin-left: auto; padding-left: 8px; }
.menue a .hl-punkt { background: var(--rot); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 8px; }
.hl-titelzeile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hl-frage { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--text); background: #fff; color: var(--text); font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hl-frage:hover, .hl-frage:focus-visible { background: var(--gelb); }
.hl-banner { background: var(--gelb-hell); border: 1px solid var(--gelb-rand); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hl-banner strong { font-size: 18px; }
.hl-banner span { flex: 1 1 280px; min-width: 0; color: var(--text-2); }
.hl-banner .btn { text-decoration: none; }
.hl-leise { border-color: transparent; background: transparent; text-decoration: underline; }

.hl-anleitung { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.hl-seite { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; max-height: calc(100vh - 24px); min-width: 0; }
.hl-suche { width: 100%; height: 46px; border: 2px solid var(--linie-2); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; }
.hl-kapitel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.hl-kapitel a { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.3; }
.hl-kapitel a:hover { background: var(--grund); }
.hl-kapitel a.aktiv { background: var(--rot-hell); color: #a3040e; font-weight: 700; }
.hl-knr { color: var(--text-3); min-width: 1.6em; font-variant-numeric: tabular-nums; font-weight: 400; }
.hl-gruppe { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 4px; }
.hl-gruppe:first-child { padding-top: 4px; }
.hl-text { line-height: 1.55; font-size: 16px; min-width: 0; gap: 0; }
.hl-text > * { max-width: 780px; }
.hl-text .hl-titel { font-family: var(--titel); font-size: 32px; margin: 0 0 6px; line-height: 1.15; }
.hl-text h3 { font-size: 19px; margin: 22px 0 4px; }
.hl-text p { margin: 6px 0; }
.hl-text ul { margin: 6px 0; padding-left: 1.3em; }
.hl-text li { margin: 4px 0; }
.hl-schritte { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 7px; }
.hl-schritte li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.hl-nr { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.hl-code { background: var(--grund); border: 1px solid var(--linie); border-radius: 5px; padding: 0 5px; font-size: 14px; overflow-wrap: anywhere; }
.hl-link { color: #a3040e; font-weight: 600; }
.hl-mark { background: var(--gelb); color: var(--text); border-radius: 2px; padding: 0 1px; }
.hl-kasten { border-radius: 8px; padding: 10px 14px; margin: 12px 0; border-left: 5px solid; }
.hl-kasten p { margin: 4px 0; }
.hl-kasten-tipp, .hl-kasten-hinweis { background: #e6f1fb; border-color: #1e5fb4; }
.hl-kasten-achtung { background: var(--rot-hell); border-color: var(--rot); }
.hl-kasten-beispiel { background: #e3f3e8; border-color: var(--gruen); }
.hl-kasten-wichtig { background: var(--gelb-hell); border-color: var(--gelb-rand); }
.hl-bild { margin: 14px 0; }
.hl-bild-rahmen { position: relative; border: 1px solid var(--linie-2); border-radius: 10px; overflow: hidden; background: var(--grund); cursor: zoom-in; box-shadow: 0 2px 10px rgba(60, 40, 20, .08); }
.hl-bild-rahmen img { display: block; width: 100%; height: auto; }
.hl-marke { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--rot); color: #fff; border: 2px solid #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 5px rgba(0, 0, 0, .4); pointer-events: none; }
.hl-bild figcaption { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.hl-gross { position: fixed; inset: 0; background: rgba(20, 16, 12, .82); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.hl-gross-innen { width: min(1300px, 100%); max-height: 100%; overflow: auto; }
.hl-gross-innen .hl-bild-rahmen { cursor: zoom-out; }
.hl-gross-innen p { color: #fff; text-align: center; margin: 8px 0 0; }
.hl-tabelle td, .hl-tabelle th { vertical-align: top; }
.hl-blaettern { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; max-width: none !important; }
.hl-blaettern .btn { text-decoration: none; height: auto; min-height: 40px; padding: 6px 14px; text-align: left; }

.hl-versionen { padding: 0; overflow: hidden; }
.hl-versionen table { min-width: 620px; }
.hl-vzeile { cursor: pointer; }
.hl-vzeile:hover td, .hl-vzeile:focus-visible td { background: #fbfaf7; }
.hl-vzeile.offen td { background: var(--gelb-hell); }
.hl-vnr { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hl-datum { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hl-installiert { margin-left: 8px; background: var(--gelb); border: 1px solid var(--gelb-rand); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.hl-art { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hl-art-neu { background: #e3f3e8; color: var(--gruen); }
.hl-art-verbesserung { background: #e6f1fb; color: #1e5fb4; }
.hl-art-gross { background: var(--rot-hell); color: #a3040e; }
.hl-auf { color: var(--text-3); font-size: 13px; }
.hl-details > td { background: #fbfaf7; padding: 6px 18px 14px; }
.hl-abschnitt h3, .hl-details .hl-kasten h3 { font-size: 16px; margin: 12px 0 2px; }
.hl-details ul { margin: 4px 0; padding-left: 1.3em; }
.hl-details li { margin: 3px 0; line-height: 1.45; }
.hl-details p { margin: 4px 0; }

@media (max-width: 900px) {
  .hl-trenner { width: 1px; height: auto; margin: 4px 2px; }
  .hl-anleitung { grid-template-columns: 1fr; }
  .hl-seite { position: static; max-height: none; }
  .hl-kapitel { max-height: 260px; }
}
@media (max-width: 600px) {
  .hl-text .hl-titel { font-size: 26px; }
  .hl-marke { width: 22px; height: 22px; font-size: 12px; border-width: 1.5px; }
  .hl-frage { width: 32px; height: 32px; font-size: 17px; }
}

/* ============ 2.6.0: Weihnachtsmarktkasse, EC-Karte ============ */
.wahl-raster.wahl-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.etikett-wm { background: #e3f3e8; color: #155e2d; }
.wm-modus #nichtDuBtn, .wm-modus #fertigBtn, .wm-modus #hilfeBtn, .wm-modus #gesichtKontoBtn, .wm-modus #rouletteBtn { display: none !important; }
.wm-modus .summen > :not(.summe-gesamt) { display: none; }
.wm-modus .seitenleiste > .info-text { display: none; }
.wm-alter { background: #e3f3e8; color: #155e2d; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.offen-box .wm-pfand { color: #1e5fb4; }
.dialog.wm-bar { max-width: 760px; }
.dialog.wm-bar > .hinweis, .dialog.wm-bar > .betrag-gross { display: none; }
.wm-rechner { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.wm-rechnung { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wm-rbox { background: var(--grund); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.wm-rbox span { font-size: 15px; font-weight: 700; color: var(--text-3); }
.wm-rbox b { font-family: var(--titel); font-size: 34px; line-height: 1.1; color: var(--text); white-space: nowrap; }
.wm-rbox.wm-rueck { background: #e3f3e8; }
.wm-rbox.wm-rueck b { color: var(--gruen); }
.wm-rbox.wm-rueck.fehlt { background: var(--rot-hell); }
.wm-rbox.wm-rueck.fehlt b { color: var(--rot-dunkel); }
.wm-geld-titel { font-size: 15px; font-weight: 700; color: var(--text-3); text-align: left; margin-top: 2px; }
.wm-geld { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.wm-schein, .wm-muenze { height: 60px; border-radius: 10px; font-size: 21px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.wm-schein { border: 2px solid var(--linie-2); background: var(--grund); }
.wm-muenze { border: 2px solid #d9c78a; background: #fbf4dc; border-radius: 999px; }
.wm-schein:active, .wm-muenze:active { transform: scale(.96); }
.wm-korrigieren { align-self: flex-start; }
.wm-zahlknoepfe { display: flex; gap: 12px; width: 100%; }
.wm-zahlknoepfe .btn { flex: 1; min-width: 0; }
.wm-passt-so { border-color: var(--gruen); color: #155e2d; }
@media (max-width: 600px) {
  .wahl-raster.wahl-drei { grid-template-columns: 1fr; }
  .wahl-raster.wahl-drei .wahl-gross { height: 84px; flex-direction: row; }
  .wm-geld { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wm-rbox b { font-size: 22px; }
  .wm-rbox span { font-size: 13px; }
  .wm-zahlknoepfe { flex-direction: column; }
}

/* 2.6.0 Admin: Kassengeräte und Layout je Kasse */
.gr-liste { display: flex; flex-direction: column; gap: 12px; }
.gr-geraet { border: 1px solid var(--linie-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.gr-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.gr-wm { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: #fdf3e6; border: 1px solid #f0d3a8; }
.gr-zahlarten { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.gr-haken { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.gr-haken input { width: 22px; height: 22px; flex: 0 0 auto; }
.le-kassenwahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--grund); }
.le-palette { display: flex; flex-direction: column; gap: 8px; }
.le-chip-aus { opacity: .55; text-decoration: line-through; }
.wm-modus #offenBox .zeile > span:last-child { white-space: nowrap; padding-left: 8px; }
/* 2.6.1 */
.pr-nurwm { align-self: flex-end; padding-bottom: 10px; }
/* 2.6.2: Übergabe-Anleitung an der Weihnachtsmarktkasse */
.wm-uebergabe { display: inline-flex; align-items: center; gap: 6px; border-color: var(--rot); color: var(--rot-dunkel); }
.wm-uebergabe.wm-blink { animation: wm-blink 1.6s ease-in-out infinite; }
@keyframes wm-blink { 50% { box-shadow: 0 0 0 7px rgba(227, 6, 19, .2); } }
.anl-szene.wm-szene { height: 320px; gap: 10px; padding: 10px; }
.wm-anl-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 440px; }
.wm-anl-kacheln.eins { max-width: 220px; grid-template-columns: minmax(0, 1fr); }
.wm-anl-kachel { width: auto; min-width: 0; }
.wm-anl-kunde { width: 100%; max-width: 440px; background: var(--gelb-hell, #fffbd6); border: 2px solid var(--gelb-rand, #e8d400); border-radius: 12px; padding: 8px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.wm-anl-kunde .offen-titel { font-size: 18px; }
.wm-anl-kunde .zeile { display: flex; justify-content: space-between; gap: 10px; }
.wm-anl-kunde .zeile > span:last-child { white-space: nowrap; }
.wm-anl-kunde .zeile-summe { font-size: 16px; padding-top: 4px; }
.wm-anl-blase { background: #1c1b1a; color: #fff; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 6px 12px; opacity: 0; transition: opacity .3s; max-width: 92%; text-align: center; }
.wm-anl-blase.an { opacity: 1; }
.wm-anl-dlg { background: #fff; border-radius: 14px; padding: 12px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 8px; text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.wm-anl-reihe { display: flex; gap: 8px; width: 100%; max-width: 440px; }
.wm-anl-reihe > .btn { flex: 1; min-height: 50px; font-size: 16px; padding: 0 8px; }
.wm-anl-reihe > .btn.gewaehlt { background: var(--rot-hell); border-color: var(--rot); }
.wm-anl-reihe > .wm-passt-so.gewaehlt { background: #e3f3e8; }
.wm-anl-wahl { opacity: 0; transition: opacity .3s; }
.wm-anl-wahl.an { opacity: 1; }
.wm-anl-leser { background: #2b2a28; color: #b5f5c5; font-family: ui-monospace, monospace; border-radius: 12px; padding: 10px 20px; font-size: 26px; font-weight: 700; }
.wm-anl-rechnung { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wm-anl-rechnung > div { background: var(--grund); border-radius: 8px; padding: 6px 8px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); }
.wm-anl-rechnung b { display: block; font-size: 19px; color: var(--text); white-space: nowrap; }
.wm-anl-rechnung .wm-rbox-rueck { background: #e3f3e8; }
.wm-anl-rechnung .wm-rbox-rueck b { color: var(--gruen); }
.wm-anl-geld { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wm-anl-geld .wm-schein, .wm-anl-geld .wm-muenze { height: 38px; font-size: 14px; }
@media (max-width: 600px) {
  .anl-szene.wm-szene { height: 300px; }
  .wm-anl-kunde { font-size: 13px; } .wm-anl-kunde .offen-titel { font-size: 16px; }
  .wm-anl-reihe > .btn { min-height: 44px; font-size: 14px; }
  .wm-uebergabe { padding: 0 10px; }
}
@media (max-height: 500px) { .anl-szene.wm-szene { height: 240px; } }

/* 2.6.2: „Passt so …“ – zweiter Schritt: antippen, was zurückgeht, der Rest ist Spende */
.wm-passt-frage { background: #e3f3e8; color: #155e2d; border-radius: 12px; padding: 10px 14px; font-size: 20px; font-weight: 800; text-align: left; }
.wm-passt-frage span { display: block; font-size: 15px; font-weight: 400; margin-top: 2px; }
.wm-passt .wm-schein:disabled, .wm-passt .wm-muenze:disabled { opacity: .3; cursor: default; }
.wm-anl-frage { background: #e3f3e8; color: #155e2d; border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 800; text-align: left; }
/* 2.6.2: Kacheln in der Übergabe-Szene etwas kompakter, damit Kacheln + Kunde + Hinweis in die Szene passen */
.wm-szene .wm-anl-kachel { min-height: 0; padding: 10px 12px 10px; gap: 6px; }
.wm-szene .wm-anl-kachel .rund-btn { width: 46px; height: 46px; }
.wm-szene .wm-anl-kachel .anzahl { font-size: 28px; }
.anl-szene.wm-szene { height: 340px; }
@media (max-width: 600px) { .anl-szene.wm-szene { height: 320px; } }
@media (max-height: 500px) { .anl-szene.wm-szene { height: 250px; } }
@media (max-width: 600px) {
  .wm-szene .wm-anl-kachel .kachel-name { font-size: 16px; overflow-wrap: normal; hyphens: auto; }
  .wm-szene .wm-anl-kachel .kachel-pfand { display: none; }
  .wm-szene .wm-anl-kachel .rund-btn { width: 40px; height: 40px; }
  .wm-szene .wm-anl-kunde { padding: 6px 10px; }
}
/* Querformat mit wenig Höhe: Kacheln und Kunde nebeneinander, Hinweis schwebt unten */
@media (max-height: 500px) {
  .anl-szene.wm-szene { flex-direction: row; flex-wrap: wrap; align-content: center; }
  .wm-szene > .wm-anl-kacheln { max-width: 56%; }
  .wm-szene > .wm-anl-kunde { max-width: 40%; }
  .wm-szene > .wm-anl-blase { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); }
  .wm-szene .wm-anl-kachel .kachel-pfand { display: none; }
  .wm-szene .wm-anl-dlg { max-width: 560px; gap: 5px; padding: 8px; }
  .wm-szene .wm-anl-geld { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .wm-szene .wm-anl-blase { font-size: 12px; padding: 4px 10px; }
  .wm-szene .wm-anl-kunde { font-size: 12px; }
  .anl-szene.wm-szene { gap: 8px; }
}
.wm-anl-reihe > .btn-gruen.gewaehlt { background: #155e2d; border-color: #0f3f1f; color: #fff; }

/* ---------- 2.6.4: Zahlart nachträglich ändern (Admin) ---------- */
.za-vorher { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
tr.za-markiert td { background: var(--gelb-hell); }
.za-box { border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.za-zeile { display: flex; justify-content: space-between; gap: 12px; }
.za-zeile b { overflow-wrap: anywhere; }
.ks-korrektur { margin-top: 4px; background: #e3f3e8; color: #155e2d; border-radius: 8px; padding: 6px 10px; font-size: 14px; display: grid; gap: 2px; }

/* ---------- 2.6.4: Rückfrage nach „Bezahlt“ bei PayPal (Kasse) ---------- */
.pp-frage { display: none; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; width: 100%; }
#dlgPaypal .dialog.pp-fragt > :not(.pp-frage):not(.pp-abmeldung) { display: none; }
#dlgPaypal .dialog.pp-fragt > .pp-frage { display: flex; }
.pp-frage-text { font-size: 22px; font-weight: 700; margin: 4px 0 0; }
.pp-frage-klein { color: var(--text-2); margin: 0; }
.za-knopf { white-space: nowrap; }

/* ---------- 2.6.5: Einführung an der Kasse – „Später bezahlen“ und Zahlarten ---------- */
.anl-blass { opacity: .35; }
.anl-zahlarten { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.anl-zahlarten.sichtbar { opacity: 1; transform: none; }
.anl-zahlart { min-width: 96px; min-height: 48px; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.anl-zahlart.gewaehlt { background: var(--rot-hell); border-color: var(--rot); }
@media (prefers-reduced-motion: reduce) { .anl-zahlarten { transition: none; } }

/* 2.6.8: Auswertungen – Umschalter „Vereinsheim | Weihnachtsmarkt“ und Weihnachtsmarkt-Auswertung */
.aw-bereich { display: inline-flex; background: #ecebe8; border-radius: 12px; padding: 4px; gap: 4px; align-self: flex-start; max-width: 100%; }
.aw-bereich-knopf { font-size: 17px; font-weight: 700; padding: 10px 20px; border-radius: 9px; border: none; background: transparent; color: var(--text-2); min-height: 44px; }
.aw-bereich-knopf.aktiv { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.wm-aw .karte.wm-teil { padding: 14px; gap: 10px; min-width: 0; }
.wm-aw h3 { margin: 0; font-size: 16px; color: var(--text-2); }
.wm-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wm-kz { background: var(--grund); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.wm-kz span { display: block; font-size: 14px; font-weight: 700; color: var(--text-3); }
.wm-kz b { font-family: var(--titel); font-size: 32px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wm-kz small { display: block; font-size: 13px; color: var(--text-3); }
.wm-kz.gruen { background: #e3f3e8; } .wm-kz.gruen b { color: var(--gruen); }
.wm-offen { background: var(--gelb-hell); border: 1px solid var(--gelb-rand); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.wm-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.wm-balken { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #ecebe8; }
.wm-balken > div { height: 100%; }
.wm-b-bar { background: #1b7a3a; } .wm-b-ec { background: #1e5fb4; } .wm-b-paypal { background: #d97706; }
.wm-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.wm-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wm-zeile { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
.wm-zeile:last-child { border-bottom: none; }
.wm-zeile.wm-summe { font-weight: 700; border-top: 2px solid var(--text); }
.wm-tasse-titel { font-weight: 700; }
.wm-tassen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wm-tassen .wm-kz b { font-size: 26px; }
.wm-stunden { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.wm-std { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.wm-s { width: 100%; max-width: 46px; background: var(--rot); border-radius: 6px 6px 0 0; }
.wm-s.spitze { background: var(--rot-dunkel); }
.wm-std em { font-style: normal; font-size: 12px; color: var(--text-3); }
.wm-std strong { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wm-anteil { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wm-anteil i { display: inline-block; height: 8px; background: var(--rot); border-radius: 4px; }
@media (max-width: 900px) { .wm-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wm-zwei { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .wm-kz b { font-size: 24px; } .wm-tassen .wm-kz b { font-size: 22px; }
  .wm-std strong { display: none; }
  .aw-bereich-knopf { padding: 10px 14px; font-size: 16px; }
}
@media (max-width: 600px) { .wm-tassen .wm-kz { padding: 10px; } .wm-tassen .wm-kz span { font-size: 13px; } }

/* 2.6.8: Einführung mit Mini-Kasse (verkleinerte Kopie der echten Kasse) */
.anl-szene.anl-mini-szene { height: 380px; padding: 8px; }
.anl-mini-huelle { position: relative; flex-shrink: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .16); background: var(--grund); }
.anl-mini { position: absolute; left: 0; top: 0; transform-origin: 0 0; height: auto; flex-grow: 0; background: var(--grund); pointer-events: none; }
.anl-mini .kassenbereich { flex-grow: 0; }
.anl-mini .produkte, .anl-mini .seitenleiste { overflow: visible; }
.anl-mini .produkte-spalte { min-height: 0; }
.anl-mini .kat-leiste { overflow: hidden; }
.anl-mini-ebene { position: absolute; inset: 0; background: rgba(28, 27, 26, .45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.anl-mini-ebene > .dialog { max-width: 560px; width: 100%; }
.anl-mini-tschuess { background: #fff; border-radius: 20px; padding: 28px 36px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.anl-mini-tschuess p { margin: 0; font-size: 22px; }
.anl-gewaehlt { background: var(--rot-hell) !important; border-color: var(--rot) !important; }
.anl-mini-info { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
.anl-mini-info:empty { display: none; }
@media (max-width: 600px) { .anl-szene.anl-mini-szene { height: 330px; } .anl-mini-info { white-space: normal; width: 90%; text-align: center; } }
@media (max-height: 500px) { .anl-szene.anl-mini-szene { height: 230px; } }
.anl-mini-info { background: #1c1b1a; color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 15px; font-weight: 700; min-height: 0; }
.anl-mini .kat-leiste { position: static; }
.anl-mini-ebene { z-index: 20; }
