/* ============================================================
   Verdor — ZENTRALE BAUSTEINE
   Wiederverwendbare Elemente. Wird von jeder Seite eingebunden.
   Alle Farben stammen ausschliesslich aus tokens.css.
   ============================================================ */

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-light);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--ls-head);
  line-height: var(--lh-head);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; }

/* ---------- Layout-Bausteine ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-11) 0; position: relative; }
.section--tight { padding: var(--s-9) 0; }

/* ---------- Sektionskopf ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow--center { justify-content: center; }
.sec-head { display: flex; flex-direction: column; gap: var(--s-5); max-width: 720px; }
.sec-head--center { align-items: center; text-align: center; margin: 0 auto; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { font-size: var(--fs-lead); color: var(--text-on-light-muted); }
.on-dark .sec-head p { color: var(--text-on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 0 var(--s-6);
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .35s var(--ease-out), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: 0 0 auto; }

/* Primaer = Orange. Reserviert fuer "Anrufen" und "Jetzt Kontakt aufnehmen". */
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 16px 40px -12px rgba(236,91,56,.7); }
.btn--primary:active { background: var(--accent-press); }
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost-light {
  border: 1px solid var(--hairline-dark);
  color: var(--cream-50);
  background: rgba(252,242,229,.04);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { border-color: var(--cream-100); color: var(--cream-50); background: rgba(252,242,229,.10); }

.btn--ghost-dark { border: 1px solid var(--hairline-light); color: var(--ink-800); }
.btn--ghost-dark:hover { border-color: var(--ink-800); color: var(--ink-900); background: rgba(82,70,70,.04); }

.btn--block { width: 100%; }
.btn--lg { min-height: 64px; padding: 0 var(--s-7); font-size: 15px; }

/* ---------- Textlink mit Pfeil ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Karten ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-card);
  padding: var(--s-7);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.card p { color: var(--text-on-light-muted); font-size: var(--fs-small); line-height: 1.6; }

.card--dark { background: rgba(252,242,229,.035); border-color: var(--hairline-dark); }
.card--dark h3 { color: var(--cream-50); }
.card--dark p { color: var(--text-on-dark-muted); }
.card--dark:hover { background: rgba(252,242,229,.06); border-color: var(--accent-line); }

/* ---------- Schrittkarte (01. 02. 03.) ---------- */
.step { display: flex; gap: var(--s-5); align-items: flex-start; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 46px;
  line-height: .9; color: var(--accent); letter-spacing: -.04em; flex: 0 0 auto;
}
.step h3 { font-size: 21px; margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-small); line-height: 1.6; color: var(--text-on-light-muted); }
.on-dark .step p { color: var(--text-on-dark-muted); }

/* ---------- Kennzahl ---------- */
.stat { display: flex; flex-direction: column; gap: var(--s-1); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--cream-50); }
.stat__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-dark-muted); }

/* ---------- Formularfelder ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage-500);
}
.input, .textarea, .select {
  width: 100%;
  min-height: 56px;
  padding: var(--s-4);
  border-radius: var(--r-field);
  border: 1px solid var(--hairline-dark);
  background: rgba(252,242,229,.05);
  color: var(--cream-50);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: rgba(252,242,229,.35); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(252,242,229,.09);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select { appearance: none; cursor: pointer; padding-right: 44px; }
.select option { background: var(--ink-800); color: var(--cream-50); }
.field--error .input, .field--error .textarea, .field--error .select { border-color: #E0563A; }
.field__err { font-size: 12.5px; color: #F08C78; letter-spacing: .01em; }

/* ---------- Kontaktzeile ---------- */
.contact-line { display: flex; align-items: center; gap: var(--s-4); }
.contact-line__icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-line); border-radius: 50%; color: var(--accent);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-line:hover .contact-line__icon { background: var(--accent); color: #fff; }
.contact-line__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-500); }
.contact-line__value { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }

/* ---------- Platzhalter-Auszeichnung ---------- */
.ph {
  background: var(--accent-soft);
  box-shadow: inset 0 -1px 0 var(--accent-line);
  padding: 0 4px;
  border-radius: 2px;
  /* Kein nowrap: lange Platzhalter muessen umbrechen duerfen,
     sonst sprengen sie auf schmalen Bildschirmen die Spalte. */
  overflow-wrap: anywhere;
}

/* ---------- Trennlinien ---------- */
.hr-dark { height: 1px; background: var(--hairline-dark); border: 0; margin: 0; }
.hr-light { height: 1px; background: var(--hairline-light); border: 0; margin: 0; }

/* ---------- Kopfzeile ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), min-height .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(28,24,23,.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hairline-dark);
  min-height: 66px;
}
.page { position: relative; background: var(--cream-100); }
.hero-offset { margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cream-50);
  display: flex; align-items: baseline; gap: 3px;
}
.logo__dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: var(--s-6); }
.nav__link {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--text-on-dark);
  position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--cream-50); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--cream-50); }

/* ---------- Fusszeile ---------- */
.foot__title {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage-500); margin-bottom: var(--s-4);
}
.foot__list { display: flex; flex-direction: column; gap: var(--s-3); }
.foot__list a, .foot__list span { color: var(--text-on-dark-muted); font-size: 15px; }
.foot__list a:hover { color: var(--accent); }

/* ---------- Bewegung: Einblenden beim Scrollen ----------
   Grundzustand ist SICHTBAR. Verborgen wird erst, wenn das
   Bewegungsmodul .motion-ready gesetzt hat — bleibt die Meldung
   des IntersectionObserver aus, nimmt es die Klasse wieder weg
   und der Inhalt steht ganz normal da. */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion-ready .reveal { opacity: 0; transform: translateY(28px); }
