/* ==========================================================================
   LOTUNG · Visual Redesign v3.0
   --------------------------------------------------------------------------
   Architektur:
     1. CORE LAYER  — Design Tokens (5-Jahre-stabil): Farben, Spacing, Typo
     2. RESET       — sanfter, BFSG-konform
     3. ELEMENTS    — Typo, Buttons, Forms, Hairlines
     4. LAYOUT      — Header, Hero, Sektionen, Footer
     5. COMPONENTS  — Founder, Atmosphäre, Sticky Phone, FAQ, Checkliste
     6. UTILITIES   — Hidden, Skip-Link, Reduced Motion
   ========================================================================== */

/* ================== 1. CORE LAYER · Design Tokens ====================== */
:root {
  /* Farben · Brief-Palette */
  --bg-primary:     #F6F2EB;   /* warmes Off-White */
  --bg-secondary:   #EFE9DD;   /* Sektionswechsel */
  --bg-elevated:    #FBF8F2;   /* Modals, Tooltips */

  --ink-primary:    #2A2724;   /* warmes Anthrazit */
  --ink-secondary:  #6B645C;   /* Meta, Captions */
  --ink-muted:      #6B645C;   /* gleich --ink-secondary, fuer WCAG AA */

  --brand:          #2E4A5F;   /* gedecktes Tiefblau */
  --brand-hover:    #253B4C;
  --accent:         #B8956A;   /* Warmer Akzent · sparsam */

  --border-subtle:  #E5DFD3;
  --success:        #4A6B47;
  --error:          #8B4A42;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing-Skala — nur diese Werte */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  16px;
  --s-4:  24px;
  --s-5:  32px;
  --s-6:  48px;
  --s-7:  64px;
  --s-8:  96px;
  --s-9:  128px;

  /* Layout */
  --max-w: 1200px;
  --gutter: 24px;
  --container-pad-mobile: 24px;
  --container-pad-desktop: 48px;

  /* Border-Radius (max 6 px laut Brief) */
  --radius: 6px;

  /* Transitions */
  --t-color: 150ms ease;
}

/* ================== 2. FONTS ============================================ */
/* Lokale Inter-Variable. Ein File, beide Gewichte 400/500. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-named-instance: "Regular";
}

/* ================== 3. RESET ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-color);
}
a:hover { color: var(--brand-hover); }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--accent); color: var(--bg-primary); }

/* ================== 4. TYPOGRAFIE ====================================== */
h1, h2, h3 {
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);  /* 36 px mobile → 56 px desktop */
  line-height: 1.15;
  max-width: 22ch;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);  /* 28 → 40 px */
  line-height: 1.2;
  letter-spacing: -0.018em;
  max-width: 24ch;
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);  /* 20 → 24 px */
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p {
  max-width: 65ch;
  color: var(--ink-primary);
}
strong { font-weight: 500; }
hr { border: 0; height: 1px; background: var(--border-subtle); margin: 0; }

/* Eyebrow · Sektion-Label · Mini-Caption */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: var(--s-3);
}

/* ================== 5. CONTAINER & LAYOUT ============================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--container-pad-mobile);
  padding-right: var(--container-pad-mobile);
}
@media (min-width: 768px) {
  .container {
    padding-left: var(--container-pad-desktop);
    padding-right: var(--container-pad-desktop);
  }
}

/* ================== 6. HEADER ========================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-3);
  background: var(--ink-primary);
  color: var(--bg-primary);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: var(--s-3); color: var(--bg-primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-color), background var(--t-color);
}
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink-primary); }
.logo img { width: 22px; height: 26px; }

.site-nav {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
.site-nav a {
  color: var(--ink-primary);
  font-size: 15px;
  font-weight: 400;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.active { color: var(--brand); font-weight: 500; }

/* Zurück-Link auf Prüferseite — visuell abgesetzt */
.site-nav .nav-back {
  color: var(--ink-secondary);
  font-size: 14px;
  padding-left: var(--s-4);
  border-left: 1px solid var(--border-subtle);
  margin-left: var(--s-2);
}
.site-nav .nav-back:hover { color: var(--ink-primary); }
.site-nav .nav-back .arrow { transition: transform var(--t-color); display: inline-block; }
.site-nav .nav-back:hover .arrow { transform: translateX(-2px); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--bg-primary) !important;
  border-radius: var(--radius);
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
}
.nav-cta:hover {
  background: var(--brand-hover);
  color: var(--bg-primary) !important;
}
.nav-cta .arrow { transition: transform var(--t-color); }
.nav-cta:hover .arrow { transform: translateX(2px); }

