/* Frama Gebäudedienstleistung */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --sky: #4fb3f0;       /* Himmelblau: Flächen, Icons, Überschriften auf Dunkel */
  --navy: #0b2545;      /* Nachtblau: Text, Header, dunkle Bänder */
  --coral: #ff7b5c;     /* Koralle: Buttons, Highlights */
  --bg: #f3f9fe;        /* Hellblau-Weiß: Seitenhintergrund */

  /* Abgeleitete Töne */
  --navy-deep: #07192f;
  --navy-soft: #16375e;
  --sky-soft: #e1f1fc;
  --sky-line: #c9e4f8;
  --coral-hover: #f4623f;
  --text-muted: #44587a;

  --ease-calm: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 28px;
  --shadow: 0 22px 44px -26px rgba(11, 37, 69, 0.45);
  --container: 1180px;
  --gutter: 24px;
  --topbar-h: 48px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 430;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.topbar :focus-visible,
.section--navy :focus-visible,
.cta-card :focus-visible,
.footer :focus-visible { outline-color: var(--sky); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section[id] { scroll-margin-top: 120px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 18px; height: 18px; }
.btn--primary { background: var(--coral); color: var(--navy); }
.btn--primary:hover { background: var(--coral-hover); box-shadow: 0 12px 24px -14px rgba(244, 98, 63, 0.9); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--ghost { padding-inline: 14px; background: transparent; color: var(--navy); }
.btn--ghost:hover { transform: none; background: var(--sky-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(7, 25, 47, 0.5); }

.topbar { background: var(--navy); color: #fff; font-size: 0.95rem; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: var(--topbar-h);
}
.topbar a { text-decoration: none; }
.topbar__item { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.topbar__item svg { width: 16px; height: 16px; color: var(--sky); }
.topbar__divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.35); }
.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}
.topbar__pill-short { display: none; }
.topbar__pill-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  transition: background-color 0.2s, color 0.2s;
}
.topbar__pill-icon svg { width: 15px; height: 15px; }
.topbar__pill:hover .topbar__pill-icon { background: var(--navy); color: #fff; }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.logo { display: inline-flex; flex: none; text-decoration: none; }
/* Im Header nur der Schriftzug: der Untertitel wäre hier nur ~4 px hoch */
.logo__img { width: auto; height: 62px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 50%;
  background: var(--sky-soft);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 112px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 3.8rem); }
.hero__lead {
  max-width: 33em;
  margin: 24px 0 34px;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero__checks li { display: inline-flex; align-items: center; gap: 9px; }
.check-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky);
}
.check-dot svg { width: 12px; height: 12px; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Sektionen */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: var(--sky); }

.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.split-head h2 { font-size: clamp(2.1rem, 3.7vw, 3.05rem); }
.split-head__text { font-size: 1.08rem; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head h2 { font-size: clamp(2.1rem, 3.7vw, 3.05rem); margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.08rem; }

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 34px;
  border: 1.5px solid var(--sky-line);
  border-radius: 26px;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service__arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  transition: background-color 0.25s, color 0.25s;
}
.service__arrow::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; } /* größere Tippfläche */
.service__arrow svg { width: 17px; height: 17px; }
/* Mit Maus ist die ganze Karte klickbar (script.js). Am Handy nur der Pfeil, sonst
   wird ein angedeutetes Wischen zum Tipp und die Seite springt zum Formular. */
