:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #162033;
  --muted: #5f6d84;
  --line: #d8dfeb;
  --primary: #16355d;
  --primary-strong: #102847;
  --accent: #c8a45d;
  --accent-soft: rgba(200, 164, 93, 0.16);
  --success: #2e7d62;
  --shadow: 0 20px 45px rgba(22, 32, 51, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1160px;
  --danger: #cf4a55;
}

body[data-theme="sage"] {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-soft: #e8ede7;
  --text: #1f2a24;
  --muted: #5a655d;
  --line: #d5ddd2;
  --primary: #2c3d35;
  --primary-strong: #223028;
  --accent: #9b7b57;
  --accent-soft: rgba(155, 123, 87, 0.16);
  --success: #406b56;
  --shadow: 0 20px 45px rgba(31, 42, 36, 0.08);
}

body[data-theme="midnight"] {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #edf2fb;
  --text: #15203a;
  --muted: #5e6b87;
  --line: #d6ddee;
  --primary: #142c52;
  --primary-strong: #0d1f3e;
  --accent: #7d89ff;
  --accent-soft: rgba(125, 137, 255, 0.14);
  --success: #3f7b68;
  --shadow: 0 20px 48px rgba(20, 32, 58, 0.1);
}

body[data-theme="emerald"] {
  --bg: #f2f7f5;
  --surface: #ffffff;
  --surface-soft: #e8f2ee;
  --text: #182925;
  --muted: #5a6e67;
  --line: #d2e0d9;
  --primary: #1f4b43;
  --primary-strong: #163730;
  --accent: #7db29a;
  --accent-soft: rgba(125, 178, 154, 0.16);
  --success: #2e7d62;
  --shadow: 0 20px 48px rgba(31, 75, 67, 0.1);
}

body[data-theme="rosewood"] {
  --bg: #f8f4f3;
  --surface: #ffffff;
  --surface-soft: #f4eae7;
  --text: #2f2122;
  --muted: #756262;
  --line: #e5d5d1;
  --primary: #5b3138;
  --primary-strong: #45242b;
  --accent: #c58d78;
  --accent-soft: rgba(197, 141, 120, 0.16);
  --success: #6e7b57;
  --shadow: 0 20px 48px rgba(91, 49, 56, 0.09);
}

body[data-theme="graphite"] {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-soft: #e9ebf1;
  --text: #1d222c;
  --muted: #67707f;
  --line: #d8dce6;
  --primary: #242b37;
  --primary-strong: #181e29;
  --accent: #a9966e;
  --accent-soft: rgba(169, 150, 110, 0.15);
  --success: #4e6d63;
  --shadow: 0 20px 48px rgba(29, 34, 44, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(22, 53, 93, 0.08), transparent 24%),
    linear-gradient(180deg, var(--surface-soft) 0%, var(--bg) 180px);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, li, span, strong, small { overflow-wrap: break-word; word-break: normal; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(216, 223, 235, 0.8);
}

body[data-theme="sage"] .site-header { background: rgba(255, 255, 255, 0.82); }

.header-inner,
.footer-inner,
.hero,
.section,
.cta-band,
.legal-card,
.form-shell { padding: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 58px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 250px);
}

.brand-lockup {
  display: block;
  width: clamp(138px, 16vw, 210px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(19, 44, 82, 0.14));
}

.brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
  transform-origin: center;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  display: block;
  font-size: 1.46rem;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 2px;
}

.brand-copy small {
  display: block;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

body[data-logo-style="badge"] .brand-mark {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
}

body[data-logo-style="framed"] .brand-mark {
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
}

body[data-logo-style="framed"] .brand-mark img { transform: scale(1.1); }

body[data-logo-style="wordmark"] .brand-copy strong {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

body[data-logo-style="minimal"] .brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: none;
  border: 1px solid var(--line);
}

body[data-logo-style="minimal"] .brand-mark img { transform: scale(1.08); }

body[data-logo-style="minimal"] .brand-copy span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--primary);
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.header-tools {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--accent-soft);
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.nav-toggle,
.nav-toggle:hover {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
}