@media (min-width: 880px) {
  .site-nav { display: flex; }
}

/* ================== 7. BUTTONS ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-color), color var(--t-color), border-color var(--t-color);
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-color);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--brand);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}
.btn-secondary:hover {
  background: var(--ink-primary);
  color: var(--bg-primary);
}

/* ================== 8. SECTIONS ======================================== */
.section {
  padding-top: var(--s-7);    /* 64 px Mobile */
  padding-bottom: var(--s-7);
  position: relative;
}
@media (min-width: 768px) {
  .section {
    padding-top: var(--s-8);   /* 96 px Desktop */
    padding-bottom: var(--s-8);
  }
}
.section--alt {
  background: var(--bg-secondary);
}

/* Schmale Akzentlinie zwischen Sektionen — sparsam, NIEMALS inflationär */
.accent-rule {
  width: 64px;
  height: 1px;
  background: var(--accent);
  border: 0;
  margin: 0 0 var(--s-4) 0;
}

/* Kicker (kleine Vor-Headline ohne Sektionsnummer — Brief verbietet 01/02-Präfix) */
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: var(--s-3);
}

.section-head { margin-bottom: var(--s-6); }
.section-head h2 + p { margin-top: var(--s-3); }
.section-body p + p { margin-top: var(--s-3); }
.section-body { max-width: 65ch; }

/* Asymmetrische Layout-Varianten */
.section--left .section-head { max-width: 720px; }

.section--two-col .section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 880px) {
  .section--two-col .section-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-8);
    align-items: start;
  }
}

.section--centered .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section--centered .section-head h2,
.section--centered .section-head .kicker { margin-left: auto; margin-right: auto; }

/* Schmale, zentrierte Sektion (Risk-Reversal etc.) — Schwartz: ruhiger Raum für Schutzversprechen */
.section--narrow .container { max-width: 760px; }
.section--narrow .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.section--narrow .section-head h2,
.section--narrow .section-head .kicker { margin-left: auto; margin-right: auto; }
.section--narrow .section-head .accent-rule { margin-left: auto; margin-right: auto; }
.section-body--centered { text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto; }
.section-body--centered p { color: var(--ink-primary); font-size: clamp(1.05rem, 1.2vw, 1.15rem); line-height: 1.6; }

/* ================== 9. HERO ============================================ */
.hero {
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  position: relative;
}
@media (min-width: 768px) {
  .hero {
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
    align-items: end;
  }
}

.hero-text { max-width: 720px; }
.hero h1 { margin-top: var(--s-3); margin-bottom: var(--s-4); }
.hero-sub {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-primary);
  margin-bottom: var(--s-4);
  max-width: 50ch;
}
.hero-deck {
  font-size: 17px;
  color: var(--ink-secondary);
  margin-bottom: var(--s-5);
  max-width: 60ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

/* Trust-Stack unter dem CTA — Schwartz-Conversion: Beweis bei der Tat */
.trust-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-size: 14px;
  color: var(--ink-secondary);
  align-items: center;
}
.trust-stack__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-stack__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero-Aside: dezente Bild-Textur als rechte Spalte. Mobil ausgeblendet. */
/* Full-bleed: Bild bricht aus dem Container-Padding aus und reicht bis zum Viewport-Rand */
.hero-aside {
  display: none;
  align-self: stretch;
  position: relative;
}
@media (min-width: 880px) {
  .hero-aside {
    display: block;
    min-height: 520px;
  }
}
.hero-aside__image {
  position: absolute;
  top: calc(-1 * var(--s-7));
  bottom: calc(-1 * var(--s-7));
  left: 0;
  /* Bricht aus dem Container nach rechts bis zum Viewport-Rand aus */
  right: calc(50% - 50vw);
  overflow: hidden;
  /* Weicher Fade von links zur BG — Bild verschmilzt mit Beige */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 25%, rgba(0,0,0,0.9) 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 25%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero-aside__image {
    top: calc(-1 * var(--s-8));
    bottom: calc(-1 * var(--s-8));
  }
}
.hero-aside__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.6;
  filter: saturate(0.7) contrast(0.95);
  mix-blend-mode: multiply;
}
.hero-aside__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 12px;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
  padding: var(--s-2) 0;
  z-index: 1;
}

