/* My Chicken – Designsystem. Mobil zuerst, iOS Safari, ohne externe Quellen.
   Farben aus dem Siegel: Markenrot #E30613, Kohleschwarz, Papierweiß. */

:root {
  /* Marke */
  --rot: oklch(0.585 0.236 27.5);          /* #E30613 */
  --rot-tief: oklch(0.47 0.19 27);         /* Aktion, gedrückt */
  --rot-dunkel: oklch(0.33 0.12 25);       /* Weinrot wie das Leuchtschild */
  --glut: oklch(0.74 0.17 55);             /* Licht der Wärmelampen, nur als Licht/Fläche */
  --gold: oklch(0.83 0.13 85);             /* Panade, Akzent für Zahlen auf Dunkel */
  /* Neutral, warm getönt */
  --kohle: oklch(0.17 0.008 40);           /* Grundschwarz */
  --kohle-2: oklch(0.22 0.01 40);
  --kohle-3: oklch(0.3 0.012 40);
  --papier: oklch(0.975 0.012 80);         /* Papierweiß der Verpackung */
  --papier-2: oklch(0.94 0.018 80);
  --weiss: oklch(0.995 0.003 80);
  --text: oklch(0.2 0.01 40);
  --text-2: oklch(0.42 0.012 40);          /* auf Papier: 8.5:1 */
  --text-hell: oklch(0.93 0.01 80);
  --text-hell-2: oklch(0.78 0.012 70);     /* auf Kohle: 9:1 */

  /* Schrift */
  --slab: "MC Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --text-font: "Barlow", system-ui, sans-serif;
  --eng: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* Fluid-Skala */
  --fs-mega: clamp(3.1rem, 13.5vw, 11.5rem);
  --fs-1: clamp(2.4rem, 8.6vw, 6.4rem);
  --fs-2: clamp(1.9rem, 5.6vw, 3.9rem);
  --fs-3: clamp(1.35rem, 3vw, 2rem);
  --fs-4: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-text: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-klein: 0.875rem;

  /* Raster 8 px, fluid */
  --r1: 0.5rem; --r2: 1rem; --r3: 1.5rem; --r4: 2rem; --r5: 3rem; --r6: 4rem;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --abschnitt: clamp(4.5rem, 11vw, 9rem);
  --breite: 1440px;

  /* Bewegung */
  --aus-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --aus-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --rund: 999px;
  --ecke: 18px;

  --kopf-h: 64px;
  --sicher-oben: env(safe-area-inset-top, 0px);
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-links: env(safe-area-inset-left, 0px);
  --sicher-rechts: env(safe-area-inset-right, 0px);
}
@media (min-width: 900px) { :root { --kopf-h: 76px; } }

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
body {
  margin: 0; background: var(--papier); color: var(--text);
  font-family: var(--text-font); font-size: var(--fs-text); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.dunkel :focus-visible, .rot :focus-visible { outline-color: var(--weiss); }
::selection { background: var(--rot); color: var(--weiss); }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--weiss); color: var(--text); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.sprung:focus { top: calc(12px + var(--sicher-oben)); }

/* ---------- Typo ---------- */
.slab, h1, h2, .h1, .h2 { font-family: var(--slab); font-weight: 400; letter-spacing: -0.005em; }
h1, .h1 { font-size: var(--fs-1); line-height: 1.02; margin: 0; text-transform: uppercase; }
h2, .h2 { font-size: var(--fs-2); line-height: 1.04; margin: 0; text-transform: uppercase; }
h3, .h3 { font-family: var(--eng); font-weight: 800; font-size: var(--fs-3); line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
.mega { font-family: var(--slab); font-size: var(--fs-mega); line-height: 1.02; text-transform: uppercase; margin: 0; }
.marke-zeile { font-family: var(--eng); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--r2); display: inline-flex; align-items: center; gap: 0.6em; }
.marke-zeile::before { content: ""; width: 28px; height: 10px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; max-width: 52ch; color: var(--text-2); margin: var(--r3) 0 0; }
.dunkel .lead, .rot .lead { color: var(--text-hell-2); }
.rot .lead { color: var(--weiss); }
p { max-width: 65ch; }
.preis { font-family: var(--eng); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- Flächen ---------- */
.abschnitt { position: relative; padding: var(--abschnitt) var(--rand); }
.innen { max-width: var(--breite); margin: 0 auto; position: relative; }
.dunkel { background: var(--kohle); color: var(--text-hell); }
.rot { background: var(--rot); color: var(--weiss); }
.papier { background: var(--papier); }
.weiss { background: var(--weiss); }
/* Verpackungsstreifen */
.streifen { background: repeating-linear-gradient(180deg, var(--rot) 0 22px, var(--weiss) 22px 44px); }
.streifenband { height: 18px; background: repeating-linear-gradient(90deg, var(--rot) 0 18px, var(--weiss) 18px 36px); }
.streifen-kante { position: relative; }
.streifen-kante::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: repeating-linear-gradient(90deg, var(--rot) 0 14px, var(--papier) 14px 28px); }

