/* =============================================================
   BA Gebäudeservice - Design System
   Marineblau · Weiß · Haarlinien · viel Luft
   ============================================================= */

/* ---------- Schrift (selbst gehostet, kein Google-Server) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #06153B;
  --navy-800:    #0b1f52;
  --navy-700:    #14306e;
  --navy-600:    #22448f;

  --ink:         #06153B;
  --text:        #414b61;
  --muted:       #5f6878;
  --faint:       #646d7e;

  --bg:          #ffffff;
  --tint:        #f7f8fa;
  --tint-2:      #eef1f6;

  --line:        #e5e8f0;
  --line-2:      #d2d8e5;

  --wa:          #25d366;
  --wa-dark:     #1da851;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(6, 21, 59, .05);
  --sh-md: 0 4px 16px -4px rgba(6, 21, 59, .10), 0 1px 3px rgba(6, 21, 59, .05);
  --sh-lg: 0 18px 44px -12px rgba(6, 21, 59, .16), 0 4px 12px -4px rgba(6, 21, 59, .06);
  --sh-xl: 0 40px 90px -24px rgba(6, 21, 59, .28), 0 8px 24px -8px rgba(6, 21, 59, .10);

  --ease:   cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms var(--ease);
  --t:      320ms var(--ease);
  --t-slow: 700ms var(--ease);

  --max: 1160px;
  --gutter: 24px;
  --header-h: 76px;
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.042em;
}
h2 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.034em;
}
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.022em; }
h4 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.014em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -.012em;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,.55); }

.acc { color: var(--navy-600); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--tight { padding-block: clamp(56px, 6vw, 88px); }
.sec--tint { background: var(--tint); }
.sec--line { border-top: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 + .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.011em;
  padding: 13px 24px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(.975); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(6,21,59,.2); }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 10px 24px -8px rgba(6,21,59,.5); transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy); box-shadow: var(--sh-md); transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: rgba(255,255,255,.88); transform: translateY(-1px); }

.btn-onnavy { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-onnavy:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(37,211,102,.55); }

.btn-lg { font-size: 16px; padding: 16px 30px; }
.btn-sm { font-size: 14px; padding: 9px 17px; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group--center { justify-content: center; }

/* Textlink mit Pfeil */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--navy);
  transition: gap var(--t-fast);
}
.tlink svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.tlink:hover { gap: 11px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.hdr.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.85); }

.hdr-in {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (max-width: 760px) { .brand img { height: 30px; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--tint-2); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.hdr-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: var(--ink);
  transition: background var(--t-fast);
}
.burger:hover { background: var(--tint-2); }
.burger svg { width: 22px; height: 22px; }

/* eng: erst die Telefonschaltfläche weg, dann die Navigation */
@media (max-width: 1240px) {
  .nav a { padding: 8px 11px; }
}
@media (max-width: 1160px) {
  .hdr-cta .btn-outline { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-cta .btn { display: none; }
  .hdr-cta { margin-left: auto; }
  .burger { display: flex; }
}

/* Mobile-Menü */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav a.mnav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 22px; font-weight: 600; letter-spacing: -.024em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav a.mnav-link svg { width: 18px; height: 18px; color: var(--faint); }
.mnav-cta { display: grid; gap: 10px; margin-top: 28px; }
.mnav-meta { margin-top: 28px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(6,21,59,.07), transparent 65%),
    radial-gradient(600px 320px at 88% 6%, rgba(34,68,143,.05), transparent 65%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero h1 { margin-bottom: 22px; }
.hero h1 .soft { color: var(--muted); }
.hero .lead { max-width: 620px; margin-inline: auto; }
.hero .btn-group { margin-top: 34px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; column-gap: 9px; row-gap: 2px;
  max-width: 100%;
  font-size: 13.5px; font-weight: 550; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 3px rgba(37,211,102,.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(37,211,102,.06); }
}
.pill .sep { color: var(--line-2); }
.pill > span:not(.dot) { white-space: nowrap; }
@media (max-width: 420px) {
  .pill { font-size: 12.5px; column-gap: 7px; padding: 6px 13px 6px 11px; }
}

.trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px;
  margin-top: 34px;
  font-size: 14.5px; color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--navy); flex: none; }
.trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Kennzahlen-Band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(28px, 4vw, 44px) 20px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.stat b {
  display: block;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700; letter-spacing: -.035em; color: var(--ink);
  font-feature-settings: "tnum";
  line-height: 1;
  margin-bottom: 10px;
}
.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat:nth-child(3)::before { display: none; }
}