/* Hero-Section darf horizontal nicht clippen — sonst funktioniert das Full-bleed-Ausbrechen nicht */
.hero { overflow: hidden; }

/* ================== 10. ITEM-GRIDS (Warum, Ablauf) ==================== */
.subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .subgrid { grid-template-columns: repeat(3, 1fr); }
}
.subgrid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) { .subgrid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .subgrid-5 { grid-template-columns: repeat(5, 1fr); } }

.item {
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
}
.item h3 { margin-bottom: var(--s-2); }
.item p { color: var(--ink-secondary); font-size: 16px; }
.item-step {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  margin-bottom: var(--s-3);
  font-feature-settings: "tnum" 1;
}

/* ================== 11. CHECKLIST (Prüfumfang, Profil) ================== */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (min-width: 720px) {
  .checklist { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-6); }
}
.checklist > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
}
.checklist-num {
  font-size: 13px;
  color: var(--ink-secondary);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.checklist-body h3 { font-size: 18px; margin-bottom: var(--s-2); }
.checklist-body p { font-size: 16px; color: var(--ink-secondary); }

/* ================== 12. REGION-STRIP =================================== */
.region-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
@media (min-width: 720px) {
  .region-strip { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.region-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.region-strip__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.region-strip__value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-strip__value--active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.bayern-detail {
  margin-top: var(--s-4);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-4);
}
.bayern-detail summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--brand);
  font-weight: 500;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bayern-detail summary::-webkit-details-marker { display: none; }
.bayern-detail summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--ink-secondary);
}
.bayern-detail[open] summary::after { content: "−"; }
.bayern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-4);
}
.bayern-grid__item {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.bayern-grid__name { color: var(--ink-primary); font-weight: 500; }
.bayern-grid__plz { color: var(--ink-secondary); font-feature-settings: "tnum" 1; }

/* ================== 13. ATMOSPHÄRISCHE PAUSE-SEKTION ================== */
.atmosphere {
  background: var(--bg-secondary);
  overflow: hidden;
}
.atmosphere__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 880px) {
  .atmosphere__inner {
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
  }
}
.atmosphere__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}
@media (min-width: 880px) {
  .atmosphere__media {
    aspect-ratio: auto;
    height: 100%;
  }
}
.atmosphere__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(0.96);
}
.atmosphere__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-6) var(--container-pad-mobile);
}
@media (min-width: 768px) {
  .atmosphere__caption {
    padding: var(--s-7) var(--container-pad-desktop);
  }
}
@media (min-width: 880px) {
  .atmosphere__caption {
    padding: var(--s-8) var(--s-7);
  }
}
.atmosphere__quote {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30ch;
  color: var(--ink-primary);
}
.atmosphere__attribution {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--ink-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ================== 14. FOUNDER-NOTE =================================== */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 600px) {
  .founder {
    grid-template-columns: 80px 1fr;
    gap: var(--s-4);
    align-items: start;
  }
}
.founder__photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
}
.founder__body p { max-width: 56ch; color: var(--ink-secondary); font-size: 16px; }
.founder__body p + p { margin-top: var(--s-2); }
.founder__sig {
  font-size: 14px !important;
  color: var(--ink-primary) !important;
  font-weight: 500;
  margin-top: var(--s-3) !important;
}
.founder__role { color: var(--ink-secondary); font-weight: 400; }