.motion-ready .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; }

/* Zeilenweiser Titelaufbau */
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line-mask > span { display: block; transition: transform 1.05s var(--ease-out); }
.motion-ready .line-mask > span { transform: translateY(105%); }
.motion-ready .is-in .line-mask > span,
.motion-ready .line-mask.is-in > span { transform: none; }
.line-mask.d1 > span { transition-delay: .10s; }
.line-mask.d2 > span { transition-delay: .20s; }

/* ---------- Parallax ---------- */
.px-wrap { position: relative; overflow: hidden; }
.px-layer { position: absolute; inset: -18% 0; will-change: transform; }
.px-layer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bild-Overlays ---------- */
.veil-dark::after {
  content: ""; position: absolute; inset: 0;
  /* Der letzte Halt ist DECKEND und traegt exakt die Farbe des folgenden
     Abschnitts (--ink-850). Sonst schlagen helle Stellen des Fotos noch
     durch und es entsteht eine sichtbare Kante zur naechsten Sektion. */
  background: linear-gradient(180deg,
    rgba(28, 24, 23, .74) 0%,
    rgba(28, 24, 23, .56) 45%,
    rgba(34, 29, 28, .93) 92%,
    rgb(34, 29, 28) 100%);
  pointer-events: none;
}
.veil-soft::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(28,24,23,.66); pointer-events: none;
}

/* ---------- Karte mit Einwilligung ----------
   Vor der Zustimmung ist nur die gezeichnete Skizze zu sehen; das iframe
   entsteht erst per JavaScript nach aktivem Einverstaendnis. */
.karte {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline-dark);
  background: var(--ink-800);
}
.karte__skizze { display: block; width: 100%; height: 100%; }
.karte__rahmen { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.karte__sperre {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
  background: rgba(28, 24, 23, .84);
  backdrop-filter: blur(6px);
}
.karte__sperre[hidden] { display: none; }
.karte__box {
  max-width: 430px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.karte__titel { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--cream-50); }
.karte__text { font-size: 13.5px; line-height: 1.55; color: var(--text-on-dark-muted); }
.karte__merken {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-on-dark-muted); cursor: pointer;
}
.karte__merken input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--accent); }
.karte__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--s-2); }
.karte__knoepfe .btn { min-height: 46px; padding: 0 var(--s-5); font-size: 12.5px; }
.karte__fuss {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3);
}
.karte__widerruf {
  font-size: 12.5px; color: var(--text-on-dark-muted);
  text-decoration: underline; text-underline-offset: 3px; padding: 4px 0;
}
.karte__widerruf:hover { color: var(--accent); }
.karte__widerruf[hidden] { display: none; }

/* ---------- Akkordeon ---------- */
.acc { border-top: 1px solid var(--hairline-light); }
.acc__item { border-bottom: 1px solid var(--hairline-light); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) 0; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  color: var(--ink-800); transition: color .25s var(--ease);
  min-height: 64px;
}
.acc__btn:hover { color: var(--accent); }
.acc__sign { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .4s var(--ease-out), opacity .3s;
}
.acc__sign::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.acc__sign::after  { top: 0; left: 7.5px; height: 16px; width: 1.5px; }
.acc__item.is-open .acc__sign::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .55s var(--ease-out), opacity .4s var(--ease); opacity: 0; }
.acc__item.is-open .acc__panel { max-height: 340px; opacity: 1; }
.acc__panel p { padding-bottom: var(--s-5); color: var(--text-on-light-muted); font-size: 16px; max-width: 62ch; }

/* ---------- Sticky Aktionsleiste (mobil) ---------- */
.dock { display: none; }

/* ============================================================
   RESPONSIV
   ============================================================ */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --fs-h1: 54px; --fs-h2: 38px; --fs-display: 68px; --s-11: 112px; }
}
@media (max-width: 760px) {
  :root {
    --gutter: 20px; --fs-h1: 38px; --fs-h2: 29px; --fs-h3: 21px;
    --fs-display: 42px; --fs-lead: 17px; --fs-body: 16px;
    --s-9: 64px; --s-10: 72px; --s-11: 80px;
    --nav-h: 64px;
  }
  .nav__links { display: none; }
  .sec-head { max-width: none; }
  /* Lange Beschriftungen duerfen auf schmalen Geraeten umbrechen statt
     abgeschnitten zu werden: weniger Innenabstand, engere Sperrung,
     und als Sicherheitsnetz Zeilenumbruch. */
  .btn {
    min-height: 52px; width: 100%;
    padding: 12px var(--s-4);
    letter-spacing: .06em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .btn--lg { min-height: 56px; padding: 14px var(--s-4); font-size: 13.5px; }
  /* Auf den breiten Absende-Buttons entfaellt der schmueckende Pfeil,
     damit die Beschriftung in eine Zeile passt und mittig sitzt. */
  .btn--block svg { display: none; }
  .stat__value { font-size: 32px; }
  .step__num { font-size: 36px; }
  .acc__btn { font-size: 17px; }
  .karte { height: auto; min-height: 420px; }
  .karte__knoepfe { width: 100%; }
  .karte__knoepfe .btn { min-height: 52px; }
  .page { padding-bottom: 76px; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px;
    padding: 10px 16px 14px;
    background: rgba(28,24,23,.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline-dark);
  }
  .dock .btn { flex: 1; min-height: 52px; font-size: 12.5px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-mask > span { transition: none !important; opacity: 1 !important; transform: none !important; }
  .px-layer { transform: none !important; }
}
