/* =========================================================
   Bettfedernreinigung Schleswig-Holstein – Ratgeber
   Kühle Küstenfarben, Syne + DM Sans. Lesegröße für 50+.
   ========================================================= */

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

:root {
  --paper: #f5f7f8;
  --paper-cool: #e8ecee;
  --white: #ffffff;
  --ink: #1a2730;
  --ink-soft: #3f4f59;
  --slate: #2d4a5c;
  --slate-deep: #1f3543;
  --beacon: #c04a3a;
  --beacon-deep: #9c3a2c;
  --sand: #d4c8b0;
  --sea: #8fb0bf;
  --line: rgba(26, 39, 48, .12);
  --line-strong: rgba(26, 39, 48, .24);
  --ff-display: 'Syne', Georgia, serif;
  --ff-body: 'DM Sans', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--ff-body); 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 { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--slate); }
:focus-visible { outline: 3px solid var(--beacon); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: .5rem; background: var(--slate); color: var(--white); padding: .6rem 1rem; border-radius: 4px; font-weight: 600; z-index: 999; }
.skip:focus { left: 1rem; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* Topbar (wie Startseite) */
nav.topbar { position: sticky; top: 0; z-index: 100; background: rgba(245, 247, 248, .97); border-bottom: 1px solid var(--line); padding: .85rem 1.25rem; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--slate); flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-size: .78rem; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-tel { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.nav-tel:hover { color: var(--slate); }
.nav-cta { background: var(--slate); color: var(--white); text-decoration: none; padding: .8rem 1.35rem; border-radius: 999px; font-size: 1rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; transition: background .2s; }
.nav-cta:hover { background: var(--slate-deep); color: var(--white); }
.nav-cta svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .nav-cta { display: none; } }
@media (max-width: 420px) { .brand-text small { letter-spacing: .04em; } }

/* Kopf */
.rg-head { padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(2.5rem, 6vw, 4rem); }
.crumbs { font-size: 1rem; color: var(--ink-soft); margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin: 0 .5rem; }
.rg-head-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 980px) { .rg-head-grid { grid-template-columns: 1.1fr .9fr; } }
.rg-h1 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.rg-h1 span { color: var(--beacon-deep); }
.rg-dek { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink-soft); margin-top: 1.3rem; max-width: 34em; }
.rg-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: 1.3rem; font-size: 1rem; color: var(--ink-soft); }
.rg-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.rg-head figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: .6rem; }