@media (hover: hover) and (pointer: fine) {
  .service { cursor: pointer; }
  .service:hover { transform: translateY(-4px); border-color: var(--sky); box-shadow: var(--shadow); }
  .service:hover .service__arrow { background: var(--navy); color: #fff; }
}
.service h3 { margin-bottom: 10px; font-size: 1.55rem; }
.service p { color: var(--text-muted); font-size: 1rem; }
.service--more { background: var(--sky-soft); border-color: var(--sky); }

/* Illustrationen (Symbole im Sprite, per <use> eingebunden).
   Nur einfache Klassen-Selektoren: Kopien in <use> erben keine Vorfahren-Selektoren. */
.ico { width: 150px; height: 150px; margin: -6px 0 14px -10px; overflow: visible; }
.sprite symbol { overflow: visible; }
.i-o, .i-p, .i-w, .i-lp, .i-m {
  stroke: var(--navy);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-o { fill: none; }
.i-p { fill: var(--sky); }
.i-w { fill: #fff; }
.i-lp { fill: var(--sky-soft); }
.i-m { fill: #a6d8f7; } /* Seiten- und Schattenflächen */
.i-thin { stroke-width: 2; }
.i-thick { stroke-width: 4.5; }
.i-dash { stroke-dasharray: 3 6; }
.i-glare { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.i-hub { fill: var(--navy); }
.i-sk { fill: var(--coral); stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; }
.i-skn { fill: var(--navy); }
.i-skw { fill: #fff; stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; }

/* Warum Frama */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
  padding: 22px 22px 36px;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  text-align: center;
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 28px;
}
.feature h3 { margin-bottom: 10px; font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.feature p { max-width: 30em; margin-inline: auto; color: var(--text-muted); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.tile { padding: 28px 24px; border-radius: 16px; background: var(--navy-soft); text-align: center; }
.tile h3 { margin-bottom: 6px; color: var(--sky); font-size: clamp(1.4rem, 2vw, 1.6rem); }

.center { margin-top: clamp(40px, 5vw, 64px); text-align: center; }

/* Anfrage */
/* Anfrage-Bereich bewusst eckig – keine Rundungen an Kästen, Feldern und Knöpfen */
.contact .btn { border-radius: 0; }
/* Formular (weiß) und Kontaktspalte (Nachtblau) bilden einen Block mit harter
   himmelblauer Versatzkante – dazu ein Funkeln auf der Ecke wie in den Illustrationen */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
  box-shadow: 14px 14px 0 var(--sky);
}
.contact::before {
  content: "";
  position: absolute;
  top: -26px;
  right: -24px;
  z-index: 2;
  width: 64px;
  height: 64px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-10Q1.6-1.6 10 0Q1.6 1.6 0 10Q-1.6 1.6-10 0Q-1.6-1.6 0-10Z' fill='%23ff7b5c' stroke='%230b2545' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 46px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-10Q1.6-1.6 10 0Q1.6 1.6 0 10Q-1.6 1.6-10 0Q-1.6-1.6 0-10Z' fill='%23fff' stroke='%230b2545' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 100% 100% / 22px no-repeat;
  pointer-events: none;
}
.contact__aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--navy);
  color: #fff;
}
/* Gebäude-Linien aus dem Logo, groß und leise im Hintergrund */
.contact__aside::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -18px;
  z-index: -1;
  width: 380px;
  height: 172px;
  background: url("img/frama-haus.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
.contact__aside h3 { margin-bottom: 8px; color: var(--sky); font-size: 1.75rem; }
.contact__aside > p { margin-bottom: 22px; color: rgba(255, 255, 255, 0.75); }
.person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.person__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.person p { margin: 0; }
.person__name { font-weight: 700; line-height: 1.3; }
.person__role { font-size: 0.9rem; color: var(--sky); }
.person__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}
.person__phone svg { width: 16px; height: 16px; color: var(--sky); }
.person__phone:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.address {
  display: flex;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.address svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--sky); }
.address p { margin-bottom: 6px; line-height: 1.55; }
.address a { font-weight: 700; text-decoration-color: var(--coral); text-underline-offset: 4px; }

.form {
  --form-pad: clamp(24px, 4vw, 44px);
  padding: var(--form-pad);
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(79, 179, 240, 0.4); }
.field ::placeholder { color: #7f90ad; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; line-height: 1.55; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.check a { font-weight: 700; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.botcheck { display: none; }
.form__status:empty { display: none; }
.form__status {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 0;
  background: var(--sky-soft);
  font-weight: 600;
}
.form__status.is-error { background: #fde8e8; color: #8a1c1c; }

/* Anfrage-Assistent */
.wizard { scroll-margin-top: 110px; }
.wizard:not(.is-wizard) .wizard__steps,
.wizard:not(.is-wizard) .wizard__bar,
.wizard:not(.is-wizard) .wizard__back,
.wizard:not(.is-wizard) .wizard__next { display: none; }
.wizard:not(.is-wizard) .wizard__step + .wizard__step { margin-top: 40px; }

/* Kopfzeile als nachtblauer Streifen über die volle Breite des Formulars:
   Schritte links, Navigation oben rechts, Fortschrittsbalken als Unterkante */
.wizard__progress { margin-bottom: 26px; }
.is-wizard .wizard__progress {
  margin: calc(-1 * var(--form-pad)) calc(-1 * var(--form-pad)) 30px;
  padding: 18px var(--form-pad) 0;
  background: var(--navy);
}
.wizard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.wizard__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.wizard__steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  counter-increment: step;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s;
}
.wizard__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.25s, color 0.25s;
}
.wizard__steps li.is-active { color: #fff; }
.wizard__steps li.is-active::before { background: var(--coral); color: var(--navy); box-shadow: none; }
.wizard__steps li.is-done::before {
  content: "";
  box-shadow: none;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.wizard__nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wizard__nav .btn { padding: 11px 22px; }
.wizard__back {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.wizard__back:hover { background: rgba(255, 255, 255, 0.1); }
.wizard__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.wizard__bar {
  height: 5px;
  margin: 18px calc(-1 * var(--form-pad)) 0;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.wizard__bar-fill {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--coral));
  transition: width 0.45s ease;
}

.wizard__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.is-wizard .wizard__step.is-active { animation: step-in 0.35s ease both; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.wizard__title {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.2;
  outline: none;
}
.wizard__hint { margin: 0 0 22px; color: var(--text-muted); font-size: 0.97rem; }
.wizard__label { margin: 26px 0 12px; font-size: 0.95rem; font-weight: 600; }
.wizard__label span,
.wizard__field label span,
.email-hint { color: var(--text-muted); font-weight: 400; }
.wizard__field { margin-top: 24px; }
.wizard__row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0 22px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 18px;
  border: 1.5px solid rgba(11, 37, 69, 0.28);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.choice:hover .choice__box { border-color: var(--navy); }
/* Auswahl springt hervor: dunkel gefüllt mit himmelblauer Versatzkante wie der ganze Block */
.choice input:checked + .choice__box { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--sky); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--navy); outline-offset: 2px; }

.choices--tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.choices--tiles .choice__box {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px 14px;
  border-radius: 0;
}
.choices--tiles .choice--wide { grid-column: span 2; }
.choices--tiles .choice--wide .choice__box { flex-direction: row; align-items: center; }
.choice__ico { width: 44px; height: 44px; flex: none; overflow: visible; }
.choices--tiles .choice__box::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(11, 37, 69, 0.28);
  background: #fff center / 11px no-repeat;
  transition: background-color 0.2s, border-color 0.2s;
}
.choices--tiles input:checked + .choice__box {
  border-color: var(--navy);
  background: var(--sky-soft);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy), 4px 4px 0 var(--sky);
}
.choices--tiles input:checked + .choice__box::after {
  border-color: var(--coral);
  background-color: var(--coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.wizard__end { display: flex; justify-content: flex-end; margin-top: 24px; }
.wizard:not(.is-wizard) .wizard__end { display: none; }

.wizard__error:empty { display: none; }
.wizard__error {
  margin: -6px 0 18px;
  padding: 10px 14px;
  border-radius: 0;
  background: #fdecea;
  color: #b42318;
  font-size: 0.95rem;
  font-weight: 600;
}
.wizard__error--end { margin: 18px 0 0; }
.field input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.check input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }

.wizard__summary:empty { display: none; }
.wizard__summary { margin: 28px 0 22px; padding: 6px 20px; border-left: 4px solid var(--coral); background: var(--sky-soft); }
.summary { margin: 0; }
.summary__row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--sky-line);
  font-size: 0.95rem;
  line-height: 1.5;
}
.summary__row:first-child { border-top: 0; }
.summary__row dt { color: var(--text-muted); font-weight: 600; }
.summary__row dd { margin: 0; }
.summary__edit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  cursor: pointer;
}

