/* ============================================
   Landingpages mit eigenem Design (ohne css/style.css der Göck-Seite)
   Gemeinsames Gerüst: Reset, Raster, Fragen, Reveals, Kontaktfeld.
   Farben, Schriften, Navigation, Kopf und Schaltflächen kommen aus
   thema-verzeichnis.css bzw. thema-wandel.css. Die Tokens, die
   landing.css erwartet (--cream, --border, --dark ...), setzt das Thema.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--text-body);
  font: 400 clamp(16px, 1.05vw, 17px)/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.zu { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
p, ul, ol, dl, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--dark); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -.015em; }
h3 { line-height: 1.2; }
p + p, h2 + p { margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--dark); color: #fff;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Sektionskopf ------------------------------------------------------ */
p.tag, .lp-sektion p.tag, .sv-werkzeug .lp-rechner-kopf p.tag, .tag {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: .9rem;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--tag);
}
.section-header h2 { max-width: 22ch; }
.section-header p { margin-top: 1rem; font-size: 1.05rem; color: var(--mid-gray); }

/* --- Schaltflächen: Gerüst, die Gestalt setzt das Thema ---------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transform: translateY(var(--lift, 0));
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-icon { transition: transform .3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta .hero-cta { margin-top: 0; }

/* --- Häufige Fragen ---------------------------------------------------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  min-height: 56px; padding: 1.15rem 0;
  font: 500 1.06rem/1.45 var(--sans); color: var(--dark);
  cursor: pointer;
}
.faq-q:hover, .faq-item.open .faq-q { color: var(--akzent); }
.faq-chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform .35s var(--ease); }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-item.open .faq-a { max-height: 1200px; }
.faq-a-inner { padding: 0 0 1.3rem; color: var(--text-body); }
.faq-a-inner ul { margin-top: .6rem; padding-left: 1.15rem; }

/* --- Scroll-Reveals ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* --- Satz färbt sich Wort für Wort ------------------------------------- */
.th-welle { padding: clamp(36px, 3.6vw, 56px) 0; background: var(--welle-grund); }
.th-welle p {
  max-width: 24ch;
  font: 400 clamp(30px, 4.2vw, 56px)/1.2 var(--serif);
  letter-spacing: -.015em;
  color: var(--welle-blass);
}
.th-welle .w { transition: color .5s var(--ease); }
.th-welle .w.hot { color: var(--welle-voll); }
.th-welle .w.hot.betont { color: var(--akzent); }

/* --- Navigation: Gerüst ------------------------------------------------ */
.th-nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.th-nav-innen { height: 100%; max-width: calc(var(--wrap) + 80px); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.th-marke { display: flex; align-items: center; gap: 12px; min-width: 0; }
.th-burger {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid currentColor; cursor: pointer;
}
.th-burger span { position: relative; width: 18px; height: 1.5px; background: currentColor; }
.th-burger span::before, .th-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; }
.th-burger span::before { top: -6px; }
.th-burger span::after { top: 6px; }

/* Schublade: immer deckend, nie Glas über Inhalt */
.th-schublade {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 28px;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.th-schublade.offen { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.th-schublade-zu {
  position: absolute; top: 14px; right: var(--gutter);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.th-schublade-zu svg { width: 18px; height: 18px; }

/* --- Kontaktfeld unten rechts ------------------------------------------ */
.th-kontakt { position: fixed; right: 18px; bottom: 18px; z-index: 90; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
.th-kontakt.weg { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.th-kontakt-knopf {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 20px 0 16px;
  border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans);
}
.th-puls { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--puls); flex-shrink: 0; }
.th-puls::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--puls); animation: th-puls 2.8s ease-out infinite; }
@keyframes th-puls { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.th-kontakt-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 36px));
  padding: 10px;
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.th-kontakt.offen .th-kontakt-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.th-kontakt-panel ul { list-style: none; margin: 0; padding: 0; }
.th-kontakt-panel li { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); transition-delay: calc(.06s * var(--n) + .08s); }
.th-kontakt.offen .th-kontakt-panel li { opacity: 1; transform: none; }
.th-kontakt-panel a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 56px; }
.th-kontakt-panel svg { width: 20px; height: 20px; flex-shrink: 0; }
.th-kontakt-panel strong { display: block; font-weight: 500; font-size: 15px; }
.th-kontakt-panel small { display: block; font-size: 13px; opacity: .75; }
@media (max-width: 560px) {
  .th-kontakt-knopf { width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .th-kontakt-knopf .th-kontakt-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 640px) {
  main .lp-cta .btn, .hero-cta .btn { white-space: normal; text-align: left; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
}

/* --- Rechner im fremden Thema ------------------------------------------ */
#kalkulator .kfg-wrap { font-size: 16px; }
.lp-rechner-kopf { padding: 0 var(--gutter); max-width: var(--wrap); }
.sv-werkzeug .sv-wrap { max-width: var(--wrap); padding: 0 var(--gutter); }

/* --- Ruhezustand ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .th-welle .w { color: var(--welle-voll); }
}
html.sparsam *, html.sparsam *::before, html.sparsam *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; will-change: auto !important; }
html.sparsam .th-puls::after { animation: none; }

/* --- Rechtsseiten (Impressum, Datenschutz, 404) ------------------------ */
.th-rechtsseite .th-nav { position: sticky; }
.th-recht-tel { margin-left: auto; font-weight: 500; white-space: nowrap; }
.th-recht { padding: clamp(36px, 5vw, 72px) 0; }
.th-recht .container { max-width: 820px; }
.th-recht h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin-bottom: 28px; }
.th-recht h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 34px 0 10px; }
.th-recht h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.th-recht p, .th-recht li { color: var(--text-body); }
.th-recht ul { padding-left: 1.2rem; margin: .6rem 0; }
.th-recht a { text-decoration: underline; text-underline-offset: .18em; overflow-wrap: anywhere; }
.th-recht-fuss { padding: 28px 0 40px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--soft-gray); }
.th-recht-fuss a { text-decoration: underline; text-underline-offset: .18em; }
