/* =====================================================================
   makerus-consulting.de · Whitepaper-Funnel (3-Speichen-Prinzip)
   Design-System nach der Makerus-Design-Sprache (research/DESIGN.md):
   Tiefgrün #054027 · Gold #CBBC89 · Hellgrau #F1F1F1 · Archivo/Bellefair/Abel
   ===================================================================== */

/* ---------- Fonts (self-hosted, DSGVO) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bellefair";
  src: url("../fonts/bellefair.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Abel";
  src: url("../fonts/abel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #054027;        /* Primary (Makerus Tiefgrün) */
  --green-deep: #032b1b;   /* dunklere Stufe für Overlays/Verläufe */
  --green-soft: #0a4f32;   /* hellere Stufe für Hover */
  --gold: #CBBC89;         /* Accent + CTA auf dunkel */
  --gold-deep: #b9a76c;    /* Gold hover */
  --gold-ink: #221d0e;     /* Text auf Gold (WCAG) */
  --light: #F1F1F1;        /* helle Sektionen */
  --ink: #181818;
  --muted: #55605a;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(5, 64, 39, 0.14);
  --radius: 16px;
  --pill: 999px;
  --container: 1140px;
  --section-y: 44px;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Bellefair", Georgia, serif;
  --font-accent: "Abel", "Archivo", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--light);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons (Makerus-Pills, immer voll rund) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--pill);
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;            /* Lesson 82: nie aus Karten ausbrechen */
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(5, 64, 39, 0.28); }
.btn--green:hover { background: var(--green-soft); transform: translateY(-1px); }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.65); box-shadow: none; }
.btn--outline:hover { border-color: #fff; transform: translateY(-1px); }
.btn--lg { padding: 18px 40px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: default; transform: none; }

/* ---------- Header (dunkel, Logo immer sichtbar, CTA nach dem Hero) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: auto; height: 54px; }
.header .btn { padding: 12px 26px; font-size: 0.95rem; } /* immer sichtbar (Jonas, 2026-07-25) */

/* ---------- Hero (Tiefgrün-Duotone wie auf der Live-Site) ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center 30% / cover no-repeat;
  opacity: 0.16;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(3, 43, 27, 0.92) 0%, rgba(5, 64, 39, 0.55) 55%, rgba(3, 43, 27, 0.85) 100%);
}
.hero > * { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.hero__cta { margin-bottom: 26px; }
.hero__benefits {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.hero__benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.04rem; color: rgba(255, 255, 255, 0.92); min-width: 0; }
.hero__benefits .bt { min-width: 0; } /* Text als EIN Flex-Item (sonst werden <strong> eigene Items mit Luecken) */
.hero__benefits .bt strong { color: var(--gold); }
.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(203, 188, 137, 0.16);
  border: 1px solid rgba(203, 188, 137, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.micro-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-accent);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.micro-trust span { display: inline-flex; align-items: center; gap: 8px; }
.micro-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Mockup: Desktop rechtsbündig in seiner Spalte (Lesson 67/68: Breite auf den Wrapper) */
.hero__media { min-width: 0; }
.cover-wrap {
  width: min(480px, 100%);
  margin-left: auto;
  margin-right: 40px;
}
.cover-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}
.cover-wrap:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .cover-wrap img, .btn, .reveal { transition: none !important; }
}
.hero__cover-m { display: none; }
.hero__cta--m { display: none; }