/* Kurz gesagt: dunkles Band */
.rg-short { background: var(--slate-deep); color: var(--paper); padding: clamp(2rem, 5vw, 3rem) 0; }
.rg-short .wrap { display: grid; gap: .8rem 3rem; }
@media (min-width: 900px) { .rg-short .wrap { grid-template-columns: 13rem 1fr; } }
.rg-short h2 { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; color: var(--sand); margin-top: .3rem; }
.rg-short p { font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.5; max-width: 36em; color: #f1f4f5; }
.rg-short strong { color: var(--white); }

/* Artikel mit Inhaltsverzeichnis rechts */
.rg-body { display: grid; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
@media (min-width: 1060px) { .rg-body { grid-template-columns: minmax(0, 44rem) 15rem; justify-content: space-between; } }
.rg-toc { font-size: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; align-self: start; }
@media (min-width: 1060px) { .rg-toc { position: sticky; top: 6.5rem; grid-column: 2; grid-row: 1; } }
.rg-toc h2 { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.rg-toc ol { list-style: none; display: grid; }
.rg-toc a { display: block; padding: .45rem 0 .45rem .9rem; border-left: 1px solid var(--line-strong); color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.rg-toc a:hover { color: var(--ink); }
.rg-toc a.active { color: var(--ink); font-weight: 700; border-left-color: var(--beacon); }

.rg-prose { min-width: 0; }
.rg-prose > * + * { margin-top: 1.15rem; }
.rg-prose h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin-top: 3.6rem; scroll-margin-top: 6.5rem; text-wrap: balance; }
.rg-prose h2:first-child { margin-top: 0; }
.rg-prose h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin-top: 2rem; }
.rg-prose p, .rg-prose li { color: var(--ink-soft); }
.rg-prose strong { color: var(--ink); }
.rg-prose a { font-weight: 600; text-underline-offset: 3px; }
.rg-prose ul { padding-left: 1.3rem; display: grid; gap: .5rem; }
.rg-prose ul li::marker { color: var(--beacon); }

/* Querschnitt-Grafik: verklebt vs. aufgelockert */
.loft { margin: 2.2rem 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); }
.loft svg { width: 100%; height: auto; }
.loft figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: .8rem; }
.loft .fill-lofty circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .loft.is-live .fill-lofty circle { animation: puff 1.4s cubic-bezier(.2, .8, .2, 1) both; }
  .loft.is-live .fill-lofty circle:nth-child(3n) { animation-delay: .12s; }
  .loft.is-live .fill-lofty circle:nth-child(3n+1) { animation-delay: .24s; }
  .loft.is-live .loft-top { animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes puff { from { transform: scale(.35); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(38px); } to { transform: translateY(0); } }

/* Kreislauf als nummerierte Kette */
.cycle { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; margin-top: 1.6rem; counter-reset: c; }
.cycle li { counter-increment: c; position: relative; padding: 0 0 1.4rem 3.6rem; }
.cycle li::before { content: counter(c); position: absolute; left: 0; top: -.1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--paper-cool); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; color: var(--slate-deep); font-size: 1.05rem; }
.cycle li::after { content: ''; position: absolute; left: 1.25rem; top: 2.5rem; bottom: .1rem; border-left: 1px dashed var(--line-strong); }
.cycle li:last-child::after { display: none; }
.cycle li:last-child { padding-bottom: 0; }
.cycle strong { display: block; color: var(--ink); }

/* Wetterkarte SH */
.coast { margin: 2.2rem 0; display: grid; gap: 1.4rem; align-items: center; background: var(--paper-cool); border-radius: 14px; padding: clamp(1.3rem, 3vw, 2rem); }
@media (min-width: 720px) { .coast { grid-template-columns: 15rem 1fr; } }
.coast svg { width: 100%; max-width: 15rem; height: auto; margin-inline: auto; }
.coast p { margin: 0; color: var(--ink-soft); }
.coast p + p { margin-top: .8rem; }