/* ---------- Knöpfe ---------- */
.knopf {
  --k-bg: var(--rot); --k-fg: var(--weiss);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.5em; border: 0; border-radius: var(--rund);
  background: var(--k-bg); color: var(--k-fg); text-decoration: none;
  font-family: var(--eng); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform .25s var(--aus-quart), background-color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px oklch(0.3 0.15 27 / .55); }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf svg { width: 1.2em; height: 1.2em; flex: none; }
.knopf.hell { --k-bg: var(--weiss); --k-fg: var(--rot); }
.knopf.schwarz { --k-bg: var(--kohle); --k-fg: var(--weiss); }
.knopf.rand { --k-bg: transparent; --k-fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.knopf.klein { min-height: 44px; font-size: 1rem; padding: 0 1.15em; }

/* Chips (Filter, Auswahl) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 1.05em; border-radius: var(--rund); border: 2px solid currentColor;
  background: transparent; font-family: var(--eng); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  scroll-snap-align: start; transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.dunkel .chip[aria-pressed="true"] { background: var(--weiss); border-color: var(--weiss); color: var(--kohle); }
.rot .chip[aria-pressed="true"] { background: var(--weiss); border-color: var(--weiss); color: var(--rot); }

/* ---------- Hinweisleiste und Kopf ---------- */
.hinweis {
  background: var(--kohle); color: var(--text-hell-2); font-size: 0.8rem; line-height: 1.35; text-align: center;
  padding: calc(6px + var(--sicher-oben)) var(--rand) 6px;
}
.hinweis strong { color: var(--weiss); font-weight: 600; }
.kopf {
  position: sticky; top: 0; z-index: 50; height: var(--kopf-h);
  background: var(--rot); color: var(--weiss);
  display: flex; align-items: center; gap: var(--r2);
  padding: 0 calc(var(--rand) + var(--sicher-rechts)) 0 calc(var(--rand) + var(--sicher-links));
  transition: box-shadow .3s;
}
.kopf.gescrollt { box-shadow: 0 8px 30px -12px oklch(0.2 0.1 27 / .6); }
.kopf-siegel { position: relative; width: 74px; height: var(--kopf-h); flex: none; }
.kopf-siegel img {
  position: absolute; left: 0; top: 8px; width: 74px; height: 74px;
  filter: drop-shadow(0 6px 12px oklch(0.2 0.1 27 / .35));
  transition: transform .5s var(--aus-expo), width .4s var(--aus-quart), height .4s var(--aus-quart);
  transform-origin: 50% 30%;
}
.kopf.gescrollt .kopf-siegel img { width: 58px; height: 58px; top: 3px; }
@media (min-width: 900px) {
  .kopf-siegel { width: 104px; }
  .kopf-siegel img { width: 104px; height: 104px; top: 10px; }
  .kopf.gescrollt .kopf-siegel img { width: 66px; height: 66px; top: 5px; }
}
.kopf-nav { display: none; margin-left: var(--r2); gap: clamp(12px, 2vw, 28px); }
.kopf-nav a { font-family: var(--eng); font-weight: 700; font-size: 1.06rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 2px; position: relative; }
.kopf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--aus-quart); }
.kopf-nav a:hover::after, .kopf-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1100px) { .kopf-nav { display: flex; } }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kopf .knopf { min-height: 44px; font-size: 1rem; padding: 0 1.1em; }
.menue-knopf {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: oklch(1 0 0 / .14); color: var(--weiss);
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.menue-knopf svg { width: 24px; height: 24px; }
@media (min-width: 1100px) { .menue-knopf { display: none; } }

/* ---------- Blätter (Bottom Sheets, mobil) / Seitenpaneele (Desktop) ---------- */
.blatt-grund { position: fixed; inset: 0; z-index: 90; background: oklch(0.12 0.01 40 / .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.blatt-grund.offen { opacity: 1; pointer-events: auto; }
.blatt {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-height: min(88svh, 760px);
  background: var(--papier); color: var(--text); border-radius: 24px 24px 0 0;
  padding: 10px calc(var(--rand) + var(--sicher-rechts)) calc(24px + var(--sicher-unten)) calc(var(--rand) + var(--sicher-links));
  transform: translateY(105%); transition: transform .45s var(--aus-expo); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; visibility: hidden;
}
.blatt.offen { transform: none; visibility: visible; }
.blatt-griff { width: 44px; height: 5px; border-radius: 3px; background: oklch(0.2 0.01 40 / .25); margin: 4px auto 14px; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--r2); }
.blatt-zu { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--papier-2); display: grid; place-items: center; flex: none; }
.blatt-zu svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .blatt { left: auto; top: 0; bottom: 0; width: min(520px, 92vw); max-height: none; border-radius: 0; transform: translateX(105%); padding-top: 24px; }
  .blatt-griff { display: none; }
}
.menue-liste { list-style: none; margin: 0; padding: 0; }
.menue-liste a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; text-decoration: none; font-family: var(--slab); font-size: 1.7rem; text-transform: uppercase; border-bottom: 2px solid var(--papier-2); }
.menue-liste a svg { width: 22px; height: 22px; color: var(--rot); }

