/* =========================================================
   Bettfedernreinigung Bayern – Ratgeber
   Blau-Weiß wie die Startseite, Werkstatt-Ton. Lesegröße für 50+.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --page: #f5f5fa;
  --white: #ffffff;
  --band: #e7f0ff;
  --blue: #0052a3;
  --blue-deep: #003d79;
  --blue-ink: #0b2a4a;
  --gold: #f4b41a;
  --gold-deep: #8a5f00;
  --ink: #111827;
  --ink-soft: #374151;
  --line: #dfe3ea;
  --line-strong: #c3cad6;
  --ff: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--ff); font-size: 1.1875rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 1.25rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: .5rem; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 999; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

/* Kopfzeile */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-size: .85rem; color: var(--ink-soft); }
.head-links { display: flex; align-items: center; gap: 1.4rem; }
.head-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.head-links a:hover { color: var(--blue); }
.head-links .cta { background: var(--blue); color: #fff; padding: .75rem 1.3rem; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; }
.head-links .cta:hover { background: var(--blue-deep); color: #fff; }
@media (max-width: 820px) { .head-links .opt { display: none; } }
@media (max-width: 560px) { .head-links .cta { display: none; } .brand small { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--band), var(--page)); padding: clamp(1.4rem, 4vw, 2.2rem) 0 clamp(2.5rem, 6vw, 4rem); }
.crumbs { font-size: 1rem; color: var(--ink-soft); margin-bottom: clamp(1.4rem, 4vw, 2.4rem); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin: 0 .5rem; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; color: var(--blue-ink); text-wrap: balance; }
.hero h1 span { color: var(--blue); }
.dek { font-size: clamp(1.2rem, 2vw, 1.38rem); color: var(--ink-soft); margin-top: 1.2rem; max-width: 34em; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: 1.2rem; font-size: 1rem; color: var(--ink-soft); }
.hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 40px rgba(15, 23, 42, .14); }
.hero figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: .6rem; }

/* Kurzantwort */
.short { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.2rem); margin-top: clamp(-2rem, -3vw, -1rem); position: relative; display: grid; gap: .6rem 2rem; }
@media (min-width: 860px) { .short { grid-template-columns: 11rem 1fr; } }
.short h2 { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.short p { font-size: clamp(1.2rem, 2.1vw, 1.42rem); line-height: 1.55; }

/* Artikel */
.body { display: grid; gap: 2.5rem; padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
@media (min-width: 1040px) { .body { grid-template-columns: 14rem minmax(0, 46rem); justify-content: space-between; } }
.toc { align-self: start; font-size: 1rem; }
@media (min-width: 1040px) { .toc { position: sticky; top: 6.5rem; } }
.toc h2 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.toc ol { list-style: none; display: grid; gap: .1rem; }
.toc a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--white); color: var(--ink); }
.toc a.active { background: var(--white); color: var(--blue-deep); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1039px) { .toc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; } }

.prose { min-width: 0; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.75rem, 3.3vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--blue-ink); margin-top: 3.4rem; scroll-margin-top: 6.5rem; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.prose ul { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose ul li::marker { color: var(--blue); }
.prose figure img { width: 100%; border-radius: 16px; }
.prose figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: .6rem; }

/* Schadens-Auswahl */
.picker { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.3rem, 3.5vw, 2rem); margin-top: 1.6rem !important; }
.picker > p.q { font-weight: 800; color: var(--ink); font-size: 1.2rem; }
.picker-opts { display: grid; gap: .7rem; margin-top: 1rem; }
@media (min-width: 620px) { .picker-opts { grid-template-columns: 1fr 1fr; } }
.picker-opts button { font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; color: var(--ink); background: var(--page); border: 2px solid var(--line); border-radius: 14px; padding: .9rem 1rem; min-height: 56px; cursor: pointer; display: flex; gap: .7rem; align-items: center; transition: border-color .15s, background .15s; }
.picker-opts button svg { width: 1.6rem; height: 1.6rem; flex-shrink: 0; color: var(--blue); }
.picker-opts button:hover { border-color: var(--blue); }
.picker-opts button[aria-pressed="true"] { border-color: var(--blue); background: var(--band); }
.picker-out { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); min-height: 7rem; }
.picker-out[hidden] { display: none; }
.picker-out h3 { margin: 0 0 .4rem !important; font-size: 1.25rem; color: var(--blue-deep); }
.picker-out p { margin: 0; }
.picker-out .verdict { display: inline-block; margin-top: .8rem; font-weight: 800; color: #14532d; background: #dcfce7; border-radius: 999px; padding: .2rem .9rem; font-size: 1rem; }
.picker-out .verdict.maybe { color: var(--gold-deep); background: #fef3c7; }
@media (prefers-reduced-motion: no-preference) { .picker-out.show { animation: fadein .35s ease both; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Querschnitt Hülle / Füllung */
.anatomy { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 3vw, 1.8rem); margin: 2rem 0 !important; }
.anatomy svg { width: 100%; height: auto; }

/* Ablauf in der Werkstatt */
.steps { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: .1rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; }

/* Hinweis */
.note { background: var(--band); border-radius: 16px; padding: 1.3rem 1.5rem; }
.note .lbl { display: block; font-weight: 800; color: var(--blue-deep); margin-bottom: .25rem; }

/* Preise */
.prices { margin-top: 1.4rem !important; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .3rem 1.3rem; }
.prices div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.prices div:last-child { border-bottom: 0; }
.prices span { color: var(--ink-soft); }
.prices b { font-size: 1.45rem; font-weight: 800; color: var(--blue-ink); white-space: nowrap; }
.prices small { flex-basis: 100%; font-size: 1rem; color: var(--ink-soft); }

/* CTA */
.cta-box { background: var(--blue-deep); color: #fff; border-radius: 22px; padding: clamp(1.8rem, 5vw, 2.8rem); margin-top: 3.2rem !important; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .cta-box { grid-template-columns: 1fr 15rem; } }
.cta-box h2 { color: #fff; margin: 0 !important; }
.cta-box p { color: #dbe7f6 !important; margin-top: .8rem; }
.cta-box img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .9rem 1.7rem; background: var(--gold); color: #1b1300 !important; font-weight: 800; font-size: 1.1rem; border-radius: 999px; text-decoration: none; margin-top: 1.3rem; transition: transform .2s, background .2s; }
.btn:hover { background: #ffc739; transform: translateY(-2px); }
.btn svg { width: 1.15rem; height: 1.15rem; }
.cta-box .alt { font-size: 1.02rem; }
.cta-box .alt a { color: #fff; font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 800; font-size: 1.18rem; line-height: 1.35; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.7rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0 0 1.2rem; }

/* Fuß */
.site-foot { background: var(--blue-ink); color: #dbe3ee; padding: 2.6rem 0 6.5rem; font-size: 1rem; }
@media (min-width: 880px) { .site-foot { padding-bottom: 2.6rem; } }
.site-foot .wrap { display: grid; gap: .9rem; }
.site-foot a { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

.sticky { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; display: flex; justify-content: center; align-items: center; gap: .5rem; background: var(--blue); color: #fff; font-weight: 800; padding: 1rem; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 61, 121, .35); }
@media (min-width: 880px) { .sticky { display: none; } }
.head-links a { white-space: nowrap; }
@media (max-width: 400px) { .brand strong { font-size: .98rem; } }
