/* Shelfie · Design E „Pop × Gaffa“
   Weiß und warmes Grau, eine Tape-Farbe als einziger Akzent (CVJM-Rot oder Gaffa-Gelb).
   Status hat eigene Farben: grün im Lager, blau im Einsatz, orange Rückgabe offen/überfällig. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque.7225c9dea7fc.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.09d1eaa1672d.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.63c2dc54dd9c.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #17161C;
  --muted: #5E5B59;
  --soft: #F3F2F0;
  --soft-2: #F6F5F3;
  --line: #EEEDEB;
  --line-2: #DCDAD6;
  --rot: #D9364B;
  --gelb: #F2B705;
  --tape: var(--rot);
  --tape-ink: #FFFFFF;
  --spaet: #E8890C;
  --spaet-bg: #FFF1E2;
  --spaet-ink: #6B4A1F;
  --gruen: #0E9F6E;
  --blau: #2F6BFF;
  --fehler: #C13A30;
  --fehler-bg: #FCECEA;
  --erfolg-bg: #E7F5EE;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-karte: 18px;
  --nav-h: 76px;
  color-scheme: light;
}
body[data-tape="gelb"] { --tape: var(--gelb); --tape-ink: #1C1700; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; line-height: 1.05; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.klein { font-size: 13px; }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Rahmen --- */
.seite { max-width: 1100px; margin: 0 auto; padding: 20px max(18px, env(safe-area-inset-right)) calc(var(--nav-h) + 32px) max(18px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 18px; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wortmarke { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-decoration: none; }

/* --- Tape --- */
.tape {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  background: var(--tape); color: var(--tape-ink);
  font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px 4px;
  clip-path: polygon(0 10%, 4% 0, 50% 5%, 96% 0, 100% 12%, 99% 50%, 100% 90%, 95% 100%, 50% 95%, 5% 100%, 0 88%, 1% 50%);
}
.tape--rot { background: var(--rot); color: #FFFFFF; }
.tape--gelb { background: var(--gelb); color: #1C1700; }
.tape--dunkel { background: var(--ink); color: #FFFFFF; }
.tape--spaet { background: var(--spaet); color: #1C1100; }
.tape--leer { background: var(--soft); color: var(--muted); }
.tape--schraeg { transform: rotate(-2deg); }

/* --- Formulare --- */
.suche { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 999px; padding: 0 6px 0 16px; height: 50px; }
.suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > label, .label { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.feld input[type=text], .feld input[type=email], .feld input[type=search], .feld input[type=number], .feld input[type=datetime-local], .feld input[type=date], .feld input[type=tel], .feld select, .feld textarea, .eingabe {
  width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px;
}
.feld textarea { min-height: 80px; resize: vertical; }
.feld .hilfe { font-size: 12.5px; color: var(--muted); }
.feld .errorlist, .errorlist { list-style: none; margin: 0; padding: 0; color: var(--fehler); font-size: 13.5px; font-weight: 500; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .zwei { grid-template-columns: 1fr; } }
.schalter { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--soft-2); cursor: pointer; }
.schalter input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.schalter b { display: block; }
.schalter small { color: var(--muted); }

/* --- Knöpfe --- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.knopf--hell { background: var(--soft); color: var(--ink); }
.knopf--rahmen { background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); }
.knopf--tape { background: var(--tape); color: var(--tape-ink); }
.knopf--gefahr { background: var(--bg); color: var(--fehler); border: 1px solid var(--fehler); }
.knopf--klein { min-height: 40px; padding: 0 16px; font-size: 14px; }
.knopf--voll { width: 100%; }
.knopf[disabled] { opacity: 0.5; cursor: default; }
.textknopf { background: none; border: 0; padding: 8px 0; font-weight: 700; text-decoration: underline; cursor: pointer; }
.zurueck { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- Meldungen --- */
.meldungen { display: flex; flex-direction: column; gap: 8px; }
.meldung { border-radius: 14px; padding: 12px 16px; background: var(--soft); font-weight: 500; }
.meldung--success { background: var(--erfolg-bg); }
.meldung--error { background: var(--fehler-bg); color: #7A1F17; }
.hinweisbox { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--spaet-bg); border-radius: var(--r-karte); padding: 14px 16px; }
.hinweisbox > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hinweisbox small { color: var(--spaet-ink); font-size: 13px; }
.hinweisbox .knopf { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* --- Reservieren: große Einstiege --- */
.cta { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: var(--r-karte); background: var(--tape); color: var(--tape-ink); text-decoration: none; box-shadow: 0 6px 18px rgba(23, 22, 28, 0.14); }
.cta-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; flex: none; }
body[data-tape="gelb"] .cta-icon { background: rgba(0, 0, 0, 0.08); }
.cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-text b { font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.cta-text small { opacity: 0.85; font-size: 13.5px; }
.cta:hover { filter: brightness(1.04); }
.aktionsleiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 28px rgba(23, 22, 28, 0.12); }
.aktionsleiste > div { display: flex; flex-direction: column; min-width: 0; }
.aktionsleiste small { color: var(--muted); font-size: 12.5px; }
.aktionsleiste { box-shadow: none; background: var(--soft); border: 0; }

/* --- Filter --- */
.filterzeile { display: flex; align-items: center; gap: 10px; }
.filterzeile .filter { flex: 1; min-width: 0; }
.knopf--reservieren { flex: none; min-height: 36px; padding: 0 14px; gap: 6px; }
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter a { flex: none; text-decoration: none; }
.filter .tape { font-size: 12px; padding: 9px 12px 8px; min-height: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; background: var(--bg); }
.chip[aria-current="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* --- Karten-Raster --- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px 12px; }
.karte { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-decoration: none; }
.kachel { position: relative; aspect-ratio: 4 / 3.3; max-width: 100%; border-radius: var(--r-karte); background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.kachel img { width: 100%; height: 100%; object-fit: cover; }
.kachel .platzhalter { width: 36px; height: 36px; opacity: 0.3; }
.kachel .status { position: absolute; top: 10px; left: 10px; }
.kachel .tape { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 10.5px; padding: 4px 8px 3px; transform: rotate(-1.5deg); }
.karte b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte small { color: var(--muted); margin-top: -6px; font-size: 12.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 4px 9px; font-size: 11.5px; font-weight: 700; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.punkt { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--line-2); }
.punkt--gruen { background: var(--gruen); } .punkt--blau { background: var(--blau); } .punkt--orange { background: var(--spaet); } .punkt--rot { background: var(--fehler); }
.abschnitt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.leer { border: 1px dashed var(--line-2); border-radius: var(--r-karte); padding: 28px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* --- Material --- */
.hero { position: relative; border-radius: var(--r-karte); background: var(--soft); aspect-ratio: 16 / 10; max-height: 380px; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .platzhalter { width: 64px; height: 64px; opacity: 0.25; }
.spalten { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .spalten { grid-template-columns: 1fr; } }
.zeilen { display: flex; flex-direction: column; }
.zeile { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.zeile:last-child { border-bottom: 0; }
.zeile > svg { flex: none; margin-top: 2px; }
.zeile > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.daten { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); margin: 0; }
.daten dt, .daten dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.daten dt { font: 500 11px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-right: 14px; }
.daten dd { font-weight: 500; overflow-wrap: anywhere; }
.box { background: var(--soft-2); border-radius: var(--r-karte); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.box--spaet { background: var(--spaet-bg); }
.liste { display: flex; flex-direction: column; }
.liste > a, .liste > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.liste > :last-child { border-bottom: 0; }
.liste small { color: var(--muted); }
.vorlauf { white-space: pre-line; }
details.aufklapp summary { cursor: pointer; font-weight: 700; text-decoration: underline; list-style: none; padding: 8px 0; }
details.aufklapp summary::-webkit-details-marker { display: none; }

/* --- Reservieren --- */
.auswahl { border: 1px solid var(--line); border-radius: var(--r-karte); overflow: hidden; }
.auswahl h3 { background: var(--soft-2); padding: 10px 14px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--f-mono); font-weight: 500; color: var(--muted); }
.auswahl-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.auswahl-zeile b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auswahl-zeile small { color: var(--muted); }
.auswahl-zeile input { text-align: right; padding: 10px; }
.auswahl-zeile.knapp { background: var(--spaet-bg); }
.auswahl-zeile.knapp small { color: var(--spaet-ink); font-weight: 600; }
.auswahl-zeile.gewaehlt { background: #F2F7F4; }
.pruefung { border-radius: 14px; padding: 14px 16px; }
.pruefung--fehler { background: var(--fehler-bg); color: #7A1F17; }
.pruefung--warnung { background: var(--spaet-bg); color: var(--spaet-ink); }
.pruefung ul { margin: 6px 0 0; padding-left: 18px; }

/* --- Rückgabe --- */
.rueck-kopf { display: flex; align-items: center; gap: 16px; }
.rueck-kopf > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rueck-liste { display: flex; flex-direction: column; gap: 10px; }
.rueck { border-radius: var(--r-karte); background: var(--soft-2); padding: 10px 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.rueck.offen { background: var(--spaet-bg); }
.rueck-zeile { display: flex; align-items: center; gap: 12px; }
.rueck-zeile > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rueck-zeile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haken { position: relative; flex: none; }
.haken input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.haken span { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #B9B6B2; background: var(--bg); display: flex; align-items: center; justify-content: center; color: transparent; }
.haken input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.haken input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 2px; }
.problem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.problem .feld:last-child { grid-column: 1 / -1; }
@media (max-width: 420px) { .problem { grid-template-columns: 1fr 1fr; } }
.ring { flex: none; }

/* --- Navigation --- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .scan { justify-self: center; width: 62px; height: 62px; margin-top: -28px; border-radius: 50%; background: var(--tape); color: var(--tape-ink); justify-content: center; box-shadow: 0 6px 18px rgba(23, 22, 28, 0.22); }
.nav .zahl { position: absolute; top: -4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--spaet); color: #1C1100; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
@media (min-width: 900px) {
  .nav { top: auto; max-width: 520px; left: 50%; transform: translateX(-50%); bottom: 16px; border: 1px solid var(--line); border-radius: 24px; height: var(--nav-h); padding: 0 8px; box-shadow: 0 8px 30px rgba(23, 22, 28, 0.1); }
}

/* --- Etiketten (Druck) --- */
.etiketten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.etikett { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; break-inside: avoid; }
.etikett svg { width: 86px; height: 86px; }
.etikett > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.etikett b { font-family: var(--f-display); font-size: 15px; line-height: 1.15; }
@media print {
  .nav, .nicht-drucken { display: none !important; }
  .seite { padding: 0; max-width: none; }
  .etiketten { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .etikett { border: 0.3mm solid #999; }
  .tape { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Scan --- */
.kamera { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: var(--r-karte); overflow: hidden; background: #000; }
.kamera video { width: 100%; height: 100%; object-fit: cover; }
.kamera::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--tape); border-radius: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Status-Chips und Raumwahl */
.chip--angefragt { background: #FFF1DC; border-color: #F2B66B; color: #8A4B00; }
.chip--gebucht { background: #E4F4EA; border-color: #8CCBA3; color: #1E6B3C; }
.chip--abgelehnt { background: var(--soft); color: var(--muted); text-decoration: line-through; }
.chip--entwurf, .chip--vorlage { background: var(--soft); }
.chip--leise { border-style: dashed; color: var(--muted); }
.raumwahl { display: flex; flex-wrap: wrap; gap: 8px; }
.raumwahl label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; }
.raumwahl label:has(input:checked) { border-color: var(--ink); background: var(--soft); }

/* Warenkorb */
.nav .zahl--korb { background: var(--tape); color: var(--tape-ink); }
.korb { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .korb { grid-template-columns: minmax(0, 1fr) 380px; } .korb-kasse { position: sticky; top: 24px; } }
.korb-artikel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.posten { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-karte); background: var(--bg); }
.posten-bild { width: 72px; height: 72px; border-radius: 14px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.posten-bild img { width: 100%; height: 100%; object-fit: cover; }
.posten-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.posten-text a { text-decoration: none; }
.posten-text small { color: var(--muted); font-size: 13px; }
.posten-text .posten-knapp { color: var(--fehler); font-weight: 600; }
.posten-aktion { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 600px) { .posten { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; } .posten-aktion { grid-column: 3; flex-direction: column; align-items: flex-end; } }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--soft); }
.stepper input { width: 46px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.posten-weg { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 4px; }
.posten-weg:hover { color: var(--fehler); }
.posten[hidden] { display: none; }
.korb-kasse { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-karte); background: var(--soft); }
.korb-kasse .eingabe, .korb-kasse input:not([type=checkbox]), .korb-kasse select, .korb-kasse textarea { background: var(--bg); }
.korb-summe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.korb-leer { align-items: center; text-align: center; padding: 48px 16px; }
.korb-leer svg { color: var(--muted); }
.korb-kasse .zwei { grid-template-columns: minmax(0, 1fr); }

/* Warenkorb als großer Knopf in der Mitte, Scannen im Suchfeld */
.nav .scan .zahl--korb { top: 4px; left: auto; right: 4px; background: var(--ink); color: #FFFFFF; border: 2px solid var(--bg); height: 22px; min-width: 22px; border-radius: 11px; }
.suche-scan { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.suche-scan:hover { background: var(--soft); }

/* Materialseite kompakt: Kaufbox oben, kleines Bild */
.hero { max-height: 260px; }
.hero--leer { aspect-ratio: auto; height: 120px; }
@media (max-width: 899px) { .hero { aspect-ratio: 16 / 9; max-height: 220px; } .hero--leer { height: 96px; } }
.kaufbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 14px 14px 18px; border-radius: var(--r-karte); background: var(--soft); }
.kaufbox-info { display: flex; flex-direction: column; min-width: 0; }
.kaufbox-info small { color: var(--muted); font-size: 13px; }
.kaufbox-form { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; justify-content: flex-end; }
.kaufbox-form .stepper { background: var(--bg); flex: none; }
.kaufbox-form .knopf { flex: 1; min-height: 46px; white-space: nowrap; }

/* Reservierungsliste */
.res-liste { display: flex; flex-direction: column; gap: 10px; }
.res-karte { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-karte); text-decoration: none; background: var(--bg); }
.res-karte:hover { border-color: var(--line-2); background: var(--soft); }
.res-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: 14px; background: var(--soft); line-height: 1.05; }
.res-datum b { font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.res-datum small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.res-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.res-titel b { font-size: 16px; }
.res-titel .chip { font-size: 11.5px; padding: 2px 8px; }
.res-text small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-menge { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.1; }
.res-menge b { font-size: 18px; }
.res-menge small { font-size: 11px; color: var(--muted); }
.res-menge .res-zurueck { color: #1E6B3C; font-weight: 600; }
.res-karte--angefragt { border-color: #F2B66B; }
.res-karte--abgelehnt { opacity: 0.6; }
.kaufbox-form .stepper button { width: 36px; height: 44px; }
.kaufbox-form .stepper input { width: 34px; height: 44px; }
.kaufbox-form .knopf { padding: 0 16px; }

/* Kalender */
.kal { display: flex; flex-direction: column; gap: 10px; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.kal-kopf b { font-family: var(--f-display); font-size: 17px; flex: 1; }
.kal-nav { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.kal-nav--vor svg { transform: rotate(180deg); }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kal-wt { font-size: 11px; text-align: center; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.kal-tag { position: relative; aspect-ratio: 1 / 0.9; min-height: 40px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; cursor: pointer; padding: 0; color: var(--ink); }
.kal-tag small { font-size: 9.5px; font-weight: 600; opacity: 0.85; }
.kal-tag--frei { background: #E3F3E8; color: #1E5E37; }
.kal-tag--teilweise { background: #F1F6D9; color: #4F5A12; }
.kal-tag--angefragt { background: #FFE3BF; color: #7A4300; }
.kal-tag--gebucht { background: repeating-linear-gradient(135deg, #F6C9C6 0 6px, #F1B3AF 6px 12px); color: #7E1C17; }
.kal-tag--mine { background: #D9E6FF; color: #1D4AA8; }
.kal-tag--fremd { opacity: 0.45; }
.kal-tag--vorbei { opacity: 0.3; cursor: default; }
.kal-tag--heute { box-shadow: inset 0 0 0 2px var(--ink); }
.kal-tag--gewaehlt { box-shadow: inset 0 0 0 2px var(--ink); filter: saturate(1.4); }
.kal-tag--rand { background-color: var(--ink) !important; background-image: none !important; color: #FFFFFF !important; }
.kal-tag:not([disabled]):hover { filter: brightness(0.96); }
.kal-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.kal-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kal-legende i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.kal-info { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-line; min-height: 2.6em; }
.korb-kasse .kal { background: var(--bg); border-radius: 14px; padding: 12px; }
.kal-tag .kal-monat { position: absolute; top: 3px; left: 5px; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }

/* Zeit und Ort */
.zeit-ort { display: flex; flex-direction: column; gap: 12px; }
.zeitwahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { #reservierung .zeitwahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.datum-zeit { display: flex; gap: 8px; }
.datum-zeit input { flex: 1 1 auto; min-width: 0; }
.datum-zeit select { flex: 0 0 104px; }
.datum-zeit [data-zeit][hidden] { display: none; }
.datum-zeit [data-zeit] { display: contents; }
.pflicht { color: var(--fehler); }
.schalter--klein { padding: 4px 0; background: transparent; }
.schalter--aus { opacity: 0.6; }

/* Stückzahl eindeutig, Zubehör-Vorschläge */
.kaufbox-form { flex-wrap: wrap; }
.kaufbox-menge { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.kaufbox-form .knopf { flex: 1 1 100%; }
.kaufbox .chip[data-alle] { cursor: pointer; font: inherit; font-size: 13px; }
.menge { display: flex; align-items: center; gap: 8px; }
.stueck { font-size: 13px; color: var(--muted); white-space: nowrap; }
.stueck b { color: var(--ink); font-size: 15px; }
.vorschlaege { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-karte); border: 1px dashed var(--line-2); }
.vorschlaege h3 { font-size: 16px; }
.vorschlag { display: flex; align-items: center; gap: 12px; }
.posten-bild--klein { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.vorschlag-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vorschlag-text a { text-decoration: none; }
.vorschlag-text small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 599px) { .posten-aktion { flex-wrap: wrap; row-gap: 6px; } .posten { padding: 12px; gap: 12px; grid-template-columns: 60px minmax(0, 1fr); } .posten-bild { width: 60px; height: 60px; } }

/* Bearbeiten: weiteres Material, Konto-Freigaben */
.weitere-liste { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.weitere-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.weitere-zeile:last-child { border-bottom: 0; }
.weitere-zeile span { display: flex; flex-direction: column; min-width: 0; }
.weitere-zeile small { color: var(--muted); font-size: 12.5px; }
.weitere-zeile input { width: 76px; flex: none; text-align: center; }
.box--link { text-decoration: none; }
.box--link:hover { filter: brightness(0.98); }

/* Warteliste */
.posten-text .posten-warte { color: #8A4B00; font-weight: 600; }
.warte-hinweis { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF1DC; color: #6B3A00; font-size: 13.5px; line-height: 1.4; }
.meldung--warning { background: #FFF1DC; color: #6B3A00; }
.im-korb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #1E6B3C; white-space: nowrap; }

/* Zubehör in der Kaufbox */
.anhang { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.anhang-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 1px solid transparent; }
.anhang-zeile--an { border-color: var(--ink); }
.anhang-zeile--drin { opacity: 0.6; }
.anhang-wahl { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.anhang-wahl input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.anhang-text { display: flex; flex-direction: column; min-width: 0; }
.anhang-text b { font-size: 14.5px; }
.anhang-text small { color: var(--muted); font-size: 12.5px; }
.stepper--klein button { width: 30px; height: 34px; }
.stepper--klein input { width: 30px; height: 34px; font-size: 14px; }
.anhang-zeile:not(.anhang-zeile--an) .stepper--klein { opacity: 0.45; }
.anhang-vorschau { flex: 1 1 100%; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); }
.anhang-vorschau ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.kaufbox-form { min-width: 0; max-width: 100%; } .anhang, .anhang-zeile, .anhang-vorschau { min-width: 0; max-width: 100%; box-sizing: border-box; } .anhang-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kaufbox-form .knopf { min-width: 0; white-space: normal; text-align: center; }

/* Zurückgestellt */
.gesperrt { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--r-karte); background: #FCECEA; color: #6E1D16; }
.gesperrt small { color: #8E3A33; }
.gesperrt-warnung { font-size: 13.5px; }
.gesperrt-warnung a { color: inherit; }