/* Bestellen-Blatt */
.bestell-filiale { border-top: 2px solid var(--papier-2); padding: var(--r3) 0; }
.bestell-filiale h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--eng); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.offen { color: oklch(0.52 0.14 150); }
.status.zu { color: var(--text-2); }
.dunkel .status.offen { color: oklch(0.8 0.16 150); }
.dunkel .status.zu { color: var(--text-hell-2); }
.bestell-wege { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Detailblatt Produkt ---------- */
.detail-buehne { position: relative; aspect-ratio: 1 / .82; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 15%, oklch(0.32 0.06 40), var(--kohle) 70%); margin: 0 0 var(--r3); touch-action: pan-y; }
.detail-buehne canvas, .detail-buehne img { position: absolute; inset: 6% 6% 10%; width: 88%; height: 84%; object-fit: contain; }
.detail-hinweis { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: var(--text-hell-2); font-family: var(--eng); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.preis-tabelle { width: 100%; border-collapse: collapse; margin: var(--r2) 0; font-variant-numeric: tabular-nums; }
.preis-tabelle th, .preis-tabelle td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--papier-2); }
.preis-tabelle td:last-child { text-align: right; font-family: var(--eng); font-weight: 800; font-size: 1.15rem; }
.klapp { border-top: 2px solid var(--papier-2); }
.klapp summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-family: var(--eng); font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.klapp summary::-webkit-details-marker { display: none; }
.klapp summary::after { content: "+"; font-family: var(--slab); font-size: 1.6rem; color: var(--rot); transition: transform .3s var(--aus-quart); }
.klapp[open] summary::after { transform: rotate(45deg); }
.klapp p, .klapp img { margin: 0 0 var(--r2); font-size: .95rem; color: var(--text-2); }

/* ---------- Einblenden ---------- */
.zeigen { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--aus-expo), transform .9s var(--aus-expo); }
.zeigen.da { opacity: 1; transform: none; }

/* ---------- Fuß ---------- */
.fuss { background: var(--kohle); color: var(--text-hell-2); padding: var(--abschnitt) var(--rand) calc(var(--r5) + var(--sicher-unten)); }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .zeigen { opacity: 1; transform: none; }
}

/* Detail: Inhaltsliste */
.detail-inhalt { list-style: none; margin: var(--r2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-inhalt li { font-family: var(--eng); font-weight: 700; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; background: var(--papier-2); border-radius: var(--rund); padding: 8px 14px; }

/* ============ FUSS ============ */
.fuss-raster { display: grid; gap: var(--r5) var(--r4); grid-template-columns: 1fr 1fr; }
.fuss-marke { grid-column: 1 / -1; }
.fuss-marke img { width: 110px; height: 110px; }
.fuss ul { list-style: none; margin: 12px 0 0; padding: 0; }
.fuss li a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss-app { margin: 12px 0 0; }
.fuss-unten { border-top: 1px solid oklch(1 0 0 / .1); margin-top: var(--r5); padding-top: var(--r3); font-size: .85rem; }
@media (min-width: 900px) { .fuss-raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .fuss-marke { grid-column: auto; } }