/* ---------- Karten-Grid (Leistungen) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 100% 0%, rgba(6,21,59,.045), transparent 65%);
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
a.card:hover, .card--hover:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
a.card:hover::after { opacity: 1; }
a.card:hover .tlink { gap: 11px; }

.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--tint-2);
  color: var(--navy);
  margin-bottom: 22px;
  transition: background var(--t), transform var(--t);
}
.card-ic svg { width: 22px; height: 22px; }
a.card:hover .card-ic { background: var(--navy); color: #fff; transform: translateY(-2px); }

.card h3 { margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.card .tlink { margin-top: auto; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .step:nth-child(2n)::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step::before { display: none; }
}

.step { position: relative; }
/* feine Verbindungslinie zwischen den Ziffern (nur nebeneinander) */
.step::before {
  content: ''; position: absolute;
  top: 21px; left: 52px; right: -20px;
  height: 1px; background: var(--line);
  z-index: 0;
}
.step:last-child::before { display: none; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 15px; font-weight: 650;
  letter-spacing: 0;
  font-feature-settings: "tnum";
  margin-bottom: 20px;
}
.step h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.014em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Navy-Panel ---------- */
.panel {
  position: relative;
  background: linear-gradient(158deg, #06153B 0%, #0d2258 52%, #06153B 100%);
  color: rgba(255,255,255,.78);
  overflow: hidden;
}
.panel > *:not(.panel-mark) { position: relative; z-index: 2; }
.panel--round { border-radius: var(--r-2xl); }
.panel::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(520px 320px at 92% 100%, rgba(34,68,143,.45), transparent 62%);
}
.panel-mark {
  position: absolute; z-index: 1; pointer-events: none;
  right: -60px; bottom: -80px;
  width: min(400px, 52vw);
  height: auto;
  opacity: .07;
}
.panel h2, .panel h3, .panel h4 { color: #fff; }
.panel .sec-head h2 { color: #fff; }
.panel .lead { color: rgba(255,255,255,.7); }
.panel .eyebrow { color: rgba(255,255,255,.5); }

.panel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 520px) { .panel-grid { grid-template-columns: 1fr; } }

.pitem-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; margin-bottom: 18px;
}
.pitem-ic svg { width: 21px; height: 21px; }
.pitem h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.014em; color: #fff; margin-bottom: 8px; }
.pitem p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.68); }