.wizard__done { padding: 28px 0 12px; text-align: center; outline: none; animation: step-in 0.35s ease both; }
.wizard__done-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 0;
  background: var(--sky);
}
.wizard__done-icon svg { width: 32px; height: 32px; }
.wizard__done-title { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.wizard__done-text { max-width: 30em; margin: 0 auto 24px; color: var(--text-muted); }

/* Partner / Subunternehmer */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.media-split h2 { margin-bottom: 22px; font-size: clamp(2.1rem, 3.7vw, 3.05rem); }
.media-split__img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.checklist { display: grid; gap: 12px; margin: 28px 0 36px; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.checklist li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ */
.faq { max-width: 880px; }
.faq details {
  margin-bottom: 14px;
  border: 1.5px solid var(--sky-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--sky); }
.faq summary {
  position: relative;
  padding: 22px 72px 22px 26px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat;
  /* Das Plus dreht sich mit derselben Ruhe, mit der die Antwort aufgeht */
  transition: transform 0.5s var(--ease-calm);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--text-muted); }
.faq details a { font-weight: 700; text-decoration-color: var(--coral); text-underline-offset: 3px; }

/* Der FAQ-Abschnitt darf nie Ankerpunkt fürs Scroll-Anchoring sein: Liegt nur noch
   sein unterer Rand im Bild, hielte der Browser dessen Oberkante fest – die bewegt
   sich beim Zuklappen nicht, und alles darunter rutschte sichtbar hoch. So ankert
   er am Abschnitt darunter und gleicht die verschwundene Höhe unsichtbar aus. */
#faq { overflow-anchor: none; }

/* Antworten weich auf- und zuklappen (Logik wie akibon.studio): ::details-content
   darf dank interpolate-size bis `auto` animieren. Kann der Browser das nicht,
   klappt es schlagartig – lieber ohne Animation als ohne Text. */
@supports (interpolate-size: allow-keywords) and (selector(::details-content)) {
  #faq { interpolate-size: allow-keywords; }
  #faq details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 0.5s var(--ease-calm), opacity 0.5s var(--ease-calm), content-visibility 0.5s allow-discrete;
    transition-behavior: allow-discrete;
  }
  #faq details[open]::details-content { block-size: auto; opacity: 1; }
  /* Beim unbemerkten Aufräumen muss die Höhe sofort stimmen */
  #faq.sofort details::details-content { transition: none; }
}

