/* Kompassnadel (24.11.2026, Probe 7): Ergebnis-Bildschirm nach dem Essensfoto.
   Klare Mittelachse: Foto, Ring, Einordnung, Gericht. Danach Lena, Summen, Positionen.
   Alles hat von Anfang an seinen Platz (Platzhalter), nichts verschiebt sich. Der ganze Bildschirm scrollt
   ohne sichtbare Leiste, „Eintragen“ steht immer unten. Farben aus dem Ernährungsbereich bzw. Frauen-Farbthema. */

/* ---------- Kompassnadel: Skala über 270°, frei stehend, keine Scheibe ---------- */
.kn { --kn-c: var(--nu, #5fcf8d); position: relative; width: 224px; max-width: 100%; margin: 0 auto; }
.kn[data-z='mid'], .lw[data-z='mid'] { --kn-c: var(--nu-c, #ffc15e); }
.kn[data-z='low'], .lw[data-z='low'] { --kn-c: var(--nu-f, #ff8a6a); }
.lw[data-z='ok'] { --kn-c: var(--nu, #5fcf8d); }
:where(:root[data-bereich='frauen']) :is(.kn, .lw)[data-z='mid'] { --kn-c: var(--a4); }
:where(:root[data-bereich='frauen']) :is(.kn, .lw)[data-z='low'] { --kn-c: var(--a1); }
.kn[data-z=''] { --kn-c: var(--muted); }
.kn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.kn-track, .kn-scan, .kn-val { fill: none; stroke-width: 8; stroke-linecap: round; }
.kn-track { stroke: var(--line); }
.kn-val { stroke: var(--kn-c); transition: stroke 300ms ease; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--kn-c) 35%, transparent)); }
.kn-scan { stroke: var(--nu, #5fcf8d); stroke-dasharray: 12 100; opacity: 0; }
.kn.search .kn-needle { animation: kn-tremble 110ms ease-in-out 500ms infinite alternate; }
@keyframes kn-tremble { from { transform: rotate(-136.6deg); } to { transform: rotate(-133.4deg); } }
@keyframes kn-scan { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -88; } }
.kn-ticks line { stroke: var(--muted); stroke-linecap: round; }
.kn-ts { stroke-width: 1.2; opacity: .4; } .kn-tb { stroke-width: 2; opacity: .75; }
.kn-needle { transform-origin: 110px 108px; transform-box: view-box; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.kn-n1 { fill: var(--kn-c); transition: fill 300ms ease; }
.kn-n2 { fill: color-mix(in srgb, var(--kn-c) 68%, #000); transition: fill 300ms ease; }
.kn-b1 { fill: var(--text-2); opacity: .35; } .kn-b2 { fill: var(--text-2); opacity: .55; }
.kn-hub { fill: var(--surface-solid); stroke: var(--kn-c); stroke-width: 2.5; transition: stroke 300ms ease; }
.kn-dot { fill: var(--kn-c); }
.kn-read { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; line-height: 1; pointer-events: none; }
.kn-num { font-size: 34px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.kn.hit .kn-val { animation: kn-hit 1.2s ease-out 1; }
@keyframes kn-hit { 40% { filter: drop-shadow(0 0 10px var(--kn-c)); } }

/* ---------- Bildschirm ---------- */
.lw { --lw-pad: 20px; position: relative; height: 100%; margin: 0 !important; display: flex; flex-direction: column; color: var(--text); }
.lw-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 12px var(--lw-pad) 24px; display: flex; flex-direction: column; }
.lw-scroll::-webkit-scrollbar { display: none; }
.lw-top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin-bottom: 10px; flex: none; }
.lw-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.lw-meal { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lw-meal button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lw-meal button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
/* Foto: sofort groß, ganz sichtbar, nichts darüber */
.lw-photo { width: 100%; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: var(--surface); flex: none; }
.lw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Mittelachse: Ring, Einordnung, Gericht */
.lw-score { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 10px; flex: none; }
.lw-zone { margin-top: 8px; min-height: 14px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--kn-c, var(--muted)); transition: color 300ms ease; }
.lw-dish { margin: 6px 0 0; min-height: 50px; max-width: 300px; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
/* Lena */
.lw-lena { margin-top: 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); height: 132px; box-sizing: border-box; flex: none; overflow: hidden; }
.lw-lena img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lw-lena small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--text); }
.lw-lena p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lw-why { border: 0; background: none; padding: 0; color: var(--kn-c, var(--nu)); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
/* Summen */
.lw-sums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; padding: 12px 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.lw-sums div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lw-sums div + div { border-left: 1px solid var(--line); }
.lw-sums b { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-sums div:first-child b { color: var(--nu); }
.lw-sums small { font-size: 11px; color: var(--muted); }
/* Positionen: alle sichtbar, keine eigene Schiebeleiste */
.lw-h { margin: 22px 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; flex: none; }
.lw-list { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.lw-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 78px; gap: 12px; align-items: center; min-height: 58px; padding: 9px 14px; box-sizing: border-box; }
.lw-row + .lw-row { border-top: 1px solid var(--line); }
.lw-row input[type='checkbox'] { width: 20px; height: 20px; margin: 0; accent-color: var(--nu); }
.lw-name { min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.lw-name b { display: block; font-size: 15px; font-weight: 650; line-height: 1.28; overflow-wrap: break-word; hyphens: auto; }
.lw-name small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lw-g { position: relative; }
.lw-g input { width: 100%; height: 38px; box-sizing: border-box; padding: 0 24px 0 8px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--text); font: inherit; font-size: 15px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.lw-g::after { content: 'g'; position: absolute; right: 9px; top: 50%; translate: 0 -50%; font-size: 13px; color: var(--muted); pointer-events: none; }
.lw-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 0 4px; flex: none; }
.lw-links button { border: 0; background: none; padding: 6px 0; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
/* Unten: ein breiter Knopf, immer an derselben Stelle */
.lw-foot { flex: none; padding: 12px var(--lw-pad) calc(14px + env(safe-area-inset-bottom)); background: var(--surface-solid); border-top: 1px solid var(--line); }
.lw-go { display: block; width: 100%; height: 54px; border-radius: 16px; border: 0; background: var(--nu-grad, var(--nu)); color: #062a1b; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: opacity 300ms ease; }
:where(:root[data-bereich='frauen']) .lw-go { color: #fff; }
.lw-go:disabled { opacity: .35; cursor: default; }

/* Platzhalter während der Analyse */
.lw-sk { display: block; border-radius: 7px; background: linear-gradient(90deg, var(--line) 0%, var(--line-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: lw-sk 1.6s ease-in-out infinite; }
@keyframes lw-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.lw-fill { animation: lw-fill 420ms var(--ease-out, ease-out) backwards; }
@keyframes lw-fill { from { opacity: 0; } }

/* Begründung „Warum 92?“ */
.lw-dlg { border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface-solid); color: var(--text); padding: 20px; width: min(360px, calc(100vw - 48px)); }
.lw-dlg::backdrop { background: rgba(3, 6, 14, .55); }
.lw-dlg h3 { margin: 0 0 4px; font-size: 17px; } .lw-dlg > p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.kn-bars { display: grid; gap: 12px; }
.kn-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; font-size: 13.5px; }
.kn-bar span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kn-bar u { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; text-decoration: none; }
.kn-bar u::before { content: ''; display: block; height: 100%; width: var(--w); background: var(--kn-c, var(--nu)); }

/* iPad: gleiche Mittelachse, alles etwas größer */
@media (min-width: 700px) {
  .lw { --lw-pad: 28px; }
  .kn { width: 290px; }
  .kn-num { font-size: 40px; }
  .lw-dish { font-size: 23px; max-width: 420px; min-height: 58px; }
  .lw-lena p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .kn *, .lw * { animation: none !important; transition: none !important; } }

/* Probe 7b: ohne Mahlzeit-Auswahl oben. Schließen-Knopf schwebt links oben, die Nadel beginnt ganz oben. */
.lw-xfix { position: absolute; top: 14px; left: 16px; z-index: 2; }
.lw-scroll { padding-top: 14px; }
.lw-score { padding-top: 0; }

/* Probe 7c: Warten = Radar-Schwenk über dem Foto und leise leuchtender Rand, die Nadel zittert auf 0, dann Ausschlag */
.lw-photo { position: relative; transition: box-shadow 600ms ease; }
/* Scan-Streifen: weiches Licht mit feiner heller Kante, fährt ruhig rauf und runter */
.lw-photo::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34%; opacity: 0; pointer-events: none; transition: opacity 400ms ease;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--nu) 8%, transparent) 55%, color-mix(in srgb, var(--nu) 30%, transparent) 92%, color-mix(in srgb, #fff 85%, var(--nu)) 98%, transparent 100%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--nu) 60%, transparent)); }
.lw.scanning .lw-photo::after { opacity: 1; animation: lw-scan 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes lw-scan { from { transform: translateY(-100%); } to { transform: translateY(196%); } }
@media (prefers-reduced-motion: reduce) { .lw.scanning .lw-photo::after { animation: none; opacity: .4; } }

/* Lena: Bild und Name in einer Zeile auf gleicher Höhe, Text darunter über die volle Breite */
.lw-lena { display: block; height: 142px; padding: 14px 16px; }
.lw-lena-h { display: flex; align-items: center; gap: 10px; height: 30px; }
.lw-lena-h img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.lw-lena-h b { font-size: 14.5px; font-weight: 750; color: var(--text); }
.lw-lena-h span { font-size: 12.5px; color: var(--muted); }
.lw-lena #lena { margin-top: 9px; }
.lw-lena p { -webkit-line-clamp: 3; }

/* ---------- Einbau in die App (24.11.2026) ---------- */
/* Ganzer Bildschirm, unter den normalen Pop-ups (Pop-ups für „Ändern“ und „Warum?“ liegen darüber) */
.lw-screen { position: fixed; inset: 0; z-index: 89; background: var(--surface-solid); animation: lw-in 220ms var(--ease-out, ease-out); }
.lw-screen.out { opacity: 0; transition: opacity 170ms ease; }
@keyframes lw-in { from { opacity: 0; } }
.lw-wrap { display: block !important; height: 100%; max-width: 620px; margin: 0 auto; padding: 0 !important; gap: 0 !important; }
html.lw-lock, html.lw-lock body { overflow: hidden; }
.lw-xfix svg { width: 16px; height: 16px; }
/* Text statt Foto („Lena rechnet es aus“): ruhige Fläche mit der Eingabe */
.lw-nophoto { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); }
.lw-nophoto span { color: var(--nu); } .lw-nophoto span svg { width: 26px; height: 26px; }
.lw-nophoto p { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.35; color: var(--text); }
/* Positionen abgewählt */
.lw-row.off { opacity: .45; }
/* Warum-Knopf in Lenas Text */
.lw-why { border: 0; background: none; padding: 0; color: var(--kn-c, var(--nu)); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lw-say p b { color: var(--text); font-weight: 650; }
/* Unsicher / Fehler: Eingabe und Knöpfe im Listenbereich */
.lw-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
.lw-ask .input { min-width: 0; }
.lw-askb { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; }
.lw-askb:first-child { padding-top: 12px; }
.lw-whysheet .kn-bars { --kn-c: var(--nu); }
.lw-lena .lw-say { margin-top: 9px; }

/* Jedes Gerät: Foto und Nadel wachsen mit der Bildschirmhöhe mit, damit Nadel, Foto, Lena und Summen
   auf kleinen wie großen Handys sauber in den ersten Bildschirm passen. iPad: alles größer. */
.lw-photo { aspect-ratio: auto !important; height: clamp(150px, 26dvh, 270px); }
.lw-score .kn { width: clamp(160px, 25.5dvh, 236px); }
@media (min-width: 700px) {
  .lw-photo { height: clamp(250px, 31dvh, 420px); }
  .lw-score .kn { width: clamp(220px, 24dvh, 290px); }
}

/* Spalten: auf Handy und iPad hochkant unsichtbar (alles untereinander) */
.lw-cola, .lw-colb { display: contents; }
/* Kleine iPhones (z. B. SE): etwas kompakter, damit die Summen nicht angeschnitten sind */
@media (max-width: 699px) and (max-height: 740px) {
  .lw-score .kn { width: 150px; }
  .lw-score { padding-bottom: 8px; }
  .lw-dish { font-size: 18px; min-height: 44px; }
  .lw-photo { height: 140px; }
  .lw-lena { height: 128px; padding: 12px 14px; }
  .lw-lena p { font-size: 13.5px; }
}
/* iPad quer und Desktop: zwei Spalten, links Nadel und Foto, rechts Lena, Summen und Liste */
@media (min-width: 900px) and (orientation: landscape) {
  .lw-wrap { max-width: 1000px; }
  .lw-scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; padding-top: 18px; }
  .lw-cola, .lw-colb { display: flex; flex-direction: column; min-width: 0; }
  .lw-cola .lw-score .kn { width: clamp(200px, 30dvh, 280px); }
  .lw-cola .lw-photo { height: clamp(200px, 38dvh, 440px); }
  .lw-colb .lw-lena { margin-top: 0; }
  .lw-foot { max-width: 1000px; margin: 0 auto; width: 100%; box-sizing: border-box; }
}
/* Gerichtsname: höchstens zwei Zeilen, feste Höhe, damit sich nichts verschiebt */
.lw-dish { height: 2.5em; min-height: 0 !important; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 24.11.2026 Fix: Lenas Text immer vollständig zeigen (vorher feste Höhe + 3 Zeilen, längere Urteile wurden abgeschnitten) */
.lw-lena { height: auto; min-height: 142px; overflow: visible; }
.lw-lena p { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ---------- 26.11.2026 Handy ruhiger (Manuel: Variante B gewählt; iPad bleibt) ----------
   Scan-Strich bleibt, Platzhalter still statt flimmernd, Nadel zittert beim Warten nicht,
   Nadel mittig und kleiner, Foto dafür größer. */
@media (max-width: 699px) {
  .lw-sk { animation: none; background: var(--line); opacity: .55; }
  .kn.search .kn-needle { animation: none; }
  .lw-score .kn { width: clamp(140px, 20dvh, 172px); }
  .lw-score .kn-num { font-size: 28px; }
  .lw-dish { font-size: 19px; }
  .lw-photo { height: clamp(170px, 30dvh, 300px); }
}

/* ---------- 26.11.2026 abends: Handy einpassen (Manuel: Nährwerte unten angeschnitten, etwas Luft) ----------
   Nadel und Foto rechnen mit der wirklich freien Höhe (ohne Statusleiste oben und Home-Balken unten),
   damit Nadel, Gericht, Foto, Lena und Nährwerte mit etwas Luft über dem Knopf in den ersten Bildschirm passen.
   441px = alle festen Teile (Abstände, Gericht, Lena, Nährwerte, Knopfleiste), 16px = Luft. */
@media (max-width: 699px) {
  .lw { --lw-hh: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        --lw-b: calc(var(--lw-hh) - 432px);
        --lw-n: clamp(126px, calc(var(--lw-b) * .47), 172px); }
  .lw-score .kn { width: var(--lw-n); }
  .lw-photo { height: clamp(125px, calc(var(--lw-b) - var(--lw-n) * .82), 300px); }
}
/* Kleine iPhones (SE): Lena-Karte etwas niedriger, damit auch dort die Nährwerte ganz sichtbar sind */
@media (max-width: 699px) and (max-height: 740px) { .lw-lena { min-height: 128px; } }

/* ---------- 26.11.2026 spät: Handy neu angeordnet (Manuel) ----------
   Oben Nadel + Gericht, Mitte großes (fast) quadratisches Foto, direkt darunter die Nährwerte.
   Darunter Erkannt-Liste, ganz unten Lena mit Erklärung und „Etwas fehlt? / Stimmt etwas nicht?“ als ein Block.
   Feste Größen: Foto und Nährwerte stehen immer an derselben Stelle. iPad unverändert. */
@media (max-width: 699px) {
  .lw { --lw-b: calc(var(--lw-hh) - 286px);
        --lw-n: clamp(126px, calc(var(--lw-b) * .34), 158px); }
  .lw-photo { height: clamp(150px, calc(var(--lw-b) - var(--lw-n) * .82), calc(100vw - 2 * var(--lw-pad))); border-radius: 24px; }
  .lw-score { order: 1; }
  .lw-photo { order: 2; }
  .lw-sums { order: 3; margin-top: 12px; padding: 14px 0 13px; border-radius: 20px; }
  .lw-sums b { font-size: 18px; letter-spacing: -.01em; }
  .lw-sums small { font-size: 11.5px; letter-spacing: .02em; }
  .lw-h { order: 4; }
  .lw-list { order: 5; }
  .lw-lena { order: 6; margin-top: 22px; min-height: 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .lw-links { order: 7; position: relative; margin-top: 0; padding: 6px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
  .lw-links::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); }
  .lw-links button { color: var(--nu); }
}
@media (max-width: 699px) and (max-height: 740px) { .lw-lena { min-height: 0; } }

/* ---------- 26.11.2026 Nacht: Manuel wählt Foto 5:4, Nadel größer, Ansicht endet mit den Nährwerten ----------
   296px = feste Teile (Abstände, Gericht, Nährwerte, Luft, Knopfleiste). Foto immer 5:4, Nadel nimmt den Rest (126–200px). */
@media (max-width: 699px) {
  .lw { --lw-fw: calc(100vw - 2 * var(--lw-pad));
        --lw-av: calc(var(--lw-hh) - 296px);
        --lw-n: clamp(126px, calc((var(--lw-av) - var(--lw-fw) * .8) / .82), 200px); }
  .lw-photo { height: min(calc(var(--lw-fw) * .8), calc(var(--lw-av) - var(--lw-n) * .82)) !important; }
  .lw-sums { margin-top: 14px; }
  .lw-h { margin-top: 26px; }
}
/* Restliche Höhe (große Handys) oben einfügen statt unten: Ansicht endet immer ca. 20px unter den Nährwerten,
   die Liste beginnt erst unterhalb der Knopfleiste. */
@media (max-width: 699px) {
  .lw { --lw-n: clamp(126px, calc((var(--lw-av) - var(--lw-fw) * .8) / .82), 214px);
        --lw-ph: min(calc(var(--lw-fw) * .8), calc(var(--lw-av) - var(--lw-n) * .82));
        --lw-ex: max(0px, calc(var(--lw-av) - var(--lw-n) * .82 - var(--lw-ph))); }
  .lw-photo { height: var(--lw-ph) !important; }
  .lw-score { margin-top: var(--lw-ex); }
  .lw-h { margin-top: 30px; }
}

/* ---------- 26.11.2026 Nacht: Fassung „B ruhig“ (Manuel freigegeben) – nur Handy ----------
   Warten: keine Platzhalter-Balken, „Lena analysiert …“ genau an der Stelle des späteren Namens.
   Name: fester Platz (2 Zeilen), 17 px halbfett, natürlicher Umbruch (lange Zeile oben); sehr lange Namen kleiner (JS fitDish).
   Abstände rundherum gleich: Seitenrand 20 px, Foto→Nährwerte 20 px, Nährwerte→Knopfleiste 20 px. */
@media (max-width: 699px) {
  .lw { --lw-av: calc(var(--lw-hh) - 290px); }
  .lw-sums { margin-top: 20px; }
  .lw-dish { position: relative; display: flex !important; align-items: center; justify-content: center; overflow: visible !important; -webkit-line-clamp: unset !important;
             font-size: 17px; font-weight: 600; text-wrap: pretty !important; }
  .lw-dish > .lw-fill { display: block; line-height: 1.22; text-wrap: pretty; }
  .lw.scanning .lw-dish > * { visibility: hidden; }
  .lw.scanning .lw-zone { visibility: hidden; }
  .lw.scanning .lw-dish::before { content: attr(data-wait); position: absolute; font-size: 16px; font-weight: 500; letter-spacing: .005em; color: var(--text-2); }
}

/* ---------- 26.11.2026 nach Live-Test (Manuel): Ring hoch, Foto um denselben Betrag höher ----------
   Die Ring-Grafik hat oben 21 px leeren Rand → Ring hochziehen, bis er oben bündig mit dem Schließen-Kreuz ist.
   Ringgröße bleibt wie bisher (gerechnet mit der alten Höhe), das Foto bekommt die gewonnenen 21 px (höchstens quadratisch). */
@media (max-width: 699px) {
  .lw { --lw-av0: calc(var(--lw-hh) - 290px);
        --lw-n: clamp(126px, calc((var(--lw-av0) - var(--lw-fw) * .8) / .82), 214px);
        --lw-av: calc(var(--lw-hh) - 274px);
        --lw-ph: min(var(--lw-fw), calc(var(--lw-av) - var(--lw-n) * .82)); }
  .lw-score { margin-top: 0 !important; }
  .lw-score .kn { margin-top: -16px; }
}
