/* =========================================================
   tschaneina – Stylesheet
   Farben können hier zentral angepasst werden:
   ========================================================= */
@font-face { font-family: "Lora"; src: url("lora-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("lora-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("lora-italic.woff") format("woff"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --terra: #C2502E;
  --terra-dark: #9E3D20;
  --terra-soft: #F6DED3;
  --gold: #F2B63D;
  --gold-soft: #FCEFD0;
  --olive: #6B7B3A;
  --olive-soft: #E7EBD6;
  --ink: #3B2A22;
  --ink-soft: #6E5D53;
  --cream: #FBF5EC;
  --paper: #FFFDF9;
  --line: #EADFCF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59,42,34,.06), 0 8px 24px rgba(59,42,34,.07);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.block { padding-block: clamp(48px, 7vw, 88px); }
.block-tint { background: var(--paper); border-block: 1px solid var(--line); }
.block-head { margin-bottom: 32px; }
.block-head p { color: var(--ink-soft); margin: 0; }
.eyebrow, .kicker { display: inline-block; font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.05rem; margin-bottom: .4em; }
.kicker { font-size: .9rem; margin-bottom: .2em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.small, .hint { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terra); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--terra-dark); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 64px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.65rem; letter-spacing: -.01em; }
.brand-tag { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: .9rem; }
.header-right { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: flex-end; }
.header-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-link:hover, .header-link[aria-current] { color: var(--terra-dark); }
.search { display: flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; width: min(320px, 60%); }
.search input { border: 0; background: transparent; font: inherit; font-size: .95rem; width: 100%; color: var(--ink); outline: none; }
.search button { border: 0; background: var(--terra); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.search .icon { width: 18px; height: 18px; }
.section-nav { border-top: 1px solid var(--line); }
.section-nav ul { list-style: none; margin: 0 -11px; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav a { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 12px 11px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; border-bottom: 3px solid transparent; }
.section-nav a:hover { color: var(--ink); }
.section-nav a[aria-current] { color: var(--terra-dark); border-bottom-color: var(--terra); }
.section-nav .icon { width: 19px; height: 19px; }

/* ---------- Notices ---------- */
.notice { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--olive-soft); border-left: 4px solid var(--olive); }
.notice-error { background: var(--terra-soft); border-color: var(--terra); }
.notice-warn { background: var(--gold-soft); border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 85% 30%, var(--gold-soft), transparent 55%), var(--cream); padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-plate { width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow), 0 0 0 14px rgba(255,255,255,.6); display: grid; place-items: center; }
.hero-plate img { width: 78%; height: auto; }
.float { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--terra); animation: bob 5s ease-in-out infinite; }
.float .icon { width: 30px; height: 30px; }
.f1 { top: 4%; left: 6%; }
.f2 { bottom: 10%; left: 0; color: var(--olive); animation-delay: -1.5s; }
.f3 { top: 18%; right: 2%; color: #B07A0B; animation-delay: -3s; }
.f4 { bottom: 6%; right: 8%; color: #2E8C82; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Lernpfad ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: p; }
.path-step { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.path-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.path-num { position: absolute; top: 18px; right: 20px; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--line); line-height: 1; }
.path-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); }
.path li:nth-child(5n+2) .path-icon { background: var(--olive-soft); color: var(--olive); }
.path li:nth-child(5n+3) .path-icon { background: var(--gold-soft); color: #B07A0B; }
.path li:nth-child(5n+4) .path-icon { background: #EFE3DA; color: var(--ink); }
.path-icon .icon { width: 28px; height: 28px; }
.path-step strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; margin-top: 6px; }
.path-text { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.path-count { font-size: .82rem; font-weight: 600; color: var(--terra-dark); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--terra-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--terra-dark); }
.card-body p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.meta-time { display: inline-flex; align-items: center; gap: 5px; }
.meta-time .icon { width: 16px; height: 16px; }

/* Platzhalter, wenn kein Bild vorhanden */
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9); background: var(--terra); background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 14%, transparent 15%), radial-gradient(circle at 85% 80%, rgba(255,255,255,.12) 0 20%, transparent 21%); }
.placeholder .icon { width: 30%; height: auto; max-width: 96px; stroke-width: 1.4; }
.ph-buch, .section-hero.ph-buch { background-color: var(--olive); }
.ph-ei, .section-hero.ph-ei { background-color: #D99A1E; }
.ph-pfanne, .section-hero.ph-pfanne { background-color: #8A4B2F; }
.ph-kochmuetze, .section-hero.ph-kochmuetze { background-color: var(--ink); }
.ph-blatt { background-color: #4F6B3A; }
.ph-round { border-radius: 50%; aspect-ratio: 1; }

/* ---------- Sterne ---------- */
.stars { position: relative; display: inline-block; font-size: 1.15rem; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.stars-sm { font-size: .95rem; letter-spacing: 1px; }
.stars-bg { color: var(--line); }
.stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.stars-meta { font-size: .85rem; color: var(--ink-soft); vertical-align: middle; }

/* ---------- Bereich ---------- */
.section-hero { background: var(--terra); color: #fff; padding-block: 40px 52px; }
.section-hero h1, .section-hero .lead, .section-hero .crumbs, .section-hero .crumbs a { color: #fff; }
.section-hero .lead { opacity: .92; max-width: 640px; margin: 0; }
.section-hero-row { display: flex; gap: 24px; align-items: center; margin-top: 16px; }
.section-icon { flex: none; width: 92px; height: 92px; border-radius: 26px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.section-icon .icon { width: 50px; height: 50px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs span { opacity: .5; margin-inline: 4px; }
.empty-state { text-align: center; padding-block: 60px; }
.empty-state img { margin: 0 auto 20px; }

/* ---------- Beitrag ---------- */
.post-head { padding-top: 40px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--ink-soft); font-size: .92rem; padding: 16px 0; border-block: 1px solid var(--line); margin: 20px 0 32px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 18px; height: 18px; color: var(--terra); }
.meta-rating { text-decoration: none; }
.post-image { margin: 0 auto 40px; }
.post-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--terra); font-weight: 700; }
.tip-box { position: relative; background: var(--gold-soft); border-radius: 14px; padding: 22px 22px 18px; margin: 1.6em 0; }
.tip-box p:last-child { margin-bottom: 0; }
.tip-label { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 600; color: #8E5F00; margin-bottom: 6px; }
.tip-big { margin-top: 32px; }

.recipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; margin-top: 40px; }
.ingredients { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; position: sticky; top: 210px; }
.ingredients h2, .steps h2 { font-size: 1.45rem; }
.ingredients h2 small { display: block; font: italic 400 .95rem var(--serif); color: var(--olive); margin-top: 4px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; }
.checklist input { width: 20px; height: 20px; accent-color: var(--olive); margin-top: 3px; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-soft); }
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 4px 0 22px 56px; cursor: pointer; transition: opacity .2s; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--terra); color: #fff; font: 700 1.05rem/38px var(--serif); text-align: center; }
.step-list li::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.step-list li:last-child::after { display: none; }
.step-list li.done { opacity: .45; }
.step-list li.done::before { content: "✓"; background: var(--olive); }

.gallery { margin-top: 48px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 12px; }
.gallery figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(30,20,15,.9); display: grid; place-items: center; z-index: 200; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 8px; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.prev-next a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; }
.prev-next a:hover { border-color: var(--terra); }
.prev-next small { display: block; font: 600 .8rem var(--sans); color: var(--terra-dark); margin-bottom: 4px; }
.pn-next { text-align: right; }

/* ---------- Bewertungen ---------- */
.reviews { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--line); margin-bottom: 80px; }
.review-summary { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.review-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 130px; }
.review-score strong { font: 700 3rem/1 var(--serif); }
.review-score span:last-child { font-size: .85rem; color: var(--ink-soft); }
.review-bars { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 220px; }
.review-bars li { display: grid; grid-template-columns: 38px 1fr 28px; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.review-form { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.star-input { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input legend { font-weight: 600; font-size: .95rem; margin-bottom: 4px; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 6px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.form-row small { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
input:focus, textarea:focus, select:focus { border-color: var(--terra); outline: none; box-shadow: 0 0 0 3px var(--terra-soft); }
.review-list { list-style: none; padding: 0; margin: 32px 0 0; }
.review-list > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review-top time { font-size: .82rem; color: var(--ink-soft); margin-left: auto; }
.review-list p { margin: 0; }
.review-reply { margin-top: 12px; margin-left: 20px; padding: 14px 16px; background: var(--terra-soft); border-radius: 12px; font-size: .95rem; }
.review-reply strong { font-family: var(--serif); color: var(--terra-dark); }

/* ---------- Über ---------- */
.about-teaser { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about-media img, .about-media .placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px var(--paper), var(--shadow); }
.about-media .placeholder .icon { width: 40%; max-width: none; }
.about-page { align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: #1C1512; color: #E9DCCD; padding-top: 56px; }
.site-footer a { color: #E9DCCD; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 240px; height: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-block: 20px; font-size: .85rem; color: #B9A897; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .path { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-plate { width: min(260px, 70vw); }
  .recipe { grid-template-columns: 1fr; }
  .ingredients { position: static; }
  .about-teaser { grid-template-columns: 1fr; gap: 28px; }
  .about-media { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .header-right { flex-basis: 100%; gap: 14px; }
  .search { width: auto; flex: 1; }
  .path { grid-template-columns: 1fr; }
  .brand img { height: 50px; }
  .brand-name { font-size: 1.4rem; }
  .float { width: 48px; height: 48px; }
  .float .icon { width: 22px; height: 22px; }
  .section-hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-icon { width: 68px; height: 68px; border-radius: 20px; }
  .section-icon .icon { width: 36px; height: 36px; }
  .prev-next { grid-template-columns: 1fr; }
  .review-form, .review-summary { padding: 20px; }
  .site-header { position: static; }
}

/* ---------- Druckansicht (Rezepte) ---------- */
@media print {
  .site-header, .site-footer, .reviews, .prev-next, .gallery, .hint, .link-btn, .crumbs, .notice { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe { grid-template-columns: 1fr 1.6fr; }
  .ingredients { position: static; border: 1px solid #ccc; }
  .post-image img { max-height: 260px; }
  .step-list li::before { background: #fff; color: #000; border: 1px solid #000; }
}

/* ---------- Themen (Hauswirtschaft) ---------- */
:root { --t-kochen: #C2502E; --t-reinigung: #2E8C82; --t-waesche: #6B7B3A; --t-finanzen: #B07A0B; }
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.topic-card { --tc: var(--terra); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--tc); transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-card-head { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.topic-card-head:hover { color: var(--ink); }
.topic-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--tc); color: #fff; }
.topic-icon .icon { width: 30px; height: 30px; }
.topic-card-head strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.topic-count { font-size: .85rem; color: var(--ink-soft); }
.topic-arrow { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--tc); transition: background .2s, color .2s; }
.topic-arrow .icon { width: 18px; height: 18px; }
.topic-card-head:hover .topic-arrow { background: var(--tc); color: #fff; border-color: var(--tc); }
.topic-card p { color: var(--ink-soft); font-size: .95rem; }
.topic-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .87rem; }
.topic-links a:hover { border-color: var(--tc); color: var(--tc); }
.tc-topf { --tc: var(--t-kochen); } .tc-eimer { --tc: var(--t-reinigung); } .tc-shirt { --tc: var(--t-waesche); } .tc-euro { --tc: var(--t-finanzen); }
.topic-hero { background: var(--tc, var(--terra)); }
.eyebrow-light { color: rgba(255,255,255,.85); }
.sub-nav { border-top: 1px solid var(--line); background: var(--cream); }
.sub-nav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sub-nav ul::-webkit-scrollbar { display: none; }
.sub-nav a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--ink-soft); text-decoration: none; border: 1px solid transparent; }
.sub-nav a:hover { color: var(--ink); border-color: var(--line); }
.sub-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.topic-nav a { font-weight: 600; }
.ph-eimer, .ph-spray, .ph-funkeln { background-color: var(--t-reinigung); }
.ph-shirt, .ph-waschmaschine, .ph-buegeleisen { background-color: var(--t-waesche); }
.ph-euro, .ph-sparschwein, .ph-einkauf, .ph-liste { background-color: var(--t-finanzen); }
.section-hero.ph-spray, .section-hero.ph-funkeln { background-color: var(--t-reinigung); }
.section-hero.ph-waschmaschine, .section-hero.ph-buegeleisen { background-color: var(--t-waesche); }
.section-hero.ph-sparschwein, .section-hero.ph-einkauf { background-color: var(--t-finanzen); }
@media (max-width: 760px) { .topic-grid { grid-template-columns: 1fr; } }

/* ---------- Dark Mode (automatisch nach Geräte-Einstellung) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #16110E; --paper: #1F1915; --ink: #F3E9DF; --ink-soft: #BCAC9E; --line: #3A2F28;
    --terra: #D9603A; --terra-dark: #FF9A75; --terra-soft: #3A221A; --gold-soft: #33290F; --olive-soft: #262A18;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.45);
  }
  .site-header { background: #1C1512; }
  .hero-plate { box-shadow: var(--shadow), 0 0 0 14px rgba(255,255,255,.04); background: #1C1512; }
  input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], textarea, select { background: #16110E; color: var(--ink); }
  .search { background: #16110E; }
  .tip-label { color: var(--gold); }
  .path li:nth-child(5n+3) .path-icon { color: var(--gold); }
  .path li:nth-child(5n+4) .path-icon { background: #2B231E; color: var(--ink); }
  .btn:hover { background: #B84A27; }
  .sub-nav a[aria-current] { background: var(--ink); color: #16110E; }
  .review-reply { background: #2A1C16; }
  .notice { color: var(--ink); }
  .card-media { background: #2A1C16; }
  img { filter: none; }
}

/* ---------- Personen-Regler ---------- */
.portions { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; text-align: center; }
.portions-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portions-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; font: 700 1.4rem/1 var(--sans); cursor: pointer; flex: none; }
.portions-btn:hover { background: var(--terra-dark); }
.portions-out { font-size: 1.05rem; }
.portions-out strong { font: 700 1.6rem var(--serif); color: var(--terra-dark); }
.portions-range { width: 100%; margin: 12px 0 2px; accent-color: var(--terra); }
.portions-reset { font-size: .85rem; margin-top: 4px; }
.qty { font-weight: 700; }
.qty-changed { color: var(--terra-dark); }
.checklist .ing-head { border: 0; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; padding: 14px 0 2px; color: var(--olive); }
.checklist .ing-head:first-child { padding-top: 0; }
@media print { .portions-btn, .portions-range, .portions-reset { display: none !important; } .portions { border: 0; padding: 0; } }

/* ---------- Einkaufsliste ---------- */
.header-list { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-list .icon { width: 22px; height: 22px; }
.header-list:hover, .header-list.is-active { color: var(--terra-dark); }
.list-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.list-badge[hidden] { display: none; }
.btn-list { width: 100%; justify-content: center; margin-top: 18px; }
.btn-list .icon { width: 20px; height: 20px; }
.btn-list.is-on { background: var(--olive); }
.btn-list.is-on:hover { background: #56632d; }
.list-dialog { border: 0; border-radius: 20px; padding: 0; width: min(480px, 94vw); max-height: 86vh; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.list-dialog::backdrop { background: rgba(28,21,18,.55); }
.list-dialog form { padding: 24px; display: flex; flex-direction: column; max-height: 86vh; }
.list-dialog h2 { font-size: 1.4rem; margin-bottom: 4px; }
.list-dialog-tools { display: flex; gap: 16px; margin: 4px 0 8px; font-size: .9rem; }
.list-pick { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; border-block: 1px solid var(--line); }
.list-pick li { border-bottom: 1px dashed var(--line); }
.list-pick li:last-child { border: 0; }
.list-pick label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; cursor: pointer; }
.list-pick input { width: 20px; height: 20px; accent-color: var(--terra); margin-top: 2px; flex: none; }
.list-pick input:not(:checked) + span { color: var(--ink-soft); text-decoration: line-through; }
.list-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.ts-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); z-index: 300; display: flex; gap: 14px; align-items: center; max-width: 92vw; font-size: .95rem; }
.ts-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ts-toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.shopping h1 { margin-bottom: .2em; }
.own-add { display: flex; gap: 10px; margin: 24px 0; }
.own-add input { flex: 1; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-toolbar[hidden] { display: none; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 .88rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.list-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.list-own { border-left: 4px solid var(--gold); }
.list-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.list-group-head h2 { font-size: 1.2rem; margin: 0; }
.list-group-head h2 a { color: var(--ink); text-decoration: none; }
.list-group-head h2 a:hover { color: var(--terra-dark); }
.list-remove { margin-left: auto; font-size: .85rem; }
.list-items { list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); }
.list-item:last-child { border: 0; }
.list-item label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; flex: 1; cursor: pointer; }
.list-item input { width: 22px; height: 22px; accent-color: var(--olive); margin-top: 1px; flex: none; }
.list-text small { display: block; font-size: .78rem; color: var(--ink-soft); }
.list-item.done .list-text { text-decoration: line-through; color: var(--ink-soft); }
.list-del { border: 0; background: none; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex: none; }
.list-del:hover { background: var(--terra-soft); color: var(--terra-dark); }
.list-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.list-actions[hidden] { display: none; }
.list-clear { margin-left: auto; color: #B3261E; }
.list-empty-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--terra-soft); color: var(--terra); margin-bottom: 12px; }
.list-empty-icon .icon { width: 40px; height: 40px; }
.list-privacy { margin-top: 28px; }
@media (max-width: 640px) { .header-list-text { display: none; } .own-add .btn { padding-inline: 16px; } .list-group { padding: 14px 16px; } }
@media print {
  .own-add, .list-toolbar, .list-actions, .list-privacy, .list-del, .list-remove, .btn-list, .ts-toast { display: none !important; }
  .list-group { border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Essensplaner ---------- */
.header-right { gap: 18px; }
.planner-teaser-wrap { padding-bottom: clamp(40px, 6vw, 72px); }
.planner-teaser-tight { padding-top: 0; }
.planner-teaser { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.planner-teaser:hover { transform: translateY(-3px); color: var(--paper); }
.planner-teaser-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--terra); color: #fff; display: grid; place-items: center; }
.planner-teaser-icon .icon { width: 34px; height: 34px; }
.planner-teaser-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.planner-teaser-text strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.planner-teaser-text span { opacity: .8; font-size: .95rem; }
.planner-teaser .btn { flex: none; }
@media (prefers-color-scheme: dark) { .planner-teaser { background: #2A211C; color: var(--ink); } .planner-teaser:hover { color: var(--ink); } }
@media (max-width: 760px) { .planner-teaser { flex-direction: column; align-items: flex-start; } }

.plan-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-top: 24px; }
.plan-fields { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.plan-label { display: block; font-weight: 700; margin-bottom: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; font: 700 1.3rem/1 var(--sans); cursor: pointer; }
.stepper button:hover { background: var(--terra-dark); }
.stepper input { width: 64px; border: 0 !important; background: transparent !important; text-align: center; font: 700 1.4rem var(--serif); box-shadow: none !important; padding: 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan-exclude { border: 0; padding: 0; margin: 0 0 22px; }
.plan-exclude legend { font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-size: .9rem; cursor: pointer; transition: .15s; user-select: none; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.own-exclude { display: flex; gap: 10px; }
.own-exclude input { flex: 1; }
.excl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.excl-tag { display: inline-flex; align-items: center; gap: 2px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--terra-soft); color: var(--terra-dark); font-size: .88rem; font-weight: 600; }
.excl-tag button { border: 0; background: none; color: inherit; font-size: 1.1rem; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.excl-tag button:hover { background: rgba(0,0,0,.08); }
.plan-go { width: 100%; justify-content: center; font-size: 1.05rem; padding: 15px 24px; }
.plan-go .icon { width: 20px; height: 20px; }
.plan-note { margin: 12px 0 0; }
.plan-result { margin-top: 40px; scroll-margin-top: 140px; }
.plan-result-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-result-head h2 { margin: 0; }
.plan-days { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-day { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-items: center; }
.plan-media { flex: none; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; display: block; }
.plan-media img { width: 100%; height: 100%; object-fit: cover; }
.plan-media .placeholder .icon { width: 44%; }
.plan-body { flex: 1; min-width: 0; }
.plan-daylabel { display: block; font-family: var(--serif); font-style: italic; color: var(--olive); font-size: .95rem; }
.plan-body h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.plan-body h3 a { color: var(--ink); text-decoration: none; }
.plan-body h3 a:hover { color: var(--terra-dark); }
.plan-ctrl { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.plan-ctrl select { width: auto; max-width: 100%; padding: 7px 10px; font-size: .88rem; border-radius: 999px; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.plan-actions[hidden] { display: none; }
.plan-actions .icon { width: 20px; height: 20px; }
.list-pick-head { font-family: var(--serif); font-weight: 700; color: var(--olive); padding: 12px 0 2px; border: 0 !important; }
@media (max-width: 640px) {
  .plan-form { padding: 20px; }
  .plan-day { align-items: flex-start; }
  .plan-media { width: 78px; height: 78px; }
  .own-exclude { flex-direction: column; }
  .header-right { gap: 12px; }
}
@media print { .plan-form, .plan-actions, .plan-ctrl { display: none !important; } }
.list-aisle { border-left: 4px solid var(--line); }
.aisle-obst { border-left-color: #6B9B3A; } .aisle-brot { border-left-color: #C08A3E; } .aisle-fleisch { border-left-color: #C2502E; }
.aisle-kuehl { border-left-color: #4A8FC0; } .aisle-trocken { border-left-color: #D9A94A; } .aisle-konserven { border-left-color: #A0522D; }
.aisle-gewuerze { border-left-color: #8B6F47; } .aisle-suess { border-left-color: #D9739A; } .aisle-getraenke { border-left-color: #7A5BA6; }
.aisle-drogerie { border-left-color: #2E8C82; } .aisle-sonst { border-left-color: var(--line); }

/* ---------- Reste-Check & Packungen ---------- */
.plan-packs { margin: 0 0 18px; align-items: flex-start; }
.plan-packs span { font-size: .95rem; }
.plan-rest { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.rest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rest-head h3 { margin: 0; font-size: 1.3rem; }
.rest-score { font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.rest-score.good { background: var(--olive-soft); color: #4A5726; }
.rest-score.mid { background: var(--gold-soft); color: #8E5F00; }
.rest-score.low { background: var(--terra-soft); color: var(--terra-dark); }
.rest-list { list-style: none; padding: 0; margin: 0; }
.rest-item { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr auto; gap: 4px 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.rest-item:last-child { border: 0; }
.rest-item span { color: var(--ink-soft); }
.rest-left { font-weight: 700; color: var(--terra-dark) !important; white-space: nowrap; }
.rest-item.kind-haltbar .rest-left { color: var(--ink-soft) !important; font-weight: 600; }
.rest-left.none { color: var(--olive) !important; }
.rest-tips { margin: 16px 0 6px; }
.rest-tips p { margin: 0 0 6px; font-size: .93rem; }
.pack-hint { color: var(--olive) !important; font-weight: 600; }
.in-stock { color: var(--olive); font-weight: 700; font-size: .78rem; }
.list-dialog-option { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; background: var(--olive-soft); border-radius: 12px; font-size: .9rem; cursor: pointer; }
.list-dialog-option input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; margin-top: 1px; }
@media (max-width: 640px) { .rest-item { grid-template-columns: 1fr auto; } .rest-item > span:not(.rest-left) { grid-column: 1 / -1; order: 3; } }

/* ---------- Konto ---------- */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .93rem; cursor: pointer; }
.check-row input { width: 19px; height: 19px; accent-color: var(--terra); flex: none; margin-top: 2px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #B3261E; }
.btn-danger:hover { background: #8C1D17; }
.danger-link { color: #B3261E !important; font-size: .88rem; }
.auth-tabs { display: flex; gap: 6px; margin: 26px 0 0; }
.auth-tabs a { flex: 1; text-align: center; padding: 12px; border-radius: 14px 14px 0 0; background: var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.auth-tabs a[aria-selected=true] { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom: 0; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 26px 28px; }
.account .auth-card:first-of-type:not(.auth-tabs + .auth-card) { border-radius: var(--radius); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin: 0; }
.account-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 36px; }
.account-action { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.account-action:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.account-action .icon { width: 30px; height: 30px; color: var(--terra); flex: none; }
.account-action strong { display: block; font-size: .98rem; }
.account-action small { color: var(--ink-soft); font-size: .8rem; }
.pantry, .account-settings { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 24px; scroll-margin-top: 150px; }
.pantry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pantry-head h2, .account-settings h2 { margin: 0 0 4px; font-size: 1.5rem; }
.pantry-add { display: grid; grid-template-columns: 1fr 90px 100px 150px auto; gap: 8px; margin: 14px 0 10px; }
.quick-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.quick-chip { border: 1px dashed var(--line); background: var(--cream); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: 500 .82rem var(--sans); cursor: pointer; }
.quick-chip:hover { border-color: var(--terra); color: var(--terra-dark); }
.pantry-list { list-style: none; padding: 0; margin: 0; }
.pantry-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.pantry-item:last-child { border: 0; }
.pantry-main { flex: 1; min-width: 180px; }
.pantry-main strong { display: block; }
.pantry-item.bb-soon { background: linear-gradient(90deg, var(--gold-soft), transparent 60%); }
.pantry-item.bb-over { background: linear-gradient(90deg, var(--terra-soft), transparent 60%); }
.pantry-edit summary { font-size: .85rem; color: var(--terra-dark); cursor: pointer; }
.pantry-edit-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pantry-edit-form input[type=text] { width: 80px; } .pantry-edit-form select { width: auto; } .pantry-edit-form input[type=date] { width: 150px; }
.pantry-empty { padding: 24px 0 8px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.settings-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--cream); }
.settings-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.danger-card { border-color: #E9B4AE; }
@media (max-width: 760px) {
  .account-actions { grid-template-columns: 1fr; }
  .pantry-add { grid-template-columns: 1fr 1fr; }
  .pantry-add input[name=name] { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .pantry, .account-settings, .auth-card { padding: 18px; }
}

/* ---------- Was kann ich kochen? ---------- */
.have-tag { background: var(--olive-soft); color: #4A5726; }
.cook-group { font-size: 1.3rem; margin: 30px 0 12px; }
.cook-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cook-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.cook-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cook-top h3 { margin: 0; font-size: 1.15rem; }
.cook-top h3 a { color: var(--ink); text-decoration: none; }
.cook-top h3 a:hover { color: var(--terra-dark); }
.cook-pct { font: 700 1.1rem var(--serif); color: var(--gold); }
.cook-pct.full { color: var(--olive); }
.cook-bar { margin: 8px 0 6px; }
.cook-missing { font-size: .92rem; margin: 6px 0 10px; }
.cook-ready { color: var(--olive); font-weight: 700; margin: 6px 0 0; }

/* ---------- Kalorien ---------- */
.meta-right { display: inline-flex; gap: 12px; align-items: center; margin-left: auto; }
.meta-kcal { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta-kcal .icon { width: 15px; height: 15px; color: var(--terra); }
.meta-kcal-big { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink) !important; }
.kcal-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--cream); font-size: .85rem; color: var(--ink-soft); }
.kcal-note .icon { width: 22px; height: 22px; color: var(--terra); flex: none; margin-top: 2px; }
.kcal-note strong { color: var(--ink); font-size: .95rem; }

/* ---------- Such- und Sortierleiste ---------- */
.list-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.lf-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; }
.lf-search .icon { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.lf-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 10px 4px; }
.lf-select select { width: auto; border-radius: 999px; padding: 9px 34px 9px 14px; font-size: .9rem; }
.list-count { color: var(--ink-soft); font-size: .92rem; margin: -4px 0 18px; }
.topic-search { margin-top: -26px; position: relative; z-index: 2; }
.topic-search .list-filter { box-shadow: var(--shadow); }
.block-list { padding-top: 32px; }
.search-quick { margin: -6px 0 20px; }
@media (max-width: 640px) {
  .list-filter { padding: 10px; }
  .lf-select { flex: 1 1 45%; } .lf-select select { width: 100%; }
  .list-filter .btn { width: 100%; justify-content: center; }
}

/* ---------- Handy: nur hoch und runter scrollen ---------- */
html, body { max-width: 100%; }
body { overflow-x: hidden; overflow-wrap: break-word; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, iframe, table, pre { max-width: 100%; }
.prose, .card-body, .list-text, .pantry-main, .cook-item, .review-list, .plan-body { overflow-wrap: anywhere; }
.check-row > span { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  /* iPhone zoomt bei Schrift unter 16 px in Eingabefelder hinein – das verhindert seitliches Verschieben */
  input, select, textarea, .search input, .lf-search input, .lf-select select, .plan-ctrl select { font-size: 16px !important; }
  /* Menüleisten umbrechen statt seitlich wischen */
  .section-nav ul, .sub-nav ul { flex-wrap: wrap; overflow-x: visible; margin: 0; gap: 2px 4px; }
  .section-nav a { padding: 9px 8px; font-size: .9rem; border-bottom-width: 2px; }
  .topic-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .sub-nav ul { padding: 8px 0; }
  .sub-nav a { padding: 5px 10px; font-size: .84rem; border: 1px solid var(--line); }
  .wrap, .wrap-narrow { width: calc(100% - 28px); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stepper input { width: 54px; }
  .plan-fields { gap: 18px; }
  .rest-item { gap: 2px 10px; }
  .ts-toast { flex-wrap: wrap; left: 14px; right: 14px; transform: translate(0, 20px); max-width: none; }
  .ts-toast.show { transform: translate(0, 0); }
}
.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.seg { max-width: 100%; flex-wrap: wrap; }
@media (max-width: 760px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .topic-card { padding: 18px; }
  .topic-card-head { gap: 12px; }
  .topic-card-head strong { font-size: 1.3rem; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 auto; padding: 7px 8px; font-size: .82rem; }
  .list-toolbar { gap: 8px; }
}

.show-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .show-sm { display: inline; } .seg { flex-wrap: nowrap; } }

/* Koch-Level im Essensplaner */
.plan-level { border: 0; padding: 0; margin: 0 0 22px; }
.plan-level legend { font-weight: 700; margin-bottom: 10px; }
.level-chips .chip span { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 9px 16px; line-height: 1.25; }
.level-chips .chip small { font-size: .75rem; color: var(--ink-soft); font-weight: 400; }
.level-chips .chip input:checked + span small { color: inherit; opacity: .8; }
.level-chips .chip input:checked + span::before { content: none; }
@media (max-width: 640px) { .level-chips { display: grid; grid-template-columns: 1fr 1fr; } .level-chips .chip span { width: 100%; } }

.plan-level legend small { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.level-chips .chip input:checked + span::after { content: "✓"; position: absolute; top: 6px; right: 10px; font-size: .8rem; }
.level-chips .chip span { position: relative; padding-right: 30px; }
.level-info { margin: 8px 0 0; color: var(--olive); font-weight: 600; }
.plan-saved { color: var(--olive); margin: 10px 0 0; }
@media (max-width: 640px) { .level-chips { grid-template-columns: 1fr; } }
.plan-saveexcl { margin-top: 8px; } .plan-saveexcl small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }

/* Zeit zum Kochen */
.plan-time { border: 0; padding: 0; margin: 0 0 22px; }
.plan-time legend { font-weight: 700; margin-bottom: 10px; }
.time-range { display: flex; gap: 14px; flex-wrap: wrap; }
.time-range label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.time-range select { width: auto; border-radius: 999px; padding: 9px 34px 9px 14px; }
.plan-time .small { margin: 6px 0 0; }

/* =========================================================
   Update 17
   ========================================================= */
/* Unterteilungen (Frühstück, Hauptspeise …) */
.course-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.course-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.course-tabs a small { font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.course-tabs a:hover { border-color: var(--terra); }
.course-tabs a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.course-tabs a[aria-current] small { color: inherit; opacity: .75; }
.course-tabs a.is-empty { opacity: .55; }
.course-group { margin-bottom: 36px; }
.course-head { font-size: 1.4rem; display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 18px; }
.course-head small { font: 400 .85rem var(--sans); color: var(--ink-soft); }
.plan-courses .chip-fixed span { background: var(--olive-soft); border-color: var(--olive-soft); color: var(--ink); cursor: default; }

/* Karten: Markierungen */
.card { position: relative; }
.card-marks { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; }
.card-marks > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.cm-done { color: var(--olive); }
.cm-fav { color: var(--terra); }
.cm-fav .icon { width: 16px; height: 16px; fill: currentColor; }

/* Werkzeuge */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; min-width: 0; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tool-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra-dark); }
.tool-icon .icon { width: 24px; height: 24px; }
.tool-card strong { display: block; font-size: 1.02rem; }
.tool-card small { display: block; color: var(--ink-soft); font-size: .85rem; line-height: 1.45; }
.block-tools { padding-block: clamp(32px, 5vw, 56px) 0; }
.tool-page h1 { margin-top: .2em; }
.tool-search { margin: 0 0 20px; flex: none; }

/* Beitrag: Merken / Erledigt */
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mark-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .92rem var(--sans); cursor: pointer; transition: .15s; }
.mark-btn .icon { width: 18px; height: 18px; }
.mark-btn:hover { border-color: var(--terra); }
.mark-fav.is-on { background: var(--terra-soft); border-color: var(--terra); color: var(--terra-dark); }
.mark-fav.is-on .icon { fill: currentColor; }
.mark-done.is-on { background: var(--olive-soft); border-color: var(--olive); color: var(--ink); }

/* Ersatz-Zutaten */
.checklist li { position: relative; }
.sub-btn { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px 29px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font: 600 .75rem var(--sans); cursor: pointer; }
.sub-btn .icon { width: 13px; height: 13px; }
.sub-btn:hover, .sub-btn[aria-expanded=true] { color: var(--terra-dark); border-color: var(--terra); }
.sub-box { margin: 4px 0 10px 29px; padding: 10px 14px; background: var(--gold-soft); border-radius: 12px; font-size: .88rem; }
.sub-box ul { margin: 4px 0 0; padding-left: 18px; }
.sub-box p { margin: 6px 0 0; color: var(--ink-soft); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.sub-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.sub-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.sub-card ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.sub-card li { margin-bottom: 4px; }
.sub-note { margin: 10px 0 0; }

/* Nährwerte */
.nutri { margin: 16px 0 8px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.nutri-title { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.nutri-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.nutri-item b { display: block; font: 700 1rem var(--serif); color: var(--ink); white-space: nowrap; }
.nutri-item small { font-size: .72rem; color: var(--ink-soft); }
.nutri-kcal b { color: var(--terra-dark); font-size: .92rem; }
@media (max-width: 420px) { .nutri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } }

/* Fragen & Antworten */
.post-questions { margin: 40px 0 10px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.qa summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; gap: 10px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "?"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--sans); }
.qa[open] summary { border-bottom: 1px solid var(--line); }
.qa-answer { padding: 14px 18px 4px; }
.qa-who { display: block; font-family: var(--serif); font-style: italic; color: var(--olive); margin-bottom: 4px; }
.qa-meta { margin-top: 6px; }
.qa-list { margin-bottom: 30px; }
.ask-form { margin-top: 10px; }

/* Konto */
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.account-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: .88rem; }
.account-nav a:hover { border-color: var(--terra); }
.account-block { margin: 40px 0; }
.account-block h2 { display: flex; align-items: center; gap: 10px; }
.account-block h2 .icon { width: 26px; height: 26px; color: var(--terra); }
.fav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fav-list li { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 8px; }
.fav-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.fav-main img, .fav-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.fav-ph { display: grid; place-items: center; background: var(--terra-soft); color: var(--terra-dark); }
.fav-ph .icon { width: 26px; height: 26px; }
.fav-main strong { display: block; overflow-wrap: anywhere; }
.fav-main small { color: var(--ink-soft); font-size: .82rem; }
.progress-total { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.progress-bar { height: 12px; margin-top: 8px; }
.progress-bar span { background: var(--olive); }
.progress-topic { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.progress-topic summary { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i n c" "b b b"; align-items: center; gap: 4px 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.progress-topic summary::-webkit-details-marker { display: none; }
.pt-icon { grid-area: i; color: var(--terra); } .pt-icon .icon { width: 22px; height: 22px; display: block; }
.pt-name { grid-area: n; font-weight: 600; } .pt-num { grid-area: c; font-size: .88rem; color: var(--ink-soft); }
.progress-topic .bar { grid-area: b; }
.progress-topic ul { margin: 0; padding: 0 16px 12px 48px; font-size: .92rem; }
.badges { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.badge-item { text-align: center; padding: 14px 10px; border-radius: 14px; border: 1px dashed var(--line); color: var(--ink-soft); opacity: .65; }
.badge-item.got { opacity: 1; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); }
.badge-medal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px; background: var(--line); }
.badge-item.got .badge-medal { background: var(--gold); color: #3B2A22; }
.badge-medal .icon { width: 24px; height: 24px; }
.badge-item strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.badge-item small { font-size: .75rem; }

/* Vorschau-Leiste */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--gold); color: #3B2A22; font-size: .9rem; text-align: center; }
.preview-bar form { margin: 0; }
.preview-bar button { border: 0; border-radius: 999px; padding: 6px 14px; background: #3B2A22; color: #fff; font: 600 .85rem var(--sans); cursor: pointer; }

/* Saisonkalender */
.month-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 20px 0 26px; }
.month-tabs a { text-align: center; padding: 8px 0; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.month-tabs a[aria-current] { background: var(--olive); border-color: var(--olive); color: #fff; }
@media (min-width: 700px) { .month-tabs { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.season-new { background: var(--olive-soft); padding: 10px 14px; border-radius: 12px; }
.season-group { margin-bottom: 22px; }
.season-group h3 { font-size: 1.1rem; margin-bottom: 8px; }
.season-chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.season-chips li { padding: 6px 13px; border-radius: 999px; font-size: .9rem; background: var(--paper); border: 1.5px solid var(--olive); }
.season-chips .sc-o { border-color: var(--terra); }
.season-chips .sc-k { border-color: #2E8C82; }
.season-chips .sc-lager { border-style: dashed; border-color: var(--ink-soft); }
.season-with { margin: 6px 4px 0; }
.season-year { margin-top: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.season-year summary { cursor: pointer; font-weight: 600; }
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.year-table { border-collapse: collapse; width: 100%; font-size: .8rem; }
.year-table th, .year-table td { padding: 3px 2px; border-bottom: 1px solid var(--line); }
.year-table thead th { text-align: center; font-weight: 600; color: var(--ink-soft); }
.year-table tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding-right: 8px; }
.year-table td { width: 6.5%; min-width: 14px; }
.year-table td.y-f, .legend.y-f { background: var(--olive); }
.year-table td.y-l, .legend.y-l { background: var(--olive-soft); }
.year-table .is-cur { outline: 2px solid var(--gold); outline-offset: -2px; }
.legend { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; }

/* Flecken-Helfer */
.stain-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.stain-form legend { font-weight: 700; margin-bottom: 8px; }
.fabric-chips .chip span { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; padding: 9px 16px; }
.fabric-chips .chip small { font-size: .75rem; color: var(--ink-soft); }
.fabric-chips .chip input:checked + span small { color: inherit; opacity: .8; }
.stain-form .chip input[type=radio]:checked + span::before { content: "✓ "; }
.stain-result { margin: 28px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 5px solid var(--t-waesche); }
.stain-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.stain-steps li { counter-increment: s; position: relative; padding: 2px 0 12px 44px; }
.stain-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--t-waesche); color: #fff; display: grid; place-items: center; font-weight: 700; }
.stain-fabric-note { font-size: .92rem; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.stain-rules { margin-top: 30px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--olive); font-weight: 700; }

/* Pflegesymbole */
.care-group-title { font-size: 1.2rem; margin: 26px 0 10px; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: 10px; }
.care-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .78rem/1.25 var(--sans); cursor: pointer; text-align: center; min-width: 0; }
.care-btn span { overflow-wrap: anywhere; }
.care-btn:hover { border-color: var(--t-waesche); }
.care-btn[aria-pressed=true] { border-color: var(--t-waesche); background: var(--olive-soft); box-shadow: inset 0 0 0 1.5px var(--t-waesche); }
.care-svg { width: 46px; height: 50px; }
.care-panel { position: sticky; bottom: 10px; margin-top: 26px; background: var(--paper); border: 2px solid var(--t-waesche); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.care-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.care-panel h2 { font-size: 1.2rem; margin: 0 0 6px; }
.care-summary { list-style: none; padding: 0; margin: 0; }
.care-summary li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.care-mini .care-svg { width: 34px; height: 37px; }
.care-summary strong { display: block; }
.care-summary li > span:last-child span { font-size: .9rem; color: var(--ink-soft); }
.care-dl dt { font-weight: 700; margin-top: 10px; }
.care-dl dd { margin: 0; }

/* Reinigungsplan */
.clean-start { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.clean-start-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.clean-people { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.clean-people h2 { font-size: 1.15rem; margin: 0; }
.clean-people .own-exclude { margin-top: 10px; }
.clean-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.clean-tasks { list-style: none; padding: 0; margin: 0; }
.clean-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.clean-task:first-child { border-top: 0; }
.clean-check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--cream); color: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.clean-check svg { width: 20px; height: 20px; }
.clean-check:hover { border-color: var(--olive); color: var(--olive); }
.clean-body strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.clean-due { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.clean-task.overdue .clean-due { color: var(--terra-dark); font-weight: 700; }
.clean-task.today .clean-due { color: var(--olive); font-weight: 700; }
.clean-edit { position: relative; }
.clean-edit summary { list-style: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); font-weight: 700; }
.clean-edit summary::-webkit-details-marker { display: none; }
.clean-edit summary:hover { background: var(--cream); }
.clean-edit[open] { grid-column: 1 / -1; }
.clean-edit[open] summary { margin-left: auto; }
.clean-edit-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.clean-edit-form select { width: auto; }
.clean-done-all { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--olive-soft); font-weight: 600; margin-bottom: 16px; }
.clean-add { margin: 18px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.clean-add summary { cursor: pointer; font-weight: 600; color: var(--terra-dark); }
.clean-add-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .clean-add-form { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; } }
.clean-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 0 10px; }

/* Haushaltsbuch */
.budget-tabs { margin: 6px 0 18px; }
.budget-tabs button[aria-selected=true] { background: var(--ink); color: var(--paper); }
.budget-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
@media (min-width: 640px) { .budget-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bs-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.bs-card small { display: block; font-size: .78rem; color: var(--ink-soft); }
.bs-card strong { font: 700 1.15rem var(--serif); overflow-wrap: anywhere; }
.bs-in strong { color: var(--olive); } .bs-rest { background: var(--olive-soft); } .bs-neg { background: var(--terra-soft); } .bs-neg strong { color: var(--terra-dark); }
.bs-note, .budget-summary .notice { grid-column: 1 / -1; margin: 0; }
.b-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.b-group summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.b-group summary::-webkit-details-marker { display: none; }
.b-group summary::before { content: "▸"; color: var(--ink-soft); margin-right: -2px; }
.b-group[open] summary::before { content: "▾"; }
.b-gname { flex: 1; min-width: 0; }
.b-gsum { white-space: nowrap; }
.b-in .b-gsum { color: var(--olive); }
.b-rows { padding: 0 12px; }
.b-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.b-row select, .b-row .b-iv-fixed { grid-column: 1; }
.b-row .list-del { grid-column: 2; grid-row: 2; justify-self: end; }
.b-row input, .b-row select { padding: 8px 10px; }
.b-amount { text-align: right; }
.b-iv-fixed { padding-left: 4px; }
@media (min-width: 640px) {
  .b-row { grid-template-columns: minmax(0, 1fr) 110px 150px 34px; }
  .b-row select, .b-row .b-iv-fixed, .b-row .list-del { grid-column: auto; grid-row: auto; }
}
.b-add { margin: 6px 16px 14px; }
.budget-fuel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.budget-fuel summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.budget-fuel summary .icon { width: 18px; height: 18px; color: var(--terra); }
.fuel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0; }
@media (min-width: 560px) { .fuel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fuel-grid label { font-size: .85rem; color: var(--ink-soft); display: grid; gap: 4px; }
.fuel-result { font-weight: 600; }
.budget-rule { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.rule-row { margin: 12px 0; }
.rule-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 4px; }
.rule-label .over { color: var(--terra-dark); font-weight: 700; }
.rule-bar { position: relative; height: 12px; overflow: visible; }
.rule-bar span { background: var(--olive); }
.rule-bar.is-over span { background: var(--terra); }
.rule-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.book-head h2 { margin: 0; font-size: 1.3rem; text-align: center; }
.book-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.book-add .btn { grid-column: 1 / -1; justify-content: center; }
@media (min-width: 680px) { .book-add { grid-template-columns: 150px 110px minmax(0, 1fr) minmax(0, 1fr) auto; } .book-add .btn { grid-column: auto; } }
.book-total { background: var(--cream); border-radius: 12px; padding: 10px 14px; }
.book-list { list-style: none; padding: 0; margin: 10px 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.book-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.book-list li:first-child { border-top: 0; }
.book-date { font-size: .82rem; color: var(--ink-soft); width: 46px; flex: none; }
.book-text { flex: 1; min-width: 0; }
.book-text small { display: block; color: var(--ink-soft); font-size: .8rem; overflow-wrap: anywhere; }
.book-amt { font-weight: 700; white-space: nowrap; }
.year-sum { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: .92rem; }
.year-sum th, .year-sum td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.year-sum td { text-align: right; white-space: nowrap; }
@media (max-width: 480px) { .year-sum td:nth-child(2) { display: none; } }

/* Gemeinsame Einkaufsliste */
.share-box { margin: 26px 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.share-box h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.share-box h2 .icon { width: 22px; height: 22px; color: var(--terra); }
.share-code { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.share-code code { font: 700 1.3rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; padding: 10px 14px; background: var(--cream); border: 1px dashed var(--line); border-radius: 10px; }
.share-join { margin-top: 14px; }
.share-join-row { display: flex; gap: 8px; margin: 6px 0; }
.share-join-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }

/* Essensplan drucken */
.print-plan { display: none; }
@media print {
  body.printing-plan > *:not(main) { display: none !important; }
  body.printing-plan main > *:not(.planner), body.printing-plan .planner > *:not(.print-plan) { display: none !important; }
  body.printing-plan .print-plan { display: block !important; }
  .pp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
  .pp-logo { width: 140px; }
  .pp-head h1 { font-size: 22pt; margin: 0; }
  .pp-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 11pt; }
  .pp-table th, .pp-table td { border: 1px solid #999; padding: 6px 8px; text-align: left; }
  .pp-table th { background: #eee; }
  .pp-list { columns: 2; column-gap: 24px; font-size: 10.5pt; }
  .pp-aisle { break-inside: avoid; margin-bottom: 10px; }
  .pp-aisle h3 { font-size: 11pt; margin: 0 0 4px; }
  .pp-aisle ul { list-style: none; padding: 0; margin: 0; }
  .pp-foot { margin-top: 16px; font-size: 9pt; color: #666; }
  .post-actions, .sub-btn, .sub-box, .post-questions, .mark-btn, .preview-bar, .share-box, .clean-people, .clean-add, .clean-foot, .clean-toolbar, .clean-edit, .book-add, .budget-tabs, .list-del, .b-add, .budget-fuel, .clean-start { display: none !important; }
  .b-group { break-inside: avoid; } .b-group:not([open]) > *:not(summary) { display: block !important; }
}
@media (prefers-color-scheme: dark) {
  .card-marks > span { background: #2A211C; }
  .badge-item.got .badge-medal { color: #3B2A22; }
  .preview-bar { color: #3B2A22; }
  .month-tabs a[aria-current] { color: #fff; }
}
/* Fußbereich mit Helfer-Spalte */
.footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-grid a { overflow-wrap: anywhere; }
.clean-edit-form select, .clean-toolbar select { max-width: 100%; min-width: 0; }
.clean-toolbar .lf-select { min-width: 0; max-width: 100%; }
.season-year { max-width: 100%; overflow: hidden; }
.year-table tbody th { white-space: normal; min-width: 92px; line-height: 1.25; }
@media (max-width: 760px) { .pantry-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pantry-add > * { min-width: 0; } }

/* =========================================================
   Update 18
   ========================================================= */
/* Helfer in der Unter-Navigation */
.sub-nav a.sub-tool { display: inline-flex; align-items: center; gap: 6px; color: var(--terra-dark); font-weight: 600; background: var(--terra-soft); }
.sub-nav a.sub-tool .icon { width: 15px; height: 15px; }
.sub-nav a.sub-tool[aria-current] { background: var(--terra); color: #fff; }
.section-tools { padding-top: 22px; margin-bottom: -20px; }
.topic-hero + .block-tools, .block-tools { scroll-margin-top: 80px; }

/* Vorschläge beim Tippen */
.sug-box { position: fixed; z-index: 200; list-style: none; margin: 0; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 50vh; overflow-y: auto; font-size: .95rem; }
.sug-box li[data-i] { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.sug-box li[data-i]:hover, .sug-box li.is-active { background: var(--terra-soft); }
.sug-box .sug-name { min-width: 0; overflow-wrap: anywhere; }
.sug-box mark { background: none; color: var(--terra-dark); font-weight: 700; }
.sug-box small { color: var(--ink-soft); font-size: .75rem; white-space: nowrap; }
.sug-hint { padding: 6px 12px 4px; font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2px; }

/* App-Installation */
.app-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: clamp(28px, 4vw, 44px); }
.app-band img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: var(--shadow); }
.app-band-text { flex: 1 1 240px; min-width: 0; }
.app-band-text strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.app-band-text span { color: var(--ink-soft); font-size: .93rem; }
.app-steps { padding-left: 22px; }
.app-steps li { margin-bottom: 10px; }
.app-share-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--cream); border: 1px solid var(--line); vertical-align: middle; }
.app-share-icon svg { width: 16px; height: 16px; }
/* Direktlinks */
a.tool-link { color: var(--terra-dark); font-weight: 600; text-decoration-style: dotted; text-decoration-thickness: 2px; }
.post-tools { margin: 26px 0 10px; }
.post-tools h2, .tool-related h2 { font-size: 1.2rem; }
.tool-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* =========================================================
   Update 19
   ========================================================= */
.lf-check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-size: .9rem; cursor: pointer; white-space: nowrap; }
.lf-check input { width: 17px; height: 17px; accent-color: var(--terra); margin: 0; }
.lf-check:has(input:checked) { background: var(--olive-soft); border-color: var(--olive); }
@media (max-width: 760px) { .lf-check { flex: 1 1 45%; justify-content: center; } }
.meta-protein { font-size: .9rem; }
.meta-protein-big { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: var(--olive-soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.plan-protein { margin-top: 4px; }
.sub-btn + .sub-box + .sub-btn, .sub-btn + .sub-btn { margin-left: 6px; }
.lex-box p { margin: 6px 0 0; }
.lex-warn-mini { color: var(--terra-dark); }
/* Lexikon */
.lex-cats { margin: 4px 0 20px; }
.chip-btn { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .88rem var(--sans); cursor: pointer; }
.chip-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lex-group { margin-bottom: 24px; }
.lex-group-title { font-size: 1.25rem; margin-bottom: 10px; }
.lex-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; scroll-margin-top: 90px; }
.lex-item summary { display: flex; align-items: center; gap: 10px; padding: 13px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.lex-item summary::-webkit-details-marker { display: none; }
.lex-item summary::after { content: "+"; margin-left: auto; color: var(--ink-soft); font-size: 1.2rem; }
.lex-item[open] summary::after { content: "–"; }
.lex-item[open] summary { border-bottom: 1px solid var(--line); }
.lex-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--olive); color: #fff; }
.lex-facts { margin: 0; padding: 12px 18px 4px; }
.lex-facts dt { font-weight: 700; font-size: .9rem; margin-top: 8px; }
.lex-facts dd { margin: 2px 0 0; font-size: .95rem; }
.lex-tip, .lex-warn, .lex-recipes { margin: 10px 18px; font-size: .93rem; }
.lex-tip { background: var(--gold-soft); padding: 10px 14px; border-radius: 10px; }
.lex-warn { background: var(--terra-soft); padding: 10px 14px; border-radius: 10px; }
.lex-recipes { margin-bottom: 14px; }
