/* =========================================================
   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: 52px; height: 52px; }
.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; }
.search { display: flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; width: min(340px, 45%); }
.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: var(--gold); animation-delay: -3s; }
@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(auto-fit, minmax(200px, 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: 150px; }
.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: var(--ink); 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: 230px; 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) {
  .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; }
  .search { width: 100%; }
  .brand img { width: 44px; height: 44px; }
  .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; }
}
