/* Meine Rezepte – Gestaltung (keine Inline-Styles nötig, CSP: style-src 'self') */
:root {
  color-scheme: light;
  --bg: #efe8d8; --surface: #fffdf7; --surface-2: #e6dcc4; --border: #ddccae;
  --text: #2b2116; --text-muted: #6e5c45; --accent: #a9781f; --accent-strong: #6b4423;
  --star: #c98a1b; --star-empty: #d8cab0; --chip-new-bg: #e9dfc4; --chip-new-text: #6b4423;
  --chip-active-text: #fff8ec; --fehler: #9b2c1f; --fehler-bg: #f6ddd6;
  --serif: Iowan Old Style, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1c1712; --surface: #26201a; --surface-2: #302820; --border: #43392c;
    --text: #f2e9d8; --text-muted: #b8a88f; --accent: #e0ac35; --accent-strong: #c98a4b;
    --star: #e0ac35; --star-empty: #4a3f31; --chip-new-bg: #3a2f22; --chip-new-text: #e0ac35;
    --chip-active-text: #1c1712; --fehler: #f0a090; --fehler-bg: #3a221c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0 20px 40px; -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
code { font-size: 0.92em; }
h1 { font-family: var(--serif); font-weight: 600; color: var(--accent-strong); letter-spacing: -0.01em; text-wrap: balance; }
.inline { display: inline; margin: 0; }
.klein { font-size: 12.5px; color: var(--text-muted); }
.js .nur-js-aus { display: none; }
html:not(.js) .nur-js { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Kopf- und Fusszeile ---------- */
.kopfzeile {
  max-width: 1080px; margin: 0 auto; padding: 16px 0 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.marke { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--accent-strong); font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.nav .nav-name { color: var(--text-muted); font-weight: 500; }
.bereich { max-width: 1080px; margin: -6px auto 16px; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 5px; scrollbar-width: none; }
.bereich::-webkit-scrollbar { display: none; }
.bereich a { flex-shrink: 0; text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.bereich a:hover { background: var(--surface-2); color: var(--accent-strong); }
.bereich a[aria-current="page"] { background: var(--accent-strong); color: var(--chip-active-text); }
.abmelde-hinweis { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(520px, calc(100vw - 32px));
  background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 12px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.fusszeile { max-width: 1080px; margin: 40px auto 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.meldungen { max-width: 1080px; margin: 0 auto 14px; }
.meldung { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: var(--chip-new-bg); color: var(--chip-new-text); font-size: 14px; }
.meldung.fehler { background: var(--fehler-bg); color: var(--fehler); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 8px; min-height: 38px;
  text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; border: 1px solid var(--accent-strong);
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--accent-strong); color: #fff8ec; }
.btn-outline { background: transparent; color: var(--accent-strong); }
.btn-outline:hover, .btn-ghost:hover { background: var(--surface-2); }
.btn-ghost { background: none; border-color: var(--border); color: var(--text-muted); font-weight: 500; }
.btn.breit { width: 100%; }
.klein-btn { font-size: 12px; padding: 5px 9px; min-height: 30px; }
.btn:focus-visible, .link-btn:focus-visible, a:focus-visible, .chip:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-btn { background: none; border: none; padding: 4px 2px; font: inherit; font-size: 14px; color: var(--accent-strong); text-decoration: underline; cursor: pointer; }

/* ---------- Sterne ---------- */
.stars-static { position: relative; display: inline-block; line-height: 1; font-size: 15px; letter-spacing: 1px; color: var(--star-empty); white-space: nowrap; }
.stars-static.gross { font-size: 22px; }
.stars-static::before { content: "★★★★★"; }
.stars-static > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 0; color: var(--star); }
.stars-static > span::before { content: "★★★★★"; }
.w-10 > span { width: 10%; } .w-20 > span { width: 20%; } .w-30 > span { width: 30%; } .w-40 > span { width: 40%; }
.w-50 > span { width: 50%; } .w-60 > span { width: 60%; } .w-70 > span { width: 70%; } .w-80 > span { width: 80%; }
.w-90 > span { width: 90%; } .w-100 > span { width: 100%; }
.rating-line { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.rating-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
/* Eingabe: Knöpfe im HTML 5→1, Anzeige umgekehrt; Hover färbt den Stern und alle links davon */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input button { background: none; border: none; padding: 2px; cursor: pointer; line-height: 1; font-size: 32px; color: var(--star-empty); transition: color 0.1s, transform 0.1s; }
.star-input button.on { color: var(--star); }
.star-input:hover button { color: var(--star-empty); }
.star-input button:hover, .star-input button:hover ~ button { color: var(--star); }
.star-input button:hover { transform: scale(1.12); }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea, .field select, .plan-controls input[type="datetime-local"], .search-input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; /* 16px: kein Zoom auf iPhone */
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .search-input:focus, .plan-controls input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-feld { font-size: 22px !important; letter-spacing: 0.25em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Karten / schmale Seiten ---------- */
.karte { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.schmal { max-width: 460px; margin: 10px auto 0; }
.formular h1 { font-size: 28px; margin: 0 0 14px; }
.formular p { line-height: 1.5; }
.anleitung { padding-left: 20px; line-height: 1.5; margin: 0 0 10px; }
.qr { display: block; margin: 6px auto 10px; background: #fff; border-radius: 8px; width: 220px; height: 220px; }
.geheim { word-break: break-all; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 14px; }
.angaben dt { color: var(--text-muted); }
.angaben dd { margin: 0; font-weight: 600; }
.stapel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.fehlerseite { text-align: center; padding-top: 30px; }
.fehlercode { font-family: var(--serif); font-size: 64px; color: var(--star-empty); margin: 0; line-height: 1; }

/* ---------- Übersicht ---------- */
.page { max-width: 1080px; margin: 0 auto; display: flex; align-items: flex-start; gap: 26px; }
.sidebar { width: 264px; flex-shrink: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.panel h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.filter-group { margin-bottom: 14px; }
.filter-group:last-of-type { margin-bottom: 0; }
.filter-group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); padding: 6px 11px; border-radius: 100px; cursor: pointer; font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.chip .count { font-variant-numeric: tabular-nums; opacity: 0.75; }
.chip[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--chip-active-text); }
.reset-btn { margin-top: 12px; color: var(--accent-strong); background: none; border: none; font: inherit; font-size: 12.5px; padding: 0; cursor: pointer; text-decoration: underline; }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; font-size: 13.5px; padding: 6px 8px; border-radius: 6px; }
.toc-list a:hover { background: var(--surface-2); }
.toc-sterne { color: var(--star); font-size: 12px; white-space: nowrap; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary h3 { margin: 0; }
details.panel > summary .chev { color: var(--text-muted); transition: transform 0.15s; }
details.panel[open] > summary { margin-bottom: 10px; }
details.panel[open] > summary .chev { transform: rotate(180deg); }
.active-count { font-size: 11px; font-weight: 700; color: var(--chip-active-text); background: var(--accent-strong); border-radius: 100px; padding: 1px 7px; margin-left: 6px; }
.hauptteil { flex: 1; min-width: 0; }
.page-header { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.page-header h1 { font-size: clamp(28px, 5vw, 38px); margin: 0; }
.subtitle { color: var(--text-muted); font-size: 15px; margin: 0; max-width: 62ch; line-height: 1.45; }
.meta-row { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.meta-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.card-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card h2 { font-family: var(--serif); font-size: 22px; margin: 0; line-height: 1.2; text-wrap: balance; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.status { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; background: var(--chip-new-bg); color: var(--chip-new-text); white-space: nowrap; text-decoration: none; }
.desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 100px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .value { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent-strong); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.stat .label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-footer .btn { padding: 8px 11px; gap: 6px; }
.added { font-size: 12px; color: var(--text-muted); width: 100%; text-align: right; }
.empty-state { background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 30px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ---------- Rezeptseite ---------- */
.rezeptseite { max-width: 1000px; margin: 0 auto; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--accent-strong); font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.rezept-kopf { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.rezept-kopf h1 { font-size: clamp(30px, 6vw, 42px); margin: 0; }
.untertitel { margin: 0; color: var(--text-muted); font-size: 16px; font-style: italic; max-width: 70ch; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bewertung-box { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.bewertung-box .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.bewertung-box .meine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.bewertung-box .wer, .bewertung-box .offline { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); margin: 0; }
.bewertung-box .wer span + span::before { content: " · "; }
.meta-leiste { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--accent-strong); color: #fff8ec; border-radius: 10px; overflow: hidden; }
.meta-leiste div { padding: 9px 12px; text-align: center; border-left: 1px solid rgba(255, 248, 236, 0.35); }
.meta-leiste div:first-child { border-left: none; }
.meta-leiste .l { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.meta-leiste .v { display: block; font-size: 14px; margin-top: 2px; }
.stats-zeile { display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 14px 2px; }
.stats-zeile .stat .value { font-size: 22px; }
.spalten { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.karte h2 { font-family: var(--serif); font-size: 22px; color: var(--accent-strong); margin: 0 0 12px; }
h3.gruppe { font-size: 13px; font-weight: 700; color: var(--accent-strong); margin: 16px 0 6px; }
h3.gruppe:first-of-type { margin-top: 0; }
.abstand { margin-top: 16px !important; }
.vor-liste { margin: -4px 0 6px; }
table.zutaten { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.zutaten td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.zutaten tr:last-child td { border-bottom: none; }
table.zutaten td.menge { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; width: 1%; }
.karte .klein { line-height: 1.5; margin: 6px 0 0; }
.zeitplan p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; }
ol.schritte { list-style: none; margin: 0; padding: 0; }
ol.schritte li { display: grid; grid-template-columns: 30px 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
ol.schritte li:last-child { border-bottom: none; }
.nr { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-strong); color: #fff8ec; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.zeit { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--accent-strong); font-variant-numeric: lining-nums tabular-nums; line-height: 1.2; }
.zeit small { display: block; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 11px; font-weight: 500; color: var(--text-muted); }
.schritt-text { font-size: 15px; line-height: 1.55; }
.tipps { margin-top: 22px; }
.tipps ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.tipps li { font-size: 14.5px; line-height: 1.5; }
#kommentare { margin-top: 22px; scroll-margin-top: 16px; }
.kommentar-form { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.kommentar-liste { display: flex; flex-direction: column; gap: 8px; }
.comment-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; }
.comment-item .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px; }
.comment-item .meta strong { color: var(--text); }
.comment-item p { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.leer { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Verwaltung ---------- */
.breit-seite { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.breit-seite h1 { margin: 0; font-size: 32px; }
.zeile-form { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; }
.zeile-form .field { flex: 1 1 200px; }
.zeile-form > div:last-child { margin-bottom: 14px; }
.tabelle-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.liste { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.liste th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.liste td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.aktionen-zelle { display: flex; flex-wrap: wrap; gap: 4px; }
.warn { color: var(--fehler); font-weight: 600; }
.hinweis-box { border-color: var(--accent); }
.startpasswort code { font-size: 22px; letter-spacing: 0.05em; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; display: inline-block; user-select: all; }
.ereignisse { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.zeit-klein { color: var(--text-muted); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Neue Rezepte: Maske, Generator, Aufträge ---------- */
.neu-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.herkunft { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.rezept-maske { max-width: 860px; }
.rezept-maske .subtitle { max-width: none; }
.maske { display: flex; flex-direction: column; gap: 18px; }
.maske fieldset { margin: 0; min-width: 0; }
.maske legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--accent-strong); }
.maske legend + * { clear: both; }
.field textarea.kurz { min-height: 70px; }
.field textarea.mittel { min-height: 96px; }
.feld-titel { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 0 0 6px; display: block; }
.ankreuz-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.ankreuz { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 6px 0; cursor: pointer; }
.ankreuz input { width: 18px; height: 18px; accent-color: var(--accent-strong); flex-shrink: 0; margin: 0; }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.zutatengruppe { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.schritt-liste { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.schritt-zeile { border-top: 1px solid var(--border); padding: 12px 0 8px; }
.schritt-kopf { display: grid; grid-template-columns: 110px 1fr; gap: 0 12px; }
.masken-aktionen { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 1; }
.fehler-box { border-color: var(--fehler); background: var(--fehler-bg); color: var(--fehler); border-radius: 12px; padding: 14px 18px; border: 1px solid var(--fehler); }
.fehler-box h2, .fehler-box h3 { color: var(--fehler); margin: 0 0 6px; font-size: 18px; font-family: var(--serif); }
.fehler-box ul { margin: 0; padding-left: 20px; line-height: 1.5; font-size: 14px; }
.fehler-box .klein { color: var(--fehler); }
.angaben dd.normal { font-weight: 400; }
.status-marke { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 100px; background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.status-marke.s-offen { background: var(--chip-new-bg); color: var(--chip-new-text); }
.status-marke.s-vorschlag { background: var(--accent-strong); color: var(--chip-active-text); }
.weg h2 { display: flex; align-items: center; gap: 10px; }
.weg-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-strong); color: #fff8ec; font: 700 14px/1 -apple-system, "Segoe UI", Roboto, sans-serif; display: grid; place-items: center; flex-shrink: 0; }
.zitat { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-style: italic; line-height: 1.5; }
.field textarea.prompt-feld { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; }
.kopiert { margin-left: 8px; color: var(--accent-strong); font-weight: 600; }
.vorschlag-box { border: 2px solid var(--accent); margin-bottom: 18px; }
.vorschlag-box p { line-height: 1.5; margin: 0 0 8px; }
.verwerfen { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.verwerfen > summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); padding: 4px 0; }
.verwerfen form { margin-top: 10px; }
.quellen { margin-top: 22px; }
.quellen ul { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 14.5px; }
.quellen a { color: var(--accent-strong); overflow-wrap: anywhere; }

/* ---------- Dialog (Backplan) ---------- */
dialog.rz-dialog { border: none; border-radius: 14px; padding: 0; width: min(540px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--surface); color: var(--text); }
dialog.rz-dialog::backdrop { background: rgba(20, 14, 8, 0.5); }
.dialog-inner { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.dialog-inner h3 { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--accent-strong); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.plan-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-controls input[type="datetime-local"] { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--surface-2); color: var(--text-muted); border: none; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent-strong); color: var(--chip-active-text); font-weight: 600; }
.plan-list { display: flex; flex-direction: column; gap: 2px; }
.plan-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.plan-day:first-child { padding-top: 0; }
.plan-row { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 6px 0; }
.plan-row.key { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; margin: 0 -8px; }
.plan-row .time { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--accent-strong); font-variant-numeric: lining-nums tabular-nums; }
.plan-row .what { font-size: 14px; font-weight: 600; }
.plan-row .hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin-top: 1px; }
.plan-note { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* ---------- Handy / Tablet ---------- */
@media (max-width: 860px) {
  .spalten { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding: 0 16px 32px; }
  .page { flex-direction: column; gap: 16px; }
  .hauptteil { display: contents; }
  .page-header { order: 0; margin-bottom: 0; padding-bottom: 14px; }
  .sidebar { order: 1; width: 100%; position: static; gap: 12px; }
  .grid { order: 2; }
  .empty-state { order: 3; }
  .toc-panel { display: none; }
  .meta-leiste { grid-template-columns: repeat(2, 1fr); }
  .meta-leiste div:nth-child(3) { border-left: none; }
  .meta-leiste div:nth-child(n+3) { border-top: 1px solid rgba(255, 248, 236, 0.35); }
  .bewertung-box { grid-template-columns: 1fr; gap: 6px; }
  ol.schritte li { grid-template-columns: 26px 1fr; gap: 6px 12px; }
  ol.schritte li .schritt-text { grid-column: 1 / -1; }
  .karte { padding: 16px; }
  .nav { gap: 12px; }
  .raster-2 { grid-template-columns: 1fr; }
  .schritt-kopf { grid-template-columns: 92px 1fr; }
  .ankreuz-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neu-knoepfe .btn { flex: 1 1 100%; justify-content: center; }
}
@media print {
  body { background: #fff; padding: 0; }
  .no-print, .kopfzeile, .bereich, .abmelde-hinweis, .fusszeile, dialog, .meldungen { display: none !important; }
  .karte { border: none; padding: 0; }
  .spalten { grid-template-columns: 300px 1fr; }
}
