/* TM5 Rezeptportal – Stylesheet */

@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --primary: #24464F;
  --primary-dark: #1A353C;
  --primary-light: #3A6470;
  --accent: #C0532F;
  --accent-dark: #A44424;
  --cream: #F8F3EA;
  --cream-dark: #EFE6D6;
  --tip: #FBEEE8;
  --text: #2B2B2B;
  --muted: #6E6A64;
  --line: #DDD3C2;
  --white: #fff;
  --bg: #FDFBF7;
  --surface: #fff;
  --heading: var(--primary);
  --soft-yellow: #FFF6E0;
  --soft-green: #EAF4EE;
  --soft-red: #FBEBE8;
  --set-bg: #FBEDE6;
  --vegan-bg: #E1EFDD; --vegan: #2D6A27;
  --veg-bg: #EDF1D8; --veg: #566519;
  --season-bg: #EEF4EC;
  --radius: 10px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --shadow: 0 1px 2px rgba(36, 70, 79, .06), 0 4px 16px rgba(36, 70, 79, .07);
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--sans); font-variant-ligatures: no-common-ligatures; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-variant-ligatures: none; font-family: var(--serif); font-weight: 700; color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.65rem; margin-top: 1.4em; }
h3 { font-size: 1.25rem; }
code { background: var(--cream); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: 2.2rem; }
.narrow-sm { max-width: 440px; }

