/* A-S Capital — Design-System
   Weiß als Grundfarbe, Marineblau für Schrift und Flächen, Goldbeige als Akzent. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f4f6f9;
  --navy: #13294b;
  --navy-2: #1f3c69;
  --ink: #17223a;
  --slate: #5a6478;
  --line: #e2e6ec;
  --sand: #c4a77c;
  --sand-deep: #9c7f52;
  --sand-soft: #f4ede2;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 14px;

  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Typo-Skala (ca. 1.25) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: clamp(1.875rem, 3.2vw, 2.5rem);
  --t-3xl: clamp(2.375rem, 5.4vw, 4rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-base);
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-2); }

:focus-visible {
  outline: 2px solid var(--sand-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -0.032em; line-height: 1.04; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 50;
}
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font-weight: 450; color: var(--slate); font-size: var(--t-xs); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 480;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--sand); }
.nav .nav-cta {
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; border: 0;
}
.nav .nav-cta:hover { background: var(--navy-2); color: #fff; }

@media (max-width: 640px) {
  .brand small { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.875rem; }
  .nav .nav-cta { padding: 7px 12px; }
  .nav .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: var(--t-sm); font-weight: 560;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1.5px solid var(--navy);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #dfe5ef; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--slate); margin-top: 16px; font-size: var(--t-lg); line-height: 1.5; }
.section-navy .section-head p { color: #b9c4d6; }

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--slate); max-width: 34em; }

/* ---------- Startseite: Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 { max-width: 11.5em; }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 28px; font-size: var(--t-xs); color: var(--slate); }

.facade { width: 100%; max-width: 440px; justify-self: end; }
.facade .w { fill: #fff; stroke: var(--navy); stroke-width: 1.4; }
.facade .w.lit { animation: lightup .7s ease forwards; }
.facade .s { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.facade .s-thin { stroke-width: 1; }
.facade .ground { stroke: var(--sand); stroke-width: 2; }
@keyframes lightup { to { fill: var(--sand-soft); stroke: var(--sand-deep); } }
@media (prefers-reduced-motion: reduce) {
  .facade .w.lit { animation: none; fill: var(--sand-soft); stroke: var(--sand-deep); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .facade { justify-self: start; max-width: 340px; }
}

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .crumb { font-size: var(--t-sm); color: var(--slate); margin-bottom: 20px; }
.page-hero .crumb a { color: var(--slate); }
.page-hero h1 { max-width: 13em; }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }

/* ---------- Vergleich zweier Wege ---------- */
.paths {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff;
}
.path { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.path + .path { border-left: 1px solid var(--line); }
.path h3 { font-size: var(--t-xl); letter-spacing: -0.02em; }
.path > p { color: var(--slate); }
.path dl { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: var(--t-sm); }
.path dt { color: var(--slate); }
.path dd { margin: 0; color: var(--ink); font-weight: 500; }
.path .btn { align-self: flex-start; margin-top: auto; }
.path-tag { font-size: var(--t-sm); color: var(--sand-deep); font-weight: 560; }
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Regionen ---------- */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.city { padding: 28px 24px 0 0; }
.city + .city { padding-left: 24px; border-left: 1px solid var(--line); }
.city h3 { font-size: var(--t-xl); }
.city p { color: var(--slate); margin-top: 8px; font-size: var(--t-sm); }
@media (max-width: 700px) {
  .cities { grid-template-columns: 1fr; }
  .city, .city + .city { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Listen mit Häkchen ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 14px; height: 8px; border-left: 2px solid var(--sand-deep); border-bottom: 2px solid var(--sand-deep);
  transform: rotate(-45deg) translateY(-3px);
}
.crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.crosses li { position: relative; padding-left: 30px; color: var(--slate); }
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 3px; top: 0.78em; width: 14px; height: 1.5px; background: var(--slate);
}
.crosses li::before { transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

/* ---------- Zweispaltig ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .split, .split-even { grid-template-columns: 1fr; } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.service { padding: 24px 0; border-top: 1px solid var(--line); }
.service:nth-child(odd) { padding-right: 28px; }
.service:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { font-size: 1.0625rem; }
.service p { color: var(--slate); font-size: var(--t-sm); margin-top: 6px; }
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(n) { padding: 20px 0; border-left: 0; }
}

/* ---------- Ablauf (echte Reihenfolge) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--sand); color: var(--sand-deep);
  display: grid; place-items: center; font-weight: 600; font-size: var(--t-sm);
}
.steps h3 { font-size: 1.0625rem; align-self: center; }
.steps p { color: var(--slate); font-size: var(--t-sm); margin-top: 4px; }
.section-navy .steps li { border-color: rgba(255,255,255,.14); }
.section-navy .steps p { color: #b9c4d6; }

/* ---------- Ankaufsprofil ---------- */
.profile {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
}
.profile > div { padding: 24px; }
.profile > div + div { border-left: 1px solid var(--line); }
.profile dt { font-size: var(--t-sm); color: var(--slate); }
.profile dd { margin: 8px 0 0; color: var(--navy); font-weight: 600; font-size: var(--t-lg); line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr 1fr; }
  .profile > div:nth-child(3) { border-left: 0; }
  .profile > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .profile { grid-template-columns: 1fr; }
  .profile > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Zielgruppen ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.audience { background: #fff; border-radius: var(--r-md); padding: 28px; border: 1px solid var(--line); }
.audience h3 { font-size: 1.125rem; }
.audience p { color: var(--slate); font-size: var(--t-sm); margin-top: 8px; }
@media (max-width: 700px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- Referenz ---------- */
.reference {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
}
.reference-visual { background: var(--sand-soft); display: grid; place-items: center; min-height: 260px; padding: 32px; }
.reference-body { padding: clamp(28px, 4vw, 44px); background: #fff; }
.reference-body .path-tag { display: block; margin-bottom: 10px; }
.reference-body p { color: var(--slate); margin-top: 12px; }
.reference-body dl { margin: 22px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: var(--t-sm); }
.reference-body dt { color: var(--slate); }
.reference-body dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .reference { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 520; color: var(--ink); }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfd5de; border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 41, 75, 0.12);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--slate); }
.check input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }

.contact-card { background: #fff; border-radius: var(--r-md); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.contact-lines { display: grid; gap: 18px; margin-top: 28px; }
.contact-lines dt { font-size: var(--t-sm); color: var(--slate); }
.contact-lines dd { margin: 2px 0 0; font-weight: 520; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- Fließtext (Impressum, Datenschutz) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--t-xl); margin: 48px 0 12px; }
.prose h3 { font-size: 1.0625rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.todo { background: var(--sand-soft); border-radius: 3px; padding: 0 4px; color: var(--sand-deep); font-weight: 520; }

/* ---------- Fußzeile ---------- */
.site-foot { background: var(--navy); color: #b9c4d6; padding: 56px 0 40px; font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot .brand { color: #fff; }
.site-foot p { margin-top: 14px; max-width: 30em; }
.site-foot h2 { color: #fff; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #dfe5ef; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Feinschliff */
.brand span { white-space: nowrap; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.375rem, 5vw, 3.75rem); }
.site-foot .brand-mark rect { fill: #fff; }
.site-foot .brand-mark path:first-of-type { stroke: #13294b; }
@media (max-width: 860px) { .facade { max-width: 280px; } }

/* Logo */
.brand { gap: 10px; }
.brand-icon { height: 30px; width: auto; }
.brand-word { height: 15px; width: auto; }
@media (max-width: 640px) { .brand-icon { height: 26px; } .brand-word { height: 12px; } }

/* Hinweis Bauträger auf der Startseite */
.builder-note { margin-top: 24px; font-size: var(--t-sm); color: var(--slate); }

/* Heller Button und Häkchen auf Navy */
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sand-soft); border-color: var(--sand-soft); color: var(--navy); }
.ticks-light li { color: #dfe5ef; }
.ticks-light li::before { border-color: var(--sand); }

/* Browser-Mock einer Projektseite */
.mock { background: #fff; border-radius: var(--r-md); overflow: hidden; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0,0,0,.45); align-self: center; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d9e1; }
.mock-bar span { margin-left: 10px; font-size: var(--t-xs); color: var(--slate); }
.mock-body { padding: 22px; }
.mock-title { font-weight: 620; color: var(--navy); }
.mock-progress { display: flex; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 16px; }
.mock-progress span { background: var(--navy); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.mock-table td { padding: 8px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.mock-table b { font-size: 0.75rem; font-weight: 560; padding: 2px 8px; border-radius: 99px; background: var(--mist); color: var(--slate); }
.mock-table .m-free { background: #e6eef9; color: var(--navy); }
.mock-table .m-res { background: var(--sand-soft); color: var(--sand-deep); }
.mock-table .m-sold td { color: var(--slate); }
.mock-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 16px; border-radius: 8px; overflow: hidden; }
.mock-calc div { background: var(--navy); color: #b9c4d6; padding: 12px; font-size: 0.75rem; }
.mock-calc b { display: block; color: #fff; font-size: 1rem; margin-top: 2px; }
@media (max-width: 520px) { .mock-table td:nth-child(3) { display: none; } }

/* Fotos */
.hero-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.band { margin: clamp(32px, 5vw, 56px) 0 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 7; background: var(--mist); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.page-hero + .wrap .band { margin-bottom: 0; }
.city img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 18px; background: var(--mist); }
.cities { border-top: 0; }
.city { padding-top: 0; }
@media (max-width: 860px) { .hero-photo { aspect-ratio: 3 / 2; } }
@media (max-width: 700px) { .band { aspect-ratio: 4 / 3; } }
.cities { gap: clamp(20px, 3vw, 36px); }
.city, .city + .city { padding: 0; border-left: 0; }
@media (max-width: 700px) { .city, .city + .city { padding: 0 0 28px; border-bottom: 0; } }

/* Navigation: aktuelle Seite farbig hinterlegt */
.nav { gap: 4px; }
.nav a { padding: 7px 14px; border-radius: 999px; border-bottom: 0; transition: background .15s, color .15s; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--sand-soft); color: var(--navy); font-weight: 560; }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta, .nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sand); }
@media (max-width: 640px) {
  .nav a { padding: 6px 9px; }
  .nav .nav-cta { margin-left: 2px; padding: 6px 11px; }
}
@media (max-width: 420px) { .nav .hide-xs { display: none; } }

.contact-person { margin-top: 18px; font-size: var(--t-sm); }
.contact-person b { font-weight: 600; color: var(--navy); }
.section-navy .contact-person, .section-navy .contact-person b { color: #fff; }
.nav a[aria-current="page"] { background: #e8dcc5; }
@media (max-width: 420px) {
  .site-head .wrap { gap: 8px; }
  .brand { gap: 6px; }
  .brand-icon { height: 22px; }
  .brand-word { height: 10px; }
  .nav a { padding: 6px 8px; font-size: 0.8125rem; }
}

/* Portrait Kontaktseite */
.person { margin: 0 0 8px; max-width: 320px; }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }
.person figcaption { margin-top: 14px; display: grid; gap: 2px; }
.person b { color: var(--navy); font-weight: 620; font-size: var(--t-lg); letter-spacing: -0.01em; }
.person span { color: var(--slate); font-size: var(--t-sm); }
@media (max-width: 820px) { .person { max-width: 240px; } }
.cities { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cities { grid-template-columns: 1fr; } }

/* Online-Bewertung (Schritt für Schritt) */
.wizard fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.wizard legend { font-size: var(--t-lg); font-weight: 620; color: var(--navy); letter-spacing: -0.01em; padding: 0; margin-bottom: 4px; }
.wizard.js .wz-step { display: none; }
.wizard.js .wz-step.on { display: grid; }
.wizard:not(.js) .wz-nav .wz-next, .wizard:not(.js) .wz-nav .wz-back, .wizard:not(.js) .wz-progress, .wizard:not(.js) .wz-count { display: none; }
.wz-progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wz-progress span { display: block; height: 100%; width: 33%; background: var(--sand); transition: width .25s ease; }
.wz-count { font-size: var(--t-xs); color: var(--slate); margin-top: -6px; }
.wz-label { font-size: var(--t-sm); font-weight: 520; margin-bottom: -8px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border: 1px solid #cfd5de; border-radius: 999px; font-size: var(--t-sm); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--sand-deep); outline-offset: 2px; }
.wizard .invalid input, .wizard input.invalid { border-color: #b4472f; }
.choice.invalid span { border-color: #b4472f; }
.wz-error { color: #b4472f; font-size: var(--t-sm); }
.wz-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.wizard.js .wz-back[hidden], .wizard.js .wz-next[hidden], .wizard.js .wz-submit[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .wz-progress span { transition: none; } }

/* Vorher / Nachher */
.ba-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.ba { margin: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-pair > div { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.ba-pair img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ba-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--slate); font-size: var(--t-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ba-tag.ba-after { background: var(--navy); color: #fff; }
.ba figcaption { margin-top: 10px; font-size: var(--t-sm); color: var(--slate); }
@media (max-width: 640px) { .ba-pair { grid-template-columns: 1fr; } }

.contact-person a { color: inherit; }

/* Handy: Buttons mittig */
@media (max-width: 640px) {
  .path .btn, .btn-row, .form .btn, .page-hero .btn-row, .hero .btn-row { align-self: center; justify-self: center; justify-content: center; }
  .btn-row { width: 100%; }
}

@media (max-width: 640px) { .path .btn { align-self: center; } }
.path .btn { align-self: center; }

/* Team auf der Kontaktseite */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team .person { max-width: none; margin: 0; }
.person figcaption a { font-size: var(--t-sm); text-decoration: none; overflow-wrap: anywhere; }
.person figcaption a:hover { text-decoration: underline; }
.person figcaption span { margin-bottom: 6px; }
@media (max-width: 420px) { .team { gap: 12px; } .person b { font-size: 1rem; } }

/* Team: Zeilen beider Personen auf gleicher Höhe */
.team { grid-template-rows: auto; row-gap: 0; }
.team .person { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 4px; }
.team .person figcaption { display: contents; }
.team .person img { margin-bottom: 10px; }
.team .person b { font-size: 1.0625rem; line-height: 1.3; align-self: end; }
.team .person span { margin-bottom: 6px; }

/* Handy-Kopfzeile: Logo nie abschneiden, Menü kompakter */
.brand, .brand img { flex-shrink: 0; }
.nav { min-width: 0; }
@media (max-width: 480px) {
  .site-head .wrap { min-height: 56px; gap: 6px; padding-left: 14px; padding-right: 10px; }
  .brand { gap: 7px; }
  .brand-icon { height: 24px; }
  .brand-word { height: 11px; }
  .nav { gap: 0; }
  .nav a { padding: 5px 7px; font-size: 0.78rem; }
  .nav .nav-cta { margin-left: 2px; padding: 6px 10px; }
  .nav .hide-xs { display: none; }
}
@media (max-width: 350px) {
  .brand-word { height: 9px; }
  .nav a { padding: 5px 5px; font-size: 0.74rem; }
}