/* ---------- Zitat / Inhaber ---------- */
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 900px; margin-inline: auto;
}
@media (max-width: 680px) { .quote { grid-template-columns: 1fr; } }
.quote-mark {
  width: 60px; height: 60px; border-radius: var(--r-full);
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.quote-mark svg { width: 24px; height: 24px; }
.quote blockquote {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: -.026em;
  color: var(--ink);
  font-weight: 550;
  text-wrap: pretty;
}
.quote figcaption { margin-top: 22px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Leistungs-Checkliste ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 32px; }
@media (max-width: 680px) { .checks { grid-template-columns: 1fr; } }
.checks li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--text);
}
.checks svg { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 3px; }
.panel .checks li { border-bottom-color: rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.panel .checks svg { color: #fff; }

/* ---------- Einzugsgebiet ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 9px 18px;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.areas li:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-1px); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px 2px;
  cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -.016em;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy-600); }
.faq summary .chev {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  color: var(--faint);
  transition: transform var(--t);
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 2px 26px; font-size: 15.5px; color: var(--muted); line-height: 1.68; max-width: 660px; }

/* ---------- Bild-Platzhalter (für spätere Fotos) ---------- */
/* Fertige Hülle: Foto einsetzen und .ph-empty entfernen. */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tint-2);
  aspect-ratio: 4 / 3;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-empty {
  display: grid; place-items: center;
  border: 1px dashed var(--line-2);
  background: var(--tint);
  color: var(--faint);
  font-size: 13.5px;
}
.ph-cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(6,21,59,.82);
  color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

/* ---------- Formular ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--sh-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px; letter-spacing: -.008em;
}
.req { color: var(--navy-600); }
.opt { color: var(--faint); font-weight: 400; font-size: 12.5px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(6,21,59,.08);
}
.textarea { min-height: 148px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7688' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 6px; }
.check-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.check-row label { font-size: 14px; color: var(--muted); line-height: 1.5; }
.check-row a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.privacy-note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 22px 0 6px; }
.privacy-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff5f5; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--r-md); padding: 13px 15px; font-size: 14.5px;
  margin-bottom: 22px;
}
.form-error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.form-note { text-align: center; font-size: 13px; color: var(--faint); margin-top: 16px; }

/* Kontakt-Seitenspalte */
.contact-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-ic {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--tint-2); color: var(--navy);
  display: grid; place-items: center; flex: none;
}
.contact-ic svg { width: 19px; height: 19px; }
.contact-item .cl-label { font-size: 13px; color: var(--faint); margin: 0 0 3px; }
.contact-item .cl-value { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.012em; margin: 0; }
.contact-item .cl-value span { display: block; font-size: 14.5px; font-weight: 400; color: var(--muted); }
.contact-item a:hover { color: var(--navy-600); }

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--faint);
  padding-top: calc(var(--header-h) + 28px);
}
.crumbs a:hover { color: var(--navy); }
.crumbs svg { width: 13px; height: 13px; }
.crumbs [aria-current] { color: var(--muted); }

.page-head { padding-top: 28px; padding-bottom: clamp(40px, 5vw, 64px); }
.page-head h1 { margin-bottom: 20px; }
.page-head .lead { max-width: 640px; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-top: 44px; margin-bottom: 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 26px; margin-bottom: 10px; }
.prose p { margin-bottom: 14px; font-size: 16px; color: var(--text); line-height: 1.72; }
.prose ul { margin: 0 0 16px; padding-left: 4px; }
.prose ul li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  font-size: 16px; color: var(--text); line-height: 1.6;
}
.prose ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
}
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy-600); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .meta { font-size: 14px; color: var(--faint); margin-top: 36px; }
.prose address { font-style: normal; color: var(--text); line-height: 1.7; }

/* ---------- Footer ---------- */
.ftr {
  background: var(--navy);
  color: rgba(255,255,255,.66);
  padding-block: clamp(56px, 6vw, 80px) 32px;
  position: relative; overflow: hidden;
}
.ftr::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 88% 0%, rgba(34,68,143,.35), transparent 62%);
  pointer-events: none;
}
.ftr > .container { position: relative; }
.ftr-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 44px 32px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-grid { grid-template-columns: 1fr; gap: 34px; } }

.ftr-logo { height: 44px; width: auto; margin-bottom: 22px; }
.ftr-about { font-size: 14.5px; line-height: 1.66; max-width: 320px; }
.ftr-h {
  color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ftr-links { display: grid; gap: 11px; }
.ftr-links a, .ftr-contact a, .ftr-contact span {
  font-size: 14.5px; color: rgba(255,255,255,.66);
  transition: color var(--t-fast);
}
.ftr-links a:hover, .ftr-contact a:hover { color: #fff; }
.ftr-contact { display: grid; gap: 13px; }
.ftr-contact a, .ftr-contact span { display: flex; gap: 11px; align-items: flex-start; }
.ftr-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; opacity: .6; }

.ftr-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13.5px;
}
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ftr-bottom a:hover { color: #fff; }
.ftr-bottom button { font-size: 13.5px; color: rgba(255,255,255,.66); transition: color var(--t-fast); }
.ftr-bottom button:hover { color: #fff; text-decoration: underline; }

/* ---------- WhatsApp-Floater ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -6px rgba(37,211,102,.5), 0 2px 8px rgba(6,21,59,.16);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06) translateY(-2px); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); opacity: .55;
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring {
  0%   { transform: scale(1);    opacity: .5; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
body.consent-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ---------- Cookie-Consent ---------- */
@keyframes cc-fade { from { opacity: 0; } }
@keyframes cc-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
}
/* Sichtbar ist der Normalzustand. Geschlossen wird ueber das hidden-Attribut,
   das global auf display:none steht. Die Einblendung ist reine Zugabe: Laeuft die
   Animation nicht (Hintergrund-Tab, Safari-Aussetzer), ist das Fenster trotzdem da. */
.cc-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,21,59,.5);
  animation: cc-fade 260ms var(--ease);
}