/* ---------- Kopf & Navigation */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; flex: none; color: #fff; text-decoration: none; border-radius: 50%; }
.brand:hover .logo-mark, .brand:focus-visible .logo-mark { color: #fff; }
.brand:hover { color: #fff; }
.header-inner > .brand { margin-right: auto; }
.main-nav { order: 1; }
.theme-toggle { order: 2; }
.nav-toggle { order: 3; }
.logo-mark { color: #9FC1C6; flex: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .3rem; }
.main-nav li { flex: none; }
.main-nav a { display: inline-flex; align-items: center; white-space: nowrap; color: #E3ECEA; text-decoration: none; padding: .45rem .75rem; border-radius: 6px; font-weight: 500; font-size: .95rem; }
.theme-toggle, .nav-toggle { flex: none; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.main-nav a.btn { color: #fff; margin-left: .4rem; }
.nav-toggle { display: none; align-items: center; gap: .4rem; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: .4rem .8rem; border-radius: 6px; font: inherit; cursor: pointer; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--primary); background: var(--primary); color: #fff; font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn small { color: inherit; opacity: .8; font-weight: 400; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--heading); }
.btn-ghost:hover { background: var(--cream); color: var(--heading); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--heading); border-color: var(--cream); }
.btn-danger { background: var(--surface); color: #A3261B; border-color: #E0B3AD; }
.btn-danger:hover { background: #A3261B; color: #fff; border-color: #A3261B; }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }
.btn-large { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hinweise */
.flashes { padding-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 8px; margin-bottom: .8rem; border-left: 4px solid; }
.flash-success { background: var(--soft-green); border-color: #3C8A5B; }
.flash-error { background: var(--soft-red); border-color: #B3261E; }
.flash-warning { background: var(--soft-yellow); border-color: #C99A1E; }
.flash-info { background: #EAF1F3; border-color: var(--primary-light); }

/* ---------- Startseite */
.hero { background: var(--primary); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; padding-block: 3.5rem 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .2em; }
.hero .lead { color: #DCE6E3; font-size: 1.15rem; max-width: 36em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0 0 .5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero .eyebrow { color: #F0B49E; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-search { display: flex; gap: .5rem; max-width: 520px; }
.hero-note { color: #DCE6E3; font-size: .95rem; margin: -.6rem 0 1.4rem; }
.hero-note a { color: #F0B49E; }
.hero-search input { flex: 1; }
.hero-art { color: var(--primary-light); max-width: 340px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; }
.stats > div { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; text-align: center; }
.stats strong { display: block; font: 700 2rem/1 var(--serif); color: var(--heading); }
.stats span { color: var(--muted); font-size: .9rem; }
.stats-home { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.stats-admin { margin: 1.5rem 0; }
.stats-admin .highlight { outline: 2px solid var(--accent); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head h2 { margin-top: .6em; }
.section-head a { font-weight: 500; text-decoration: none; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.cat-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 118px; padding: 1rem 1.1rem; border-radius: var(--radius);
  color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform .15s; }
.cat-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); box-shadow: 0 0 0 14px rgba(255,255,255,.06); }
.cat-tile:hover { transform: translateY(-2px); color: #fff; }
.cat-name { font: 700 1.3rem/1.15 var(--serif); }
.cat-count { font-size: .85rem; opacity: .85; }

.cat-1 { background: #24464F; } .cat-2 { background: #B5542F; } .cat-3 { background: #5B6B3A; }
.cat-4 { background: #3D5A80; } .cat-5 { background: #7A4E6E; } .cat-6 { background: #A27B2C; }
.cat-7 { background: #9C3D3D; } .cat-8 { background: #4F7A6A; } .cat-9 { background: #6B5B4B; }

.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; background: var(--cream); border-radius: var(--radius); padding: 1.8rem 2rem; }
.cta-box h2 { margin-top: 0; }
.cta-box p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(36,70,79,.08), 0 10px 26px rgba(36,70,79,.12); color: var(--text); }
.card-media { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 22px rgba(255,255,255,.06), 0 0 0 44px rgba(255,255,255,.04); right: -50px; bottom: -70px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.card-initial { font: 700 3.4rem/1 var(--serif); color: rgba(255,255,255,.92); position: relative; }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.card h3 { font-size: 1.25rem; margin: .2rem 0 .3rem; }
.card-meta { margin: 0; color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; vertical-align: middle; }
.badge-community { background: #FFF; color: var(--accent); position: absolute; top: .7rem; left: .7rem; }
.recipe-head .badge-community, .eyebrow .badge-community { position: static; background: var(--tip); margin-left: .4rem; }

/* ---------- Listen-Seite */
.page-head { background: var(--cream); padding-block: 2.2rem 1.8rem; border-bottom: 1px solid var(--cream-dark); }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead { color: var(--muted); max-width: 44em; margin: 0; }
.admin-head { background: #EEF3F2; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filter-bar input[type=search] { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.chip { padding: .35rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; }
.chip span { color: var(--muted); font-size: .8rem; }
.chip.active, .chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.active span, .chip:hover span { color: #CFE0DD; }
.result-count { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--cream); border-radius: var(--radius); }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 2.3rem; text-align: center; padding: .4rem .6rem; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .gap { border: none; background: none; }

/* ---------- Rezept */
.recipe-head { background: var(--cream); padding-block: 2.2rem 1.6rem; border-bottom: 1px solid var(--cream-dark); }
.recipe-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.recipe-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.recipe-meta span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.recipe-meta li { font-weight: 500; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.recipe-body { padding-block: 2rem; }
.recipe-image { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; max-height: 460px; }
.recipe-image img { width: 100%; object-fit: cover; }
.recipe-grid { display: grid; grid-template-columns: minmax(250px, 1fr) 2fr; gap: 2.2rem; align-items: start; }
.ingredients { background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.4rem; position: sticky; top: 84px; }
.ingredients h2, .steps h2 { font: 600 .82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 .9rem; }
.ingredients h3 { font: 600 .95rem/1.3 var(--sans); color: var(--heading); margin: 1rem 0 .4rem; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: .25rem 0; border-bottom: 1px dashed var(--cream-dark); font-size: .97rem; }
.ingredients li:last-child { border-bottom: none; }
.ingredients label { display: flex; gap: .55rem; align-items: baseline; cursor: pointer; }
.ingredients input { accent-color: var(--accent); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 2.6rem; font-size: 1.04rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.set { color: var(--accent-dark); font-weight: 600; background: var(--set-bg); padding: .05em .4em; border-radius: 5px; white-space: nowrap; }
.tip { background: var(--tip); border-left: 3px solid var(--accent); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin-top: .6rem; }
.tip strong { color: var(--accent); }
.author { color: var(--muted); font-style: italic; margin-top: 1rem; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Formulare */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(192,83,47,.35); border-color: var(--accent); }
.filter-bar select, .filter-bar input, .hero-search input { width: auto; }
textarea { resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.recipe-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem .6rem; margin: 0 0 1.3rem; background: var(--surface); }
.recipe-form legend { font: 700 1.25rem/1 var(--serif); color: var(--heading); padding: 0 .4rem; }
.field { display: block; margin-bottom: 1rem; font-weight: 500; font-size: .95rem; }
.field > input, .field > select, .field > textarea { margin-top: .3rem; }
.field small { display: block; font-weight: 400; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .88rem; margin: .25rem 0 0; font-weight: 400; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--accent); }
.check.has-error { color: #B3261E; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hp { position: absolute; left: -5000px; }
.current-file { display: flex; gap: .8rem; align-items: center; margin-top: .5rem; font-size: .9rem; }
.current-file img { border-radius: 6px; }
.howto { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1.4rem; }
.howto h2 { font-size: 1.25rem; margin: 0 0 .4rem; }
.howto ul { margin: 0; padding-left: 1.2rem; }
.thanks { text-align: center; background: var(--cream); border-radius: var(--radius); padding: 2.5rem 1.5rem; }

.setting-builder { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: var(--cream); border-radius: 8px; padding: .6rem .7rem; margin: .4rem 0 .5rem; font-size: .88rem; }
.setting-builder .sb-label { font-weight: 600; color: var(--heading); }
.setting-builder input, .setting-builder select { width: auto; padding: .3rem .45rem; font-size: .88rem; }
.setting-builder .sb-time { width: 4.5rem; }
.sb-check { display: flex; align-items: center; gap: .3rem; }
.sb-preview { color: var(--accent-dark); font-weight: 600; }

.login-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.login-box h1 { font-size: 2rem; }

/* ---------- Verwaltung */
.admin-nav ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); }
.admin-nav a { display: block; padding: .55rem .9rem; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 500; }
.admin-nav a.active { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .93rem; }
.table th { text-align: left; background: var(--primary); color: #fff; font-weight: 500; padding: .6rem .8rem; }
.table th:first-child { border-top-left-radius: var(--radius); }
.table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: .6rem .8rem; border-bottom: 1px solid var(--cream-dark); vertical-align: top; }
.table .num { text-align: right; }
.table .actions { white-space: nowrap; }
.table .actions form { display: inline; }
.inline { display: inline; }
.tag { display: inline-block; font-size: .7rem; background: var(--cream); padding: .05rem .4rem; border-radius: 4px; margin-left: .3rem; }
.status { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; }
.status-published { background: var(--soft-green); color: #2E6B47; }
.status-pending { background: var(--soft-yellow); color: #8A6510; }
.status-rejected { background: #F3E9E7; color: #8F3A2C; }
.cat-row { display: grid; grid-template-columns: 1.3fr .5fr 2fr auto; gap: .8rem; align-items: end; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .9rem 1rem .1rem; margin-bottom: .8rem; }
.cat-row .field { margin-bottom: .8rem; }
.cat-row textarea { min-height: 2.6rem; }
.cat-row-actions { display: flex; gap: .4rem; align-items: center; margin-bottom: .9rem; }
.settings-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }
.settings-block h2 { margin-top: 0; }

/* ---------- Konto */
.lock-hint { display: block; font-size: .78rem; font-weight: 400; opacity: .85; margin-top: .15rem; }
.btn .lock-hint { margin: 0; }
.account-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; align-items: start; }
.account-grid .settings-block h2 { margin-top: 0; }
.download-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.download-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--cream-dark); }
.download-list li:last-child { border-bottom: none; }
.download-list strong { display: block; color: var(--heading); }
.download-list small { display: block; }
.danger-zone { border: 1px solid #E0B3AD; }
.danger-zone h2 { color: #8F3A2C; }
.login-links { margin-top: 1rem; text-align: center; font-size: .95rem; }
.remember-check { margin: .2rem 0 1.1rem; line-height: 1.4; }
.remember-check small { color: var(--muted); }
.app-hint { margin: 1rem 0 0; }
.user-actions form { display: inline; }
.user-actions input[type=password] { width: 9rem; padding: .3rem .45rem; font-size: .85rem; }

/* ---------- Import */
.import-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; align-items: start; }
.import-grid .settings-block h2 { margin-top: 0; }
.import-preview .table td { vertical-align: middle; }
.row-error td { background: var(--soft-red); }
.row-dup td { background: var(--soft-yellow); }
.note-error { color: #B3261E; font-size: .88rem; }
.note-dup { color: #8A6510; font-size: .88rem; }
.note-ok { color: #2E6B47; font-size: .88rem; }
.tag-new { background: var(--tip); color: var(--accent); }
.import-messages { font-size: .92rem; color: var(--muted); }
.import-links { columns: 2; font-size: .95rem; }
.format-help summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.format-help li { margin-bottom: .35rem; }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3em; font-size: .85em; }

/* ---------- Installation */
.req-list { list-style: none; padding: 0; }
.req-list li { padding: .3rem .6rem; border-radius: 6px; margin-bottom: .25rem; }
.req-list .ok { background: var(--soft-green); }
.req-list .fail { background: var(--soft-red); font-weight: 600; }
.req-list .warn { background: var(--soft-yellow); }
.steps-list li { margin-bottom: .4rem; }

/* ---------- Rechtliches */
.legal h2 { font-size: 1.35rem; }

/* ---------- Fuß */
.site-footer { background: var(--primary-dark); color: #C9D6D3; margin-top: 3rem; padding-block: 2.2rem 1.6rem; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: 1rem 2.5rem; align-items: start; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand strong { color: #fff; font: 700 1.2rem var(--serif); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.footer-head { font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #93A8A4; margin: 0 0 .5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-links a { color: #E3ECEA; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { grid-column: 1 / -1; margin: .6rem 0 0; font-size: .8rem; color: #93A8A4; }

/* ---------- Responsiv */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; }
  .ingredients { position: static; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .import-grid, .account-grid { grid-template-columns: 1fr; }
  .import-links { columns: 1; }
  .cat-row { grid-template-columns: 1fr 1fr; }
  .cat-row .field-wide, .cat-row-actions { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
/* Menü-Knopf statt Leiste: auf schmalen Bildschirmen und immer dann, wenn die Navigation nicht in eine Zeile passt */
.site-header.nav-compact .nav-toggle { display: inline-flex; }
.nav-toggle svg { display: block; flex: none; }
.site-header.nav-compact .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--primary); padding: .5rem var(--gutter) 1rem; box-shadow: 0 8px 16px rgba(0,0,0,.15); }
.site-header.nav-compact .main-nav.open { display: block; }
.site-header.nav-compact .main-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.site-header.nav-compact .main-nav a { display: flex; }
.site-header.nav-compact .main-nav a.btn { margin: .4rem 0 0; justify-content: center; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--primary); padding: .5rem var(--gutter) 1rem; box-shadow: 0 8px 16px rgba(0,0,0,.15); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .main-nav a { display: flex; }
  .main-nav a.btn { margin: .4rem 0 0; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search input { width: 100%; }
}

/* ---------- App (PWA) */
.app-back { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -.4rem;
  background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 50%; cursor: pointer; flex: none; }
.app-back:hover { background: rgba(255,255,255,.18); }
.app-back + .brand { margin-right: auto; }
.is-app .app-back { display: inline-flex; }
@media (display-mode: standalone) { .app-back { display: inline-flex; } }
.is-app .site-header { padding-top: env(safe-area-inset-top); }

[data-wakelock].is-on { background: var(--primary); color: #fff; border-color: var(--primary); }

.app-features { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.app-features li { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.1rem; }
.app-features strong { display: block; color: var(--heading); margin-bottom: .25rem; }
.app-features span { font-size: .93rem; color: var(--muted); }
.app-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.app-guide { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; border: 2px solid transparent; }
.app-guide h2 { margin-top: 0; }
.app-guide ol { padding-left: 1.2rem; margin-bottom: 0; }
.app-guide li { margin-bottom: .45rem; }
.app-detected { display: none; margin: -.4rem 0 .6rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ios-share { vertical-align: -4px; color: #0A84FF; }
[data-platform="android"] .app-guide-android, [data-platform="ios"] .app-guide-ios, [data-platform="desktop"] .app-guide-desktop { border-color: var(--accent); order: -1; }
[data-platform="android"] .app-guide-android .app-detected, [data-platform="ios"] .app-guide-ios .app-detected,
[data-platform="desktop"] .app-guide-desktop .app-detected { display: block; }
.app-status { display: none; background: var(--soft-green); border-left: 4px solid var(--primary); border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: 1.5rem; }
[data-platform="app"] .app-status-app, [data-platform="installed"] .app-status-installed { display: block; }
[data-platform="app"] .app-guides, [data-platform="installed"] .app-guides { display: none; }
.offline-list { padding-left: 1.2rem; }
.offline-list li { margin-bottom: .35rem; }
@media (max-width: 900px) {
  .app-features { grid-template-columns: 1fr 1fr; }
  .app-guides { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .app-features { grid-template-columns: 1fr; }
}

/* ---------- Merkliste & Kochbuch */
.heart { fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; flex: none; }
.is-on .heart, .inline-heart .heart, .page-head .lead .heart { fill: var(--accent); stroke: var(--accent); }
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; }
.fav-form { display: inline; margin: 0; }
.fav-form-card { position: absolute; top: .55rem; right: .55rem; z-index: 2; }
.fav-card { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.fav-card:hover { background: var(--surface); color: var(--accent); }
.fav-btn.is-on { color: var(--accent-dark); }
.nav-fav .heart { margin-right: .3rem; }
.nav-count { display: inline-block; min-width: 1.35em; padding: 0 .35em; margin-left: .35rem; border-radius: 99px; background: var(--accent);
  color: #fff; font-size: .72rem; text-align: center; line-height: 1.55; }
.nav-count[hidden] { display: none; }
.ask-box { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.ask-box p { margin: 0; flex: 1 1 260px; }
.cookbook-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.cookbook-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cookbook-head h2 { margin-top: 0; }
.fav-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.fav-list li { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--cream-dark); }
.fav-list li:last-child { border-bottom: 0; }
.fav-list .check { margin: 0; flex: 1; }
.fav-list a { font-weight: 600; text-decoration: none; }
.fav-list small { display: block; color: var(--muted); }
.fav-remove { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .3rem .55rem; border-radius: 6px; }
.fav-remove:hover { background: #FBE9E7; color: #B3261E; }
.cookbook-options { align-self: start; }
.check-inline { margin: 0; font-size: .9rem; }
.clear-form { margin-top: 1rem; }
.cat-select details { margin: 1rem 0; }
.cat-select summary { cursor: pointer; }
.cat-checks { columns: 2; margin: .7rem 0; }
.cat-checks .check { break-inside: avoid; margin-bottom: .35rem; }
.backup-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; padding: 0; }
.backup-sql { margin-top: .8rem; }

/* ---------- Ernährung & Filter */
.diet { display: inline-block; margin-left: .45rem; padding: .05rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; text-transform: none; text-decoration: none; vertical-align: 1px; }
.diet-vegan { background: var(--vegan-bg); color: var(--vegan); }
.diet-vegetarisch { background: var(--veg-bg); color: var(--veg); }
.filter-toggles { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0 0 .9rem; }
.filter-label { font-size: .9rem; color: var(--muted); margin-right: .2rem; }
.toggle { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--text); font-size: .9rem; background: var(--surface); }
.toggle:hover { border-color: var(--primary-light); color: var(--heading); }
.toggle.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.toggle.active::before { content: "✓ "; }
.filter-reset { font-size: .88rem; margin-left: .3rem; }
.cat-pdf { margin: 1rem 0 0; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

/* ---------- Portionsrechner */
.portions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.portions[hidden] { display: none; }
.portions-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-right: .3rem; }
.portions-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  font-size: 1.25rem; line-height: 1; cursor: pointer; }
.portions-btn:hover:not(:disabled) { border-color: var(--primary); }
.portions-btn:disabled { opacity: .35; cursor: default; }
.portions-value { min-width: 7.5rem; text-align: center; font-weight: 600; color: var(--heading); }
.link-btn { background: none; border: 0; color: var(--heading); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.ingredients li.is-scaled span { color: var(--accent-dark); }
.portion-note { margin-top: 1rem; padding: .7rem .9rem; background: var(--soft-yellow); border-radius: 8px; font-size: .86rem; }
.portion-note p { margin: 0 0 .4rem; }
.portion-note p:last-child { margin: 0; }

/* ---------- Teilen */
.share { position: relative; display: inline-block; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share[open] > summary { background: var(--cream); }
.share-panel { position: absolute; z-index: 6; top: calc(100% + .4rem); left: 0; width: 280px; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.16); padding: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.share-link { display: block; width: 100%; padding: .5rem .7rem; border-radius: 6px; text-decoration: none; color: var(--text); background: var(--cream);
  border: 0; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.share-link:hover { background: var(--cream-dark); color: var(--heading); }
.share-native[hidden] { display: none; }
.share-qr { text-align: center; margin-top: .5rem; }
.share-qr svg { width: 168px; height: 168px; display: block; margin: 0 auto .3rem; }
.share-qr small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.print-qr { display: none; }
.print-license { display: none; }
@media (max-width: 760px) {
  .share-panel { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; max-height: 80vh; overflow: auto; }
}
@media (max-width: 900px) {
  .cookbook-grid { grid-template-columns: 1fr; }
  .cookbook-options { position: static; }
}

/* ---------- Ratgeber & Saisonkalender */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.guide-toc { position: sticky; top: 84px; background: var(--cream); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .93rem; }
.guide-toc ol { padding-left: 1.2rem; margin: .5rem 0 .8rem; }
.guide-toc li { margin-bottom: .3rem; }
.guide-toc a { text-decoration: none; }
.guide-more { margin: 0; line-height: 1.5; border-top: 1px solid var(--line); padding-top: .7rem; }
.guide-more strong { display: block; margin-bottom: .3rem; }
.guide-more a { display: block; margin-bottom: .3rem; }
.guide-toc { max-height: calc(100vh - 100px); overflow-y: auto; }
.guide-note { margin-top: 2rem; }
.guide-body section { margin-bottom: 2.2rem; scroll-margin-top: 84px; }
.guide-body h2 { margin-top: 0; }
.guide-examples { list-style: none; padding: 0; }
.guide-examples li { margin-bottom: .45rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.guide-table, .season-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .93rem; }
.guide-table th, .guide-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--cream-dark); vertical-align: top; }
.guide-table thead th { background: var(--primary); color: #fff; font-weight: 600; }
.faq { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); padding: .8rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.faq p { margin: .6rem 0 0; }
.month-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem; }
.season-now { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.season-now h3 { margin: 0 0 .5rem; }
.season-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; align-items: center; }
.season-table caption { text-align: left; font: 700 1.3rem var(--serif); color: var(--heading); padding: 0 0 .5rem; }
.season-table th, .season-table td { padding: .35rem .3rem; border-bottom: 1px solid var(--cream-dark); text-align: center; font-size: .85rem; }
.season-table tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding-left: .8rem; }
.season-table tbody th a { text-decoration: none; color: var(--text); }
.season-table thead th { background: var(--cream); color: var(--muted); font-weight: 600; }
.season-table td { min-width: 1.6rem; }
.season-table td.on::before { content: ""; display: block; height: .7rem; border-radius: 99px; background: #7FA86C; }
.season-table .is-current { background: var(--soft-yellow); }
.season-table thead th.is-current { background: var(--accent); color: #fff; }
.season-strip { margin-top: .5rem; }
.season-box { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1rem 2rem; align-items: center; background: var(--season-bg); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.season-box h2 { margin: 0; font-size: 1.4rem; }
.season-box .eyebrow { color: #4F7A3F; }
.season-more { font-weight: 600; margin-left: .4rem; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .season-now, .season-box { grid-template-columns: 1fr; }
}

/* ---------- Eigene Notizen, Druckmenü (v1.6) */
.my-note { margin-top: 1.6rem; }
.note-form { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--primary-light); border-radius: 0 8px 8px 0; padding: .8rem 1rem .7rem; }
.note-label { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--heading); margin-bottom: .45rem; }
.note-label small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .2rem; }
.note-form textarea { width: 100%; min-height: 4.6rem; background: var(--surface); }
.note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.note-status { flex: 1 1 12rem; font-size: .82rem; color: var(--muted); }
.note-status.is-ok { color: #3C8A5B; }
.note-status.is-error { color: #B3261E; font-weight: 600; }
.note-status.is-dirty { font-style: italic; }
.note-count { font-size: .8rem; color: var(--muted); }
.note-count[hidden], .note-form [hidden] { display: none; }
.note-guest { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .92rem; background: var(--cream); border-radius: 8px; padding: .7rem .9rem; }
.note-guest .note-ico { flex: none; margin-top: .2rem; color: var(--primary-light); }
.note-ico { color: var(--primary-light); flex: none; }
.note-print { display: none; }
[data-note-text] { white-space: pre-line; }
.print-menu .share-panel { width: 250px; }
.share-link small { display: block; color: var(--muted); font-size: .78rem; }
.fav-note { display: inline-flex; align-items: center; gap: .2rem; color: var(--primary-light); font-size: .78rem; margin-left: .35rem; vertical-align: middle; }
.settings-block .cookbook-sub { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.notes-overview { margin-top: 2.5rem; }
.notes-overview h2 { display: flex; align-items: center; gap: .45rem; }
.notes-overview h2 small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.note-list li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary-light); border-radius: 0 8px 8px 0; padding: .7rem .9rem; }
.note-list a { font-weight: 600; color: var(--heading); text-decoration: none; }
.note-list a:hover { text-decoration: underline; }
.note-list small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.note-list p { margin: .4rem 0 0; font-size: .9rem; }
.notes-hint { display: flex; gap: .4rem; align-items: center; margin-top: 2rem; }

/* ---------- Ratgeber-Startseite (v1.6) */
.hub-jump, .howto-toc { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.howto-toc { margin: 0 0 1.6rem; }
.ui-icon { display: block; flex: none; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.guide-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.2rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.guide-card:hover { transform: translateY(-2px); border-color: var(--primary-light); }
.guide-card strong { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--heading); }
.guide-card > span:not(.guide-card-icon):not(.guide-card-more) { font-size: .92rem; color: var(--muted); flex: 1; }
.guide-card-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--cream); color: var(--accent); margin-bottom: .3rem; }
.guide-card-more { font-size: .88rem; font-weight: 600; color: var(--accent); }
.hub-steps-wrap { background: var(--cream); border-block: 1px solid var(--cream-dark); }
.hub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: none; }
.hub-steps li { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.1rem; box-shadow: var(--shadow); }
.hub-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 2.1rem; color: var(--accent); font-weight: 700; }
.hub-step-num { position: absolute; top: .9rem; right: 1rem; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--line); }
.hub-step-icon { display: inline-flex; color: var(--primary-light); margin-bottom: .5rem; }
.hub-steps strong { display: block; font-size: 1.05rem; color: var(--heading); }
.hub-steps p { margin: .3rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.hub-steps a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 1.2rem; align-items: stretch; }
.howto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 1rem; scroll-margin-top: 90px; }
.howto:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 83, 47, .15); }
.howto header { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .6rem; }
.howto-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--cream); color: var(--primary-light); flex: none; }
.howto h3 { margin: .1rem 0 .2rem; font-size: 1.12rem; color: var(--heading); }
.howto header p { margin: 0; font-size: .9rem; color: var(--muted); }
.howto-badge { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: .1rem .45rem; border-radius: 99px; background: var(--soft-yellow); color: var(--accent-dark); margin-left: .3rem; }
.howto ol { margin: .4rem 0 .4rem; padding-left: 1.3rem; }
.howto li { margin-bottom: .35rem; font-size: .94rem; }
.howto-link { margin: .5rem 0 0; }
.howto-link a { font-weight: 600; text-decoration: none; }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 3rem; }
.hub-cta h2 { color: #fff; margin: 0 0 .3rem; }
.hub-cta p { margin: 0; color: #DDE9E6; max-width: 40em; }
.hub-cta .hub-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hub-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hub-cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hub-cta .btn .heart { fill: currentColor; vertical-align: -3px; }
@media (max-width: 960px) {
  .hub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .hub-steps { grid-template-columns: 1fr; }
  .hub-steps li::after { display: none; }
}

/* ---------- Premium (v1.7) */
.lock-ico { display: inline-block; flex: none; vertical-align: -2px; }
.lock-badge { position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem;
  border-radius: 99px; background: rgba(20, 30, 33, .78); color: #fff; font-size: .74rem; font-weight: 600; z-index: 1; }
.card.is-locked .card-media > img, .card.is-locked .card-initial { opacity: .55; }
.nav-premium .lock-ico { margin-right: .35rem; }
.premium-hint { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px;
  background: var(--soft-yellow); font-size: .92rem; }
.premium-hint .lock-ico { margin-top: .2rem; color: var(--accent-dark); }
.premium-hint a { font-weight: 600; }
.fav-lock { display: inline-flex; align-items: center; gap: .2rem; margin-left: .4rem; font-size: .75rem; color: var(--accent-dark); vertical-align: middle; }
.hero-note .lock-ico { margin-right: .2rem; }
.premium-lock { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); max-width: 60rem; }
.premium-lock-icon { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tip); color: var(--accent); }
.premium-lock h2 { margin: .1rem 0 .4rem; }
.premium-lock p { margin: 0 0 .8rem; }
.premium-lock-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
/* Premium-Seite */
.premium-status { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; }
.premium-status h2 { margin: 0 0 .4rem; }
.premium-status p { margin: 0 0 .7rem; }
.premium-status.is-active { background: var(--soft-green); border-left: 4px solid #3C8A5B; }
.premium-status.is-open { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.premium-status-icon { display: inline-flex; width: 52px; height: 52px; flex: none; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--surface); color: var(--accent); font-size: 1.6rem; }
.pay-box { background: var(--cream); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.pay-box h3 { margin: 0 0 .6rem; color: var(--heading); }
.pay-transfer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; }
.pay-data { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.pay-data dt { color: var(--muted); font-size: .88rem; }
.pay-data dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.girocode { margin: 0; text-align: center; }
.girocode svg { display: block; width: 150px; height: 150px; margin: 0 auto .3rem; border-radius: 4px; }
.girocode figcaption { font-size: .78rem; color: var(--muted); }
.pay-other { margin: 0 0 1rem; }
.pay-other > summary { cursor: pointer; color: var(--heading); font-weight: 500; margin-bottom: .6rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin: 0 0 2.2rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.plan h2 { margin: 0 0 .8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.plan h2 small { font: 600 .9rem var(--sans); color: var(--muted); }
.plan ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.plan li { margin-bottom: .4rem; }
.plan-premium { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-premium h2 small { color: var(--accent); }
.premium-steps { list-style: none; counter-reset: ps; padding: 0; margin: 0 0 2.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.premium-steps li { counter-increment: ps; background: var(--cream); border-radius: 8px; padding: 1rem 1.1rem 1rem 3.2rem; position: relative; }
.premium-steps li::before { content: counter(ps); position: absolute; left: 1rem; top: .95rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.premium-steps strong { display: block; color: var(--heading); }
.premium-steps span { font-size: .9rem; color: var(--muted); }
.order-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; scroll-margin-top: 90px; }
.order-box h2 { margin-top: 0; }
.order-summary { border-collapse: collapse; margin: 0 0 1.2rem; width: 100%; max-width: 40rem; }
.order-summary th, .order-summary td { text-align: left; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-summary th { color: var(--muted); font-weight: 500; width: 9rem; }
.pay-methods { border: 0; padding: 0; margin: 0 0 1rem; }
.pay-methods legend { font-weight: 600; margin-bottom: .4rem; }
.pay-methods .check small { display: block; }
.check.consent { background: var(--soft-yellow); border-radius: 8px; padding: .8rem .9rem; margin: .4rem 0 .8rem; max-width: 46rem; }
#bezahlen { scroll-margin-top: 90px; }
/* Konto, Verwaltung, Widerruf */
.premium-on { background: var(--soft-green); border-radius: 8px; padding: .6rem .8rem; }
.status-premium { background: var(--tip); color: var(--accent-dark); }
.status-order-offen { background: var(--soft-yellow); color: #8A6510; }
.status-order-bezahlt { background: var(--soft-green); color: #2E6B47; }
.status-order-storniert, .status-order-widerrufen { background: #F3E9E7; color: #8F3A2C; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.4rem; }
.tab { padding: .45rem .9rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--surface); }
.tab.active, .tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.free-cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; }
.free-cat-head h2 { margin: 0; }
.free-list { list-style: none; padding: 0; margin: .8rem 0 1rem; columns: 3 260px; column-gap: 1.5rem; }
.free-list li { break-inside: avoid; padding: .1rem 0; }
.free-list li.is-free span { font-weight: 600; }
.free-tag { color: #2E6B47; font-weight: 600; }
.warn-text { color: #8F3A2C; }
.footer-withdraw { grid-column: 1 / -1; margin: .4rem 0 0; }
.withdraw-btn { background: #fff; color: var(--primary-dark); border: 2px solid #fff; font-weight: 700; }
.withdraw-btn:hover { background: var(--cream); color: var(--primary-dark); }
/* ---------- DSGVO-Auskunft (v1.10) */
.auskunft-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .45rem; }
.auskunft-line small { font-size: .78rem; }

/* ---------- Download-Schutz (v1.9) */
.protect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.25rem; align-items: start; margin-bottom: 1.5rem; }
.protect-grid > .settings-block { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 12rem; margin: 0; }
.inline-form input[name=nr] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.code-result { margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; background: var(--cream); }
.code-result .order-summary { margin-bottom: .6rem; }
.check-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.check-list li { margin-bottom: .45rem; }
.net-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .3rem; }
.table tr.row-alert td { background: var(--soft-red); }
.table th.num, .table td.num { text-align: right; }
.table-compact th, .table-compact td { padding-top: .4rem; padding-bottom: .4rem; font-size: .9rem; }
.table code, .my-downloads code { font-size: .85rem; letter-spacing: .04em; }
.radio-cards { display: grid; gap: .3rem; margin: .4rem 0 .6rem 1.6rem; }
.license-note { margin-top: 1rem; padding: .7rem .9rem; background: var(--cream); border-radius: 8px; font-size: .9rem; }
.my-downloads { margin-top: .8rem; }
.my-downloads > summary { cursor: pointer; font-weight: 600; color: var(--heading); margin-bottom: .5rem; }

/* ---------- Einzelrezepte, Widerruf bis zum Download (v1.8) */
.withdraw-info { background: var(--soft-green); border-left: 4px solid #3C8A5B; border-radius: 0 8px 8px 0; padding: .7rem .9rem; margin: .4rem 0 .9rem; max-width: 46rem; font-size: .93rem; }
.waiver-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow); max-width: 52rem; }
.waiver-box > p { margin: 0 0 .9rem; }
.waiver-box > p:last-child { margin-bottom: 0; }
.waiver-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .4rem 0 1rem; }
.buy-list { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 40rem; border-top: 1px solid var(--line); }
.buy-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.buy-list li span { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.buy-favs { align-items: center; flex-wrap: wrap; }
.buy-favs .btn { margin-left: auto; }
.premium-lock-pending { background: var(--soft-yellow); border-radius: 8px; padding: .6rem .8rem; font-size: .92rem; }
.order-summary .num { text-align: right; white-space: nowrap; padding-right: 0; font-variant-numeric: tabular-nums; }
.order-summary .order-total th, .order-summary .order-total td { border-bottom: 0; border-top: 2px solid var(--heading); font-weight: 600; color: var(--heading); }
.terms-template { margin: 0 0 1rem; }
.terms-template > summary { cursor: pointer; font-weight: 600; color: var(--heading); margin-bottom: .5rem; }
.terms-template pre, .terms-template textarea { width: 100%; max-height: 22rem; overflow: auto; white-space: pre-wrap; background: var(--cream);
  border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; font: .85rem/1.5 var(--sans); }
.withdraw-result { background: var(--soft-green); border-left: 4px solid #3C8A5B; border-radius: 0 8px 8px 0; padding: .8rem 1rem; font-weight: 500; }
.order-table td small { display: block; color: var(--muted); }
.legal .withdraw-btn, .terms-withdraw .withdraw-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.withdraw-receipt { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #3C8A5B; border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 46rem; }
.withdraw-receipt h2 { margin-top: 0; }
.withdraw-receipt .pay-data { margin-bottom: 1rem; }
.withdraw-form { max-width: 34rem; }

/* ---------- Dunkelmodus: folgt dem Gerät, per Knopf umschaltbar (data-theme) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #24464F; --primary-dark: #1B363D; --primary-light: #6E9EAA;
  --accent: #D2643B; --accent-dark: #F0946D;
  --bg: #111517; --surface: #1B2124; --cream: #20272A; --cream-dark: #2A3337; --tip: #3A2A24;
  --text: #E5E2DC; --muted: #A6A199; --line: #3A4447; --heading: #A9D0D9;
  --soft-yellow: #3A3220; --soft-green: #1E3226; --soft-red: #3E2422; --set-bg: #3A2A22;
  --vegan-bg: #22361F; --vegan: #A8D69B; --veg-bg: #33361D; --veg: #D3DD90; --season-bg: #1C2B21;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --primary: #24464F; --primary-dark: #1B363D; --primary-light: #6E9EAA;
  --accent: #D2643B; --accent-dark: #F0946D;
  --bg: #111517; --surface: #1B2124; --cream: #20272A; --cream-dark: #2A3337; --tip: #3A2A24;
  --text: #E5E2DC; --muted: #A6A199; --line: #3A4447; --heading: #A9D0D9;
  --soft-yellow: #3A3220; --soft-green: #1E3226; --soft-red: #3E2422; --set-bg: #3A2A22;
  --vegan-bg: #22361F; --vegan: #A8D69B; --veg-bg: #33361D; --veg: #D3DD90; --season-bg: #1C2B21;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3);
  }
}
html[data-theme="dark"] body .fav-card { background: rgba(27,33,36,.92); }
html[data-theme="dark"] .hero .lead, html[data-theme="dark"] .hero-note { color: #C9D6D3; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .fav-card { background: rgba(27,33,36,.92); }
  html:not([data-theme="light"]) .hero .lead, html:not([data-theme="light"]) .hero-note { color: #C9D6D3; }
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: .3rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; flex: none; }
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Druck */
@media print {
  html:root, html:root[data-theme] {
    color-scheme: light;
    --primary: #24464F; --accent: #C0532F; --accent-dark: #A44424; --bg: #fff; --surface: #fff; --cream: #F8F3EA; --cream-dark: #EFE6D6;
    --text: #2B2B2B; --muted: #6E6A64; --line: #DDD3C2; --heading: #24464F; --set-bg: #FBEDE6; --soft-yellow: #FFF6E0;
  }
  .theme-toggle { display: none !important; }
  .site-header, .site-footer, .no-print, .recipe-actions, .flashes, .skip, .app-back, .portion-note, .fav-form-card, .premium-hint { display: none !important; }
  .note-print:not([hidden]) { display: block; margin-top: 1rem; padding: .6rem .8rem; border-left: 3px solid var(--primary); background: var(--cream); page-break-inside: avoid; }
  .note-print strong { color: var(--primary); }
  .print-qr { display: flex !important; gap: 1rem; align-items: center; margin-top: 1.5rem; page-break-inside: avoid; }
  .print-qr svg { width: 2.8cm; height: 2.8cm; flex: none; }
  .print-qr p { margin: 0; font-size: 9pt; color: #555; word-break: break-all; }
  .print-license { display: block !important; margin-top: 1rem; font-size: 7.5pt; color: #777; border-top: .5pt solid #ddd; padding-top: .3rem; }
  body { background: #fff; font-size: 11pt; }
  .recipe-head, .page-head { background: none; border: none; padding: 0 0 1rem; }
  .recipe-grid { grid-template-columns: 1fr 2fr; gap: 1.2rem; }
  .ingredients { position: static; background: #f6f2ea; }
  .set { background: none; padding: 0; }
  .steps li::before { background: none; color: var(--accent); border: 1px solid var(--accent); }
  .recipe-image { max-height: 240px; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- Kopfzeile auf schmalen Handys */
@media (max-width: 480px) {
  .header-inner { gap: .55rem; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .nav-toggle { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