.nav-toggle::after {
  content: "▾";
  font-size: 0.78rem;
  line-height: 1;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.button-primary,
button,
input[type="submit"] {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 14px 30px rgba(22, 53, 93, 0.24);
}

.button-secondary {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-ghost {
  color: var(--primary);
  background: var(--accent-soft);
  box-shadow: none;
}

.hero {
  padding: 44px 0 40px;
}

.hero-grid,
.grid-2,
.grid-3,
.grid-4,
.contact-grid,
.legal-grid,
.form-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.grid-2,
.contact-grid,
.legal-grid,
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: stretch;
}

.hero-copy { padding-top: 10px; }

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  background: #dce4ef;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 54, 0.02) 0%, rgba(14, 31, 54, 0.1) 46%, rgba(14, 31, 54, 0.42) 100%);
  z-index: 1;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-proof {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(15, 32, 57, 0.15);
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.08;
  text-wrap: balance;
  hyphens: none;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }

.hero-copy p { font-size: 1rem; max-width: 58ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }

.stats,
.tick-list,
.steps,
.footer-links { list-style: none; padding: 0; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.stats li,
.card,
.info-card,
.legal-card,
.form-shell,
.quote-card,
.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.stats li {
  padding: 18px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.stats li::after,
.card::after,
.info-card::after,
.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.stats span { display: block; }
.stats strong { display: block; margin-bottom: 6px; font-size: 1.06rem; color: var(--primary); }

.card,
.info-card,
.legal-card,
.form-shell,
.cta-band,
.quote-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.card,
.info-card,
.legal-card,
.form-shell,
.cta-band {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.section { padding: 34px 0 54px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tick-list li,
.steps li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--muted);
}

.tick-list li::before,
.steps li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 1.2rem;
}

.quote-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  min-height: 100%;
}

.quote-card p,
.quote-card .muted { color: rgba(255, 255, 255, 0.82); }

.contact-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 600;
  max-width: 100%;
  line-height: 1.35;
}

.footer {
  margin-top: 50px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.footer-links a:hover { background: var(--accent-soft); color: var(--primary); }

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  margin-bottom: 18px;
}

.callout strong { color: var(--primary); }
.callout-warning { border-left: 4px solid var(--accent); }
.callout-success { border-left: 4px solid var(--success); }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field-span-2 { grid-column: span 2; }
.required-mark { color: var(--danger); margin-left: 4px; font-weight: 800; }

.required-note {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
}

.page-selbstauskunft .theme-switcher-shell { padding-top: 8px; }

.page-selbstauskunft .hero {
  padding: 18px 0 10px;
}

.page-selbstauskunft .hero .container {
  display: grid;
  gap: 10px;
}

.page-selbstauskunft .hero h1 {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.7rem, 2.75vw, 2.55rem);
  line-height: 1.02;
  text-wrap: balance;
}

.page-selbstauskunft .hero p {
  max-width: 74ch;
  margin-bottom: 0;
  font-size: 0.98rem;
}

.page-selbstauskunft .hero-actions {
  margin: 4px 0 0;
}

.page-selbstauskunft .section {
  padding-top: 4px;
}

.page-selbstauskunft .form-shell {
  padding-top: 16px;
}

.page-selbstauskunft .required-note {
  margin-bottom: 12px;
}

.page-selbstauskunft .form-progress-box {
  margin-bottom: 16px;
  padding: 14px;
}

.page-selbstauskunft .form-progress-head {
  margin-bottom: 12px;
}

.page-selbstauskunft .section-head {
  margin-bottom: 16px;
}

.page-selbstauskunft .form-step-indicators {
  margin-top: 12px;
  gap: 8px;
}

.page-selbstauskunft .form-step-indicators li {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.form-progress-box {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--surface-soft));
}

.form-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.form-progress-head .field-note {
  max-width: 44ch;
  margin: 0;
}

