/* Vision Day Check-in, AKQ-Look (Tokens + Komponenten aus akquise/design-library)
   Fonts liegen hinter dem Login (/fonts/ nur mit Anmeldung, Kauf-Fonts nie öffentlich). */
@font-face { font-family: "TWK Everett"; src: url("/fonts/TWKEverett-Book.woff2") format("woff2"); font-weight: 350; font-display: swap; }
@font-face { font-family: "TWK Everett"; src: url("/fonts/TWKEverett-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TWK Everett"; src: url("/fonts/TWKEverett-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("/fonts/IBMPlexSerif-Italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; src: url("/fonts/IBMPlexSerif-Italic-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: var(--akq-green-deep);
  --text-2: #4F5A53;
  --mute: #7C847F;
  --flaeche: var(--akq-grey);
  --karte: #fff;
  --rand-weich: rgba(23, 48, 33, 0.08);
  --gruen-verlauf: linear-gradient(90deg, rgba(32,172,88,0) 0%, #20AC58 50%, rgba(32,172,88,0) 100%), linear-gradient(90deg, #177B3F 10%, #20AC58 50%, #177B3F 91%);
  /* Kategorie-Farben = Lanyard-Farben (Grün AKQ-Kunden, Schwarz Non-AKQ, Silber VIP) */
  --vip-bg: linear-gradient(135deg, #F5F6F8 0%, #D5D9DE 34%, #EEF0F3 56%, #BCC1C8 100%);
  --vip-ink: #17191B;
  --kunde-bg: var(--gruen-verlauf);
  --kunde-ink: #fff;
  --gast-bg: linear-gradient(160deg, #262626 0%, #0E0E0E 100%);
  --gast-ink: #fff;
  --warn-bg: #FFF3DA; --warn-ink: #7A4B00; --warn-akzent: #E39A12;
  --stopp-bg: #FDEBEA; --stopp-ink: #8E1D17; --stopp-akzent: #D2382E;
  --squircle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.3572 12.3572'%3E%3Cpath d='M6.20104 0.178604C8.2514 0.178635 9.98211 0.74323 10.8338 1.69032C11.6683 2.65365 12.1709 4.33126 12.1786 6.1786C12.1709 8.02654 11.6678 9.70353 10.8338 10.6659C9.98152 11.6139 8.2511 12.1786 6.20104 12.1786H6.15612C4.10597 12.1786 2.37575 11.614 1.52428 10.6669C0.689361 9.7036 0.186252 8.02611 0.178576 6.1786C0.186317 4.33067 0.689335 2.65364 1.5233 1.6913C2.37889 0.740091 4.11787 0.173637 6.17858 0.178604H6.20104Z' fill='url(%23g)'/%3E%3Cpath d='M5.67858 6.42079L4.55748 5.2997L3.79967 6.05751L5.67858 7.93642L9.05748 4.55751L8.29967 3.7997L5.67858 6.42079Z' fill='%23FFFFFF'/%3E%3Cdefs%3E%3CradialGradient id='g' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(5.17858 10.1785) rotate(-90) scale(9.99997 10.157)'%3E%3Cstop stop-color='%2320AC58'/%3E%3Cstop offset='1' stop-color='%23177B3F'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--flaeche);
  color: var(--ink);
  font-family: var(--akq-font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(32, 172, 88, 0.45); outline-offset: 3px; }
.suche input:focus-visible, .feld input:focus-visible { outline: none; }
button { font: inherit; color: inherit; }
em { font-family: var(--akq-font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.05em; }

/* ---------- Felder + Knöpfe ---------- */
.feld { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.feld > span, .feld > legend { font-size: 14px; color: var(--text-2); padding: 0; }
.feld input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  background: var(--flaeche); font: inherit; font-size: 18px; color: var(--ink); letter-spacing: -0.01em;
  box-shadow: inset 0 1px 2px rgba(23, 48, 33, 0.06);
  transition: border-color .15s, background .15s;
}
.feld input:focus { outline: none; border-color: #20AC58; background: #fff; }
.feld--klein input { width: 120px; }
.knopf {
  height: 52px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 17px; letter-spacing: -0.02em; transition: filter .15s, transform .15s;
}
.knopf:active { transform: translateY(1px); }
.knopf--dunkel { background: var(--ink); color: #fff; }
.knopf--leise { background: var(--flaeche); color: var(--ink); }
.knopf--dunkel:hover { filter: brightness(1.15); }
.link-knopf { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--text-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.link-knopf:hover { color: var(--ink); }

/* ---------- Kategorie-Band (Farbe + Text) ---------- */
.band {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 -1.5px 1.5px rgba(0,0,0,.12), inset 0 1.5px 1.5px rgba(255,255,255,.18);
}
.band--vip { background: var(--vip-bg); color: var(--vip-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 1.5px 1.5px rgba(255,255,255,.7); }
.band--kunde { background: var(--kunde-bg); color: var(--kunde-ink); }
.band--gast { background: var(--gast-bg); color: var(--gast-ink); }
.punkt { flex: none; display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; vertical-align: middle; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.punkt--kunde { background: linear-gradient(180deg, #20AC58, #177B3F); }
.punkt--gast { background: #111; }

/* ---------- Login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login__wrap { width: min(460px, 100%); filter: drop-shadow(0 18px 40px rgba(23, 48, 33, 0.10)); }
.login__card { padding: 40px 36px 36px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.login__logo { width: 230px; height: auto; }
.login__titel { font-size: 40px; margin: 6px 0 4px; }
.login__form { display: grid; gap: 14px; width: 100%; text-align: left; margin-top: 4px; }
.login__fehler { margin: 0; min-height: 1.2em; color: var(--stopp-akzent); font-size: 15px; }
.login__btn { font-size: 20px; width: 100%; justify-content: space-between; height: 2.7em; }

/* ---------- App-Rahmen ---------- */
.app { height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.kopf {
  position: relative; display: flex; align-items: center; gap: 22px;
  padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  background: #fff; box-shadow: 0 1px 0 var(--rand-weich), 0 6px 24px rgba(23, 48, 33, 0.04);
  z-index: 30;
}
.kopf__logo { height: 34px; width: auto; }
.kopf__titel { font-size: 22px; letter-spacing: -0.03em; padding: 4px 12px; border-radius: 9px; background: var(--flaeche); }
.zaehler { margin-left: auto; width: min(380px, 34vw); display: grid; gap: 6px; }
.zaehler__haupt { display: flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--text-2); }
.zaehler__haupt strong { font-size: 24px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.zaehler__balken { height: 6px; border-radius: 6px; background: var(--flaeche); overflow: hidden; }
.zaehler__balken i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--gruen-verlauf); transition: width .5s ease; }
.zaehler__kat { display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.zaehler__kat b { font-weight: 500; color: var(--text-2); }
.zaehler__kat span { white-space: nowrap; }
.zaehler__kat i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: 0; }
.netz { display: flex; align-items: center; gap: 9px; margin-left: 26px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--flaeche); font-size: 14px; line-height: 1; color: var(--text-2); white-space: nowrap; }
.netz i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #20AC58; box-shadow: 0 0 0 3px rgba(32, 172, 88, 0.16); }
.netz[data-status="offline"] i { background: var(--warn-akzent); box-shadow: 0 0 0 3px rgba(227, 154, 18, 0.2); }
.netz[data-status="offline"] { color: var(--warn-ink); background: var(--warn-bg); }
.kopf__menu {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px;
  border: 0; border-radius: 10px; background: var(--flaeche); cursor: pointer; font-size: 15px;
}
.kopf__menu svg { width: 16px; height: 16px; }
.menu {
  position: absolute; right: 24px; top: calc(100% + 6px); min-width: 230px; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(23, 48, 33, 0.16), 0 0 0 1px var(--rand-weich);
  display: grid;
}
.menu button, .menu a {
  text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 9px; cursor: pointer;
  font-size: 16px; color: var(--ink); text-decoration: none;
}
.menu button:hover, .menu a:hover { background: var(--flaeche); }
.menu__stand { margin: 6px 12px 4px; font-size: 12.5px; color: var(--mute); }

.haupt {
  min-height: 0; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(440px, 1.12fr); gap: 24px;
  padding: 20px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.spalte-liste { min-height: 0; display: flex; flex-direction: column; }
.spalte-detail { min-height: 0; overflow-y: auto; padding-bottom: 24px; }

/* ---------- Suche ---------- */
.suche { position: relative; flex: none; }
.suche input {
  width: 100%; height: 68px; padding: 0 56px 0 58px; border-radius: 16px; border: 2px solid transparent;
  background: #fff; font: inherit; font-size: 24px; letter-spacing: -0.02em; color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 48, 33, 0.06), 0 10px 30px rgba(23, 48, 33, 0.05);
  -webkit-appearance: none; appearance: none;
}
.suche input::placeholder { color: #A3AAA6; }
.suche input::-webkit-search-cancel-button { display: none; }
.suche input:focus { outline: none; border-color: #20AC58; }
.suche__icon { position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.suche__leeren {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: var(--flaeche); color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.suche__leeren svg { width: 16px; height: 16px; }

.filter { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 0; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 48, 33, 0.06);
}
.chip i { width: 12px; height: 12px; border-radius: 4px; }
.chip--vip i, .zaehler__kat .k-vip { background: var(--vip-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.chip--kunde i, .zaehler__kat .k-kunde { background: var(--kunde-bg); }
.chip--gast i, .zaehler__kat .k-gast { background: var(--gast-bg); }
.chip.is-an { background: var(--ink); color: #fff; }
.chip .zahl { color: var(--mute); font-size: 13px; }
.chip.is-an .zahl { color: rgba(255,255,255,.65); }
.schalter { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); cursor: pointer; user-select: none; }
.schalter input { appearance: none; -webkit-appearance: none; width: 42px; height: 26px; border-radius: 26px; background: #D9DDDA; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.schalter input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.schalter input:checked { background: #20AC58; }
.schalter input:checked::after { transform: translateX(16px); }

.treffer-info { flex: none; margin: 8px 2px 8px; font-size: 14px; color: var(--mute); min-height: 1.2em; }
.treffer { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 2px 2px 12px; display: grid; align-content: start; gap: 8px; overscroll-behavior: contain; }
.zeile {
  width: 100%; display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px; border: 0; background: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 1px 2px rgba(23, 48, 33, 0.05); transition: box-shadow .12s, transform .12s;
}
.zeile:hover { box-shadow: 0 1px 2px rgba(23, 48, 33, 0.05), 0 8px 22px rgba(23, 48, 33, 0.07); }
.zeile.is-aktiv { box-shadow: 0 0 0 2px var(--ink), 0 8px 22px rgba(23, 48, 33, 0.08); }
.zeile .band { width: 100%; }
.zeile__name { display: block; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__name mark { background: none; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: #20AC58; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zeile__sub { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__mitte { min-width: 0; }
.zeile__rechts { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 220px; }
.pille { height: 28px; padding: 0 10px; border-radius: 8px; background: var(--flaeche); font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pille--da { background: #E8F5EC; color: #135E31; }
.pille--da::before { content: ""; width: 15px; height: 15px; background: var(--squircle) center / contain no-repeat; }
.pille--teil { background: var(--warn-bg); color: var(--warn-ink); }
.pille--warn { background: var(--warn-bg); color: var(--warn-ink); }
.pille--stopp { background: var(--stopp-bg); color: var(--stopp-ink); }
.zeile.ist-da .zeile__name { color: var(--mute); }
.leer-treffer { padding: 28px 8px; text-align: center; color: var(--text-2); font-size: 17px; }

.gast-neu {
  flex: none; margin: 4px 0 18px; height: 54px; border-radius: 14px; border: 1.5px dashed rgba(23, 48, 33, 0.22);
  background: transparent; cursor: pointer; font-size: 16px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.gast-neu strong { font-weight: 500; color: var(--ink); }
.gast-neu:hover { background: #fff; }

/* ---------- Leerer Zustand rechts ---------- */
.leer { height: 100%; min-height: 420px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; border-radius: 22px; background: rgba(255,255,255,.55); }
.leer__icon { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; color: var(--mute); box-shadow: 0 6px 20px rgba(23, 48, 33, 0.06); }
.leer__icon svg { width: 30px; height: 30px; }
.leer__titel { margin: 8px 0 0; font-size: 26px; letter-spacing: -0.03em; }
.leer__text { margin: 0; max-width: 340px; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.legende { margin-top: 22px; display: grid; gap: 10px; }
.legende__z { display: grid; grid-template-columns: 136px auto; align-items: center; gap: 14px; text-align: left; font-size: 15px; color: var(--text-2); }
.legende__z .band { width: 100%; height: 32px; font-size: 14.5px; }

/* ---------- Detail-Karte ---------- */
.detail-huelle { filter: drop-shadow(0 16px 40px rgba(23, 48, 33, 0.09)); }
.zurueck { display: none; }
.detail { background: #fff; overflow: hidden; border-radius: 14px; }
.detail__band { padding: 26px 30px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detail__band.band--vip { background: var(--vip-bg); color: var(--vip-ink); }
.detail__band.band--kunde { background: var(--kunde-bg); color: var(--kunde-ink); }
.detail__band.band--gast { background: var(--gast-bg); color: var(--gast-ink); }
.detail__kat { font-size: 38px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.detail__lanyard { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; opacity: .92; }
.detail__lanyard svg { width: 22px; height: 22px; }
.detail__extra { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.detail__extra span { font-size: 13.5px; padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,.22); }
.band--vip .detail__extra span { background: rgba(23, 48, 33, 0.09); display: inline-flex; align-items: center; font-size: 15px; padding: 6px 12px; }

.detail__inhalt { padding: 26px 30px 30px; display: grid; gap: 22px; }
.detail__name { margin: 0; font-size: 40px; font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; overflow-wrap: anywhere; }
.detail__firma { margin: 6px 0 0; font-size: 17px; color: var(--text-2); }
.fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.fakten div { min-width: 0; }
.fakten .voll { grid-column: 1 / -1; }
.fakten dt { font-size: 13px; color: var(--mute); margin-bottom: 3px; }
.fakten dd { margin: 0; font-size: 17px; letter-spacing: -0.015em; overflow-wrap: anywhere; }

.hinweis { border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; font-size: 16px; line-height: 1.4; }
.hinweis::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 500; font-size: 15px; color: #fff; }
.hinweis strong { display: block; font-weight: 500; margin-bottom: 2px; }
.hinweis ul { margin: 0; padding-left: 18px; }
.hinweis--warn { background: var(--warn-bg); color: var(--warn-ink); }
.hinweis--warn::before { background: var(--warn-akzent); }
.hinweis--stopp { background: var(--stopp-bg); color: var(--stopp-ink); }
.hinweis--stopp::before { background: var(--stopp-akzent); }
.hinweis--info { background: var(--flaeche); color: var(--text-2); padding-left: 16px; }
.hinweis--info::before { display: none; }

.anzahl { display: grid; gap: 10px; }
.anzahl__titel { font-size: 15px; color: var(--text-2); }
.anzahl__wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.anzahl__wahl button {
  min-width: 64px; height: 52px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--flaeche); font-size: 18px; color: var(--ink);
}
.anzahl__wahl button.is-an { background: var(--ink); color: #fff; }

.akq-btn.einchecken { font-size: 25px; width: 100%; height: 3em; justify-content: space-between; padding-left: 1.05em; border-radius: 0.5em; }
.akq-btn.einchecken:disabled { filter: grayscale(.4) opacity(.6); cursor: progress; transform: none; }
.knopf--trotzdem { width: 100%; height: 64px; font-size: 19px; background: #fff; color: var(--stopp-ink); box-shadow: inset 0 0 0 1.5px var(--stopp-akzent); }

/* Erfolg (gerade eingecheckt) */
.erfolg { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 10px 0 2px; animation: rein .35s cubic-bezier(.2,.9,.3,1.2); }
.erfolg__haken { width: 84px; height: 84px; background: var(--squircle) center / contain no-repeat; filter: drop-shadow(0 6px 14px rgba(23, 123, 63, .28)); animation: plopp .45s cubic-bezier(.2,.9,.3,1.4); }
.erfolg__titel { margin: 8px 0 0; font-size: 34px; letter-spacing: -0.035em; line-height: 1.1; }
.erfolg__text { margin: 0; font-size: 17px; color: var(--text-2); }
.erfolg__band { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; font-size: 17px; }
.erfolg__band .band { height: 36px; font-size: 16px; padding: 0 16px; }
.erfolg__knoepfe { margin-top: 18px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.erfolg__knoepfe .knopf { min-width: 220px; height: 58px; font-size: 18px; }

/* Bereits eingecheckt (früher oder von anderem Gerät) */
.schon { border-radius: 16px; padding: 20px 20px 18px 74px; background: var(--warn-bg); color: var(--warn-ink); position: relative; }
.schon::before { content: ""; position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; background: var(--squircle) center / contain no-repeat; filter: saturate(0) brightness(.55) sepia(1) hue-rotate(-12deg) saturate(4); }
.schon__titel { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: #5C3800; }
.schon__text { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.schon .link-knopf { color: var(--warn-ink); margin-top: 6px; }
.teil-info { font-size: 15px; color: var(--text-2); margin: 0; }

@keyframes plopp { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rein { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Dialoge + Toast ---------- */
.dlg { border: 0; padding: 0; border-radius: 20px; width: min(500px, calc(100vw - 32px)); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(23, 48, 33, .25); }
.dlg::backdrop { background: rgba(23, 48, 33, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dlg__form { padding: 28px; display: grid; gap: 16px; }
.dlg__titel { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }
.dlg__text { margin: -6px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.dlg__knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wahl__k { position: relative; cursor: pointer; }
.wahl__k input { position: absolute; opacity: 0; pointer-events: none; }
.wahl__k span { display: grid; place-items: center; text-align: center; min-height: 50px; padding: 6px 4px; line-height: 1.15; border-radius: 12px; font-size: 15px; font-weight: 500; opacity: .5; transition: opacity .12s, box-shadow .12s; }
.wahl__k--vip span { background: var(--vip-bg); color: var(--vip-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.wahl__k--kunde span { background: var(--kunde-bg); color: #fff; }
.wahl__k--gast span { background: var(--gast-bg); color: #fff; }
.wahl__k input:checked + span { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.wahl__k input:focus-visible + span { outline: 2px solid #20AC58; outline-offset: 4px; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 16px; line-height: 1.4; box-shadow: 0 16px 40px rgba(0,0,0,.2); z-index: 60;
  display: flex; align-items: center; gap: 14px; animation: rein .2s ease;
}
.toast button { background: rgba(255,255,255,.14); border: 0; color: #fff; border-radius: 9px; height: 34px; padding: 0 12px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.toast--warn { background: #5C3800; }

/* ---------- Tablet hochkant + Handy ---------- */
@media (max-width: 1100px) {
  .zaehler__kat { display: none; }
  .kopf__titel { display: none; }
}
@media (max-width: 900px) {
  .haupt { grid-template-columns: 1fr; padding-top: 14px; }
  .spalte-detail {
    position: fixed; inset: 0; z-index: 40; background: var(--flaeche);
    padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    transform: translateY(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
  }
  body.zeigt-detail .spalte-detail { transform: none; visibility: visible; }
  .spalte-detail .leer { display: none; }
  .zurueck {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 8px; margin-bottom: 12px;
    border: 0; border-radius: 12px; background: #fff; font-size: 16px; cursor: pointer;
  }
  .zurueck svg { width: 20px; height: 20px; }
  .kopf { gap: 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .kopf__logo { height: 28px; }
  .zaehler { width: auto; flex: 1; max-width: 260px; }
  .netz span { display: none; }
  .netz { margin-left: 4px; padding: 10px; }
  .kopf__menu { padding: 0 10px; }
  .kopf__menu #menu-name { display: none; }
  .menu { right: 14px; }
}
@media (max-width: 560px) {
  .kopf__logo { display: none; }
  .zaehler { max-width: none; }
  .suche input { height: 60px; font-size: 21px; padding-left: 52px; }
  .suche__icon { left: 17px; }
  .schalter { margin-left: 0; }
  .zeile { grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
  .zeile .band { grid-column: 1 / -1; width: max-content; height: 24px; font-size: 12.5px; padding: 0 9px; }
  .zeile__name { font-size: 18px; }
  .detail__band { padding: 22px 22px 20px; }
  .detail__kat { font-size: 32px; }
  .detail__lanyard { margin-left: 0; flex-basis: 100%; font-size: 15px; }
  .detail__inhalt { padding: 22px; gap: 18px; }
  .detail__name { font-size: 32px; }
  .fakten { grid-template-columns: 1fr 1fr; }
  .akq-btn.einchecken { font-size: 21px; }
  .login__card { padding: 32px 22px 24px; }
  .login__titel { font-size: 34px; }
  .erfolg__knoepfe .knopf { min-width: 0; width: 100%; }
  .wahl__k span { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
