/* PLANBAR Foodlab, Gerichtsweg und Labor-Start (16.10.2026). Farben und Schrift aus app.css (FOODLAB-CI).
   Jede Seite fuellt genau den Bildschirm; reicht der Platz nicht, scrollt nur die Buehne, nie die ganze Seite. */

/* Solange der Weg sichtbar ist, steht die Seite darunter still */
body:has(#entwickeln:not([hidden]) .weg) { overflow: hidden; overscroll-behavior: none; }

.weg { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--grund);
  padding: env(safe-area-inset-top) 14px calc(12px + env(safe-area-inset-bottom));
  background-image: linear-gradient(var(--linie) 1px, transparent 1px), linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 48px 48px; }
@media (min-width: 720px) { .weg { padding-left: calc(50vw - 300px); padding-right: calc(50vw - 300px); } }

.weg-kopf { flex: none; padding-top: 8px; }
.weg-phasen { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.weg-phasen li { flex: 1; min-width: 0; padding-top: 7px; border-top: 3px solid var(--linie-stark); font: 700 9.5px/1 var(--kopf); letter-spacing: .1em;
  text-transform: uppercase; color: var(--leise); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .3s, color .3s; }
.weg-phasen li.erledigt { border-top-color: var(--mess); }
.weg-phasen li.jetzt { border-top-color: var(--akzent); color: var(--text); }
.weg-titelzeile { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.weg-titel { flex: 1; min-width: 0; }
.weg-kicker { margin: 0; font: 700 11px/1.2 var(--kopf); letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); }
.weg-h { margin: 4px 0 0; font: 800 clamp(22px, 6.8vw, 28px)/1.05 var(--kopf); letter-spacing: .02em; text-transform: uppercase; }
.weg-klein { flex: none; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--linie-stark); background: transparent; color: var(--leise);
  font: 700 11px/1 var(--kopf); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; }
.weg-zu { font-size: 22px; letter-spacing: 0; }

.weg-buehne { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 0 8px; -webkit-overflow-scrolling: touch; }
.weg-inhalt { min-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.weg-inhalt > h3.abschnitt { display: none; } /* der Seitentitel sagt es schon */
.weg-inhalt .kasten { margin: 0; padding: 12px 14px; }
.weg-inhalt .kasten h4 { margin-top: 0; }
.weg-inhalt ul, .weg-inhalt ol { margin-top: 6px; margin-bottom: 0; }
.weg-inhalt .zeile-knoepfe { flex-wrap: wrap; }
.weg-inhalt .teller span { position: relative; }

.weg-fuss { flex: none; display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid var(--linie); }
.weg-fuss .knopf { flex: 1; min-height: 54px; font-size: 13px; position: relative; overflow: hidden; cursor: pointer; }
.weg-fuss .knopf:disabled { opacity: .35; cursor: default; }
.weg-warten { flex: 1; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--mess);
  color: var(--mess); font: 700 12px/1 var(--kopf); letter-spacing: .1em; text-transform: uppercase; }
.weg-oszi { width: 80px; height: 24px; }
.weg-oszi path { fill: none; stroke: var(--mess); stroke-width: 1.5; }

/* Tippflaechen im Weg: am Handy mindestens 44 px */
.weg .wahl, .weg .dazu, .weg select, .weg input, .weg .knopf { min-height: 44px; }
.weg-ring { position: absolute; border-radius: 50%; border: 1px solid var(--akzent); pointer-events: none; }
.weg button { position: relative; overflow: hidden; }

.weg-stempel { position: absolute; left: 50%; top: 46%; z-index: 2; display: none; padding: 8px 16px; border: 3px solid var(--mess); background: rgba(22, 35, 39, .88);
  color: var(--mess); font: 800 24px/1 var(--kopf); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%) rotate(-6deg); }
.weg-stempel.an { display: block; }

/* Kurzzeitmesser in den Kochseiten */
.weg-uhr { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 6px; min-height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--mess);
  background: transparent; color: var(--mess); font: 700 12px/1 var(--kopf); letter-spacing: .06em; cursor: pointer; font-variant-numeric: tabular-nums; }
