/* GDK-Kasse – Handy-Ansichten für Mitglieder und Gäste. Farben und Schriften laut Design-Leinwand. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../theke/fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../theke/fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../theke/fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../theke/fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../theke/fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2"); }

:root {
  --grund: #111009;
  --flaeche: #2A221D;
  --flaeche-dunkel: #1C1714;
  --linie: #3A302A;
  --orange: #E88000;
  --gruen: #5F7318;
  --gruen-hell: #B7D35A;
  --bordeaux: #8A1F2E;
  --warn: #FF8A7A;
  --warn-grund: #3A1A1A;
  --text: #F7F4EC;
  --text-weich: #E9DFD2;
  --leise: #B5AA9C;
  --aus: #8C8276;
  --nach: #FFB864;
  --schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font-family: "Barlow", system-ui, sans-serif; font-size: 16px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--orange); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.seite { max-width: 520px; margin: 0 auto; padding: 20px 16px 96px; display: flex; flex-direction: column; gap: 16px; }
.seite.ohne-nav { padding-bottom: 32px; }
.titel { margin: 0; font-family: var(--schmal); font-weight: 700; font-size: 30px; letter-spacing: 1px; color: var(--orange); line-height: 1.1; }
.untertitel { margin: 0; font-family: var(--schmal); font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--orange); }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.zahl { font-variant-numeric: tabular-nums; }
.plus { color: var(--gruen-hell); }
.negativ { color: var(--warn); }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kopf-links { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 38px; height: 38px; border-radius: 8px; background: var(--orange); color: var(--grund); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--schmal); font-weight: 700; font-size: 17px;
}
.logo.gross { width: 96px; height: 96px; border-radius: 20px; font-size: 40px; }
.kopf-name { display: flex; flex-direction: column; min-width: 0; }
.kopf-name b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf-name span { font-size: 13px; color: var(--leise); }
.kopf-knopf {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--linie); background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none;
}

/* Karten */
.karte { background: var(--flaeche); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.karte.dunkel { background: var(--flaeche-dunkel); border-radius: 12px; padding: 14px; }
.karte.minus { border: 2px solid var(--bordeaux); }
.stand { font-family: var(--schmal); font-weight: 700; font-size: 52px; line-height: 1; }

/* Knöpfe */
.knopf {
  min-height: 48px; padding: 0 16px; border-radius: 10px; border: 0; text-decoration: none;
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  font-family: var(--schmal); font-weight: 700; font-size: 20px; letter-spacing: 1px;
  background: var(--flaeche); color: var(--text);
}
.knopf.orange { background: var(--orange); color: var(--grund); }
.knopf.gruen { background: var(--gruen); }
.knopf.gross { min-height: 56px; font-size: 24px; }
.knopf.rahmen { background: transparent; border: 1px solid var(--linie); font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0; }
.knopf.rahmen-orange { background: transparent; border: 1px solid var(--orange); color: var(--orange); font-family: inherit; font-weight: 600; font-size: 14px; letter-spacing: 0; min-width: 96px; }
.knopf.bordeaux { background: var(--bordeaux); }
.knopf:disabled { opacity: 0.4; cursor: default; }

/* Getränke-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel {
  min-height: 72px; border-radius: 12px; border: 0; background: var(--flaeche); text-align: left; padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; width: 100%;
}
.kachel-name { font-family: var(--schmal); font-weight: 600; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.kachel-preis { font-size: 15px; font-weight: 600; }
.kachel:disabled { opacity: 0.35; }
.kachel.im-korb { background: var(--gruen); }

/* Bestätigen (Schnellbuchung) */
.bestaetigen:empty { display: none; }
.bestaetigen { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px 12px; }
.blatt {
  max-width: 520px; margin: 0 auto; background: var(--flaeche); border: 2px solid var(--orange); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Deckel */
.deckel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.striche { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.strich { width: 4px; height: 20px; border-radius: 2px; background: var(--orange); transform: rotate(12deg); }
.strich:nth-child(5n) { transform: rotate(-60deg); margin-left: -14px; margin-right: 6px; }

/* Meldungen */
.meldung { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.meldung.fehler { background: var(--warn-grund); color: #FFD6CF; border: 1px solid var(--warn); }
.meldung.erfolg { background: #26301A; color: #E3F0BE; border: 1px solid var(--gruen); }
.meldung.info { background: var(--flaeche-dunkel); color: var(--text-weich); font-weight: 400; }

/* Historie */
.monatsleiste { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pille { padding: 8px 12px; border-radius: 999px; background: var(--flaeche); font-size: 14px; font-weight: 600; }
.tag { background: var(--flaeche); border-radius: 12px; padding: 0 14px; }
.tag summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; min-height: 48px; padding: 12px 0; }
.tag summary::-webkit-details-marker { display: none; }
.tag summary b { font-size: 16px; font-weight: 600; }
.tag summary::after { content: "▾"; color: var(--leise); margin-left: 8px; }
.tag[open] summary::after { content: "▴"; }
.buchung { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--linie); }
.buchung:last-child { padding-bottom: 12px; }
.buchung .betrag { font-weight: 600; white-space: nowrap; }
.storniert, .storniert .betrag { text-decoration: line-through; color: var(--aus); }
.notiz { font-size: 12px; color: var(--leise); text-decoration: none; display: block; }
.notiz.storno { color: #F2B8BE; }
.notiz.nach { color: var(--nach); }

/* Aufladen */
.kopierfeld { display: flex; align-items: center; gap: 10px; background: var(--flaeche-dunkel); border-radius: 12px; padding: 10px 10px 10px 14px; }
.kopierfeld div { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.kopierfeld b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.qr { background: #FFFFFF; border-radius: 12px; padding: 12px; line-height: 0; align-self: center; }
.qr svg { width: 260px; max-width: 100%; height: auto; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-size: 14px; color: var(--leise); }
.feld input {
  min-height: 52px; border-radius: 10px; border: 1px solid #5A4C42; background: var(--flaeche-dunkel);
  color: var(--text); padding: 0 14px; font-size: 18px; width: 100%;
}
.feld input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.haken input { width: 22px; height: 22px; accent-color: #E88000; }

/* Warenkorb auf „Alle Getränke“ */
.korbzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menge-knopf { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--flaeche-dunkel); font-size: 22px; font-weight: 600; }
.menge-knopf.minus { background: var(--bordeaux); }

/* Untere Navigation */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linie); background: var(--flaeche-dunkel); padding-bottom: env(safe-area-inset-bottom);
}
.nav a { min-height: 60px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--orange); }
