/* Fonts – selbst gehostet, keine Verbindung zu Google */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Tokens – Hausfarben aus Logo und bestehender Website */
:root {
  --brand: #346eaa;        /* DEIN-Blau (Website, Unterstreichung) */
  --brand-deep: #1a3f60;   /* Dach-Navy aus dem Logo */
  --brand-soft: #e1ebf6;
  --sky: #96b5d8;          /* Himmelblau der bestehenden Website */
  --heart: #e03224;        /* Herz-Rot aus dem Logo */
  --ink: #14233a;
  --ink-soft: #4a5a6e;
  --paper: #f5f8fb;
  --surface: #ffffff;
  --line: #d3deea;

  /* Wer bezahlt – funktionale Farben */
  --pay-kasse: #346eaa;
  --pay-kk: #6b4fa0;
  --pay-entl: #4c7f2a;
  --pay-zusch: #b06a12;
  --pay-priv: #6f7480;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 5.4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.calc :focus-visible, .career :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section-title { font-size: var(--step-3); font-weight: 700; margin-bottom: 0.5em; }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-accent { background: #fff; color: var(--brand-deep); }
.btn-accent:hover { background: var(--brand-soft); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { display: block; align-self: start; position: relative; z-index: 2; }
.logo img {
  height: 124px; width: auto; margin: 8px 0 -56px;
  filter: drop-shadow(0 6px 10px rgb(26 63 96 / .12));
  transition: height .3s ease, margin .3s ease;
}
.site-header.is-scrolled .logo img { height: 64px; margin: 6px 0; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.main-nav a:hover { color: var(--brand); text-decoration: underline; }
.btn-call { min-height: 44px; padding: 0 18px; font-size: var(--step--1); background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--brand-deep); }
.nav-toggle { display: none; }

/* Mobiles Menü: Vollbild in Dach-Navy, geht aus dem Menü-Knopf auf */
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1), opacity .2s, top .35s cubic-bezier(.65, 0, .35, 1);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; width: 70%; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 19;
  background: var(--brand-deep); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-top, 120px) + 44px) var(--gutter) 32px;
}
.mobile-nav-inner { display: grid; gap: 28px; max-width: 560px; }
.mn-links { display: grid; }
.mn-links a {
  display: grid; gap: 2px; padding: 14px 0;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .14);
}
.mn-title { font: 700 var(--step-2)/1.1 var(--font-display); letter-spacing: -0.01em; }
.mn-sub { font-size: var(--step--1); color: var(--sky); }
.mn-links a:hover .mn-title, .mn-links a:focus-visible .mn-title { color: var(--sky); }
.mn-contact { background: rgb(255 255 255 / .07); border-radius: var(--radius-m); padding: 18px 20px; }
.mn-contact-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: var(--step--1); color: var(--sky); }
.mn-phone { font: 800 var(--step-2)/1.2 var(--font-display); color: #fff; text-decoration: none; }
.mn-hours { margin: 8px 0 0; font-size: var(--step--1); color: #c6d6e8; }
.mobile-nav :focus-visible { outline-color: #fff; }
.site-header.nav-open { background: var(--brand-deep); border-bottom-color: transparent; }
.site-header.nav-open .nav-toggle { color: #fff; border-color: rgb(255 255 255 / .5); }
.site-header.nav-open .btn-call { background: #fff; color: var(--brand-deep); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 108px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-greeting {
  font: 700 var(--step-2)/1 var(--font-display);
  color: var(--brand); margin-bottom: .35em;
}
.hero-title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; line-height: .98; margin-bottom: .45em; max-width: 11ch; }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-oncall { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.hero-oncall a { font-weight: 700; color: var(--ink); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 0 rgb(224 50 36 / .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(224 50 36 / 0); } 100% { box-shadow: 0 0 0 0 rgb(224 50 36 / 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.hero-map { position: relative; margin: 0; }
.route-svg { width: 100%; height: auto; overflow: visible; }
.grid-dot { fill: #bccbdc; }
.map-bg { opacity: .7; }
.sea { fill: #dce8f5; }
.map-note { font: italic 400 14px var(--font-body); fill: #6f8bab; }
.area { fill: rgb(52 110 170 / .09); stroke: var(--brand); stroke-width: 2.5; }
.ring { fill: none; stroke: var(--brand); stroke-width: 1.2; stroke-dasharray: 3 6; opacity: .45; }
.border { fill: none; stroke: #8aa3bf; stroke-width: 1.5; stroke-dasharray: 8 5 2 5; }
.radius { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: .6; }
.ring-labels rect { fill: #fff; stroke: var(--line); }
.ring-labels text { font: 700 12px var(--font-body); fill: var(--brand); text-anchor: middle; }
.ring-label-max rect { fill: var(--brand); stroke: none; }
.ring-label-max text { fill: #fff; font-size: 13px; }
.towns circle { fill: #fff; stroke: #7d93ab; stroke-width: 1.5; }
.towns text { font: 400 13.5px var(--font-body); fill: #43566d; paint-order: stroke; stroke: #f5f8fb; stroke-width: 4px; stroke-linejoin: round; }
.trip-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.trip-line.is-checked { stroke: var(--heart); stroke-width: 3; }
.trip-car { fill: var(--heart); stroke: #fff; stroke-width: 2.5; }
.trip-heart { fill: var(--heart); }
.trip-ripple { fill: none; stroke: var(--heart); stroke-width: 2; }
.stop-halo { fill: #fff; stroke: var(--brand); stroke-width: 2; filter: drop-shadow(0 4px 8px rgb(26 63 96 / .2)); }
.home-body { fill: #fff; stroke: #c7d2dd; stroke-width: 1.2; }
.home-roof { fill: none; stroke: var(--brand-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.home-heart { fill: var(--heart); }
.stop-home text { font: 800 19px var(--font-display); fill: var(--ink); paint-order: stroke; stroke: #f5f8fb; stroke-width: 5px; stroke-linejoin: round; }

.area-card {
  position: relative; z-index: 1; margin: -36px 0 0 auto; width: min(100%, 400px);
  background: var(--surface); border-radius: var(--radius-m);
  padding: 20px 22px; box-shadow: 0 14px 34px -14px rgb(26 63 96 / .35);
}
.area-big { font: 600 var(--step-1)/1.1 var(--font-display); margin: 0 0 6px; color: var(--ink); }
.area-big strong { font-weight: 800; font-size: var(--step-2); color: var(--brand); }
.area-text { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 14px; }
.area-check label { display: block; font-weight: 700; font-size: var(--step--1); margin-bottom: 6px; }
.area-check-row { display: flex; gap: 8px; }
.area-check input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 999px;
}
.area-check input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.area-check .btn { min-height: 48px; padding: 0 20px; }
.area-result { margin: 10px 0 0; font-size: var(--step--1); min-height: 1.6em; }
.area-result.is-yes { color: var(--ink); }
.area-result.is-yes strong { color: var(--brand); }
.area-result.is-maybe { color: var(--ink); }

/* Ablauf */
.steps { padding: clamp(48px, 7vw, 96px) 0; background: var(--surface); overflow: hidden; }
.steps-track { position: relative; margin-top: 24px; }
.steps-list {
  list-style: none; margin: 0; padding: 96px 0 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.steps-list li { display: grid; gap: 18px; align-content: start; }
.step-dot {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--brand);
  border: 2.5px solid var(--brand);
  font: 800 var(--step-1)/1 var(--font-display);
  transition: background-color .35s, color .35s;
}
.step-dot.is-reached { background: var(--brand); color: #fff; }
.step-heart {
  position: absolute; right: -8px; top: -8px; width: 24px; height: 22px;
  fill: var(--heart); stroke: #fff; stroke-width: 1.5; overflow: visible;
  transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.step-dot.is-reached .step-heart { transform: scale(1); }
.steps-list h3 { font-size: var(--step-1); margin-bottom: .35em; text-wrap: balance; }
.steps-list p { color: var(--ink-soft); margin: 0; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thread-path { fill: none; stroke: var(--heart); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Leistungen */
.services { padding: clamp(56px, 8vw, 112px) 0; }
.services-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.services-intro { position: sticky; top: 110px; }
.services-intro p { color: var(--ink-soft); max-width: 36ch; }
.text-link { font-weight: 700; }
.services-list { border-top: 2px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  padding: 22px 44px 22px 0; position: relative;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after {
  content: ""; position: absolute; right: 6px; top: 30px;
  width: 14px; height: 14px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s;
}
.service[open] summary::after { transform: rotate(-135deg); top: 36px; }
.service-name { font: 700 var(--step-2)/1.1 var(--font-display); }
.service-short { color: var(--ink-soft); font-size: var(--step--1); text-align: right; }
.service-body { padding: 0 0 26px; max-width: 60ch; }
.pay { font-size: var(--step--1); color: var(--ink-soft); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font: 700 var(--step--1)/1.3 var(--font-body); color: #fff; margin-right: 4px; vertical-align: 1px;
}
.tag-kasse { background: var(--pay-kasse); }
.tag-kk { background: var(--pay-kk); }
.tag-entl { background: var(--pay-entl); }
.tag-zusch { background: var(--pay-zusch); }
.tag-priv { background: var(--pay-priv); }

/* Rechner */
.calc { background: var(--brand-deep); color: #fff; padding: clamp(56px, 8vw, 112px) 0; }
.calc a { color: #fff; }
.calc-head { max-width: 640px; }
.calc-head p { color: #d3e1f0; font-size: var(--step-1); }
.pg-switch {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 40px;
  padding: 6px; border-radius: 999px; background: rgb(255 255 255 / .08);
}
.pg-switch button {
  min-width: 56px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: #fff; cursor: pointer;
  font: 800 var(--step-1)/1 var(--font-display);
}
.pg-switch button[data-pg="0"] { font: 700 var(--step--1)/1 var(--font-body); }
.pg-switch button:hover { background: rgb(255 255 255 / .12); }
.pg-switch button[aria-checked="true"] { background: #fff; color: var(--brand-deep); }

.calc-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.calc-kicker { font: 700 var(--step-1)/1 var(--font-display); color: var(--sky); margin-bottom: 18px; }
.combo-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / .18); }
.combo-label { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0; }
.combo-sub { color: #aec6e0; font-size: var(--step--1); margin: 0; }
.combo-value { font: 800 var(--step-3)/1 var(--font-display); margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.combo-mix { margin-top: 28px; padding: 24px; border-radius: var(--radius-m); background: rgb(255 255 255 / .07); }
.mix-label { display: block; font-weight: 700; margin-bottom: 14px; }
.combo-mix input[type="range"] {
  --p: 40%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 8px 0 4px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, #fff var(--p), rgb(150 181 216 / .45) var(--p));
}
.combo-mix input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--heart); border: 4px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3);
}
.combo-mix input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--heart); border: 4px solid #fff;
}
.mix-out { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 0; font-size: var(--step--1); color: #d3e1f0; }
.mix-out span:last-child { text-align: right; }
.mix-out strong { color: #fff; font-size: var(--step-1); font-family: var(--font-display); }
.combo-none { margin-top: 20px; color: #d3e1f0; }

.calc-extras { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .18); }
.calc-extras li { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .18); transition: opacity .3s; }
.calc-extras li.is-zero { opacity: .38; }
.x-name { font-weight: 700; }
.x-desc { grid-column: 1; color: #aec6e0; font-size: var(--step--1); }
.x-val { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 700 var(--step-1)/1 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.calc-foot { margin-top: 32px; font-size: var(--step--1); color: #aec6e0; max-width: 80ch; }

/* Baukasten */
.builder { padding: clamp(56px, 8vw, 112px) 0; }
.builder-head { max-width: 660px; margin-bottom: 36px; }
.builder-head p { color: var(--ink-soft); font-size: var(--step-1); }
.builder-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.block-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.block-group legend { font: 700 var(--step-1)/1 var(--font-display); margin-bottom: 14px; padding: 0; }
.block-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

/* Ein Baustein: Noppe oben, farbiger Fuß unten zeigt, wer zahlt */
.block {
  --pay: var(--pay-kasse);
  position: relative; text-align: left; cursor: pointer;
  display: grid; align-content: start; gap: 4px;
  min-height: 116px; padding: 22px 18px 20px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line); border-bottom: 6px solid var(--pay);
  border-radius: var(--radius-s) var(--radius-s) var(--radius-m) var(--radius-m);
  font: inherit;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.block::before {
  content: ""; position: absolute; top: -9px; left: 18px;
  width: 30px; height: 9px; border-radius: 6px 6px 0 0;
  background: var(--line); transition: background-color .2s;
}
.block[data-pay="kk"] { --pay: var(--pay-kk); }
.block[data-pay="entl"] { --pay: var(--pay-entl); }
.block[data-pay="zusch"] { --pay: var(--pay-zusch); }
.block[data-pay="priv"] { --pay: var(--pay-priv); }
.block:hover { border-color: var(--pay); transform: translateY(-2px); }
.block:hover::before { background: var(--pay); }
.block[aria-pressed="true"] { background: color-mix(in srgb, var(--pay) 9%, var(--surface)); border-color: var(--pay); }
.block[aria-pressed="true"]::before { background: var(--pay); }
.block[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}
.block-title { font: 700 var(--step-1)/1.15 var(--font-display); padding-right: 26px; }
.block-text { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.4; }
.legend { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.pack { position: sticky; top: 100px; }
.pack-inner {
  background: var(--surface); border-radius: var(--radius-l);
  border: 2px solid var(--ink); padding: 24px;
  box-shadow: 8px 8px 0 var(--brand-soft);
}
.pack-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pack-top h3 { font-size: var(--step-2); }
.pack-pg { display: flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 700; }
.pack-pg select, .field select, .field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius-s);
}
.pack-pg select { padding: 6px 8px; }
.pack-empty { color: var(--ink-soft); padding: 28px 18px; border: 2px dashed var(--line); border-radius: var(--radius-m); text-align: center; margin-bottom: 18px; }
.pack-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pack-item {
  --pay: var(--pay-kasse);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px;
  padding: 10px 10px 10px 14px; border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--pay) 10%, var(--surface));
  border-left: 6px solid var(--pay);
}
.pack-item[data-pay="kk"] { --pay: var(--pay-kk); }
.pack-item[data-pay="entl"] { --pay: var(--pay-entl); }
.pack-item[data-pay="zusch"] { --pay: var(--pay-zusch); }
.pack-item[data-pay="priv"] { --pay: var(--pay-priv); }
.pack-item-name { font-weight: 700; line-height: 1.25; }
.pack-item select { grid-column: 1; justify-self: start; font: inherit; font-size: var(--step--1); padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.pack-item .remove {
  grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft);
}
.pack-item .remove:hover { background: rgb(0 0 0 / .06); color: var(--ink); }
.pack-item .remove svg, .close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.pack-funding { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }
.funding-title { font-weight: 700; font-size: var(--step--1); margin-bottom: 8px; }
.pack-funding ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--step--1); }
.pack-funding li { display: grid; gap: 2px; }
.funding-text { color: var(--ink-soft); }
.pack-cta { width: 100%; }
.pack-note { margin: 10px 0 0; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }

/* Mitlaufende Paket-Leiste (nur schmale Screens) */
.pack-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5);
}
.pack-bar p { margin: 0; font-weight: 700; }
.pack-bar .btn { min-height: 44px; padding: 0 18px; font-size: var(--step--1); }
@media (max-width: 1080px) { .pack-bar.is-visible { display: flex; } }

/* Über uns */
.about { padding: clamp(56px, 8vw, 112px) 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 320px 150px; gap: 14px; }
.photo {
  border-radius: var(--radius-m); background: var(--brand-soft);
  display: grid; place-items: end start; padding: 14px;
  font-size: var(--step--1); color: var(--brand-deep);
  background-image: linear-gradient(135deg, transparent 49.5%, rgb(52 110 170 / .14) 50%, transparent 50.5%);
}
img.photo { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.photo-a { grid-column: span 2; object-position: 70% 60%; }
.photo-c { object-position: 30% 50%; }
.about-lead { font: 700 var(--step-2)/1.2 var(--font-display); }
.about-copy p { max-width: 54ch; }
.about-member { font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }

/* Leitsatz */
.claim { padding: clamp(56px, 9vw, 120px) 0; text-align: center; overflow: hidden; }
.claim-text {
  position: relative; display: inline-block; margin: 0;
  font: 800 clamp(2.2rem, 1rem + 5.4vw, 5.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--brand-deep);
}
.claim-you { color: var(--heart); }
.claim-line { position: absolute; left: -2%; bottom: -0.32em; width: 104%; height: .4em; overflow: visible; }
.claim-line path { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Karriere */
.career { background: var(--brand); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.career-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.career .section-title { max-width: 22ch; }
.career p { color: #e1ebf6; max-width: 56ch; margin: 0; }
.career .career-sign { margin-top: 14px; font: 600 var(--step-1)/1.2 var(--font-display); color: #fff; }

/* FAQ */
.faq { padding: clamp(56px, 8vw, 112px) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: var(--step-1); }
.faq-list details p { color: var(--ink-soft); max-width: 62ch; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #c6d6e8; padding: 48px 0; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px; }
.footer-name { font: 800 var(--step-1)/1.15 var(--font-display); color: #fff; }
.footer-name span { font: 400 var(--step--1) var(--font-body); color: #c6d6e8; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .4em; }
.footer-oncall { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--heart); color: #fff; font-weight: 700; }
.site-footer nav { display: flex; gap: 20px; align-items: start; justify-content: end; }

/* Anfrage-Dialog */
.request {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: var(--radius-l); padding: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45);
}
.request::backdrop { background: rgb(26 63 96 / .55); backdrop-filter: blur(3px); }
.request-form, .request-done { padding: clamp(20px, 4vw, 32px); }
.request-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.request-head h2 { font-size: var(--step-2); }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.request-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.request-summary:empty { display: none; }
.request-summary .tag { font-weight: 700; }
.for-whom { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.for-whom legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.for-whom label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; font-size: var(--step--1);
}
.for-whom label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.for-whom input { accent-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: var(--step--1); }
.field em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
.field input, .field select, .field textarea { padding: 12px 14px; font-weight: 400; font-size: var(--step-0); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.consent { display: flex; gap: 12px; align-items: start; font-size: var(--step--1); color: var(--ink-soft); margin: 6px 0 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-error { color: #a12d2d; font-weight: 700; font-size: var(--step--1); }
.request-form .btn-primary { width: 100%; }
.request-done { text-align: center; display: grid; justify-items: center; gap: 4px; padding-block: 48px; }
.request-done[hidden] { display: none; }
.request-done h2 { font-size: var(--step-3); }
.request-done p { color: var(--ink-soft); max-width: 40ch; }
.done-mark { width: 84px; height: 84px; margin-bottom: 12px; }
.done-mark circle { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 3; }
.done-mark path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; margin-left: 8px;
    border: 2px solid var(--line); border-radius: 999px; background: var(--surface);
    font: 700 var(--step--1) var(--font-body); color: var(--ink); cursor: pointer;
    transition: color .3s, border-color .3s, background-color .3s;
  }
  .site-header.nav-open .nav-toggle { background: transparent; }
  .btn-call { margin-left: auto; }
  .builder-grid { grid-template-columns: minmax(0, 1fr); }
  .pack { position: static; }
}
@media (max-width: 860px) {
  .hero-grid, .services-grid, .calc-body, .about-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .services-intro { position: static; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0; }
  .steps-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
  .step-dot { width: 40px; height: 40px; font-size: var(--step-0); border-width: 2px; }
  .step-heart { width: 20px; height: 18px; right: -7px; top: -7px; }
  .steps-list h3 { font-size: var(--step-0); margin: 8px 0 .2em; }
  .steps-list p { font-size: var(--step--1); line-height: 1.5; }
  .career-inner { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: start; }
  .hero-map { max-width: 560px; }
}
@media (max-width: 560px) {
  .btn-call span { display: none; }
  .btn-call { width: 44px; padding: 0; }
  .logo img { height: 92px; margin-bottom: -32px; }
  .site-header.is-scrolled .logo img { height: 56px; margin-bottom: 6px; }
  .service summary { grid-template-columns: 1fr; }
  .service-short { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .mix-out { flex-direction: column; }
  .combo-row { flex-wrap: wrap; }
  .combo-value { font-size: var(--step-2); }
  .x-val { font-size: var(--step-0); }
  .mix-out span:last-child { text-align: left; }
  .about-photos { grid-template-rows: 220px 120px; }
  .area-card { margin-top: -12px; width: 100%; }
  .block-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .block-title, .block-text { overflow-wrap: break-word; hyphens: auto; }
  .block-title { padding-right: 20px; }
  .block { min-height: 104px; padding: 18px 14px 16px; }
  .block-title { font-size: var(--step-0); }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .block-row { grid-template-columns: minmax(0, 1fr); }
  .pack-top { flex-wrap: wrap; }
  .pack-inner { padding: 18px; }
}

/* Rechtliche Seiten (Impressum, Datenschutz) */
.back-link { margin-left: auto; font-weight: 700; font-size: var(--step--1); color: var(--ink); }
.back-link:hover { color: var(--brand); }
.legal-page .btn-call { margin-left: 16px; }
.legal { max-width: 760px; padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 104px); }
.legal h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; margin-bottom: .4em; hyphens: manual; }
.legal h2 { font-size: var(--step-2); margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.legal h3 { font-size: var(--step-1); margin: 1.2em 0 .4em; }
.legal section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal-lead { font-size: var(--step-1); color: var(--ink-soft); }
.legal-toc { margin-top: 24px; padding: 20px 24px; background: var(--surface); border-radius: var(--radius-m); }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 260px; column-gap: 32px; }
.legal-toc li { margin: 0 0 .35em; break-inside: avoid; }
.legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal-facts dt { font-weight: 700; }
.legal-facts dd { margin: 0; }
.legal-highlight { padding: 14px 18px; background: var(--brand-soft); border-radius: var(--radius-s); }
.legal-todo { padding: 12px 16px; border: 2px dashed var(--heart); border-radius: var(--radius-s); color: var(--heart); font-weight: 700; }
.legal-stand { margin-top: 40px; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer nav a[aria-current="page"] { text-decoration: none; opacity: .7; }
@media (max-width: 560px) {
  .back-link { font-size: 0.8rem; }
  .legal-page .btn-call { margin-left: 10px; }
  .legal-facts { grid-template-columns: 1fr; gap: 0; }
  .legal-facts dd { margin-bottom: 8px; }
}