/* Weitere Fragen: eingeklappt per Grid-Zeile 0fr, ohne gemessene Pixelhöhen */
.faqrest {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.52s var(--ease-calm), opacity 0.52s var(--ease-calm);
}
.faqrest > div { overflow: hidden; }
.faqrest[data-zu] { grid-template-rows: 0fr; opacity: 0; }
.faqmehr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.faqmehr:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.faqmehr::after { content: "↓"; font-size: 0.9rem; opacity: 0.7; transition: transform 0.35s var(--ease-soft); }
.faqmehr[data-offen]::after { transform: rotate(180deg); }

/* Abschluss */
.cta { padding: clamp(64px, 8vw, 104px) 0; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}
.cta-card__text { padding: clamp(8px, 2vw, 24px) clamp(0px, 1vw, 12px); }
.cta-card h2 { margin-bottom: 20px; color: var(--sky); font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.cta-card__text > p { font-size: 1.1rem; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-card img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border-radius: 18px;
}

/* Footer */
.footer { padding: clamp(56px, 7vw, 84px) 0 36px; background: var(--navy-deep); color: #fff; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
.footer .btn:hover { text-decoration: none; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(44px, 6vw, 64px);
}
.logo--footer .logo__img { width: 300px; height: auto; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 0.75fr; gap: 36px 40px; }
.footer__title {
  margin-bottom: 18px;
  color: var(--sky);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; line-height: 1.5; }
.footer__list--people { gap: 18px; }
.footer__name { display: block; font-weight: 600; }
.footer__muted { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}
.footer__credit { margin-left: auto; opacity: 0.7; }
/* Schmaler Footer (Unterseiten): ohne Trennlinie ins Leere */
.footer__bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Schnellkontakt-Leiste (nur Handy) */
.mobile-bar { display: none; }

/* Rechtstexte */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 32px; font-size: clamp(2.3rem, 4.4vw, 3.2rem); }
.legal h2 { margin: 40px 0 12px; font-size: 1.6rem; }
.legal h3 { margin: 24px 0 8px; font-size: 1.25rem; }
.legal a { text-decoration-color: var(--coral); text-underline-offset: 3px; }
.legal ul { padding-left: 1.2em; }
.todo { padding: 1px 6px; border-radius: 6px; background: #fff1b8; color: #6b4e00; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* Fehlerseite */
.notfound { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.notfound h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.notfound h1 + p { max-width: 32em; margin: 20px auto 34px; color: var(--text-muted); font-size: 1.1rem; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Einblenden beim Scrollen – nur mit Maus. Am Handy war das beim Wischen der größte
   Rechenaufwand, und Inhalte kamen verspätet ins Bild. */
@media (hover: hover) and (pointer: fine) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .services .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
  .services .reveal:nth-child(3n) { transition-delay: 0.16s; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }
  .contact__aside > h3,
  .contact__aside > p,
  .contact__aside .address { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-top: 1px solid var(--sky-line);
    box-shadow: 0 24px 40px -24px rgba(7, 25, 47, 0.45);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--sky-soft); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 18px; }
  .topbar__area { display: none; }
}

@media (max-width: 900px) {
  .hero__inner,
  .split-head,
  .contact,
  .media-split,
  .cta-card { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .media-split__img { order: -1; }
  .media-split__img img { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; --topbar-h: 46px; }
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* Die Kontaktleiste scrollt weg, nur die Navigation bleibt oben */
  .site-header { top: calc(-1 * var(--topbar-h)); }
  section[id] { scroll-margin-top: 84px; }
  .topbar__inner { justify-content: space-between; gap: 12px; }
  .topbar__inner > .topbar__divider:not(.topbar__area) { display: none; }
  .topbar__pill-long { display: none; }
  .topbar__pill-short { display: inline; }
  .navbar__inner { min-height: 72px; }
  .logo__img { height: 46px; }
  .logo--footer .logo__img { width: 260px; height: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 26px 24px 30px; }
  .ico { width: 124px; height: 124px; margin-bottom: 10px; }
  .service__arrow { top: 22px; right: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact__aside { grid-template-columns: 1fr; }
  .wizard__steps { flex: 1; flex-wrap: nowrap; gap: 6px; }
  .wizard__steps li { flex: none; }
  .wizard__steps li.is-active { flex: 1; }
  .wizard__steps li:not(.is-active) span { display: none; }
  /* Zurück/Weiter stehen fest im Formular direkt unter den Antworten – keine Leiste,
     die auftaucht und verschwindet. Kopfzeile und Balken lösen sich dafür auf
     (display: contents), damit die Navigation per `order` ans Ende rutschen kann. */
  .is-wizard { display: flex; flex-direction: column; }
  .is-wizard .wizard__progress,
  .is-wizard .wizard__head { display: contents; }
  /* Der nachtblaue Kopfstreifen sitzt hier direkt auf der Schrittliste */
  .is-wizard .wizard__steps { flex: none; margin: -20px -16px 0; padding: 14px 16px; background: var(--navy); }
  .is-wizard .wizard__bar { margin: 0 -16px 18px; }
  .is-wizard .wizard__back { background: var(--sky-soft); box-shadow: none; color: var(--navy); }
  .is-wizard .wizard__back:hover { background: var(--sky-line); }
  .contact { box-shadow: 8px 8px 0 var(--sky); }
  .contact::before { top: -18px; right: -10px; transform: scale(0.72); transform-origin: top right; }
  .contact__aside { padding: 28px 20px; }
  .contact__aside::after { right: -70px; width: 320px; height: 145px; }
  .is-wizard .wizard__nav { order: 1; margin: 20px 0 0; }
  .wizard__nav .btn { flex: 1; padding: 13px 16px; }
  .wizard__end { display: none; }
  /* Kompakt, damit alle Leistungen ohne Scrollen auf einen Bildschirm passen:
     Symbol links, Text rechts, Auswahlkreis klein auf der Ecke */
  .form { padding: 20px 16px 22px; }
  .wizard__progress { margin-bottom: 18px; }
  .wizard__title { font-size: 1.45rem; }
  .wizard__hint { margin-bottom: 14px; font-size: 0.92rem; }
  .wizard__label { margin: 18px 0 10px; }
  .wizard__field { margin-top: 18px; }
  .choices { gap: 8px; }
  .choice__box { padding: 9px 14px; font-size: 0.9rem; }
  .choices--tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .choices--tiles .choice__box {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-height: 52px;
    padding: 7px 8px 7px 9px;
    border-radius: 0;
    font-size: 0.84rem;
    line-height: 1.25;
  }
  .choice__ico { width: 26px; height: 26px; }
  /* Häkchen erscheint erst bei Auswahl, als Plakette auf der Ecke */
  .choices--tiles .choice__box::after {
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background-size: 9px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s var(--ease-soft);
  }
  .choices--tiles input:checked + .choice__box::after { opacity: 1; transform: none; }
  .wizard__row { grid-template-columns: 1fr; }
  .summary__row { grid-template-columns: 1fr auto; }
  .summary__row dt { grid-column: 1; }
  .summary__row dd { grid-column: 1; }
  .summary__edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .faq summary { padding: 18px 64px 18px 20px; font-size: 1.15rem; }
  .faq details p { padding: 0 20px 20px; }
  .cta-card__actions .btn { flex: 1 1 100%; }
  /* Footer zentriert und nur das Wichtigste: Ansprechpartner, Kontakt, Rechtliches.
     Anrufen/Anfragen steht schon in der Schnellkontakt-Leiste, Leistungen und Seiten im Menü. */
  .footer { text-align: center; }
  .footer__actions,
  .footer__more { display: none; }
  .footer__top { justify-content: center; margin-bottom: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__list { justify-items: center; }
  .footer__bottom { justify-content: center; gap: 10px 24px; margin-top: 40px; }
  .footer__bottom > :first-child,
  .footer__credit { flex-basis: 100%; margin-left: 0; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -12px 30px -18px rgba(7, 25, 47, 0.45);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .is-wizard .wizard__step.is-active,
  .wizard__done { animation: none; }
  .faqrest,
  #faq details::details-content { transition: none !important; }
}