.form-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(21, 52, 92, 0.09);
  overflow: hidden;
}

.form-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, #8cb1ff 100%);
  transition: width 0.25s ease;
}

.form-step-indicators {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.form-step-indicators li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.form-step-indicators li.is-active {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
}

.form-step-indicators li.is-complete {
  color: var(--primary);
  background: color-mix(in srgb, var(--accent-soft) 65%, white);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.step-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

input:required,
select:required,
textarea:required {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--surface));
}

textarea { min-height: 140px; resize: vertical; }
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--primary);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.checkbox-field label {
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.section-block { margin-top: 34px; }

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li { margin-bottom: 8px; }

.field-note-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.theme-switcher-shell {
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
}

.theme-switcher {
  margin-left: 0;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.switcher-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-switcher-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-switcher-options {
  display: flex;
  align-items: center;
  gap: 7px;
}

.logo-switcher-options {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switcher-pill {
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.switcher-pill:hover {
  transform: translateY(-1px);
}

.switcher-pill.is-active {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
}

.switcher-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.theme-chip {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-chip:hover { transform: translateY(-1px); }

.theme-chip.is-active {
  transform: scale(1.14);
  box-shadow: 0 0 0 2px var(--text);
}

.theme-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--text);
}

.theme-chip[data-theme-option="midnight"] {
  background: linear-gradient(135deg, #142c52 0%, #7d89ff 100%);
}

.theme-chip[data-theme-option="sage"] {
  background: linear-gradient(135deg, #2c3d35 0%, #9b7b57 100%);
}

.theme-chip[data-theme-option="emerald"] {
  background: linear-gradient(135deg, #1f4b43 0%, #7db29a 100%);
}

.theme-chip[data-theme-option="rosewood"] {
  background: linear-gradient(135deg, #5b3138 0%, #c58d78 100%);
}

.theme-chip[data-theme-option="graphite"] {
  background: linear-gradient(135deg, #242b37 0%, #a9966e 100%);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}

.field-note,
.muted,
small { color: var(--muted); }

.signature-box {
  border: 1px dashed var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#signature-pad {
  width: 100%;
  height: 220px;
  background: #fff;
  display: block;
}

.hero-copy,
.quote-card,
.card,
.info-card,
.stats li,
.form-shell {
  animation: rise-in 0.7s ease both;
}

.quote-card { animation-delay: 0.08s; }
.stats li:nth-child(2),
.card:nth-child(2) { animation-delay: 0.1s; }
.stats li:nth-child(3),
.card:nth-child(3) { animation-delay: 0.16s; }

.quote-card {
  animation: rise-in 0.75s ease both, panel-float 6s ease-in-out infinite;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .quote-card,
  .card,
  .info-card,
  .stats li,
  .form-shell {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:last-child { grid-column: span 2; }
}

.hide-desktop { display: none; }
.hide-mobile { display: inline; }

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid,
  .legal-grid,
  .form-grid { grid-template-columns: 1fr; }

  .field-span-2 { grid-column: span 1; }

  .stats { grid-template-columns: 1fr; }
  .stats li:last-child { grid-column: span 1; }
  .footer-inner { flex-direction: column; align-items: start; }
  .hero-visual { min-height: 450px; }
  .form-progress-head,
  .step-actions { flex-direction: column; align-items: stretch; }
  .form-step-indicators { grid-template-columns: 1fr; }
  .step-actions-right { width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 54px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand {
    flex: 0 1 auto;
    max-width: calc(100% - 96px);
  }
  .brand-lockup { width: min(140px, 100%); }
  .theme-switcher-shell {
    display: flex;
    justify-content: stretch;
    padding: 10px 0 0;
  }
  .header-tools {
    width: auto;
    margin-left: 0;
    align-items: center;
    gap: 0;
  }
  .theme-switcher {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 10px;
    padding: 6px 8px;
    border-radius: 16px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    padding: 10px 14px;
    position: relative;
    z-index: 31;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    z-index: 30;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .switcher-group {
    width: 100%;
    justify-content: space-between;
  }
  .theme-switcher-options {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .logo-switcher-options {
    gap: 8px;
    justify-content: flex-end;
  }
  .switcher-pill {
    min-height: 26px;
    padding-inline: 8px;
  }
  .hide-desktop { display: inline-flex; }
  .hide-mobile { display: none; }
  h1 { font-size: clamp(1.82rem, 7vw, 2.45rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .hero { padding-top: 50px; }
  .page-selbstauskunft .hero {
    padding: 14px 0 8px;
  }
  .page-selbstauskunft .hero h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 7.6vw, 2.7rem);
    text-wrap: initial;
  }
  .page-selbstauskunft .hero-actions {
    margin-top: 4px;
  }
  .page-selbstauskunft .section {
    padding-top: 4px;
  }
  .page-selbstauskunft .form-shell {
    padding: 16px;
  }
  .page-selbstauskunft .form-progress-box {
    padding: 12px;
    margin-bottom: 14px;
  }
  .hero-visual { min-height: 360px; }
  .hero-proof {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 8px;
    justify-items: start;
  }
  .hero-proof span {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* One-page anchor navigation */
html {
  scroll-behavior: smooth;
}
#start,
#leistungen,
#ueber-mich,
#selbstauskunft,
#kontakt {
  scroll-margin-top: 92px;
}
.about-bio p:first-child {
  font-size: 1.1rem;
  color: var(--text);
}

/* Testimonials — plain on the background, as a carousel */
.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 10px 16px 24px;
  text-align: center;
}
.review-stars {
  color: #f0b429;
  letter-spacing: 4px;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.review-card blockquote {
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}
.review-author {
  color: var(--muted);
  font-weight: 600;
}
.carousel-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--shadow);
}
.carousel-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .carousel-btn { display: none; }
}
.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

/* Hero heading: more compact so it doesn't overpower the narrow copy column */
.hero h1 {
  font-size: clamp(1.95rem, 3.1vw, 2.85rem);
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.05rem);
  }
  .stats strong {
    font-size: 1rem;
  }
  .stats li {
    padding: 15px;
  }
}

/* =========================================================
   Anthracite (dark) theme — page is dark, header stays light
   ========================================================= */
body[data-theme="anthracite"] {
  --bg: #1c2026;
  --surface: #272c34;
  --surface-soft: #21262d;
  --text: #eef1f5;
  --muted: #a9b2bf;
  --line: #373d47;
  --primary: #4a7fc0;
  --primary-strong: #3a6aa6;
  --accent: #84c04a;
  --accent-soft: rgba(132, 192, 74, 0.16);
  --success: #84c04a;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

/* Header kept light so the navy logo stays crisp and blends on white */
body[data-theme="anthracite"] .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e6;
}
body[data-theme="anthracite"] .site-nav a { color: #5f6d84; }
body[data-theme="anthracite"] .site-nav a:hover,
body[data-theme="anthracite"] .site-nav a[aria-current="page"] {
  color: #16355d;
  background: rgba(22, 53, 93, 0.09);
}
body[data-theme="anthracite"] .nav-toggle {
  color: #16355d;
  background: #ffffff;
  border-color: #e0e0e0;
}

/* Emphasis text that hardcoded the (dark) primary -> make readable on dark */
body[data-theme="anthracite"] .eyebrow { color: #a6da73; }
body[data-theme="anthracite"] .stats strong { color: #eef1f5; }
body[data-theme="anthracite"] .callout strong { color: #eef1f5; }
body[data-theme="anthracite"] .pill {
  color: #dfe6f0;
  background: var(--surface);
  border: 1px solid var(--line);
}
body[data-theme="anthracite"] .button-secondary { color: #eef1f5; }
body[data-theme="anthracite"] .button-ghost { color: #a6da73; }
body[data-theme="anthracite"] ::placeholder { color: #828d9c; }
/* required inputs forced a near-white bg in light theme; reset for dark */
body[data-theme="anthracite"] input:required,
body[data-theme="anthracite"] select:required,
body[data-theme="anthracite"] textarea:required {
  background: var(--surface);
}

/* =========================================================
   Centered hero (text centered, image below, smaller)
   ========================================================= */
.hero-centered .hero-copy {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-centered .hero-copy p {
  margin-left: auto;
  margin-right: auto;
}
.hero-centered .hero-actions {
  justify-content: center;
}
.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Family photo + stat boxes side by side */
.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(18px, 3.5vw, 34px);
  align-items: stretch;
  max-width: 1080px;
  margin: 28px auto 0;
}
.hero-showcase .stats {
  margin: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
}
.hero-showcase .hero-figure { height: 100%; }
.hero-showcase .hero-figure img { height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hero-showcase { grid-template-columns: 1fr; }
}

/* Brand logo presented on the dark page, above the hero copy (transparent PNG) */
.hero-logo {
  display: block;
  margin: 0 auto 16px;
  width: min(300px, 70%);
  height: auto;
}

/* Legal-card headings: compact so e.g. "Verbraucherstreitbeilegung" fits one line */
.legal-card h2 {
  font-size: 1.22rem;
  line-height: 1.22;
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}
/* Compact header wordmark */
.brand-lockup {
  width: clamp(150px, 17vw, 188px);
  height: auto;
}

/* =========================================================
   Editorial feature rows (replaces the boxy Leistungen cards)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: clamp(48px, 7vw, 86px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.is-reversed .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.feature-media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.feature-body p { font-size: 1.05rem; max-width: 56ch; }
.feature-body .tick-list { margin: 22px 0 26px; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.is-reversed .feature-media { order: 0; }
}
/* Consent banner (Meta Pixel) */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  justify-content: center;
}
.consent-banner[hidden] { display: none; }
.consent-banner-inner {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
.consent-banner-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.consent-banner-text strong { color: var(--text); }
.consent-banner-text a { color: var(--accent); text-decoration: underline; }
.consent-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
@media (max-width: 640px) {
  .consent-banner-actions { width: 100%; margin-left: 0; }
  .consent-banner-actions .button { flex: 1 1 0; text-align: center; }
}

/* Hero portrait (replaces the hero logo) */
.hero-portrait { margin: 0 auto 26px; text-align: center; }
.hero-portrait img {
  display: block;
  margin: 0 auto;
  width: min(300px, 72%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-portrait-caption {
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.hero-portrait-services {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
}
.hero-portrait-by {
  font-size: 0.98rem;
  letter-spacing: 0.14em;
}
.hero-portrait-by strong {
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
}

/* Hero badge at slogan size */
.hero-copy .eyebrow {
  font-size: clamp(1.55rem, 5.6vw, 2.6rem);
  padding: 12px 30px;
  margin-bottom: 20px;
}

/* Full logo lives in the footer now */
.footer-logo {
  width: min(210px, 60vw);
  height: auto;
  margin-bottom: 10px;
}
.hero-centered h1 { font-size: clamp(1.55rem, 5.6vw, 2.6rem); }

/* Footer brand block: logo with the site chip centered beneath */
.footer-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.footer-brand .eyebrow {
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* Selbstauskunft send status */
.send-status {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.95rem;
}
.send-status.is-success {
  border-color: var(--success);
  color: var(--success);
}
.send-status.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

/* Hero video: portrait acts as poster, click swaps to the playing video */
.hero-portrait .hero-video-frame,
.hero-portrait .hero-video-frame:hover {
  display: block;
  position: relative;
  width: min(300px, 72%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.hero-portrait .hero-video-frame img {
  width: 100%;
}
.hero-video-play {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 18, 24, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-video-play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
.hero-video-frame:hover .hero-video-play {
  background: rgba(15, 18, 24, 0.55);
  transform: translate(-50%, -50%) scale(1.06);
}
.hero-portrait video {
  display: block;
  margin: 0 auto;
  width: min(300px, 72%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.hero-portrait video[hidden] { display: none !important; }