/* Vorher / Nachher */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 2rem 0 .4rem; }
.pair figure { position: relative; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.pair figcaption { position: absolute; left: .7rem; bottom: .7rem; background: rgba(245, 247, 248, .95); color: var(--ink); font-weight: 700; font-size: 1rem; padding: .25rem .75rem; border-radius: 999px; }
.pair-note { font-size: 1rem; color: var(--ink-soft); }

/* Selbsttest */
.signs { list-style: none; padding: 0 !important; gap: 0 !important; border-top: 1px solid var(--line-strong); }
.signs li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.signs svg { width: 1.6rem; height: 1.6rem; color: var(--slate); margin-top: .2rem; }

/* Intervall-Tabelle */
.interval { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 1.05rem; }
.interval th, .interval td { text-align: left; padding: .95rem .8rem .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.interval thead th { font-family: var(--ff-display); font-size: 1rem; border-bottom: 2px solid var(--ink); color: var(--ink); }
.interval td:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.interval td { color: var(--ink-soft); }

/* Tipp */
.tip { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.5rem; }
.tip .lbl { display: block; font-family: var(--ff-display); font-weight: 700; color: var(--beacon-deep); margin-bottom: .3rem; }

/* Preise */
.prices { margin-top: 1.4rem; border-top: 2px solid var(--ink); }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.prices span { color: var(--ink-soft); }
.prices b { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.prices b.open { font-family: var(--ff-body); font-size: 1.05rem; text-align: right; white-space: normal; }

/* CTA */
.rg-cta { background: var(--slate); color: var(--white); border-radius: 16px; padding: clamp(2rem, 5vw, 3rem); margin-top: 3.4rem !important; }
.rg-cta h2 { color: var(--white); margin: 0 !important; }
.rg-cta p { color: #e4ecf0 !important; margin: .9rem 0 1.6rem; }
.rg-cta .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .9rem 1.8rem; background: var(--beacon); color: var(--white) !important; font-weight: 700; font-size: 1.1rem; border-radius: 999px; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: var(--beacon-deep); transform: translateY(-2px); }
.btn svg { width: 1.15rem; height: 1.15rem; }
.rg-cta .tel { color: var(--white); font-weight: 700; }
.rg-cta .alt { font-size: 1.02rem; margin: 1.2rem 0 0; }
.rg-cta .alt a { color: var(--white); }

/* 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.15rem 0; font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--ink); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--ff-body); font-size: 1.8rem; line-height: 1; color: var(--beacon); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0 0 1.2rem; }

/* Weiterlesen */
.more { display: grid; gap: .8rem; margin-top: 1.2rem; }
.more a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.more a:hover { border-color: var(--slate); }
.more a::after { content: '→'; color: var(--beacon); font-weight: 700; }

/* Footer */
footer { padding: 3rem 1.25rem 6.5rem; background: var(--ink); color: rgba(245, 247, 248, .78); text-align: center; font-size: 1rem; }
@media (min-width: 880px) { footer { padding-bottom: 3rem; } }
.footer-inner { max-width: 900px; margin: 0 auto; display: grid; gap: 1.2rem; justify-items: center; }
.footer-brand { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; color: var(--white); }
.footer-brand small { display: block; font-family: var(--ff-body); font-size: .85rem; font-weight: 500; color: var(--sand); margin-top: .3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center; }
footer a { color: rgba(245, 247, 248, .88); }
footer a:hover { color: var(--sand); }

/* Sticky CTA mobil */
.sticky-cta { position: fixed; bottom: 1rem; right: 1rem; left: 1rem; justify-content: center; background: var(--beacon); color: var(--white); padding: 1rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 10px 30px rgba(192, 74, 58, .4); z-index: 99; display: inline-flex; align-items: center; gap: .5rem; }
.sticky-cta svg { width: 16px; height: 16px; }
@media (min-width: 880px) { .sticky-cta { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prices div.row-open { flex-wrap: wrap; }
.prices div.row-open b.open { flex-basis: 100%; text-align: left; color: var(--ink); }

/* Hygiene-Check */
.hcheck { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); margin-top: 1.4rem !important; }
.hcheck fieldset { border: 0; display: grid; gap: .6rem; }
.hcheck legend { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; margin-bottom: .6rem; color: var(--ink); }
.hcheck label { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; align-items: start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink-soft); min-height: 48px; }
.hcheck label:hover { border-color: var(--slate); }
.hcheck input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; accent-color: var(--slate); }
.hcheck label:has(input:checked) { border-color: var(--slate); background: var(--paper-cool); color: var(--ink); }
.hcheck-out { margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: 10px; background: var(--paper-cool); color: var(--ink); }
.hcheck-out strong { display: block; font-family: var(--ff-display); font-size: 1.15rem; }
.hcheck-out.level-2 { background: #f6e9e6; }
.hcheck-out.level-2 strong { color: var(--beacon-deep); }

/* Zwei Spalten Zuhause / Ferienwohnung */
.split { display: grid; gap: 1.4rem; margin-top: 1.4rem !important; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { border-top: 3px solid var(--slate); padding-top: 1rem; }
.split > div:last-child { border-top-color: var(--beacon); }
.split h3 { margin-top: 0 !important; }
.split ul { margin-top: .6rem; }
.hcheck-out a { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--beacon-deep); }

/* Kopfzeile: Kontakt und Telefon, auf dem Handy als runde Symbol-Buttons */
.hdr-ico { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; }
.hdr-ico svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--slate); }
.hdr-ico[aria-current] span { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 700px) {
  .nav-right { gap: .6rem; }
  .hdr-ico { width: 48px; height: 48px; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 50%; }
  .hdr-ico span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr-ico svg { width: 1.3rem; height: 1.3rem; }
}
