/* Menu-Check – monochromes Design (Schwarz / Grau / Weiß) im Stil von Uber */
:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --border: #e2e2e2;
  --text: #333333;
  --text-strong: #000000;
  --muted: #6b6b6b;
  --accent: #000000;          /* Schwarz als Akzentfarbe */
  --accent-strong: #000000;
  --accent-deep: #000000;
  --accent-bg: #f3f3f3;       /* helles Grau für Hover/Hervorhebungen */
  --success: #2e6b40;
  --success-bg: #eef4ef;
  --error: #b00020;
  --error-bg: #faeeee;
  --warn: #8a6d1a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* hidden muss immer greifen – auch wenn eine Klasse display setzt (z. B. Modal) */
[hidden] { display: none !important; }

/* Linien-Icons (Stroke-SVG), standardmäßig in Graustufen */
.icon {
  display: inline-block;
  width: 1.2em; height: 1.2em;
  vertical-align: -0.18em;
  color: #444444;            /* Graustufe: steuert currentColor der Linien */
  flex: none;
}
/* In gefüllten Buttons und farbigen Badges erbt das Icon die Textfarbe (Lesbarkeit) */
.btn .icon { color: currentColor; vertical-align: -0.2em; margin-right: 0.2em; }
.badge .icon, .demo-badge .icon { color: currentColor; width: 1em; height: 1em; vertical-align: -0.12em; }
body {
  font-family: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3 { color: var(--text-strong); line-height: 1.25; }
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
a { color: var(--text-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }

/* Buttons – schwarze Fläche, weiße Schrift (Uber-Stil) */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: 0.55rem 1.2rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  text-decoration: none !important; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #000000; color: #ffffff; }
.btn-primary:hover { background: #333333; }
.btn-ghost { background: var(--surface); color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent-bg); border-color: #cccccc; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
/* Deaktivierter Button (z. B. Guthaben einsetzen ohne Guthaben): ausgegraut */
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled:hover { background: #000000; }

/* Header / Footer (öffentliche Seiten) */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 2rem; background: #000000; border-bottom: 1px solid #000000;
  position: sticky; top: 0; z-index: 50;
}
.site-header .brand, .site-header .brand .icon { color: #ffffff; }
.site-header .btn-ghost { background: transparent; color: #ffffff; border-color: #555555; }
.site-header .btn-ghost:hover { background: #1f1f1f; border-color: #888888; }
.site-header .btn-primary { background: #ffffff; color: #000000; }
.site-header .btn-primary:hover { background: #e2e2e2; }
.site-header .lang-switch summary { background: transparent; color: #ffffff; border-color: #555555; }
.site-header .lang-switch .lang-code { color: #ffffff; }
.site-header .lang-switch .lang-label { color: #ffffff; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.15rem; font-weight: 700; color: var(--text-strong); text-decoration: none !important; }
.brand .icon { width: 1.4em; height: 1.4em; color: var(--text-strong); }
.brand-logo-symbol { display: block; width: auto; height: 30px; flex: none; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 0.7rem; }
.header-nav .header-logout { margin: 0; display: flex; }
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.2rem 2rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border);
  margin-top: 3rem; background: var(--surface);
}
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: var(--muted); }

/* Sprachumschalter */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: #000000; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 0.3rem;
  list-style: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 150px; z-index: 100;
}
.lang-switch li a {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem;
  border-radius: 7px; color: var(--text); text-decoration: none !important;
}
.lang-switch li a:hover { background: var(--accent-bg); }
.lang-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.lang-code { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* Cards & Grids */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem;
}
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Landing */
.landing { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hero { padding: 4rem 0 2.8rem; text-align: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.8rem; font-weight: 800; letter-spacing: -0.03em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 50rem; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-chips { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.section { margin: 3rem 0; }
.section > h2 { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.price-tag { font-size: 2.6rem; font-weight: 800; color: var(--text-strong); margin: 0.5rem 0; }

/* Pillen (Hero-Trust-Chips, Betriebsarten in der Geltungs-Kachel) */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 0.85rem; font-weight: 600; color: var(--text-strong);
}
.pill .icon { width: 1em; height: 1em; }
/* Hervorgehobene Pille (z. B. „Ergebnis in ca. 5 Minuten“): Terrakotta-Verlauf als Blickfang */
.pill-highlight {
  background: linear-gradient(135deg, #d9926f 0%, #c67b62 45%, #ab5f47 100%);
  border-color: #b96a51; color: #ffffff;
}
.pill-highlight .icon { color: #ffffff; }

/* Zweispaltiges Layout: Inhalt links, Prüf-Kachel rechts.
   Mobil rutscht die Prüf-Kachel direkt unter den Hero (grid-template-areas). */
.landing-split { display: grid; gap: 1.6rem; grid-template-areas: "rail" "flow"; }
.landing-flow { grid-area: flow; min-width: 0; }
.landing-rail { grid-area: rail; min-width: 0; }
@media (min-width: 1000px) {
  .landing-split { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "flow rail"; gap: 2rem; }
  .cta-tile { position: sticky; top: 84px; }
}

/* Abschnitte im Inhaltsstrom */
.landing-sec { margin: 2.8rem 0 0; }
.landing-flow > .landing-sec:first-child { margin-top: 0.6rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; color: var(--muted); margin: 0 0 0.3rem; }
.landing-sec > h2 { font-size: 1.55rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.sec-intro { margin: 0 0 1.2rem; color: var(--muted); max-width: 46rem; }

/* Bento-Raster: Kacheln in variabler Breite (6 Rasterspalten) */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem; min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07), 0 14px 28px rgba(0, 0, 0, 0.09); }
.tile h3 { margin: 0.2rem 0 0.4rem; }
.tile p { margin: 0; font-size: 0.93rem; }
.tile-icon { line-height: 0; margin-bottom: 0.55rem; }
.tile-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; color: #000000; }
.t-2 { grid-column: span 2; }
.t-3 { grid-column: span 3; }
.t-4 { grid-column: span 4; }
.t-6 { grid-column: span 6; }
.tile-dark { background: #000000; border-color: #000000; }
.tile-dark h3 { color: #ffffff; }
.tile-dark p { color: #c9c9c9; }
.tile-dark .tile-icon .icon { color: #ffffff; }

/* Zahlen-Kacheln (14 / 2014 / 1169-2011) */
.stat-tile { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-big { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.05; }
.tile-dark .stat-big { color: #ffffff; }
.stat-fit { font-size: 1.5rem; padding-top: 0.45rem; }
.stat-tile p { font-size: 0.85rem; color: var(--muted); }
.tile-dark.stat-tile p { color: #bdbdbd; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

/* Allergen-Panel: 14 Chips + großer Zähler */
.allergen-panel { padding: 1.5rem; }
.allergen-panel:hover { transform: none; }
.allergen-count { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1rem; }
.allergen-count .stat-big { font-size: 2.8rem; min-width: 2ch; font-variant-numeric: tabular-nums; }
.allergen-count-label { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
.allergen-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.allergen-chip {
  display: flex; gap: 0.6rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.65rem; background: var(--bg);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.chip-num {
  flex: none; width: 1.7em; height: 1.7em; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #000000; color: #ffffff; font-size: 0.78rem; font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}
.chip-body { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.chip-body strong { font-size: 0.88rem; color: var(--text-strong); line-height: 1.25; transition: color 0.18s ease; }
.chip-body small { font-size: 0.75rem; color: var(--muted); line-height: 1.3; transition: color 0.18s ease; }
/* Hover: Chip invertiert (monochromer Flip) */
.allergen-chip:hover { background: #000000; border-color: #000000; transform: translateY(-2px); }
.allergen-chip:hover .chip-num { background: #ffffff; color: #000000; }
.allergen-chip:hover .chip-body strong { color: #ffffff; }
.allergen-chip:hover .chip-body small { color: #bdbdbd; }
.allergen-note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.allergen-note .icon { flex: none; margin-top: 0.15em; }
/* Chip-Kaskade: .pre versteckt (nur wenn JS läuft), .play spielt gestaffelt ab */
.allergen-grid.pre .allergen-chip { opacity: 0; }
.allergen-grid.play .allergen-chip {
  animation: chip-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i) * 90ms);
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Bild-Kachel mit Bildunterschrift und sanftem Zoom beim Hover */
.img-tile {
  margin: 2.8rem 0 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.img-tile img { display: block; width: 100%; height: auto; transition: transform 0.8s ease; }
.img-tile:hover img { transform: scale(1.035); }
.img-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.4rem 1.4rem 0.9rem;
  color: #ffffff; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}

/* Mini-Speisekarte in der Fußnoten-Kachel */
.menu-mock {
  margin-top: 0.9rem; border: 1px dashed #c9c9c9; border-radius: 10px; padding: 0.6rem 0.75rem;
  background: var(--bg); display: flex; flex-direction: column; gap: 0.25rem;
}
.mock-line { font-size: 0.88rem; color: var(--text-strong); }
.mock-line sup { color: var(--muted); font-weight: 700; letter-spacing: 0.03em; }
.mock-legend { font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.3rem; }

/* Praxis-Checkliste (dunkle Kachel) */
.checklist-tile { padding: 1.5rem 1.6rem; }
.checklist { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checklist li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: #e2e2e2; }
.checklist .icon { flex: none; color: #ffffff; margin-top: 0.18em; }

/* Schritt-Kacheln mit großer Nummer */
.step-tile { position: relative; }
.step-num { position: absolute; top: 0.8rem; right: 1.1rem; font-size: 1.7rem; font-weight: 800; color: #dcdcdc; letter-spacing: -0.04em; }
.step-icon { margin-bottom: 0.6rem; line-height: 0; }
.step-icon .icon { width: 40px; height: 40px; stroke-width: 1.5; color: #000000; }

/* Prüf-Kachel rechts (Konversion): dunkel, mit Preis und Checkliste */
.cta-tile { background: #000000; border-radius: var(--radius); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22); padding: 1.6rem; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid #555555; border-radius: 999px;
  padding: 0.25rem 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  color: #ffffff; text-transform: uppercase;
}
.cta-badge .icon { color: #ffffff; width: 1em; height: 1em; }
.cta-tile h3 { color: #ffffff; font-size: 1.35rem; margin: 0.9rem 0 0.4rem; letter-spacing: -0.01em; }
.cta-text { margin: 0 0 0.9rem; font-size: 0.92rem; color: #c9c9c9; }
.cta-points { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cta-points li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: #e2e2e2; }
.cta-points .icon { flex: none; color: #ffffff; margin-top: 0.15em; }
.cta-price { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid #2c2c2c; padding-top: 1rem; margin-bottom: 1rem; }
.cta-amount { font-size: 2.4rem; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; line-height: 1; }
.cta-price-note { display: flex; flex-direction: column; font-size: 0.88rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
.cta-price-note small { font-weight: 500; color: #9a9a9a; font-size: 0.75rem; }
.btn-cta { background: #ffffff; color: #000000; }
.btn-cta:hover { background: #e2e2e2; }
.cta-foot { margin: 0.8rem 0 0; font-size: 0.78rem; color: #9a9a9a; line-height: 1.45; }

/* Abschluss-CTA-Band über die volle Breite */
.cta-band {
  margin: 3rem 0 0; background: #000000; border-radius: var(--radius); padding: 2rem 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}
.cta-band h2 { color: #ffffff; margin: 0 0 0.3rem; font-size: 1.5rem; }
.cta-band p { color: #c9c9c9; margin: 0; }
.cta-band .btn-cta { flex: none; }

/* Bento responsiv: mittel = 2 Kacheln pro Reihe, schmal = einspaltig */
@media (max-width: 900px) {
  .t-2 { grid-column: span 3; }
  .t-3, .t-4 { grid-column: span 6; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .t-2, .t-3, .t-4, .t-6 { grid-column: auto; }
  .cta-band { padding: 1.5rem 1.3rem; }
  .cta-band .btn-cta { flex: 1 1 100%; text-align: center; }
}

/* Landing-Animationen: sanftes Aufsteigen beim Laden (Hero) und beim
   Scrollen ([data-reveal] + landing.js). Respektiert prefers-reduced-motion. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero .lead { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both; }
  .hero-cta { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s both; }
  .hero-chips { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.36s both; }
}
.reveal { opacity: 0; }
.reveal.reveal-visible { opacity: 1; animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.landing .card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.landing .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07), 0 14px 28px rgba(0, 0, 0, 0.09);
}
.landing .step-icon .icon { transition: transform 0.22s ease; }
.landing .card:hover .step-icon .icon { transform: rotate(-6deg) scale(1.1); }
.landing .btn-lg { transition: background 0.15s, border-color 0.15s, transform 0.18s ease, box-shadow 0.18s ease; }
.landing .btn-lg:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.landing .btn-lg:active { transform: translateY(0); box-shadow: none; }
.disclaimer { text-align: center; margin: 2rem 0; }

/* Auth */
.auth-page { display: flex; justify-content: center; padding: 3.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-alt { text-align: center; margin-top: 1rem; font-size: 0.9rem; }

/* Öffentliche Anmeldung/Registrierung im monochromen Workspace-Stil. */
body:has(> .auth-page-public) { background: #f4f4f4; }
body:has(> .auth-page-public) .site-header { min-height: 70px; padding-inline: clamp(1rem, 4vw, 3rem); border-bottom-color: #242424; }
body:has(> .auth-page-public) .site-header .btn,
body:has(> .auth-page-public) .site-header .lang-switch summary { border-radius: 0; }
body:has(> .auth-page-public) .site-footer { margin-top: 0; }
.auth-page-public {
  align-items: center; min-height: calc(100vh - 70px); padding: clamp(1.25rem, 5vw, 4.5rem);
  background: #f4f4f4;
}
.auth-shell {
  display: grid; grid-template-columns: minmax(250px, 0.82fr) minmax(390px, 1.18fr);
  width: min(100%, 980px); background: #ffffff; border: 1px solid #cfcfcf;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}
.auth-register-page .auth-shell { width: min(100%, 1120px); grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr); }
.auth-visual {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 520px; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.2rem);
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), #1d1d1d 25%, transparent calc(25% + 1px)),
    linear-gradient(0deg, transparent calc(25% - 1px), #1d1d1d 25%, transparent calc(25% + 1px)),
    #000000;
  color: #ffffff;
}
.auth-register-page .auth-visual { min-height: 650px; }
.auth-visual::after {
  content: ''; position: absolute; right: -80px; bottom: 20%; width: 230px; height: 230px;
  border: 1px solid #383838; transform: rotate(45deg); pointer-events: none;
}
.auth-visual-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.65rem; font-size: 1.1rem; font-weight: 750; }
.auth-visual-brand img { display: block; width: auto; height: 31px; object-fit: contain; }
.auth-visual-index {
  position: relative; z-index: 1; color: #ffffff; font-size: clamp(4.8rem, 8vw, 7.5rem);
  font-weight: 800; line-height: 0.82; letter-spacing: -0.08em;
}
.auth-visual-line { position: absolute; right: 2rem; bottom: 2.1rem; width: 54px; height: 4px; background: #ffffff; }
.auth-card-public {
  display: flex; flex-direction: column; justify-content: center; max-width: none; min-width: 0;
  margin: 0; padding: clamp(2rem, 5vw, 4rem); border: 0; border-radius: 0; box-shadow: none;
}
.auth-register-page .auth-card-public { padding-block: clamp(1.8rem, 4vw, 3rem); }
.auth-card-public h1 {
  margin: 0 0 clamp(1.7rem, 4vw, 2.5rem); color: #000000;
  font-size: clamp(2.15rem, 4.5vw, 3.25rem); line-height: 1; letter-spacing: -0.055em;
}
.auth-card-public h1::after { content: ''; display: block; width: 70px; height: 4px; margin-top: 1rem; background: #000000; }
.auth-card-public .alert { margin: -0.5rem 0 1.3rem; border-radius: 0; border-left-width: 4px; }
.auth-form { display: grid; gap: 1rem; }
.auth-form label { min-width: 0; margin: 0; color: #333333; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.055em; }
.auth-form input {
  min-height: 50px; margin-top: 0.42rem; padding: 0.72rem 0.85rem;
  background: #f7f7f7; border: 1px solid #c8c8c8; border-radius: 0;
  font-size: 1rem; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input:hover { border-color: #777777; }
.auth-form input:focus { background: #ffffff; border-color: #000000; box-shadow: 0 0 0 3px #dedede; }
.auth-form > .btn {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  margin-top: 0.4rem; padding-inline: 1rem; border-radius: 0; font-size: 0.96rem;
}
.auth-form > .btn span:last-child, .auth-alt a span:last-child { flex: none; font-size: 1.15rem; transition: transform 0.18s ease; }
.auth-form > .btn:hover span:last-child, .auth-alt a:hover span:last-child { transform: translateX(4px); }
.auth-register-page .auth-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-register-page .auth-form label:nth-child(3), .auth-register-page .auth-form > .btn { grid-column: 1 / -1; }
.auth-alt { margin: 1.25rem 0 0; text-align: left; }
.auth-card-public .auth-alt a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0.85rem 0; color: #333333; border-top: 1px solid #d5d5d5;
  font-weight: 700; text-decoration: none !important;
}
.auth-card-public .auth-alt a:hover { color: #000000; }

@keyframes authShellIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-shell { animation: authShellIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@media (max-width: 760px) {
  body:has(> .auth-page-public) .site-header { min-height: 62px; }
  .auth-page-public { min-height: 0; padding: 1rem; }
  .auth-shell, .auth-register-page .auth-shell { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .auth-visual, .auth-register-page .auth-visual {
    min-height: 104px; padding: 1rem 1.2rem; flex-direction: row; align-items: flex-start;
  }
  .auth-visual::after { right: 12%; bottom: -115px; width: 190px; height: 190px; }
  .auth-visual-brand img { height: 27px; }
  .auth-visual-index { align-self: flex-end; font-size: 3.3rem; }
  .auth-visual-line { right: auto; bottom: 1rem; left: 1.2rem; width: 42px; height: 3px; }
  .auth-card-public, .auth-register-page .auth-card-public { padding: 1.4rem 1.2rem 1.25rem; }
  .auth-card-public h1 { margin-bottom: 1.4rem; font-size: clamp(2rem, 10vw, 2.55rem); }
  .auth-card-public h1::after { width: 52px; height: 3px; margin-top: 0.75rem; }
  .auth-register-page .auth-form { grid-template-columns: minmax(0, 1fr); }
  .auth-register-page .auth-form label, .auth-register-page .auth-form > .btn { grid-column: 1; }
  .auth-form input { font-size: 16px; }
}
@media (max-width: 380px) {
  .auth-visual, .auth-register-page .auth-visual { min-height: 88px; }
  .auth-visual-index { font-size: 2.8rem; }
  .auth-card-public, .auth-register-page .auth-card-public { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell { animation: none; }
  .auth-form input, .auth-form > .btn span:last-child, .auth-alt a span:last-child { transition: none; }
}
label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--text-strong); }
input {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem;
  background: var(--surface); color: var(--text); font-family: inherit;
}
textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.92rem;
  background: var(--surface); color: var(--text); font-family: inherit; line-height: 1.45;
  resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: #000000; box-shadow: 0 0 0 3px var(--surface-2); }
input:disabled { background: var(--surface-2); color: var(--muted); }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.3rem; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.92rem; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #eed4d4; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #d5e5d8; }
.alert-info { background: var(--accent-bg); color: var(--text-strong); border: 1px solid var(--border); }

/* Workspace-Layout */
.ws-layout { display: flex; min-height: 100vh; }
.ws-sidebar {
  width: 250px; flex-shrink: 0; background: #000000; border-right: 1px solid #000000;
  display: flex; flex-direction: column; padding: 1.2rem 0.9rem;
  position: sticky; top: 0; height: 100vh;
}
.ws-sidebar .brand { padding: 0.3rem 0.6rem 1.2rem; display: block; color: #ffffff; }
.ws-sidebar .brand .icon { color: #ffffff; }
.ws-nav-section { margin-bottom: 1.2rem; }
.ws-nav-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8a8a8a; padding: 0 0.6rem; margin-bottom: 0.35rem; font-weight: 700;
}
.ws-nav-link {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.6rem;
  border-radius: 8px; color: #d6d6d6; text-decoration: none !important;
  font-size: 0.93rem; font-weight: 500; border: none; background: none; width: 100%;
  cursor: pointer; font-family: inherit; text-align: left;
}
.ws-nav-link:hover { background: #1f1f1f; color: #ffffff; }
.ws-nav-link.active { background: #ffffff; color: #000000; font-weight: 700; }
.ws-nav-link.active .ws-nav-icon .icon { color: #000000; }
.ws-nav-link.small { font-size: 0.83rem; padding: 0.3rem 0.6rem; color: #8a8a8a; }
.ws-nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.4em; line-height: 0; }
.ws-nav-icon .icon { width: 18px; height: 18px; color: #d6d6d6; }
.ws-sidebar-bottom { margin-top: auto; }
.ws-logout { color: #d6d6d6; }
.ws-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ws-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0.7rem 2rem; background: var(--surface); border-bottom: 1px solid var(--border);
}
.ws-topbar-spacer { min-width: 1px; }
.ws-user { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.ws-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-width: 0; }
.ws-top-progress {
  justify-self: center; width: min(420px, 100%); display: grid; grid-template-columns: auto minmax(110px, 1fr);
  align-items: center; gap: 0.7rem; padding: 0.38rem 0.6rem; border: 1px solid var(--border);
  border-radius: 8px; background: #ffffff; color: var(--text-strong); text-decoration: none !important;
}
.ws-top-progress:hover { background: var(--accent-bg); }
.ws-top-progress-label { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.ws-top-progress-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ws-top-progress-bar {
  display: block; height: 100%; width: 4%; border-radius: 999px; background: #000000;
  transition: width 0.8s ease;
}
.ws-top-progress.is-done { border-color: #000000; }
.ws-top-progress.is-done .ws-top-progress-bar { width: 100%; }
/* Inhaltsbereich: horizontal zentriert innerhalb der Fläche rechts der Sidebar. */
.ws-content { padding: 2rem; max-width: 900px; width: 100%; margin: 0 auto; position: relative; }

/* Dropzone */
.dropzone {
  border: 2px dashed #bdbdbd; border-radius: var(--radius); background: var(--accent-bg);
  padding: 2.2rem 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover { border-color: #000000; background: var(--surface-2); }
.dropzone-icon { line-height: 0; margin-bottom: 0.2rem; }
.dropzone-icon .icon { width: 46px; height: 46px; stroke-width: 1.5; color: #8a8a8a; }
.dropzone p { margin: 0.4rem 0; }
.upload-status { margin-top: 1rem; }
.check-area { margin-top: 1.2rem; text-align: center; }
.check-area .btn { min-width: 220px; }

/* Fortschritt */
.progress-card { text-align: center; }
/* Analyse fertig: Hinweis-Kachel mit Button zum Bericht */
.done-card { text-align: center; position: relative; overflow: hidden; animation: donePop 0.48s ease-out; }
.done-card .btn { min-width: 220px; }
.black-fireworks {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.black-fireworks span {
  position: absolute; width: 9px; height: 9px; border-radius: 999px;
  background: #000000; opacity: 0; animation: blackSpark 1.5s ease-out forwards;
}
.black-fireworks span:nth-child(even) { width: 6px; height: 6px; }

.black-fireworks span:nth-child(1) { left: 32%; top: 34%; --x: 129px; --y: 25px; animation-delay: 0.0s; }
.black-fireworks span:nth-child(2) { left: 32%; top: 34%; --x: 155px; --y: 72px; animation-delay: 0.025s; }
.black-fireworks span:nth-child(3) { left: 32%; top: 34%; --x: 48px; --y: 129px; animation-delay: 0.05s; }
.black-fireworks span:nth-child(4) { left: 32%; top: 34%; --x: -7px; --y: 96px; animation-delay: 0.075s; }
.black-fireworks span:nth-child(5) { left: 32%; top: 34%; --x: -131px; --y: 94px; animation-delay: 0.1s; }
.black-fireworks span:nth-child(6) { left: 32%; top: 34%; --x: -165px; --y: 61px; animation-delay: 0.125s; }
.black-fireworks span:nth-child(7) { left: 32%; top: 34%; --x: -129px; --y: -25px; animation-delay: 0.0s; }
.black-fireworks span:nth-child(8) { left: 32%; top: 34%; --x: -155px; --y: -72px; animation-delay: 0.025s; }
.black-fireworks span:nth-child(9) { left: 32%; top: 34%; --x: -48px; --y: -129px; animation-delay: 0.05s; }
.black-fireworks span:nth-child(10) { left: 32%; top: 34%; --x: 7px; --y: -96px; animation-delay: 0.075s; }
.black-fireworks span:nth-child(11) { left: 32%; top: 34%; --x: 131px; --y: -94px; animation-delay: 0.1s; }
.black-fireworks span:nth-child(12) { left: 32%; top: 34%; --x: 165px; --y: -61px; animation-delay: 0.125s; }
.black-fireworks span:nth-child(13) { left: 68%; top: 30%; --x: 115px; --y: 22px; animation-delay: 0.5s; }
.black-fireworks span:nth-child(14) { left: 68%; top: 30%; --x: 139px; --y: 64px; animation-delay: 0.525s; }
.black-fireworks span:nth-child(15) { left: 68%; top: 30%; --x: 43px; --y: 115px; animation-delay: 0.55s; }
.black-fireworks span:nth-child(16) { left: 68%; top: 30%; --x: -6px; --y: 85px; animation-delay: 0.575s; }
.black-fireworks span:nth-child(17) { left: 68%; top: 30%; --x: -116px; --y: 84px; animation-delay: 0.6s; }
.black-fireworks span:nth-child(18) { left: 68%; top: 30%; --x: -147px; --y: 54px; animation-delay: 0.625s; }
.black-fireworks span:nth-child(19) { left: 68%; top: 30%; --x: -115px; --y: -22px; animation-delay: 0.5s; }
.black-fireworks span:nth-child(20) { left: 68%; top: 30%; --x: -139px; --y: -64px; animation-delay: 0.525s; }
.black-fireworks span:nth-child(21) { left: 68%; top: 30%; --x: -43px; --y: -115px; animation-delay: 0.55s; }
.black-fireworks span:nth-child(22) { left: 68%; top: 30%; --x: 6px; --y: -85px; animation-delay: 0.575s; }
.black-fireworks span:nth-child(23) { left: 68%; top: 30%; --x: 116px; --y: -84px; animation-delay: 0.6s; }
.black-fireworks span:nth-child(24) { left: 68%; top: 30%; --x: 147px; --y: -54px; animation-delay: 0.625s; }
.black-fireworks span:nth-child(25) { left: 50%; top: 58%; --x: 104px; --y: 20px; animation-delay: 1.0s; }
.black-fireworks span:nth-child(26) { left: 50%; top: 58%; --x: 126px; --y: 59px; animation-delay: 1.025s; }
.black-fireworks span:nth-child(27) { left: 50%; top: 58%; --x: 39px; --y: 104px; animation-delay: 1.05s; }
.black-fireworks span:nth-child(28) { left: 50%; top: 58%; --x: -5px; --y: 78px; animation-delay: 1.075s; }
.black-fireworks span:nth-child(29) { left: 50%; top: 58%; --x: -106px; --y: 77px; animation-delay: 1.1s; }
.black-fireworks span:nth-child(30) { left: 50%; top: 58%; --x: -133px; --y: 49px; animation-delay: 1.125s; }
.black-fireworks span:nth-child(31) { left: 50%; top: 58%; --x: -104px; --y: -20px; animation-delay: 1.0s; }
.black-fireworks span:nth-child(32) { left: 50%; top: 58%; --x: -126px; --y: -59px; animation-delay: 1.025s; }
.black-fireworks span:nth-child(33) { left: 50%; top: 58%; --x: -39px; --y: -104px; animation-delay: 1.05s; }
.black-fireworks span:nth-child(34) { left: 50%; top: 58%; --x: 5px; --y: -78px; animation-delay: 1.075s; }
.black-fireworks span:nth-child(35) { left: 50%; top: 58%; --x: 106px; --y: -77px; animation-delay: 1.1s; }
.black-fireworks span:nth-child(36) { left: 50%; top: 58%; --x: 133px; --y: -49px; animation-delay: 1.125s; }
@media (prefers-reduced-motion: reduce) { .black-fireworks span { animation: none; opacity: 0; } }

@keyframes donePop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blackSpark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  12% { opacity: 1; }
  76% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.08); }
}
.progress-track {
  height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
  margin: 1.2rem auto; max-width: 620px;
}
.progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #333333 0%, #000000 100%);
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
  transition: width 1s ease;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.cook-anim { display: flex; justify-content: center; gap: 1.2rem; margin-top: 0.8rem; }
.cook-emoji { animation: bounce 1.6s ease-in-out infinite; display: inline-flex; line-height: 0; }
.cook-emoji .icon { width: 30px; height: 30px; stroke-width: 1.5; color: #444444; transition: opacity 0.25s ease, transform 0.25s ease; }
/* Einzelner Icon-Wechsel: sanft aus- und wieder einblenden */
.cook-emoji.swap-out .icon { opacity: 0; transform: scale(0.6); }
.cook-emoji.swap-in .icon { animation: swapIn 0.35s ease; }
@keyframes swapIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.cook-emoji.d1 { animation-delay: 0.25s; }
.cook-emoji.d2 { animation-delay: 0.5s; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.anim-step { font-weight: 600; color: var(--text-strong); min-height: 1.6em; }

/* Bericht: klare Schwarz-Weiß-Hierarchie mit großzügigen Abständen. */
.report-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.4rem; border-bottom: 1px solid #d7d7d7;
}
.report-head h2 { margin: 0.15rem 0 0; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -0.035em; }
.report-eyebrow {
  display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.report-download { flex: none; }
.report-expanded-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.25rem;
  align-items: stretch; margin-bottom: 1.25rem;
}
.report-body { min-width: 0; }
.report-legend {
  background: #f4f4f4; border: 0; border-left: 4px solid #000000; border-radius: 0;
  padding: 1rem 1.15rem; margin: 0 0 2rem;
}
.report-legend .mapping { color: #555555; font-size: 0.85rem; margin-top: 0.45rem; }
.report-legend .additives-map { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid #d5d5d5; }
.report-legend .additives-map em { color: var(--text); font-style: normal; font-weight: 700; }
.dish-count { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0 0 0.9rem; }
.dish-count .icon { width: 1rem; height: 1rem; }

.report-section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  margin: 2.35rem 0 0; padding: 0 0 0.65rem; border-bottom: 2px solid #000000;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  scroll-margin-top: 88px;
}
.report-section-title .sec-count {
  flex: none; min-width: 2em; text-align: center; background: #000000; color: #ffffff;
  border-radius: 999px; font-size: 0.75rem; font-weight: 800; padding: 0.12rem 0.55rem;
  letter-spacing: 0; text-transform: none;
}
.toc-flash { animation: tocFlash 0.9s ease-out; }
@keyframes tocFlash {
  0% { background: #dcdcdc; box-shadow: 0 0 0 5px #dcdcdc; }
  100% { background: transparent; box-shadow: none; }
}

.report-toc-wrap { min-width: 0; align-self: stretch; position: relative; }
.toc-panel {
  position: sticky; top: 20px; z-index: 20; background: #ffffff;
  border: 1px solid #d0d0d0; border-radius: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  padding: 1rem; max-height: calc(100vh - 40px); overflow: auto;
  overscroll-behavior: contain;
}
.toc-panel h3 {
  margin: 0 0 0.6rem; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--muted);
}
.toc-panel a {
  display: flex; justify-content: space-between; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.55rem; border-left: 2px solid transparent; color: #555555;
  font-size: 0.84rem; line-height: 1.35; text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.toc-panel a:hover, .toc-panel a.is-active { background: #ffffff; border-left-color: #000000; color: #000000; }
.toc-panel .toc-count { color: #777777; font-size: 0.72rem; flex: none; }

.report-table { width: 100%; border-collapse: collapse; margin-top: 0; }
.report-table th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 0.7rem 0.75rem; border-bottom: 1px solid #d7d7d7;
}
.report-table td { padding: 1rem 0.75rem; border-bottom: 1px solid #dedede; vertical-align: top; }
.report-table tbody tr { transition: background 0.15s ease; }
.report-table tbody tr:hover { background: #f7f7f7; }
.report-table .col-analysis { width: 52%; }
.dish-name { font-weight: 750; color: var(--text-strong); line-height: 1.4; }
.allergen-codes { color: var(--muted); font-size: 0.84rem; margin-top: 0.2rem; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-critical { background: var(--error-bg); color: var(--error); font-weight: 800; }
.badge-minor { background: var(--surface-2); color: var(--warn); }
.badge-ok { background: var(--success-bg); color: var(--success); }
.finding { margin-bottom: 0.65rem; padding: 0.7rem 0.8rem; background: #f4f4f4; font-size: 0.9rem; }
.finding:last-child { margin-bottom: 0; }
.finding-critical { border-left: 3px solid #000000; }
.finding-label {
  display: block; margin-bottom: 0.25rem; color: #555555; font-size: 0.68rem;
  font-weight: 800; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase;
}
.finding-critical .finding-label { color: #000000; }
.finding p { margin: 0; line-height: 1.55; }
.finding-action-critical {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 0.7rem;
  margin-top: 0.7rem; padding: 0.75rem; background: #a70f28; color: #ffffff;
}
.finding-action-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: #ffffff; color: #a70f28;
  font-size: 1.1rem; font-weight: 900; line-height: 1;
}
.finding-action-label {
  display: block; margin-bottom: 0.18rem; color: #ffffff;
  font-size: 0.65rem; font-weight: 850; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase;
}
.finding-action-critical p { color: #ffffff; line-height: 1.45; }
.report-ok { display: inline-flex; align-items: center; gap: 0.35rem; color: #555555; font-size: 0.86rem; font-weight: 650; }
.report-ok .icon { width: 1rem; height: 1rem; color: #555555; }
.report-summary { margin-top: 2.5rem; background: #000000; color: #ffffff; padding: 1.35rem 1.5rem; }
.report-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.report-summary-head > strong { font-size: 1.05rem; }
.report-summary-counts { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.summary-count { border: 1px solid #555555; padding: 0.25rem 0.55rem; color: #d8d8d8; font-size: 0.75rem; }
.summary-count b { color: #ffffff; font-size: 0.88rem; }
.summary-count-critical { border-color: #ffffff; color: #ffffff; }
.report-summary p { margin: 0.9rem 0 0; color: #e1e1e1; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; background: #e7e7e7; color: #222222;
  font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.7rem; margin-bottom: 0.8rem;
}
.report-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 260px; color: var(--muted); font-size: 0.9rem;
}
.report-loading-spinner {
  width: 20px; height: 20px; border: 2px solid #d1d1d1; border-top-color: #000000;
  border-radius: 50%; animation: reportSpin 0.75s linear infinite;
}
@keyframes reportSpin { to { transform: rotate(360deg); } }

/* Dashboard & Allergene-Check: gleiche klare Designsprache wie die Berichte. */
.ws-content:has(> .dashboard-page) { max-width: 1120px; }
.ws-content:has(> .check-page) { max-width: 980px; }
.workspace-page-head { margin-bottom: 1.8rem; }
.workspace-page-head h1 { margin: 0 0 0.35rem; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.045em; }
.workspace-page-head p { max-width: 700px; margin: 0; font-size: 1rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 1rem; }
.dash-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 350px;
  gap: 0; margin: 0; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 0; box-shadow: none;
}
.dash-card-primary {
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.76) 55%, rgba(0, 0, 0, 0.58) 100%),
    #000000 url('/uploads/menu-check-strato/MeuPicture.png') center 56% / cover no-repeat;
  border-color: #000000; color: #ffffff;
}
.dash-card-report { background: #ffffff; border-color: #cfcfcf; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08); }
.dash-card-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; gap: 1rem; }
.dash-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  border: 1px solid #d5d5d5; line-height: 0;
}
.dash-icon .icon { width: 27px; height: 27px; stroke-width: 1.7; color: #000000; }
.dash-card-primary .dash-icon { background: #ffffff; border-color: #ffffff; }
.dash-card-index { color: #9a9a9a; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; }
.dash-card h2 { margin: 2.2rem 0 0.55rem; font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -0.035em; }
.dash-card-primary h2 { color: #ffffff; }
.dash-card > p { margin: 0 0 1.4rem; max-width: 32rem; }
.dash-card-primary > p { color: #bdbdbd; }
.dash-card-cta, .dash-report-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; margin-top: auto; padding: 0.75rem 0.9rem; border-radius: 0;
}
.dash-card-cta { background: #ffffff; color: #000000; }
.dash-card-cta:hover { background: #e5e5e5; }
.dash-cta-arrow { flex: none; font-size: 1.2rem; line-height: 1; }
.dash-report-meta {
  display: flex; flex-direction: column; width: 100%; gap: 0.3rem; margin: 0 0 1.4rem;
  padding: 0.85rem 0; border-top: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7;
}
.dash-report-date { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.dash-report-name { color: #000000; overflow-wrap: anywhere; line-height: 1.4; }
.dash-empty { padding: 0.85rem 0; border-top: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7; width: 100%; }

/* Upload-Ablauf */
.check-page { min-width: 0; }
.check-upload-card {
  border: 1px solid #cfcfcf; border-radius: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.check-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.check-card-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; }
.check-card-index { color: #777777; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; }
.check-page .dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 270px; overflow: hidden; padding: 2rem; background: #f4f4f4;
  border: 1px solid #cfcfcf; border-radius: 0; color: #000000;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, padding 0.3s ease, min-height 0.3s ease;
}
.check-page .dropzone::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: #000000; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.check-page .dropzone:hover, .check-page .dropzone:focus-within { background: #ffffff; border-color: #000000; }
.check-page .dropzone:hover::before, .check-page .dropzone:focus-within::before { transform: scaleX(1); }
.check-page .dropzone.dragover { background: #000000; border-color: #000000; color: #ffffff; transform: scale(0.995); }
.check-page .dropzone.dragover::before { background: #ffffff; transform: scaleX(1); }
.check-page .dropzone.dragover .muted { color: #cfcfcf; }
.check-page .dropzone-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px;
  margin: 0 0 0.65rem; background: #000000;
}
.check-page .dropzone-icon .icon { width: 30px; height: 30px; color: #ffffff; stroke-width: 1.7; }
.check-page .dropzone.dragover .dropzone-icon { background: #ffffff; }
.check-page .dropzone.dragover .dropzone-icon .icon { color: #000000; }
.check-page .dropzone > p:first-of-type { max-width: 34rem; color: currentColor; font-weight: 700; }
.check-page .dropzone.compact {
  min-height: 76px; padding: 0.75rem 1rem; flex-direction: row; background: #f4f4f4;
}
.check-page .dropzone.compact .dropzone-icon { width: 40px; height: 40px; margin: 0; }
.check-page .dropzone.compact .dropzone-icon .icon { width: 19px; height: 19px; }
.check-page .privacy-note { align-items: flex-start; margin-top: 0.8rem; line-height: 1.45; }
.check-page .upload-status .alert { margin-bottom: 0; border-radius: 0; }
.check-page .upload-success-message {
  display: flex; align-items: center; gap: 0.8rem; min-height: 56px;
  margin-bottom: 0; padding: 0.65rem 0.8rem; background: #edf5ef; color: #185b2a;
  border: 1px solid #a8cdb0; border-left: 4px solid #1b6b32; border-radius: 0;
  line-height: 1.4; text-align: left;
}
.check-page .upload-success-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; background: #1b6b32; color: #ffffff;
  font-size: 1rem; font-weight: 800; line-height: 1;
}
.check-page .upload-success-text { min-width: 0; overflow-wrap: anywhere; }
.check-page .check-area { padding-top: 1.2rem; border-top: 1px solid #d7d7d7; }
.check-page .check-area > .upload-success-message { margin-bottom: 1rem; }
.check-page .check-area .btn { border-radius: 0; }
.check-page .reports-link { margin: -0.25rem 0 1.5rem; }
.check-page .reports-link a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0.85rem 1rem; background: #ffffff; border: 1px solid #cfcfcf;
  font-weight: 700; text-decoration: none !important; transition: background 0.15s ease, border-color 0.15s ease;
}
.check-page .reports-link a:hover { background: #f4f4f4; border-color: #000000; }

/* Laufende Analyse als kontraststarker, ruhiger Statusraum. */
.check-page .check-state-card { border-radius: 0; margin-bottom: 1.5rem; }
.check-page .progress-card {
  padding: clamp(1.4rem, 3vw, 2.2rem); background: #000000; border-color: #000000;
  color: #ffffff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.progress-head { display: flex; align-items: flex-start; justify-content: center; gap: 0.75rem; text-align: left; }
.progress-head h2 { margin: 0; color: #ffffff; }
.progress-head p { margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.progress-live-dot { flex: none; width: 9px; height: 9px; margin-top: 0.45rem; background: #ffffff; border-radius: 50%; }
.check-page .progress-card .muted { color: #bdbdbd; }
.check-page .progress-card .cook-emoji .icon { color: #ffffff; }
.check-page .progress-card .progress-track { height: 10px; background: #2d2d2d; border-radius: 0; }
.check-page .progress-card .progress-bar {
  border-radius: 0; background: linear-gradient(90deg, #777777 0%, #ffffff 50%, #777777 100%);
  background-size: 200% 100%;
}
.check-page .progress-card .anim-step { color: #ffffff; }
.check-page .done-card {
  padding: clamp(1.5rem, 3vw, 2.2rem); background: #ffffff; border: 1px solid #000000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}
.check-page .done-card::after { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: #000000; }
.check-page .done-card h2 { margin-top: 0.4rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.check-page .done-card .btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 0; }

/* Zahlungsdialog im selben visuellen System. */
.check-page .modal-overlay { backdrop-filter: blur(3px); }
.check-page .check-modal { border-radius: 0; border-top: 6px solid #000000; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32); }
.check-page .check-modal h2 { margin-top: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.check-page .check-modal .btn { border-radius: 0; }

@keyframes workspaceReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes liveDot {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-reveal { animation: workspaceReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .workspace-delay-1 { animation-delay: 0.08s; }
  .workspace-delay-2 { animation-delay: 0.16s; }
  .dash-card { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
  .dash-card:hover { transform: translateY(-4px); }
  .dash-card-report:hover { border-color: #000000; box-shadow: 0 22px 58px rgba(0, 0, 0, 0.12); }
  .dash-cta-arrow { transition: transform 0.18s ease; }
  .dash-card a:hover .dash-cta-arrow { transform: translateX(4px); }
  .check-page .dropzone-icon { transition: transform 0.22s ease, background 0.2s ease; }
  .check-page .dropzone:hover .dropzone-icon { transform: translateY(-3px); }
  .check-page .dropzone.compact:hover .dropzone-icon { transform: none; }
  .check-page .upload-status:not([hidden]),
  .check-page .check-area:not([hidden]),
  .check-page .progress-card:not([hidden]) { animation: workspaceReveal 0.32s ease-out both; }
  .progress-live-dot { animation: liveDot 1.6s ease-in-out infinite; }
}

@media (max-width: 780px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-card { min-height: 310px; }
}

@media (max-width: 640px) {
  .workspace-page-head { margin-bottom: 1.25rem; }
  .workspace-page-head h1 { font-size: clamp(1.75rem, 9vw, 2.15rem); overflow-wrap: anywhere; }
  .workspace-page-head p { font-size: 0.92rem; }
  .dash-card { min-height: 285px; padding: 1.25rem; }
  .dash-card h2 { margin-top: 1.6rem; }
  .dash-icon { width: 50px; height: 50px; }
  .dash-icon .icon { width: 24px; height: 24px; }
  .dash-card-cta, .dash-report-cta { padding: 0.7rem 0.8rem; }

  .check-upload-card { padding: 1rem; }
  .check-card-head { margin-bottom: 0.9rem; }
  .check-page .dropzone { min-height: 215px; padding: 1.35rem 1rem; }
  .check-page .dropzone-icon { width: 58px; height: 58px; }
  .check-page .dropzone.compact { min-height: 68px; padding: 0.65rem; }
  .check-page .dropzone.compact > p:first-of-type { text-align: left; overflow-wrap: anywhere; }
  .check-page .privacy-note { font-size: 0.78rem; }
  .check-page .upload-success-message { gap: 0.65rem; min-height: 52px; padding: 0.55rem 0.65rem; }
  .check-page .upload-success-mark { width: 30px; height: 30px; }
  .check-page .check-area > .upload-success-message { margin-bottom: 0.85rem; }
  .check-page .check-area .btn { width: 100%; min-width: 0; }
  .check-page .progress-card { padding: 1.25rem 1rem; }
  .progress-head { justify-content: flex-start; }
  .progress-head h2 { font-size: 1.25rem; }
  .check-page .progress-card .cook-anim { gap: 0.8rem; }
  .check-page .progress-card .progress-track { margin-block: 1rem; }
  .check-page .done-card .btn { width: 100%; min-width: 0; }

  .check-page .modal-overlay { align-items: flex-end; padding: 0; }
  .check-page .check-modal {
    width: 100%; max-width: none; max-height: 92vh; overflow-y: auto;
    padding: 1.35rem 1rem calc(1.35rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 400px) {
  .dash-card { min-height: 270px; }
  .dash-card-top { align-items: center; }
  .check-page .dropzone.compact { align-items: flex-start; }
  .check-page .dropzone.compact .dropzone-icon { flex: none; }
  .check-page .reports-link a { padding: 0.75rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-reveal, .check-page .upload-status, .check-page .check-area,
  .check-page .progress-card, .progress-live-dot { animation: none; }
}

/* Berichte-Historie */
.ws-content:has(> .reports-page) { max-width: 1320px; }
.reports-page-head { max-width: 760px; margin-bottom: 1.7rem; }
.reports-page-head h1 { margin-bottom: 0.35rem; }
.reports-intro { margin: 0; }
.report-list { display: flex; flex-direction: column; gap: 0.75rem; }
.report-item { scroll-margin-top: 1rem; }
.report-item-btn {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid #d7d7d7; border-radius: 0;
  box-shadow: none; padding: 0.95rem 1.1rem; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.report-item-btn:hover { border-color: #000000; transform: translateY(-1px); }
.report-item-btn:focus-visible { outline: 3px solid #bdbdbd; outline-offset: 2px; }
.report-item-btn.open { border-color: #000000; background: #000000; color: #ffffff; transform: none; }
.report-item-num {
  flex: none; min-width: 2.9em; text-align: center; font-weight: 800;
  background: #000000; color: #ffffff; padding: 0.3rem 0.55rem; font-size: 0.82rem;
}
.report-item-meta { display: flex; align-items: baseline; gap: 1rem; min-width: 0; flex: 1; }
.report-item-date { flex: none; color: var(--muted); font-size: 0.82rem; order: -1; }
.report-item-name { font-weight: 700; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-item-chevron { margin-left: auto; flex: none; line-height: 0; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.report-item-chevron .icon { width: 1.15rem; height: 1.15rem; }
.report-item-btn.open .report-item-num { background: #ffffff; color: #000000; }
.report-item-btn.open .report-item-name { color: #ffffff; }
.report-item-btn.open .report-item-date { color: #bdbdbd; }
.report-item-btn.open .report-item-chevron .icon { color: #ffffff; }
.report-item-btn.open .report-item-chevron { transform: rotate(180deg); }
.report-item-body { margin-top: 10px; }
.report-card {
  border: 1px solid #cfcfcf; border-radius: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  padding: clamp(1.2rem, 2.5vw, 2rem); margin-bottom: 0; min-width: 0;
}

/* Guthaben-Kachel (Profil) */
.credit-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.credit-head h2 { margin: 0 0 0.2rem; }
.credit-head p { margin: 0; }
.credit-amount { flex: none; font-size: 2rem; font-weight: 800; color: var(--text-strong); }

/* Tabellen (Profil) */
.table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
.table th { text-align: left; font-size: 0.8rem; color: var(--muted); padding: 0.5rem 0.7rem; border-bottom: 2px solid #000000; }
.table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }

/* Profil: klare Kartenhierarchie wie Dashboard und Prüfbericht. */
.ws-content:has(> .profile-page) { max-width: 1120px; }
.profile-page { min-width: 0; }
.profile-page-head { margin-bottom: 1.7rem; }
.profile-status:empty { display: none; }
.profile-status .alert { border-radius: 0; border-left-width: 4px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-card, .profile-invoices-card, .profile-danger-card, .profile-credit-card {
  min-width: 0; margin: 0; padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #cfcfcf; border-radius: 0; box-shadow: none;
}
.profile-card { display: flex; flex-direction: column; min-height: 500px; }
.profile-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.profile-card-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; background: #000000; color: #ffffff;
}
.profile-card-icon .icon { width: 24px; height: 24px; color: currentColor; stroke-width: 1.7; }
.profile-card-index { color: #777777; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.profile-card h2, .profile-invoices-card h2, .profile-danger-card h2 {
  margin: 1.8rem 0 1.2rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); letter-spacing: -0.035em;
}
.profile-form { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.profile-form label { margin: 0 0 0.9rem; color: #333333; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.045em; }
.profile-form input {
  min-height: 48px; margin-top: 0.4rem; padding: 0.7rem 0.8rem;
  background: #f7f7f7; border: 1px solid #c8c8c8; border-radius: 0; font-size: 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-form input:hover:not(:disabled) { border-color: #777777; }
.profile-form input:focus { background: #ffffff; border-color: #000000; box-shadow: 0 0 0 3px #dedede; }
.profile-form input:disabled { background: #e9e9e9; border-color: #d3d3d3; color: #666666; cursor: not-allowed; }
.profile-member {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0.1rem 0 1rem; padding: 0.65rem 0; border-top: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7;
}
.profile-member strong { color: #000000; }
.profile-form .btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 50px; margin-top: auto; padding-inline: 0.9rem; border-radius: 0;
}
.profile-form .btn span:last-child { flex: none; font-size: 1.15rem; transition: transform 0.18s ease; }
.profile-form .btn:hover span:last-child { transform: translateX(4px); }

.profile-credit-card { margin-top: 1rem; background: #000000; border-color: #000000; color: #ffffff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16); }
.profile-credit-card .profile-card-icon { background: #ffffff; color: #000000; }
.profile-credit-card .profile-card-index { color: #8d8d8d; }
.profile-credit-card .credit-head { margin-top: clamp(1.8rem, 4vw, 3rem); align-items: flex-end; }
.profile-credit-card .credit-head h2 { color: #ffffff; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; }
.profile-credit-card .credit-head p { max-width: 580px; color: #bdbdbd; }
.profile-credit-card .credit-amount { color: #ffffff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.055em; }

.profile-invoices-card { margin-top: 1rem; background: #ffffff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07); }
.profile-section-intro { max-width: 720px; margin: -0.55rem 0 1.2rem; }
.profile-empty { margin: 1.4rem 0 0; padding: 1rem; background: #f4f4f4; border-left: 4px solid #000000; }
.profile-table { margin-top: 1.2rem; }
.profile-table th { padding: 0.7rem 0.8rem; background: #f1f1f1; color: #555555; font-size: 0.72rem; letter-spacing: 0.08em; }
.profile-table td { padding: 0.85rem 0.8rem; }
.profile-table tbody tr { transition: background 0.15s ease; }
.profile-table tbody tr:hover { background: #f7f7f7; }
.profile-table .badge { border-radius: 0; }
.profile-receipt-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 750; }
.profile-receipt-link .icon { width: 17px; height: 17px; color: currentColor; }
.profile-stripe-hint { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid #d7d7d7; }

.profile-danger-card { margin-top: 1rem; border-left: 4px solid var(--error); }
.profile-danger-card .profile-card-icon { background: var(--error); }
.profile-danger-card > p { max-width: 760px; margin: -0.5rem 0 1.2rem; }
.profile-danger-card .btn { min-height: 48px; padding-inline: 1rem; border-radius: 0; }
.profile-page .profile-delete-overlay { backdrop-filter: blur(3px); }
.profile-page .profile-delete-modal { max-width: 520px; border-top: 6px solid var(--error); border-radius: 0; }
.profile-page .profile-delete-modal h2 { margin-top: 0; letter-spacing: -0.025em; }
.profile-page .profile-delete-modal .btn { border-radius: 0; }
.profile-page .profile-delete-modal .modal-actions form { margin: 0; }

.profile-delay-3 { animation-delay: 0.24s; }
.profile-delay-4 { animation-delay: 0.32s; }
.profile-delay-5 { animation-delay: 0.4s; }
@media (max-width: 780px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card { min-height: 0; }
  .profile-form .btn { margin-top: 0.35rem; }
}
@media (max-width: 640px) {
  .profile-page-head { margin-bottom: 1.25rem; }
  .profile-card, .profile-invoices-card, .profile-danger-card, .profile-credit-card { padding: 1.1rem; }
  .profile-card-icon { width: 46px; height: 46px; }
  .profile-card-icon .icon { width: 21px; height: 21px; }
  .profile-card h2, .profile-invoices-card h2, .profile-danger-card h2 { margin: 1.35rem 0 1rem; }
  .profile-form input { font-size: 16px; }
  .profile-member { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .profile-credit-card .credit-head { align-items: flex-start; flex-direction: column; }
  .profile-credit-card .credit-amount { margin-top: 0.4rem; }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table td { display: block; width: 100%; }
  .profile-table thead { display: none; }
  .profile-table tr { margin-bottom: 0.75rem; border: 1px solid #d0d0d0; }
  .profile-table td {
    display: grid; grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr); gap: 0.75rem;
    padding: 0.7rem 0.75rem; border-bottom: 1px solid #e0e0e0; overflow-wrap: anywhere;
  }
  .profile-table td:last-child { border-bottom: 0; }
  .profile-table td::before { content: attr(data-label); color: #666666; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
  .profile-danger-card .btn { width: 100%; }
  .profile-page .profile-delete-overlay { align-items: flex-end; padding: 0; }
  .profile-page .profile-delete-modal { max-width: none; padding: 1.35rem 1rem calc(1.35rem + env(safe-area-inset-bottom)); }
  .profile-page .profile-delete-modal .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .profile-page .profile-delete-modal .modal-actions .btn,
  .profile-page .profile-delete-modal .modal-actions form { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-form input, .profile-form .btn span:last-child, .profile-table tbody tr { transition: none; }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal {
  background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 2rem; max-width: 460px; width: 100%; animation: modalIn 0.18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.modal-actions { display: flex; gap: 0.8rem; justify-content: flex-end; margin: 1.4rem 0 0.8rem; flex-wrap: wrap; }
/* Zahlungsbereich im Modal: Buttons gestapelt (Guthaben, kostenpflichtig, abbrechen) */
.modal-pay { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.4rem; }
/* "powered by Stripe" dicht unter den kostenpflichtigen Button rücken */
.modal-pay .pay-note { margin: 0.15rem 0 0.4rem; }

/* Textlink "zu deinen Berichten" unter der Upload-Kachel */
.reports-link { margin: -0.4rem 0 1.5rem; }
.reports-link a { font-weight: 600; }

/* Rechtsseiten */
.legal-page { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.legal-section { margin-bottom: 1.8rem; }

/* Screenreader-only (visuell versteckt, für Assistenztechnik lesbar) */
.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;
}

/* Cookie-Einwilligung (Banner unten links, im monochromen Karten-Stil) */
.cookie-consent {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 500;
  width: min(420px, calc(100vw - 2rem));
  animation: cookieIn 0.35s ease-out;
}
.cookie-consent[hidden] { display: none !important; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cookie-consent-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22); padding: 1.15rem 1.25rem;
}
.cookie-consent-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.cookie-consent-head strong { font-size: 1.02rem; color: var(--text-strong); }
.cookie-consent-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--accent-bg); color: var(--text-strong);
}
.cookie-consent-text { margin: 0 0 0.9rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.cookie-consent-text a { color: var(--text-strong); text-decoration: underline; }

/* Granulare Auswahl je Dienst */
.cookie-options {
  border-top: 1px solid var(--border); margin-bottom: 0.9rem;
}
.cookie-option {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.9rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.cookie-option-info { min-width: 0; }
.cookie-option-title { display: block; font-weight: 700; font-size: 0.9rem; color: var(--text-strong); }
.cookie-option-desc { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--muted); margin-top: 0.15rem; }
.cookie-locked {
  flex: none; margin-top: 0.15rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* Umschalter (Toggle-Switch) */
.cookie-switch { position: relative; flex: none; width: 44px; height: 24px; margin-top: 0.1rem; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-slider {
  position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; transition: background 0.15s, border-color 0.15s;
}
.cookie-slider::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #ffffff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.cookie-switch input:checked + .cookie-slider { background: #000000; border-color: #000000; }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-slider { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18); }

.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-consent-actions .btn { flex: 1 1 auto; white-space: nowrap; text-align: center; }
/* „Alle ablehnen“ / „Speichern“: gleiche Prominenz wie „Alle akzeptieren“
   (kräftiger Rahmen statt blassem Grau) – DSK-Vorgabe der Gleichwertigkeit. */
.cookie-btn-equal {
  background: var(--surface); color: var(--text-strong);
  border: 1.5px solid var(--text-strong); font-weight: 700;
}
.cookie-btn-equal:hover { background: var(--accent-bg); }
/* „Einstellungen“ ist eine dritte, untergeordnete Option (keine Einwilligung),
   daher bewusst dezenter – zulässig, da Ablehnen bereits gleichwertig ist. */
.cookie-link-btn {
  flex: 1 1 100%; background: transparent; color: var(--muted);
  text-decoration: underline; padding: 0.35rem; font-weight: 600;
}
.cookie-link-btn:hover { color: var(--text-strong); }

/* Chatbot Lola */
.chatbot { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 450; }
.chatbot-toggle {
  width: 54px; height: 54px; border-radius: 999px; border: 1px solid #000000;
  background: #000000; color: #ffffff; box-shadow: 0 12px 34px rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chatbot-toggle .icon { color: #ffffff; width: 25px; height: 25px; }
.chatbot-panel {
  position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 7rem)); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.24);
  display: flex; flex-direction: column; overflow: hidden;
}
.chatbot-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.9rem 1rem; background: #000000; color: #ffffff;
}
.chatbot-head strong, .chatbot-head span { display: block; color: #ffffff; }
.chatbot-head span { font-size: 0.8rem; color: #d6d6d6; }
.chatbot-close { border: 0; background: transparent; color: #ffffff; cursor: pointer; line-height: 0; padding: 0.2rem; }
.chatbot-close .icon { color: #ffffff; }
.chatbot-notice {
  padding: 0.75rem 1rem; background: var(--accent-bg); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; line-height: 1.35;
}
.chatbot-messages { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chatbot-msg {
  max-width: 86%; padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.4;
  overflow-wrap: anywhere;
}
.chatbot-msg.bot { align-self: flex-start; background: var(--accent-bg); color: var(--text); }
.chatbot-msg.user { align-self: flex-end; background: #000000; color: #ffffff; }
.chatbot-inline-actions { display: flex; gap: 0.5rem; margin-top: 0.65rem; flex-wrap: wrap; }
.chatbot-inline-actions .btn { padding: 0.42rem 0.8rem; font-size: 0.86rem; }
.chatbot-form {
  display: grid; grid-template-columns: 1fr 46px; gap: 0.55rem; padding: 0.85rem;
  border-top: 1px solid var(--border); background: var(--surface);
}
.chatbot-form input { margin: 0; min-width: 0; }
.chatbot-form .btn { width: 46px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; }
.chatbot-form .btn .icon { margin: 0; }

/* Admin */
.admin-layout .ws-sidebar {
  background: #3a3a3a;
  border-right-color: #2f2f2f;
}
.admin-layout .ws-nav-link:hover { background: #4a4a4a; }
.admin-version {
  margin-top: auto;
  padding: 0.4rem 0.6rem;
  color: #d6d6d6;
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-content { max-width: 1180px; }
.admin-table-card { overflow-x: auto; }
.admin-table { min-width: 920px; }
.inline-credit-form { display: grid; grid-template-columns: 86px minmax(140px, 1fr) auto; gap: 0.45rem; align-items: center; }
.inline-credit-form input { margin: 0; }
.llm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.llm-head h2 { margin-bottom: 0.1rem; }
.prompt-readonly {
  white-space: pre-wrap; background: var(--accent-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem; color: var(--text); font-family: inherit; font-size: 0.9rem;
}
.stat-card { margin-bottom: 0; }
.stat-card strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--text-strong); margin-top: 0.35rem; }
.chat-history { display: flex; flex-direction: column; gap: 0.9rem; }
.assistant-split {
  display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.25fr);
  gap: 1.2rem; align-items: start;
}
.assistant-settings, .assistant-history { min-width: 0; }
.assistant-settings .card, .assistant-history .card { margin-bottom: 1rem; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.history-head h2 { margin: 0; }
.stack-form { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.stack-form:first-of-type { border-top: 0; padding-top: 0; }
.stack-form h3 { margin: 0; }
.check-label { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.check-label input { width: auto; margin: 0; display: inline-block; }
.knowledge-list { display: flex; flex-direction: column; gap: 0.9rem; }
.knowledge-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 0.8rem; }
.knowledge-item summary::-webkit-details-marker { display: none; }
.chat-admin-item { margin-bottom: 0; }
.chat-admin-item summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none;
}
.chat-admin-item summary::-webkit-details-marker { display: none; }
.chat-admin-item.is-new { border-color: #000000; }
.chat-admin-item.needs-service { box-shadow: 0 0 0 2px var(--error-bg), var(--shadow); }
.chat-summary { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--accent-bg); border-radius: 8px; }
.chat-summary p { margin: 0.35rem 0 0; white-space: pre-wrap; }
.chat-notes { margin: 1rem 0; }
.chat-transcript { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.chat-transcript p { margin: 0.45rem 0; padding: 0.55rem 0.7rem; border-radius: 8px; overflow-wrap: anywhere; }
.chat-transcript .user { background: #000000; color: #ffffff; }
.chat-transcript .assistant, .chat-transcript .system { background: var(--accent-bg); }

@media (max-width: 760px) {
  .ws-layout { flex-direction: column; }
  .ws-sidebar { width: 100%; height: auto; position: static; }
  .ws-sidebar-bottom { margin-top: 1rem; }
  .ws-topbar { grid-template-columns: 1fr; justify-items: stretch; padding: 0.8rem 1.2rem; }
  .ws-topbar-actions { justify-content: flex-end; }
  .ws-top-progress { width: 100%; grid-template-columns: 1fr; }
  .ws-content { padding: 1.2rem; }
  .hero h1 { font-size: 1.8rem; }
  .header-nav { gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
  .lang-switch summary { padding: 0.32rem 0.45rem; }
  .inline-credit-form { grid-template-columns: 1fr; }
  .assistant-split { grid-template-columns: 1fr; }
  .cookie-consent { left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
  .cookie-consent-actions .btn { flex: 1 1 100%; }
  .chatbot { right: 1rem; bottom: 1rem; }
}

/* Roter Gefahr-Button (Konto löschen) */
.btn-danger { background: var(--error); color: #ffffff; }
.btn-danger:hover { background: #8d001a; }

/* Admin-Dashboard: Filterzeile, Kacheln mit Sparklines, Tageswerte-Tabelle */
.dash-filter { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.2rem; }
.dash-filter label { font-size: 0.9rem; color: var(--text-muted, #666); }
.dash-filter select {
  padding: 0.45rem 0.7rem; font-size: 0.95rem; border: 1px solid var(--border, #ddd);
  border-radius: 8px; background: var(--surface); cursor: pointer;
}
.stat-card { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-card strong { font-size: 1.6rem; line-height: 1.2; }
.stat-delta { font-size: 0.82rem; }
.delta-up { color: var(--success); }
.delta-down { color: var(--error); }
.spark-wrap { position: relative; margin-top: 0.5rem; }
.spark { display: block; overflow: visible; touch-action: none; }
.spark-line { fill: none; stroke: #4b4b4b; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(0, 0, 0, 0.08); stroke: none; }
.spark-end, .spark-hover { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark-cross { stroke: #bbbbbb; stroke-width: 1; }
.spark-tip {
  position: absolute; bottom: calc(100% + 2px); background: var(--surface);
  border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 0.15rem 0.45rem;
  font-size: 0.78rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: none;
}
.dash-table { margin-top: 1.2rem; }
.dash-table summary { cursor: pointer; font-weight: 600; }
.dash-table .table-scroll { overflow-x: auto; margin-top: 0.8rem; }

/* Abstand für "Code erneut senden" auf der Verify-Seite */
.resend-form { margin-top: 0.6rem; }

/* Dezenter Puls als Blickfang auf dem "Zum Allergene Check"-Button (Dashboard) */
.btn-pulse { animation: btn-pulse 2s ease-out infinite; }
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.40); }
  55%  { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } }

/* Kompakte Dropzone nach erfolgreichem Upload: schrumpft vertikal, damit
   sichtbar wird, dass die Datei angekommen ist. Erneutes Ablegen bleibt möglich. */
.dropzone { transition: border-color 0.15s, background 0.15s, padding 0.35s ease; }
.dropzone.compact { padding: 0.7rem 1rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.dropzone.compact .dropzone-icon { margin-bottom: 0; }
.dropzone.compact .dropzone-icon .icon { width: 22px; height: 22px; }
.dropzone.compact p { margin: 0; font-size: 0.9rem; }
.dropzone.compact .dropzone-hint { display: none; }

/* Drehender Spinner neben "Upload" */
.upload-spinner {
  display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.15em;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #000000;
  border-radius: 50%; animation: upload-spin 0.8s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .upload-spinner { animation-duration: 2.4s; } }

/* Hinweis "Speisekarte wird nicht gespeichert" unter der Dropzone */
.privacy-note { display: flex; align-items: center; gap: 0.4rem; margin: 0.6rem 0 0; }
.privacy-note .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Mobile Navigation (Hamburger) ---------- */
/* Button: im schwarzen Header weiß, im weißen Workspace-Topbar schwarz */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 40px; padding: 0; cursor: pointer;
  border: 1px solid #555555; border-radius: 8px; background: transparent;
}
.nav-burger .icon { width: 22px; height: 22px; color: #ffffff; margin: 0; }
.nav-burger .burger-open, .nav-burger .burger-close { line-height: 0; }
.nav-burger .burger-close { display: none; }
.nav-burger.is-open .burger-open { display: none; }
.nav-burger.is-open .burger-close { display: block; }
.ws-burger { border-color: var(--border); }
.ws-burger .icon { color: #000000; }
body.nav-locked { overflow: hidden; }

/* Abdunkelnder Hintergrund hinter dem geöffneten Workspace-Drawer */
.ws-scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 290;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.ws-scrim.show { opacity: 1; pointer-events: auto; }

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }

  /* Öffentlicher Header: Navigation als ausklappbares Panel unter der Kopfzeile */
  .site-header { flex-wrap: wrap; }
  .site-header .header-nav { display: none; }
  .site-header.open .header-nav {
    display: flex; flex-direction: column; align-items: stretch;
    flex-basis: 100%; gap: 0.6rem; padding-top: 0.9rem;
    animation: navDrop 0.22s ease;
  }
  .site-header.open { border-bottom: 1px solid #333333; }
  .site-header .header-nav .btn { display: block; text-align: center; }
  .site-header .header-nav .header-logout { width: 100%; }
  .site-header .lang-switch summary { justify-content: center; }
  .site-header .lang-switch ul { position: static; margin-top: 0.3rem; width: 100%; box-shadow: none; }

  /* Workspace: Sidebar als Drawer, der von links hereinfährt */
  .ws-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 300;
    width: min(320px, 86vw); height: 100%; overflow-y: auto;
    transform: translateX(-105%); transition: transform 0.28s ease;
  }
  .ws-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
  .ws-sidebar .ws-sidebar-bottom { margin-top: 1.5rem; }

  /* Topbar mobil: Burger links, Nutzer/Sprache rechts, Fortschritt in eigener Zeile */
  .ws-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
  .ws-topbar-spacer { min-width: 0; }
  .ws-topbar-actions { margin-left: auto; }
  .ws-top-progress { order: 3; flex-basis: 100%; }
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-sidebar { transition: none; }
  .site-header.open .header-nav { animation: none; }
}

/* ---------- Bericht auf schmalen Bildschirmen ---------- */
/* Lange Inhalte (Gerichtnamen, Legende, Begründungen) immer umbrechen lassen */
.report-table td { overflow-wrap: anywhere; }
.report-legend { overflow-wrap: anywhere; }
.badge { white-space: normal; }

@media (max-width: 1120px) {
  .report-expanded-layout { display: flex; flex-direction: column; gap: 0.75rem; }
  .report-card { order: 2; }
  .report-toc-wrap {
    order: 1; position: sticky; top: 0.6rem; z-index: 30;
    align-self: stretch; min-width: 0;
  }
  .toc-panel {
    position: static; display: flex; align-items: center; gap: 0.35rem;
    max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0.7rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    scrollbar-width: thin;
  }
  .toc-panel h3 { flex: none; margin: 0 0.5rem 0 0; }
  .toc-panel a { flex: none; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .toc-panel a:hover, .toc-panel a.is-active { border-left-color: transparent; border-bottom-color: #000000; }
  .report-section-title { scroll-margin-top: 82px; }
}

@media (max-width: 640px) {
  /* Tabelle wird zu gestapelten Karten: volle Breite für die Begründungen,
     nichts läuft mehr aus der Tabelle heraus */
  .report-table { border-collapse: separate; border-spacing: 0; }
  .report-table, .report-table tbody, .report-table tr, .report-table td { display: block; width: 100%; }
  .report-table thead { display: none; }
  .report-table tr {
    border: 1px solid #d7d7d7; border-radius: 0; background: var(--surface);
    padding: 0.8rem; margin-bottom: 0.7rem;
  }
  .report-table tr:nth-child(even) td { background: transparent; }
  .report-table td { padding: 0.15rem 0; border-bottom: none; }
  .report-table td.col-analysis {
    width: auto; margin-top: 0.7rem; padding-top: 0.7rem;
    border-top: 1px solid #d7d7d7;
  }

  /* Kopfzeile des Berichts: Download-Button in voller Breite */
  .report-head { align-items: stretch; }
  .report-head .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; }
  .report-head h2 { font-size: 1.45rem; }
  .report-legend { padding: 0.85rem 0.9rem; margin-bottom: 1.5rem; }
  .report-section-title { margin-top: 1.8rem; font-size: 0.94rem; }
  .report-summary { padding: 1.1rem; }
  .report-summary-counts { width: 100%; }
  .summary-count { flex: 1 1 auto; }
  .toc-panel h3 { display: none; }
  .toc-panel { padding: 0.55rem; }
  .toc-panel a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }

  /* Berichte-Liste: Name und Datum stehen lesbar untereinander. */
  .report-item-btn { gap: 0.75rem; padding: 0.85rem; }
  .report-item-meta { flex-direction: column; align-items: flex-start; gap: 0.05rem; }
  .report-item-name { white-space: normal; overflow-wrap: anywhere; }
  .report-item-date { min-width: 0; order: 0; }
  .report-item-chevron { margin-left: auto; }
  .report-card { padding: 1rem; }
}

@media (max-width: 400px) {
  .report-item-num { min-width: 2.55em; padding-inline: 0.4rem; }
  .report-summary-counts { display: grid; grid-template-columns: 1fr; }
  .summary-count { width: 100%; }
  .finding { padding: 0.65rem; }
  .finding-action-critical { grid-template-columns: 27px minmax(0, 1fr); gap: 0.6rem; padding: 0.65rem; }
  .finding-action-arrow { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .toc-flash, .report-loading-spinner { animation: none; }
  .report-item-btn, .report-item-chevron, .toc-panel a { transition: none; }
}

/* --------------------------------------------------------------------------
   Admin-Postfach (Webmail) und Clienten-Mailverkehr
   -------------------------------------------------------------------------- */
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.mail-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mail-tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.9rem; border: 1px solid var(--border); border-bottom: none;
  border-radius: 10px 10px 0 0; background: var(--accent-bg);
  color: var(--text-strong); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.mail-tab svg { width: 15px; height: 15px; }
.mail-tab:hover { background: var(--surface); }
.mail-tab.active { background: var(--surface); border-color: #000000; box-shadow: inset 0 -3px 0 #000000; }

.mail-connect-card { max-width: 560px; }

.mail-app { padding: 0; overflow: hidden; }
.mail-toolbar {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); background: var(--accent-bg);
}
.mail-toolbar-spacer { flex: 1; }
.mail-folder-label { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.9rem; }
.mail-folder-label select { margin: 0; width: auto; }

.mail-split { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.4fr); min-height: 480px; }
.mail-list-pane { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.mail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; max-height: 640px; }
.mail-list-empty { padding: 1rem; }
.mail-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.6rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); cursor: pointer;
}
.mail-item:hover { background: var(--accent-bg); }
.mail-item.active { background: var(--accent-bg); box-shadow: inset 3px 0 0 #000000; }
.mail-item-from { font-size: 0.86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-date { grid-column: 2; grid-row: 1; white-space: nowrap; }
.mail-item-subject { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.94rem; }
.mail-item.unseen .mail-item-subject, .mail-item.unseen .mail-item-from { font-weight: 800; color: var(--text-strong); }
.mail-pagination { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.55rem; border-top: 1px solid var(--border); }

.mail-read-pane { padding: 1rem 1.2rem; min-width: 0; overflow-y: auto; max-height: 700px; }
.mail-empty-hint { padding: 2rem 0; text-align: center; }
.mail-read-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.mail-read-head h2 { margin: 0 0 0.6rem; font-size: 1.15rem; overflow-wrap: anywhere; }
.mail-read-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mail-meta { border-collapse: collapse; margin-bottom: 0.9rem; font-size: 0.88rem; }
.mail-meta th { text-align: left; color: var(--muted); font-weight: 600; padding: 0.15rem 0.8rem 0.15rem 0; vertical-align: top; white-space: nowrap; }
.mail-meta td { padding: 0.15rem 0; overflow-wrap: anywhere; }
.mail-attachment { margin-right: 0.7rem; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; border-top: 1px solid var(--border); padding-top: 0.9rem; }
.mail-html { width: 100%; min-height: 420px; border: none; border-top: 1px solid var(--border); padding-top: 0.4rem; background: #ffffff; }
.mail-compose textarea { font-family: inherit; }
.mail-compose-actions { display: flex; gap: 0.6rem; }

/* Clienten-Seite: Tabelle links, Mailverkehr rechts.
   Der Inhaltsbereich ist hier breiter als die üblichen 1180px, damit der
   Hauptbereich mit der Tabelle mehr Platz bekommt (730px → ~1400px);
   das rechte Panel bleibt fix, die Mehrbreite geht komplett an die Tabelle. */
.admin-content:has(.clients-split) { max-width: 1860px; }
.clients-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.clients-split { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 1.2rem; align-items: start; }
.clients-table { min-width: 1080px; }
.client-actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; }
.client-actions .btn { white-space: nowrap; }
.client-mail-btn svg { width: 14px; height: 14px; }
.client-mail-btn.has-unanswered { border-color: var(--error); color: var(--error); }
.client-reports summary { cursor: pointer; font-weight: 700; }
.client-reports ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.client-reports li { margin: 0.25rem 0; white-space: nowrap; }
.client-reports a { display: inline-flex; align-items: center; gap: 0.35rem; }
.client-reports svg { width: 13px; height: 13px; }

.client-mail-panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.client-mail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.client-mail-head h2 { margin: 0; font-size: 1.1rem; }
.client-mail-actions { display: flex; gap: 0.5rem; margin: 0.8rem 0; flex-wrap: wrap; }
.client-mail-summary {
  background: var(--accent-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.8rem 0.9rem; margin-bottom: 0.9rem; white-space: pre-wrap; font-size: 0.9rem;
}
.client-mail-list { display: flex; flex-direction: column; gap: 0.7rem; }
.mail-bubble { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.8rem; max-width: 92%; }
.mail-bubble.in { align-self: flex-start; background: var(--accent-bg); }
.mail-bubble.out { align-self: flex-end; background: #000000; color: #ffffff; }
.mail-bubble.out .mail-bubble-meta { color: #cccccc; }
.mail-bubble-subject { font-weight: 700; margin: 0.15rem 0; overflow-wrap: anywhere; }
.mail-bubble-body {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.88rem; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mail-bubble-body.expanded { display: block; -webkit-line-clamp: unset; }
.mail-bubble-reply { display: inline-block; margin-top: 0.3rem; }
.mail-bubble.out a { color: #ffffff; }

@media (max-width: 1280px) {
  .clients-split { grid-template-columns: 1fr; }
  .client-mail-panel { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .mail-split { grid-template-columns: 1fr; }
  .mail-list-pane { border-right: none; border-bottom: 1px solid var(--border); }
  .mail-list { max-height: 320px; }
}

/* Cookie-Einstellungen-Link unterhalb des Workspace (nur mit aktivem Analytics) */
.ws-cookie-footer { text-align: center; padding: 0.6rem 1rem 1rem; }
.ws-cookie-footer a { color: var(--muted); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Workspace-Chrome: Sidebar + Topbar im Report-Stil (Admin bleibt unberührt)
   -------------------------------------------------------------------------- */
.ws-layout:not(.admin-layout) .ws-sidebar {
  padding: 1.25rem 1rem; background: #000000; border-right: 1px solid #222222;
  box-shadow: 10px 0 36px rgba(0, 0, 0, 0.08);
}
.ws-layout:not(.admin-layout) .ws-sidebar .brand {
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem;
  padding: 0 0 1.15rem; border-bottom: 1px solid #2c2c2c;
  color: #ffffff; font-size: 1.2rem; letter-spacing: -0.02em;
}
.ws-layout:not(.admin-layout) .ws-sidebar .brand .icon {
  width: 40px; height: 40px; padding: 9px; background: #ffffff; color: #000000;
}
.ws-layout:not(.admin-layout) .ws-brand { justify-content: flex-start; }
.ws-layout:not(.admin-layout) .ws-brand-logo {
  height: 32px; max-width: none;
}
.ws-layout:not(.admin-layout) .ws-nav-section { margin-bottom: 1.35rem; }
.ws-layout:not(.admin-layout) .ws-nav-label {
  padding: 0 0.55rem; margin-bottom: 0.5rem; color: #777777;
  font-size: 0.66rem; letter-spacing: 0.14em;
}
.ws-layout:not(.admin-layout) .ws-nav-link {
  position: relative; min-height: 43px; padding: 0.62rem 0.7rem; border-radius: 0;
  color: #bdbdbd; font-size: 0.9rem; transition: background 0.16s ease, color 0.16s ease, padding 0.16s ease;
}
.ws-layout:not(.admin-layout) .ws-nav-link:hover { padding-left: 0.85rem; background: #1d1d1d; color: #ffffff; }
.ws-layout:not(.admin-layout) .ws-nav-link.active { background: #ffffff; color: #000000; font-weight: 750; }
.ws-layout:not(.admin-layout) .ws-nav-link.active::after {
  content: ''; position: absolute; top: 0; right: -1rem; bottom: 0; width: 4px; background: #ffffff;
}
.ws-layout:not(.admin-layout) .ws-nav-icon { width: 1.55rem; }
.ws-layout:not(.admin-layout) .ws-nav-icon .icon { width: 17px; height: 17px; color: currentColor; }
.ws-layout:not(.admin-layout) .ws-nav-link.small { min-height: 0; padding-block: 0.35rem; color: #858585; }
.ws-layout:not(.admin-layout) .ws-nav-link.small:hover { color: #ffffff; }
.ws-layout:not(.admin-layout) .ws-sidebar-bottom { padding-top: 1rem; border-top: 1px solid #2c2c2c; }
.ws-layout:not(.admin-layout) { --ws-sticky-offset: 86px; }

.ws-layout:not(.admin-layout) .ws-topbar {
  position: sticky; top: 0; z-index: 80; min-height: 66px; padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid #d7d7d7;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.055); backdrop-filter: blur(10px);
}
.ws-layout:not(.admin-layout) .ws-user {
  max-width: 220px; overflow: hidden; color: #333333; font-size: 0.82rem;
  font-weight: 750; text-overflow: ellipsis; white-space: nowrap;
}
.ws-layout:not(.admin-layout) .ws-topbar-actions { gap: 0.75rem; }
.ws-layout:not(.admin-layout) .ws-topbar .lang-switch summary { border-radius: 0; border-color: #d0d0d0; }
.ws-layout:not(.admin-layout) .ws-topbar .lang-switch ul { border-radius: 0; }
.ws-layout:not(.admin-layout) .ws-top-progress {
  min-height: 42px; width: min(440px, 100%); padding: 0.5rem 0.7rem;
  background: #000000; color: #ffffff; border: 1px solid #000000; border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13); transition: background 0.15s ease, transform 0.15s ease;
}
.ws-layout:not(.admin-layout) .ws-top-progress:hover { background: #242424; transform: translateY(-1px); }
.ws-layout:not(.admin-layout) .ws-top-progress-label { color: currentColor; font-size: 0.76rem; letter-spacing: 0.02em; }
.ws-layout:not(.admin-layout) .ws-top-progress-track { height: 6px; background: #343434; border-radius: 0; }
.ws-layout:not(.admin-layout) .ws-top-progress-bar { background: #ffffff; border-radius: 0; }
.ws-layout:not(.admin-layout) .ws-top-progress.is-done { background: #f1f1f1; color: #000000; border-color: #000000; }
.ws-layout:not(.admin-layout) .ws-top-progress.is-done:hover { background: #e5e5e5; }
.ws-layout:not(.admin-layout) .ws-top-progress.is-done .ws-top-progress-track { background: #d0d0d0; }
.ws-layout:not(.admin-layout) .ws-top-progress.is-done .ws-top-progress-bar { background: #000000; }
.ws-layout:not(.admin-layout) .report-toc-wrap .toc-panel {
  top: var(--ws-sticky-offset); max-height: calc(100vh - var(--ws-sticky-offset) - 20px);
}

@keyframes workspaceChromeIn {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .ws-layout:not(.admin-layout) .ws-sidebar .brand,
  .ws-layout:not(.admin-layout) .ws-nav-section,
  .ws-layout:not(.admin-layout) .ws-topbar { animation: workspaceChromeIn 0.42s ease-out both; }
  .ws-layout:not(.admin-layout) .ws-nav-section:nth-of-type(1) { animation-delay: 0.06s; }
  .ws-layout:not(.admin-layout) .ws-sidebar-bottom { animation: workspaceChromeIn 0.42s ease-out 0.12s both; }
}

@media (max-width: 1120px) {
  .ws-layout:not(.admin-layout) .report-toc-wrap { top: var(--ws-sticky-offset); }
}
@media (max-width: 760px) {
  .ws-layout:not(.admin-layout) { --ws-sticky-offset: 70px; }
  .ws-layout:not(.admin-layout):has(.ws-top-progress:not([hidden])) { --ws-sticky-offset: 122px; }
  .ws-layout:not(.admin-layout) .ws-sidebar { padding: 1.1rem 0.9rem; }
  .ws-layout:not(.admin-layout) .ws-brand-logo { height: 30px; }
  .ws-layout:not(.admin-layout) .ws-nav-link.active::after { right: -0.9rem; }
  .ws-layout:not(.admin-layout) .ws-topbar { min-height: 60px; padding: 0.6rem 0.8rem; }
  .ws-layout:not(.admin-layout) .ws-user { max-width: min(180px, 38vw); }
  .ws-layout:not(.admin-layout) .ws-top-progress {
    grid-template-columns: auto minmax(90px, 1fr); min-height: 40px; width: 100%;
    padding: 0.45rem 0.6rem; box-shadow: none;
  }
  .ws-layout:not(.admin-layout) .report-toc-wrap {
    top: calc(var(--ws-sticky-offset) + 0.4rem);
  }
  .ws-layout:not(.admin-layout) .report-section-title {
    scroll-margin-top: calc(var(--ws-sticky-offset) + 70px);
  }
}
@media (max-width: 420px) {
  .ws-layout:not(.admin-layout) .ws-user { display: none; }
  .ws-layout:not(.admin-layout) .ws-top-progress { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-layout:not(.admin-layout) .ws-sidebar .brand,
  .ws-layout:not(.admin-layout) .ws-nav-section,
  .ws-layout:not(.admin-layout) .ws-sidebar-bottom,
  .ws-layout:not(.admin-layout) .ws-topbar { animation: none; }
  .ws-layout:not(.admin-layout) .ws-top-progress { transition: none; }
}

/* --------------------------------------------------------------------------
   Landingpage: gleiche monochrome Hierarchie, unveränderte Inhalte/Kachelzahl
   -------------------------------------------------------------------------- */
.site-header:has(+ .landing) {
  min-height: 70px; padding: 0.85rem clamp(1rem, 4vw, 3rem); border-bottom-color: #242424;
}
.site-header:has(+ .landing) .brand { font-size: 1.25rem; letter-spacing: -0.025em; }
.site-header:has(+ .landing) .site-brand-logo { height: 30px; }
.site-header:has(+ .landing) .btn, .site-header:has(+ .landing) .lang-switch summary { border-radius: 0; }
.landing { max-width: 1240px; }
.landing .hero {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); text-align: left;
  background: #000000; color: #ffffff; box-shadow: 0 0 0 100vmax #000000;
  clip-path: inset(0 -100vmax);
}
.landing .hero-inner { max-width: 1080px; }
.landing .hero h1 {
  max-width: 1050px; margin: 0 0 1.2rem; color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.8rem); line-height: 0.98; letter-spacing: -0.065em;
}
.landing .hero .lead { max-width: 760px; margin: 0 0 2rem; color: #c9c9c9; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.landing .hero-cta { justify-content: flex-start; }
.landing .hero .btn { border-radius: 0; }
.landing .hero .btn-primary { background: #ffffff; color: #000000; }
.landing .hero .btn-primary:hover { background: #dedede; }
.landing .hero .btn-ghost { background: transparent; color: #ffffff; border-color: #555555; }
.landing .hero .btn-ghost:hover { background: #1c1c1c; border-color: #ffffff; }
.landing .hero-chips { justify-content: flex-start; margin-top: 1.6rem; }
.landing .hero .pill { background: transparent; color: #d7d7d7; border-color: #474747; border-radius: 0; }
.landing .hero .pill .icon { color: #ffffff; }
.landing .hero .pill-highlight {
  background: linear-gradient(135deg, #c68169 0%, #be765e 55%, #b66d57 100%);
  color: #ffffff; border-color: #ae624d;
}
.landing .hero .pill-highlight .icon { color: #ffffff; }

.landing-split { margin-top: 3rem; gap: 2rem; }
.landing-sec { margin-top: clamp(3.4rem, 7vw, 5.5rem); }
.landing-flow > .landing-sec:first-child { margin-top: 0; }
.landing .kicker { margin-bottom: 0.5rem; color: #555555; font-size: 0.7rem; letter-spacing: 0.17em; }
.landing-sec > h2 { margin-bottom: 0.75rem; font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: -0.045em; }
.landing .sec-intro { margin-bottom: 1.5rem; font-size: 0.98rem; }
.landing .bento { gap: 0.8rem; }
.landing .tile {
  padding: 1.4rem; border-color: #d1d1d1; border-radius: 0; box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.landing .tile:hover { border-color: #000000; box-shadow: 0 16px 42px rgba(0, 0, 0, 0.1); }
.landing .tile h3 { margin-top: 0.35rem; font-size: 1.08rem; letter-spacing: -0.018em; }
.landing .tile-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  margin-bottom: 0.75rem; background: #000000;
}
.landing .tile-icon .icon { width: 23px; height: 23px; color: #ffffff; }
.landing .tile-dark .tile-icon { background: #ffffff; }
.landing .tile-dark .tile-icon .icon { color: #000000; }
.landing .stat-big { font-size: clamp(2.4rem, 5vw, 3.2rem); }
.landing .stat-fit { font-size: clamp(1.45rem, 3vw, 2rem); }
.landing .pill { border-radius: 0; }
.landing .allergen-panel { padding: clamp(1rem, 3vw, 1.6rem); }
.landing .allergen-chip { border-radius: 0; background: #f4f4f4; }
.landing .allergen-chip:hover, .landing .allergen-chip:active { background: #000000; border-color: #000000; }
.landing .allergen-chip:hover .chip-num, .landing .allergen-chip:active .chip-num { background: #ffffff; color: #000000; }
.landing .allergen-chip:hover .chip-body strong, .landing .allergen-chip:active .chip-body strong { color: #ffffff; }
.landing .allergen-chip:hover .chip-body small, .landing .allergen-chip:active .chip-body small { color: #bdbdbd; }
.landing .chip-num { border-radius: 0; }
.landing .menu-mock { border-radius: 0; }
.landing .img-tile { margin-top: clamp(3.4rem, 7vw, 5.5rem); border-radius: 0; box-shadow: none; }
.landing .img-tile:hover { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12); }
.landing .cta-tile { border-radius: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2); }
.landing .cta-badge { border-radius: 0; }
.landing .cta-tile .btn { border-radius: 0; }
.landing .cta-band { margin-top: clamp(3.5rem, 8vw, 6rem); border-radius: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); }
.landing .cta-band .btn { border-radius: 0; }
.landing .disclaimer { margin-bottom: 0.6rem; }
.landing-terms { text-align: center; margin: 0 0 2.5rem; }
body:has(> .landing) .site-footer { margin-top: 0; background: #000000; color: #8f8f8f; border-top-color: #252525; }
body:has(> .landing) .site-footer a { color: #bdbdbd; }

@media (min-width: 1000px) {
  .landing .cta-tile { top: 90px; }
}
@media (max-width: 760px) {
  .site-header:has(+ .landing) { min-height: 62px; padding-inline: 1rem; }
  .site-header:has(+ .landing) .site-brand-logo { height: 28px; }
  .landing { padding-inline: 1rem; }
  .landing .hero { padding-block: 3.8rem; }
  .landing .hero h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .landing .hero .lead { font-size: 1rem; }
  .landing .hero-cta { align-items: stretch; flex-direction: column; }
  .landing .hero-cta .btn { width: 100%; text-align: center; }
  .landing .hero-chips { gap: 0.45rem; }
  .landing-split { margin-top: 1rem; }
  .landing .cta-tile { padding: 1.35rem; }
  .landing-sec { margin-top: 3.8rem; }
  .landing .img-tile { margin-top: 3.8rem; }
  body:has(> .landing) .site-footer { align-items: flex-start; flex-direction: column; gap: 0.9rem; }
  body:has(> .landing) .site-footer nav { flex-wrap: wrap; gap: 0.65rem 1rem; }
}
@media (max-width: 420px) {
  .landing .hero { padding-block: 3rem; }
  .landing .hero h1 { font-size: 2.35rem; }
  .landing .hero .pill { width: 100%; justify-content: flex-start; }
  .landing .allergen-grid { grid-template-columns: minmax(0, 1fr); }
  .landing .cta-price { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .tile, .landing .img-tile img, .landing .btn-lg { transition: none; }
}
