/* =========================================================
   Hausmeister Service – Stylesheet
   Farbwelt aus dem Flyer: Nachtblau-Schiefer + Limette + Papier
   ========================================================= */
:root {
  --ink: #121c22;
  --ink-2: #1a262d;
  --ink-3: #24333b;
  --lime: #d6f26a;
  --lime-2: #c2e04f;
  --paper: #f5f5f0;
  --sage: #e7ebdf;
  --sage-2: #6f7f5a;
  --white: #fff;
  --text: #121c22;
  --muted: #5d6870;
  --muted-light: #a9b4ba;
  --line: rgba(18, 28, 34, .1);
  --line-light: rgba(255, 255, 255, .12);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(18,28,34,.04), 0 8px 24px -8px rgba(18,28,34,.12);
  --shadow-lg: 0 2px 4px rgba(18,28,34,.05), 0 24px 60px -16px rgba(18,28,34,.25);

  /* Kritisch gedämpfte Bewegung (Apple: damping 1.0) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.089 25%, 1.084 27.4%, 1.034 34.1%, 1.006 39%, .991 45.1%, 1.001 63.5%, 1);

  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 1.0625rem/1.55 var(--font); color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Scroll-Fortschritt ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { box-shadow: 0 10px 30px -10px rgba(214, 242, 106, .55); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { --bg: #e1f78a; }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark:hover { box-shadow: 0 10px 30px -12px rgba(18, 28, 34, .6); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-light); }
.btn--ghost:hover { --bg: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn span[aria-hidden] { transition: transform .4s var(--spring); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-2); margin-bottom: 14px; }
.eyebrow--light { color: var(--white); }
.eyebrow--lime { color: var(--lime); }
.eyebrow .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--lime); }

/* ---------- Navigation (Glas-Material) ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background-color .4s var(--ease), box-shadow .4s, transform .5s var(--ease); }
.nav__inner { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav.is-scrolled { background: rgba(18, 28, 34, .72); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); box-shadow: 0 1px 0 var(--line-light); }
.nav.is-hidden { transform: translateY(-100%); }
.page-legal .nav { background: rgba(18, 28, 34, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; }
.brand b { color: var(--lime); font-weight: 800; }
.brand__mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .45s var(--spring); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(18, 28, 34, .9); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .35s var(--ease); }
.drawer:not(.is-open) { pointer-events: none; }
.drawer.is-open { opacity: 1; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { color: var(--white); text-decoration: none; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line-light); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.drawer.is-open nav a { transform: none; opacity: 1; }
.drawer.is-open nav a:nth-child(2) { transition-delay: .04s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: .08s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: .12s; }
.drawer.is-open nav a:nth-child(5) { transition-delay: .16s; }
.drawer.is-open nav a:nth-child(6) { transition-delay: .2s; }
.drawer .drawer__cta { color: var(--lime); }
.drawer__phone { color: var(--lime); font-size: 1.4rem; font-weight: 800; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); padding: calc(var(--nav-h) + clamp(40px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 242, 106, .13), transparent 70%); pointer-events: none; transform: translate3d(var(--gx, 0), var(--gy, 0), 0); transition: transform 1.2s var(--ease); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; position: relative; }
.hero__title { font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: .92; letter-spacing: -.045em; font-weight: 800; text-transform: uppercase; margin: 6px 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .word { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) .word { transition-delay: .12s; }
.is-loaded .hero__title .word { transform: none; }
.word--lime { color: var(--lime); font-size: 1.12em; }
.hero__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.hero__lead span { color: var(--muted-light); font-weight: 400; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1.5px solid var(--line-light); color: var(--lime); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 9px 20px; border-radius: 999px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { position: relative; justify-self: center; width: min(100%, 380px); }
.building { width: 100%; height: auto; stroke: #7a8f6c; stroke-width: 1.6; }
.building .draw { fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease-io); }
.is-loaded .building .draw { stroke-dashoffset: 0; }
.building .draw--lime { stroke: var(--lime); stroke-width: 2.2; }
.win__glass { fill: var(--lime); opacity: 0; transition: opacity .6s var(--ease); }
.win.is-on .win__glass { opacity: .9; }
.win { cursor: pointer; }
.door__glow { fill: var(--lime); opacity: 0; transition: opacity 1s var(--ease) 2s; }
.is-loaded .door__glow { opacity: .12; }
.hero__badge { position: absolute; left: -48px; bottom: -14px; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 14px; border-radius: 18px; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .8s var(--ease) 1.6s, transform .9s var(--spring) 1.6s; }
.is-loaded .hero__badge { opacity: 1; transform: none; }
.hero__badge b { display: block; font-size: .95rem; }
.hero__badge small { color: var(--muted-light); font-size: .82rem; }
.glass { background: rgba(255, 255, 255, .08); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 40px -20px rgba(0,0,0,.6); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 88px); background: var(--line-light); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--ink); padding: 22px 20px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; color: var(--lime); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted-light); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(0,0,0,.06); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.marquee__track i { font-style: normal; opacity: .5; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section--soft { background: var(--sage); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.section--dark .section__sub { color: var(--muted-light); }

/* ---------- Leistungskarten ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  display: flex; align-items: center; gap: 20px; text-align: left; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease), border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 242, 106, .25), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(18,28,34,.16); }
.card:hover::before { opacity: 1; }
.card:active { transform: scale(.98); transition-duration: .1s; }
.card__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--sage); display: grid; place-items: center; flex: none; transition: background-color .3s, transform .5s var(--spring); position: relative; }
.card__icon svg, .sheet__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--lime); transform: rotate(-6deg) scale(1.05); }
.card__text { flex: 1; position: relative; }
.card__text b { display: block; font-size: 1.25rem; letter-spacing: -.015em; }
.card__text small { display: block; color: var(--muted); font-size: .98rem; margin-top: 2px; }
.card__plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--paper); transition: transform .5s var(--spring), background-color .2s; position: relative; }
.card:hover .card__plus { transform: rotate(90deg); background: var(--ink); color: var(--lime); }

.banner { margin-top: 28px; background: var(--sage); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner h3 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; font-weight: 800; }
.banner p { color: var(--muted); margin-top: 4px; }

/* ---------- Detail-Sheet (Dialog) ---------- */
.sheet { border: 0; padding: 0; width: min(560px, 100% - 24px); max-height: min(86vh, 720px); border-radius: var(--r-lg); background: var(--white); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(18, 28, 34, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.sheet.is-open::backdrop { opacity: 1; }
.sheet__body { padding: 36px 32px 32px; }
.sheet__grab { display: none; }
.sheet__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1rem; transition: transform .4s var(--spring), background-color .2s; z-index: 2; }
.sheet__close:hover { background: var(--sage); transform: rotate(90deg); }
.sheet__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--lime); display: grid; place-items: center; margin-bottom: 20px; }
.sheet h3 { font-size: 1.9rem; letter-spacing: -.03em; font-weight: 800; }
.sheet__lead { color: var(--muted); margin: 6px 0 22px; }
.sheet__cta { margin-top: 26px; width: 100%; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121c22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--r); padding: 28px 24px; transition: transform .5s var(--spring), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(214,242,106,.4); }
.step__n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 800; margin-bottom: 22px; }
.step h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--muted-light); font-size: .98rem; }
.steps__line { height: 3px; border-radius: 3px; background: var(--line-light); margin-top: 32px; overflow: hidden; }
.steps__line span { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Jahresplan ---------- */
.year { --accent: #9cc3e6; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: --accent .6s; }
.year[data-season="spring"] { --accent: #b9e08a; }
.year[data-season="summer"] { --accent: #f6d36b; }
.year[data-season="autumn"] { --accent: #eaa36a; }
.year__viewport { position: relative; overflow: hidden; padding: 28px 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.year__viewport:active { cursor: grabbing; }
.year__viewport::after { content: ""; position: absolute; left: 50%; top: 18px; bottom: 18px; width: 84px; transform: translateX(-50%); border-radius: 18px; background: var(--accent); opacity: .35; pointer-events: none; transition: background-color .6s var(--ease); z-index: 0; }
.year__track { display: flex; gap: 12px; will-change: transform; position: relative; z-index: 1; }
.month { flex: none; width: 72px; height: 72px; border: 0; border-radius: 18px; background: transparent; font-weight: 800; font-size: 1.05rem; color: var(--muted); transition: color .3s, transform .45s var(--spring); }
.month.is-active { color: var(--ink); transform: scale(1.12); }
.year__panel { padding: clamp(24px, 4vw, 40px); min-height: 230px; }
.year__card { animation: cardIn .6s var(--ease); }
.year__season { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.year__card h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; font-weight: 800; margin: 4px 0 18px; }
.year__card .checklist { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.year__card .checklist li::before { background-color: var(--accent); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Konfigurator ---------- */
.config { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.config__form { background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 26px; }
.config fieldset, .form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.config legend { font-weight: 800; margin-bottom: 12px; font-size: 1rem; letter-spacing: -.01em; }
.config legend output { color: var(--sage-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.seg span:active { transform: scale(.95); }
.seg input:checked + span { background: var(--ink); color: var(--lime); }
.seg input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--ink) var(--fill, 12%), var(--paper) var(--fill, 12%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: grab; transition: transform .3s var(--spring); }
.range:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); cursor: grab; }

.toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); cursor: pointer; font-weight: 600; font-size: .95rem; transition: background-color .25s; position: relative; }
.toggle input { position: absolute; opacity: 0; }
.toggle__ui { width: 44px; height: 26px; border-radius: 26px; background: #cfd5d0; position: relative; flex: none; transition: background-color .3s var(--ease); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .45s var(--spring); }
.toggle input:checked + .toggle__ui { background: var(--ink); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); background: var(--lime); }
.toggle input:focus-visible + .toggle__ui { outline: 3px solid var(--lime); outline-offset: 2px; }
.toggle:has(input:checked) { background: var(--sage); }

.config__summary { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.config__summary h3 { font-size: 1.8rem; letter-spacing: -.03em; font-weight: 800; }
.config__meta { color: var(--muted-light); margin-top: 4px; }
.config__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 8px; min-height: 40px; }
.config__list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink-3); font-weight: 600; animation: pop .5s var(--spring); }
.config__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.config__list .empty { background: transparent; color: var(--muted-light); font-weight: 400; padding: 0; animation: none; }
.config__list .empty::before { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(6px); } to { opacity: 1; transform: none; } }
.meter { height: 8px; border-radius: 8px; background: var(--ink-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(.33); transition: transform .7s var(--spring); }
.config__hint { margin: 10px 0 22px; color: var(--muted-light); font-size: .92rem; }
.config__hint b { color: var(--lime); }

/* ---------- Einsatzgebiet ---------- */
.gebiet { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.plz { display: flex; gap: 10px; margin-top: 28px; max-width: 460px; }
.plz input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); padding: 0 22px; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.plz input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(214,242,106,.6); }
.plz.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.plz__result { min-height: 28px; margin-top: 14px; font-weight: 600; }
.plz__result.ok { color: #3f6b12; }
.plz__result.maybe { color: #8a5b12; }
.areas { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; cursor: default; transition: background-color .25s, transform .4s var(--spring); }
.areas li.is-hot { background: var(--lime); transform: translateY(-2px); }

.map { background: var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); position: relative; }
.map svg { width: 100%; height: auto; }
.map__grid { stroke: rgba(255,255,255,.05); }
.map__district { fill: rgba(214,242,106,.06); stroke: rgba(214,242,106,.35); stroke-width: 1.2; stroke-linejoin: round; transition: fill .35s var(--ease); }
.map__district.is-hot { fill: rgba(214,242,106,.28); }
.map__pin circle { fill: var(--lime); }
.map__pin .ring { fill: none; stroke: var(--lime); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
.map__pin:nth-of-type(2) .ring { animation-delay: .6s; }
.map__pin:nth-of-type(3) .ring { animation-delay: 1.2s; }
.map__pin:nth-of-type(4) .ring { animation-delay: 1.8s; }
.map__pin:nth-of-type(5) .ring { animation-delay: .3s; }
.map__pin:nth-of-type(6) .ring { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.map__label { fill: var(--white); font: 700 12px var(--font); text-anchor: middle; letter-spacing: .02em; }
.map__note { position: absolute; right: 22px; bottom: 16px; font-size: .72rem; color: var(--muted-light); }

/* ---------- Vorteile ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--r); padding: 28px 24px; position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, -100px) var(--my, -100px), rgba(214,242,106,.14), transparent 50%); pointer-events: none; }
.perk__n { color: var(--lime); font-weight: 800; font-size: .9rem; }
.perk h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 30px 0 8px; position: relative; }
.perk p { color: var(--muted-light); font-size: .98rem; position: relative; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); position: relative; flex: none; transition: background-color .25s, transform .5s var(--spring); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .5s var(--spring); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--lime); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__ways { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact__ways a { display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-light); text-decoration: none; transition: border-color .25s, transform .5s var(--spring); }
.contact__ways a:hover { border-color: var(--lime); transform: translateX(6px); }
.contact__ways span { color: var(--lime); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact__ways b { font-size: 1.15rem; margin-top: 4px; word-break: break-word; }

.glass-dark { background: rgba(255,255,255,.04); border: 1px solid var(--line-light); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.form { border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: rgba(255,255,255,.05);
  border: 1.5px solid var(--line-light); border-radius: 14px; padding: 24px 16px 8px; min-height: 58px; transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6f26a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { color: var(--ink); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted-light); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(214,242,106,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-11px) scale(.78); color: var(--lime); }
.field.is-invalid input { border-color: #ff8a7a; }
.form__chips legend { color: var(--muted-light); font-size: .9rem; margin-bottom: 10px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-light); font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .4s var(--spring); }
.pick span:active { transform: scale(.94); }
.pick input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pick input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.consent { display: flex; gap: 12px; font-size: .88rem; color: var(--muted-light); align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--lime); flex: none; }
.consent a { color: var(--lime); }
.consent.is-invalid span { color: #ff8a7a; }
.form__submit { margin-top: 6px; min-height: 58px; font-size: 1.05rem; }
.form__submit .spinner, .form__submit .check { position: absolute; opacity: 0; }
.form__submit .spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(18,28,34,.25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.form__submit .check { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form__submit.is-loading .label, .form__submit.is-done .label { opacity: 0; }
.form__submit.is-loading .spinner { opacity: 1; }
.form__submit.is-done .check { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) .1s; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { min-height: 22px; font-size: .95rem; text-align: center; }
.form__status.ok { color: var(--lime); }
.form__status.err { color: #ff8a7a; }
.form__msg { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.form__msg--ok { background: rgba(214,242,106,.15); color: var(--lime); }
.form__msg--err { background: rgba(255,138,122,.12); color: #ff8a7a; }

/* ---------- Footer ---------- */
.footer { background: #0c1418; color: var(--muted-light); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer p { margin-bottom: 12px; font-size: .95rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--lime); }
.footer__claim { margin-top: 16px; max-width: 280px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .85rem; }

/* ---------- Mobile Dock ---------- */
.dock { display: none; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .btn { margin-top: 32px; }
.legal__content h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 24px; line-height: 1.05; }
.legal__content h2 { font-size: 1.15rem; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal__content p, .legal__content li { color: #36424a; margin-bottom: 12px; overflow-wrap: anywhere; }
.legal__content a { color: var(--sage-2); }
.legal__list { padding-left: 1.2em; margin: 0 0 12px; }
.legal__list li { margin-bottom: 6px; }
.legal__stand { margin-top: 32px; font-size: .9rem; }

/* ---------- Impressum/Datenschutz als Fenster ---------- */
.legal-modal { border: 0; padding: 0; width: min(760px, 100% - 32px); max-height: min(86vh, 900px); border-radius: var(--r-lg); background: var(--white); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); overflow: hidden; display: none; flex-direction: column; }
.legal-modal[open] { display: flex; }
.legal-modal::backdrop { background: rgba(18, 28, 34, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.legal-modal__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; align-items: center; padding: 12px 14px 0; background: var(--white); flex: none; }
.legal-modal__grab { display: none; }
.legal-modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1rem; transition: transform .4s var(--spring), background-color .2s; }
.legal-modal__close:hover { background: var(--sage); transform: rotate(90deg); }
.legal-modal__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(22px, 5vw, 48px) 40px; }
.legal-modal__body .eyebrow { margin-bottom: 8px; }
.legal-modal__body .legal__content h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }


/* ---------- Cookie-Hinweis ---------- */
.cookie { position: fixed; z-index: 85; left: 20px; bottom: 20px; width: min(400px, calc(100% - 40px)); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 14px; align-items: start; padding: 18px 18px 16px; border-radius: 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(18,28,34,.06); box-shadow: 0 1px 2px rgba(18,28,34,.04), 0 18px 48px -18px rgba(18,28,34,.35); font-size: .9rem; line-height: 1.5; color: #4a565d; opacity: 0; transform: translateY(18px) scale(.97); transform-origin: 0 100%; transition: opacity .5s var(--ease), transform .7s var(--spring); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; }
.cookie__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookie__text p { margin: 0; }
.cookie__title { font-weight: 700; color: var(--ink); font-size: .98rem; margin-bottom: 2px !important; letter-spacing: -.005em; }
.cookie a { color: var(--sage-2); font-weight: 600; white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cookie__ssl { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: .78rem; color: #7d8a80; }
.cookie__ssl svg, .form__secure svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cookie__ok { grid-column: 2; justify-self: start; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: .9rem; padding: 10px 20px; transition: transform .35s var(--spring), background-color .2s; }
.cookie__ok:hover { background: #e1f78a; }
.cookie__ok:active { transform: scale(.95); }
.form__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted-light); margin-top: -6px; }
@media (max-width: 680px) { .cookie { left: 12px; right: 12px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); padding: 16px; } }
@media (prefers-reduced-transparency: reduce) { .cookie { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .steps, .perks { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { width: min(72%, 300px); order: -1; margin-bottom: -10px; }
  .hero__badge { left: auto; right: -64px; bottom: -26px; padding: 9px 14px 9px 12px; }
  .hero__badge small { font-size: .74rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .config, .gebiet, .contact__grid { grid-template-columns: 1fr; }
  .config__summary { position: static; }
}
@media (max-width: 680px) {
  :root { --nav-h: 60px; }
  body { padding-bottom: 84px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__art { width: min(50%, 210px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards, .toggles, .form__row, .steps, .perks { grid-template-columns: 1fr; }
  .card { padding: 18px; gap: 16px; }
  .card__icon { width: 52px; height: 52px; }
  .card__text b { font-size: 1.1rem; }
  .banner .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat { padding: 18px 16px; }
  .month { width: 60px; height: 60px; font-size: .95rem; }
  .year__viewport::after { width: 70px; }

  /* Bottom-Sheet auf dem Handy – lässt sich nach unten wegziehen */
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); }
  .sheet__grab { display: block; width: 40px; height: 5px; border-radius: 5px; background: #d3d8d4; margin: 10px auto 0; touch-action: none; }
  .sheet__body { padding: 20px 22px 28px; }

  .legal-modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90vh; }
  .legal-modal__bar { justify-content: space-between; padding: 10px 14px 0; }
  .legal-modal__grab { display: block; width: 40px; height: 5px; border-radius: 5px; background: #d3d8d4; margin-left: calc(50% - 20px); }
  .legal-modal__body { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

  .dock { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(18, 28, 34, .78); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 40px -12px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .6s var(--spring); }
  .dock.is-visible { transform: none; }
  .dock__btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 16px; color: var(--white); text-decoration: none; font-size: .78rem; font-weight: 700; transition: transform .3s var(--spring), background-color .2s; }
  .dock__btn:active { transform: scale(.93); background: rgba(255,255,255,.08); }
  .dock__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock__btn--lime { background: var(--lime); color: var(--ink); }
}

/* =========================================================
   Barrierefreiheit: weniger Bewegung / Transparenz / mehr Kontrast
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { transform: none; transition: opacity .3s ease; }
  .hero__title .word { transform: none; transition: none; }
  .building .draw { stroke-dashoffset: 0; transition: none; }
  .marquee__track { animation: none; }
  .btn, .card, .step, .contact__ways a { transition: background-color .2s, box-shadow .2s, border-color .2s; }
  .card:hover, .step:hover, .contact__ways a:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .drawer, .dock, .glass { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #333d44; --muted-light: #d8dee2; --line: rgba(18,28,34,.35); --line-light: rgba(255,255,255,.4); }
}