.weg-uhr svg { width: 28px; height: 28px; }
.weg-uhr .grund { fill: none; stroke: var(--linie-stark); stroke-width: 3; }
.weg-uhr .ring { fill: none; stroke: var(--mess); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.weg-uhr.laeuft { background: var(--mess-leise, rgba(86, 247, 156, .14)); }
.weg-uhr.fertig { border-color: var(--akzent); color: var(--akzent); }

/* Weg wieder einschalten aus der Liste */
.weg-zurueck { margin: 0 0 12px; }

/* Labor-Start (Molekuel): einmal je Sitzung, Antippen ueberspringt */
.labor-start { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--grund); cursor: pointer; }
.labor-start svg { width: min(78vw, 360px); height: auto; overflow: visible; }
.labor-start .knoten { fill: var(--mess); }
.labor-start .bindung { stroke: var(--mess); stroke-width: 1.2; stroke-opacity: .7; }
.labor-start .marke { font: 800 34px/1 var(--kopf); letter-spacing: .08em; fill: var(--text); text-anchor: middle; text-transform: uppercase; }
.labor-start .marke tspan.lab { fill: var(--akzent); }
.labor-start .kennung { font: 700 10px/1 var(--kopf); letter-spacing: .2em; fill: var(--mess); text-anchor: middle; }

@media (prefers-reduced-motion: reduce) { .weg-uhr .ring { transition: none; } }

/* kleine Handys (zum Beispiel 375 x 667): Titel und Knoepfe etwas enger, damit die Seiten ohne Scrollen auskommen */
@media (max-height: 700px) {
  .weg-titelzeile { margin-top: 8px; }
  .weg-h { font-size: 20px; }
  .weg-klein { height: 40px; }
  .weg-fuss .knopf, .weg-warten { min-height: 48px; }
  .weg-inhalt { gap: 8px; }
  .weg-inhalt .kasten { padding: 10px 12px; }
}

/* Start (16.10.2026): Saisonkacheln ohne Zutat, Vorschlaege zur ersten Zutat */
.start-saison .chips { margin-bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.start-saison .chips::-webkit-scrollbar { display: none; }
.start-saison .chip { flex: none; min-height: 40px; }
.start-saison .chip[aria-pressed="true"] { border-color: var(--akzent); color: var(--akzent); }
.saison-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 8px; min-height: 242px; } /* Platz vorhalten: die Kacheln kommen erst nach dem Aufteilen der Seiten */
.saison-kachel { min-height: 58px; padding: 8px 6px; border: 1px solid var(--linie-stark); background: var(--flaeche-2); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; cursor: pointer; }
.saison-kachel b { font: 700 13px/1.15 var(--kopf); letter-spacing: .03em; }
.saison-kachel small { font-size: 10px; color: var(--mess); line-height: 1.2; }
.saison-mehr { grid-column: 1 / -1; min-height: 44px; border: 1px dashed var(--linie-stark); background: transparent; color: var(--leise);
  font: 700 11px/1 var(--kopf); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.saison-kacheln > p { grid-column: 1 / -1; }
.passt-dazu .passt-zeile { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; padding: 6px 0; border-top: 1px dashed var(--linie); }
.passt-dazu .passt-zeile:first-of-type { border-top: 0; }
.passt-dazu .passt-zeile small { padding-top: 10px; font: 700 10px/1.2 var(--kopf); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); }
.passt-dazu .vorschlag { margin-top: 0; }
.passt-dazu .dazu { min-height: 40px; }

/* Tellerplan auf "Auf den Teller" (16.10.2026) */
.teller-plan svg { width: 100%; max-width: 300px; max-height: 250px; display: block; margin: 0 auto; overflow: visible; }
.teller-plan .t-schatten { fill: rgba(0, 0, 0, .45); }
.teller-plan .t-fahne { fill: #e9e6dc; }
.teller-plan .t-spiegel { fill: #f6f4ee; }
.teller-plan .t-zone ellipse { stroke-width: 1.5; }
.teller-plan .z-vorne ellipse { fill: rgba(243, 86, 46, .28); stroke: var(--akzent); }
.teller-plan .z-beilage ellipse { fill: rgba(200, 196, 176, .45); stroke: #9a957f; }
.teller-plan .z-gemuese ellipse { fill: rgba(86, 247, 156, .28); stroke: #2f9a5a; }
.teller-plan .z-garnitur ellipse { fill: rgba(86, 247, 156, .18); stroke: #2f9a5a; stroke-dasharray: 3 3; }
.teller-plan .z-sauce ellipse { fill: rgba(122, 61, 30, .55); stroke: #5a2e1a; }
.teller-plan .z-separat ellipse { fill: #f6f4ee; stroke: #9a957f; }
.teller-plan text { font: 700 11px/1 var(--kopf); fill: #162327; text-anchor: middle; letter-spacing: .02em; }
.teller-plan .t-gast { font-size: 9px; letter-spacing: .2em; fill: var(--leise); }
.teller-plan .t-offen { margin: 6px 0 0; text-align: center; }