/* Trust-Banner am unteren Hero-Rand */
.hero__trust { border-top: 1px solid var(--line-dark); padding: 18px 0; background: rgba(3, 43, 27, 0.35); }
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}
.trust-chip { display: inline-flex; align-items: center; gap: 10px; }
.trust-chip strong { color: #fff; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.trust-chip svg { width: 20px; height: 20px; stroke: var(--gold); }

/* ---------- Sektionen ---------- */
.section { padding: var(--section-y) 0; }

/* ---------- Final-CTA (hell, damit Hero (dunkel) -> CTA (hell) -> Footer (dunkel) rhythmisiert) ---------- */
.final-cta {
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.final-cta h2 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.final-cta p { color: var(--muted); max-width: 36em; margin: 0 auto 30px; font-size: 1.08rem; }
.final-cta .micro-trust { justify-content: center; margin-top: 22px; color: var(--muted); }

/* ---------- Footer (Tiefgrün, minimal) ---------- */
.footer { background: var(--green-deep); color: rgba(255, 255, 255, 0.75); padding: 40px 0 30px; font-size: 0.95rem; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.footer .logo { color: #fff; }
.footer .logo-mark { width: 30px; height: auto; }
.footer .logo-name { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; color: #f5efdc; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__disclaimer { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; margin: 0; max-width: 62em; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(3, 43, 27, 0.92);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  display: none;
}
.sticky-cta.is-visible { transform: none; }

/* ---------- Modal Opt-in ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3, 43, 27, 0.72); }
.modal__box {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  margin: 6vh auto;
  padding: 36px 32px 28px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
}
.modal__box h3 { font-size: 1.45rem; margin-bottom: 8px; padding-right: 28px; }
.modal__sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9d9d4;
  border-radius: 12px;
  font: inherit;
  background: #fafaf8;
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: #fff; }
.field input.invalid { border-color: #b3261e; background: #fdf6f5; }
.field__err { display: none; color: #b3261e; font-size: 0.83rem; margin-top: 5px; }
.field input.invalid + .field__err, .field input.invalid ~ .field__err { display: block; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; min-width: 0; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 0; font-size: 0.9rem; }
.form-msg.error { color: #b3261e; margin-bottom: 10px; }
.form-consent { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-consent a { color: var(--green); }
.modal__trust { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-family: var(--font-accent); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cookie banner (rechts unten, Lesson 75) ---------- */
.cookie {
  position: fixed;
  right: 18px;
  left: auto;
  bottom: 18px;
  z-index: 90;
  width: min(440px, calc(100vw - 36px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 20px 20px 16px;
  display: none;
}
.cookie.is-open { display: block; }
.cookie h4 { margin: 0 0 6px; font-size: 1.02rem; }
.cookie p { font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; }
.cookie p a { color: var(--green); }
.cookie__opts { display: none; margin-bottom: 12px; }
.cookie__opts.is-open { display: block; }
.cookie__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eee; font-size: 0.9rem; }
.cookie__opt small { display: block; color: var(--muted); font-size: 0.78rem; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; transition: 0.2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: 0.5; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__actions .btn { padding: 10px 16px; font-size: 0.86rem; box-shadow: none; }
.btn--ghost { background: var(--light); color: var(--ink); }
.btn--ghost:hover { background: #e6e6e6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Danke-Seite ---------- */
.page-danke { background: var(--light); }
.ty { text-align: center; max-width: 720px; }
.ty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.ty__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ty h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ty .lead { color: var(--muted); font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 22px; }
.step__no {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(203, 188, 137, 0.25);
  color: #7a6a37;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.ty__call { background: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 48px); }
.ty__call h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ty__call > .center > p { color: var(--muted); max-width: 40em; margin: 0 auto 26px; }
.cal-embed { margin-top: 8px; }
.cal-placeholder { text-align: center; padding: 30px 16px; }
.cal-ico { width: 52px; height: 52px; margin: 0 auto 14px; }
.cal-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; }
.cal-note { display: none; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* =====================================================================
   MOBILE (eigenes Layout, nicht geschrumpfter Desktop)
   ===================================================================== */
@media (max-width: 860px) {
  body { font-size: 16px; }

  .header__inner { min-height: 62px; justify-content: center; }
  .logo-img { height: 44px; }
  .header .btn { display: none; } /* Formular ist einen Tap entfernt (Sticky-CTA) */

  /* Hero: eine Spalte, KX-Reihenfolge (Lesson 66):
     Headline -> Sub -> CTA -> Mockup -> Checkmarks -> 2. CTA -> Trust */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; padding-bottom: 32px; }
  .hero__media { display: none; }
  /* DOM ist Desktop-Reihenfolge (Bullets ÜBER dem Button, KX 2026-07-25).
     Mobile-Reihenfolge (Lesson 66) via flex order: H1 -> CTA -> Mockup -> Bullets -> 2. CTA -> Trust */
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy h1 { order: 1; }
  .hero__copy .hero__cta { order: 2; }
  .hero__copy .hero__cover-m { order: 3; }
  .hero__copy .hero__benefits { order: 4; }
  .hero__copy .hero__cta--m { order: 5; }
  .hero__copy .micro-trust { order: 6; }
  .hero__cover-m { display: block; margin: 4px auto 22px; width: min(230px, 62vw); }
  .hero__cover-m img { width: 100%; filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.4)); }
  .hero__cta--m { display: block; margin-bottom: 22px; }
  /* H1 mobil: exakt 2 Zeilen (je Satz eine), Groesse skaliert mit Viewport (Jonas 2026-07-25).
     6.15vw = gemessen: "Mit dem 3-Speichen-Prinzip." passt damit bei 320-430px genau in eine Zeile. */
  .hero h1 { font-size: clamp(1.3rem, 6.15vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.18; }
  .hero__sub { font-size: 1.02rem; margin-bottom: 20px; }
  .hero__cta { margin-bottom: 22px; }
  .hero__cta .btn, .hero__cta--m .btn { width: 100%; }
  .hero__benefits { margin-bottom: 22px; }
  .hero__benefits li { font-size: 0.97rem; }
  .micro-trust { gap: 14px; font-size: 0.78rem; }
  .micro-trust .mt-hide-m, .t-extra { display: none; } /* mobil: weniger Signale, eine Zeile */

  /* Trust: weniger Signale, eine Zeile, dezente Box (Lesson 39) */
  .hero__trust { padding: 12px 0; }
  .trust-row { gap: 12px; font-size: 0.88rem; }
  .trust-chip--hide-mobile, .trust-dot { display: none; }
  .trust-chip { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 8px 12px; }

  .final-cta p { font-size: 1rem; }
  .final-cta .btn { width: 100%; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 14px; }

  .sticky-cta { display: block; }

  .steps { grid-template-columns: 1fr; }
  .modal__box { margin: 4vh 14px; padding: 28px 20px 22px; }
  .field-row { flex-direction: column; gap: 0; }

  .cookie { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 14px 14px 12px; }
  .cookie p { font-size: 0.8rem; margin-bottom: 8px; }
}

@media (min-width: 861px) {
  .btn--noWrap { white-space: nowrap; }
}
.nw-d { white-space: nowrap; } /* "3-Speichen-Prinzip." nie mit Hyphen-Umbruch trennen (passt bis 320px) */