.cc-banner {
  position: fixed; z-index: 210;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: 30px;
  text-align: center;
  animation: cc-pop 300ms var(--ease);
}
.cc-banner .cc-mark { width: 44px; height: auto; margin: 0 auto 18px; opacity: .9; }
.cc-banner h2 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: -.024em; }
.cc-banner p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.cc-banner p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: grid; gap: 9px; }
.cc-actions .btn { width: 100%; }
.cc-link {
  background: none; border: none; padding: 6px 0 0;
  font-size: 13.5px; color: var(--muted); text-decoration: underline;
  text-underline-offset: 2px; justify-self: center;
}
.cc-link:hover { color: var(--ink); }
@media (max-width: 560px) { .cc-banner { width: calc(100vw - 24px); padding: 24px 22px; } }

.cc-modal {
  position: fixed; z-index: 220;
  left: 50%; top: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: min(84vh, 720px);
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  display: flex; flex-direction: column;
  animation: cc-pop 300ms var(--ease);
}

.cc-modal-head {
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.cc-modal-head h2 { font-size: 1.25rem; letter-spacing: -.024em; }
.cc-modal-head p { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.cc-modal-body { padding: 8px 26px; overflow-y: auto; flex: 1; }
.cc-modal-foot {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
  display: grid; gap: 9px; grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) { .cc-modal-foot { grid-template-columns: 1fr; } }
.cc-modal-foot .btn { width: 100%; }

.cc-cat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cc-cat:last-child { border-bottom: none; }
.cc-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; }
.cc-cat p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 7px; }
.cc-cat .cc-meta { font-size: 12.5px; color: var(--faint); margin-top: 8px; }

.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span {
  position: absolute; inset: 0; border-radius: var(--r-full);
  background: var(--line-2);
  transition: background var(--t-fast);
  pointer-events: none;
}
.switch span::before {
  content: ''; position: absolute;
  width: 21px; height: 21px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(6,21,59,.25);
  transition: transform var(--t-fast);
}
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::before { transform: translateX(19px); }
.switch input:disabled + span { background: #8e98ad; cursor: not-allowed; }
.switch input:disabled { cursor: not-allowed; }
.switch input:focus-visible + span { outline: 2px solid var(--navy-600); outline-offset: 3px; }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Oberster Bildschirm steht sofort - nicht erst nach dem Skript */
.hero .reveal, .page-head .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hilfsklassen ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.hide-sm { }
@media (max-width: 560px) { .hide-sm { display: none; } }


/* ---------- Hausverwaltungs-Block ---------- */
.hv-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 4.5vw, 60px);
}
@media (max-width: 860px) { .hv-card { grid-template-columns: 1fr; } }
.hv-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.hv-card .lead { max-width: 480px; }
.checks--one { grid-template-columns: 1fr; }
.checks--one li { border-bottom-color: var(--line-2); }
.checks--one li:last-child { border-bottom: none; }

/* Vertrauenspunkte auf hellem Grund */
.panel-grid--light .pitem-ic {
  background: var(--tint-2);
  border-color: var(--line);
  color: var(--navy);
}
.panel-grid--light .pitem h3 { color: var(--ink); }
.panel-grid--light .pitem p { color: var(--muted); }