/* ================== 15. KONDITIONEN-GRID (prufer.html) ================ */
.kond-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
  list-style: none;
}
@media (min-width: 600px) {
  .kond-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .kond-grid { grid-template-columns: repeat(4, 1fr); }
}
.kond-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.kond-grid__num {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
  line-height: 1.15;
}
.kond-grid__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  margin-top: var(--s-3);
}
.kond-grid__note {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-top: 2px;
}

/* ================== 16. FORMS ========================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 880px) {
  .form-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-7);
    align-items: start;
  }
  .form-grid > .section-head { position: sticky; top: 100px; }
}
.form-intro { color: var(--ink-secondary); margin-top: var(--s-3); }

.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.form .form-label {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.form .req { color: var(--error); margin-left: 1px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font: 400 16px var(--font-sans);
  color: var(--ink-primary);
  transition: border-color var(--t-color), background var(--t-color);
}
.form textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B645C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--brand);
  background: var(--bg-elevated);
}
.form ::placeholder { color: var(--ink-muted); }

/* Datei-Upload */
.form-upload {
  position: relative;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: var(--s-4);
  transition: border-color var(--t-color), background var(--t-color);
}
.form-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-upload__placeholder {
  font-size: 14px;
  color: var(--ink-secondary);
  text-align: center;
  pointer-events: none;
}
.form-upload__placeholder strong {
  display: block;
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}
.form-upload__hint { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.form-upload__file { display: none; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: 14px; }
.form-upload__filename { display: block; font-weight: 500; color: var(--ink-primary); }
.form-upload__filesize { display: block; color: var(--ink-muted); font-size: 13px; }
.form-upload__remove { color: var(--brand); font-size: 13px; padding: 4px 8px; pointer-events: auto; position: relative; z-index: 2; }
.form-upload.is-dragover { border-color: var(--brand); background: var(--bg-primary); }
.form-upload.has-file .form-upload__placeholder { display: none; }
.form-upload.has-file .form-upload__file { display: flex; }

.form-feedback {
  display: none;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-size: 15px;
}
.form-feedback.is-visible { display: block; }
.form-feedback--success { background: rgba(74, 107, 71, 0.08); border: 1px solid rgba(74, 107, 71, 0.3); color: var(--ink-primary); }
.form-feedback--error { background: rgba(139, 74, 66, 0.08); border: 1px solid rgba(139, 74, 66, 0.3); color: var(--ink-primary); }
.form-feedback strong { display: block; margin-bottom: 4px; color: var(--ink-primary); }

.btn .btn-spinner { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-privacy { font-size: 13px; color: var(--ink-secondary); }
.form-privacy a { text-decoration: underline; text-decoration-color: var(--border-subtle); text-underline-offset: 3px; }

/* ================== 17. FAQ ============================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--s-4);
}
.faq > li {
  border-top: 1px solid var(--border-subtle);
  padding: var(--s-4) 0;
}
.faq > li:last-child { border-bottom: 1px solid var(--border-subtle); }
.faq h3 { font-size: 18px; margin-bottom: var(--s-2); max-width: 60ch; }
.faq p { color: var(--ink-secondary); font-size: 16px; max-width: 70ch; }

/* ================== 18. FOOTER ========================================= */
.site-footer {
  background: var(--bg-secondary);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
}
.site-footer .logo { margin-bottom: var(--s-3); }
.site-footer .claim {
  color: var(--ink-secondary);
  font-size: 15px;
  max-width: 28ch;
  line-height: 1.5;
}
.footer-head {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer li, .site-footer a {
  font-size: 15px;
  color: var(--ink-secondary);
}
.site-footer a:hover { color: var(--ink-primary); }
.footer-bottom {
  margin-top: var(--s-7);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ================== 19. PRINT ========================================== */
@media print {
  .site-header, .nav-cta, .skip-link, .form button { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ================== 20. REDUCED MOTION ================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ================== 21. DOC-PAGES (Impressum, Datenschutz) =========== */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}
@media (min-width: 768px) {
  .doc { padding-top: var(--s-8); padding-bottom: var(--s-8); }
}
.doc h1 { margin-bottom: var(--s-5); }
.doc h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}
.doc h3 {
  font-size: 1.125rem;
  margin-top: var(--s-4);
  margin-bottom: var(--s-2);
}
.doc p, .doc ul, .doc ol {
  margin-bottom: var(--s-3);
  color: var(--ink-primary);
  max-width: 65ch;
}
.doc ul, .doc ol {
  padding-left: var(--s-4);
  list-style: disc;
}
.doc ol { list-style: decimal; }
.doc li { margin-bottom: var(--s-2); }
.doc a { text-decoration: underline; text-decoration-color: var(--border-subtle); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--brand); }

/* ================== 21b. COMPARE-TABLE (Anti-Plattform) =================
   Schwartz: Anti-Mechanismus visuell ruhig, drei Spalten gleichgewichtig.
   Mobile: Karten-Stack mit Datenlabels.
========================================================================== */
.compare-table-wrap {
  margin-top: var(--s-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table thead th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-secondary);
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table tbody td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-primary);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td:first-child { color: var(--ink-secondary); }
.compare-table tbody td:nth-child(2) { color: var(--ink-secondary); }
.compare-table tbody td:last-child { color: var(--ink-primary); font-weight: 500; }

@media (max-width: 720px) {
  .compare-table { display: block; border: 0; background: transparent; border-radius: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: block; }
  .compare-table tbody tr {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: var(--s-3);
  }
  .compare-table tbody td {
    display: block;
    padding: 6px 0;
    border: 0;
  }
  .compare-table tbody td:first-child {
    font-weight: 600;
    color: var(--ink-primary);
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .compare-table tbody td:first-child::before { content: ""; }
  .compare-table tbody td:nth-child(2)::before {
    content: "Realität — ";
    color: var(--ink-secondary);
    font-style: normal;
  }
  .compare-table tbody td:last-child::before {
    content: "Lotung — ";
    color: var(--brand);
    font-weight: 600;
  }
  .compare-table tbody td:last-child {
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
    padding-top: 10px;
  }
}

/* ================== 21c. CALC-TABLE (Rechenbeispiel) ====================
   Zwei Spalten, rechts Bündig, Total-Row hervorgehoben.
========================================================================== */
.calc-table-wrap {
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calc-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.calc-table th[scope="row"] {
  text-align: left;
  padding: 14px 18px;
  font-weight: 400;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.calc-table td {
  padding: 14px 18px;
  text-align: right;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  vertical-align: top;
}
.calc-table tr:last-child th,
.calc-table tr:last-child td { border-bottom: 0; }
.calc-table__total th,
.calc-table__total td {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--brand);
}

/* ================== 21d. KOND-BULLETS (Konditionen) ====================
   Schlichte Liste, Petrol-Akzent links, generous spacing.
========================================================================== */
.kond-bullets {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0 0;
  max-width: 720px;
}
.kond-bullets li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.kond-bullets li:last-child { border-bottom: 0; }
.kond-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 14px;
  height: 1px;
  background: var(--brand);
}
.kond-bullets li strong {
  color: var(--brand);
  font-weight: 600;
}

/* ================== 21e. CALC-CHART (Rechenbeispiel als Graph) =========
   Horizontaler Balken, zwei Anteile proportional via inline flex-grow.
========================================================================== */
.calc-chart {
  margin: var(--s-4) 0;
  max-width: 720px;
}
.calc-chart__bar {
  display: flex;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.calc-chart__share {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  color: var(--bg-primary);
  min-width: 0;
}
.calc-chart__share--yours {
  background: var(--brand);
}
.calc-chart__share--lotung {
  background: var(--accent);
}
.calc-chart__share-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.calc-chart__share-value {
  display: block;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.calc-chart__share-pct {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.calc-chart__caption {
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
  text-align: left;
}
@media (max-width: 640px) {
  .calc-chart__bar { height: 160px; }
  .calc-chart__share { padding: 12px 8px; }
  .calc-chart__share-label { font-size: 11px; }
  .calc-chart__share-value { font-size: 17px; }
  .calc-chart__share-pct { font-size: 12px; }
}

/* ================== 22. UTILITIES ===================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
