/* Feinschliff 20.10.2026: Abstände und Überlappungen, die auf Handy und Tablet aufgefallen sind */

/* Pop-ups: Die erste Zeile (Überschrift/Eyebrow) ist so hoch wie das Schließen-X und lässt rechts Platz,
   damit nichts darunter liegt (z. B. Mahlzeit-Chips „Abendessen“ in der Suche) */
.sheet > .nu-sheet > .eyebrow:first-child, .sheet > .nu-sheet > div > .eyebrow:first-child, .sheet .nu-addsheet .eyebrow:first-child { min-height: 38px; display: flex; align-items: center; padding-right: 50px; margin-top: 0; }
.sheet > .nu-sheet > h2:first-child, .sheet > div > h2:first-child, .sheet .nu-sheet > .h2:first-child { padding-right: 48px; }
.sheet .nu-mealsel { margin-top: 6px; }

/* Einspaltige Raster dürfen nicht breiter als der Bildschirm werden (z. B. Tagesplan: Karte „Frag die Spezialisten“ ragte 4 px raus) */
.split > *, .grid > *, .stack > * { min-width: 0; }
@media (max-width: 1080px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Gewicht (Körper & Gewicht): Trend, Zielkurs, klare Aussage */
.wx { display: flex; flex-direction: column; gap: 14px; }
.wx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wx-now small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wx-now b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.wx-now em { font-style: normal; font-size: 18px; color: var(--muted); font-weight: 700; }
.wx-chips { display: flex; gap: 8px; }
.wx-chip { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 84px; }
.wx-chip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.wx-chip small { font-size: 11px; color: var(--muted); }
.wx-chip.good { background: rgba(95,224,176,.1); border-color: rgba(95,224,176,.3); }
.wx-chip.good b { color: #5fe0b0; }
.wx-chip.bad { background: rgba(255,170,90,.1); border-color: rgba(255,170,90,.3); }
.wx-chip.bad b { color: #ffb36b; }
.wx-chart { position: relative; padding-left: 34px; }
.wx-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.wx-line { fill: none; stroke: #5fe0b0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wx-goal { stroke: rgba(255,255,255,.45); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.wx-dots circle { fill: rgba(255,255,255,.35); }
.wx-end { fill: #5fe0b0; stroke: var(--bg); stroke-width: 3; vector-effect: non-scaling-stroke; }
.wx-y { position: absolute; left: 0; top: 0; bottom: 18px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wx-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.wx-leg { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.wx-leg i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.wx-leg i.l { width: 14px; height: 3px; border-radius: 2px; background: #5fe0b0; }
.wx-leg i.d { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.wx-leg i.g { width: 14px; border-top: 2px dashed rgba(255,255,255,.5); }
.wx-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: rgba(95,224,176,.08); border: 1px solid rgba(95,224,176,.25); }
.wx-msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #5fe0b0; }
.wx-msg.mid { background: rgba(124,196,255,.08); border-color: rgba(124,196,255,.25); }
.wx-msg.mid svg { color: #7cc4ff; }
.wx-msg.warn { background: rgba(255,170,90,.08); border-color: rgba(255,170,90,.28); }
.wx-msg.warn svg { color: #ffb36b; }
.wx-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 12px; }
.wx-meta span { display: flex; flex-direction: column; gap: 2px; }
.wx-meta small { font-size: 11px; color: var(--muted); }
.wx-meta b { font-size: 15px; font-variant-numeric: tabular-nums; }
.wx-log summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 0 2px; font-weight: 700; font-size: 14px; }
.wx-log summary::-webkit-details-marker { display: none; }
.wx-log summary em { font-style: normal; font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.wx-empty { display: flex; gap: 12px; align-items: flex-start; }
.wx-empty svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.wx-empty b { display: block; font-size: 18px; }
.wx-empty span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Gewicht: Umschalter Morgens / Tagsüber / Abends, saubere Linie, genaue Skala */
.wx-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wx-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.wx-seg button svg { width: 15px; height: 15px; }
.wx-seg button em { font-style: normal; font-size: 11px; opacity: .6; }
.wx-pane[hidden] { display: none; }
.wx-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.wx-ph b { font-size: 20px; font-variant-numeric: tabular-nums; }
.wx-ph span { font-size: 12px; color: var(--muted); }
.wx-chart { padding-left: 40px; padding-right: 6px; }
.wx-plot { position: relative; height: 180px; }
.wx-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wx-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wx-grid.v { stroke: rgba(255,255,255,.05); }
.wx-line { fill: none; stroke: #5fe0b0; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wx-end { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #5fe0b0; box-shadow: 0 0 0 3px var(--bg-2, #0a1122), 0 0 12px rgba(95,224,176,.6); }
.wx-y { position: absolute; left: -40px; top: 0; bottom: 0; width: 34px; }
.wx-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wx-x { position: relative; height: 18px; margin-top: 6px; }
.wx-x span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.wx-x span:first-child { transform: none; }
.wx-x span:last-child { transform: translateX(-100%); }
.wx-none { margin: 6px 0; padding: 18px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }

/* Gutscheincode im Angebots-Fenster (nur sichtbar, wenn im Admin ein Code aktiv ist) */
.of-code { margin: 4px 0 12px; }
.of-code summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.of-code summary::-webkit-details-marker { display: none; }
.of-code[open] summary { margin-bottom: 8px; }
.of-code input { text-transform: uppercase; letter-spacing: .06em; }
