/* 360° Express – Seitenstile. Baut auf css/tokens.css auf.
   Icons: Lucide (ISC-Lizenz, https://lucide.dev). WhatsApp-Zeichen: Marke von Meta, Pfad aus simple-icons (CC0).
   Schrift: Plus Jakarta Sans (SIL Open Font License 1.1). Lizenztexte: /lizenzen.txt */

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 800; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--surface); }

.wrap { padding-inline: var(--margin); }
/* Icon-Sprite: unsichtbar, ohne style-Attribut (Content-Security-Policy) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius-field);
  background: var(--surface); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* WhatsApp-Zeichen in den offiziellen Farben: Grün auf hellem Grund, Weiß auf dunklem (Hero, Abschluss, dunkle Abschnitte) */
.icon--brand { fill: var(--whatsapp); stroke: none; }
.btn--on-dark .icon--brand, .on-dark .icon--brand { fill: currentColor; }

.eyebrow {
  display: block;
  font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-body); line-height: 1.7; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--button-height); padding: 14px 24px;
  border: 1.5px solid transparent; border-radius: var(--radius-button);
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--orange-button); color: var(--surface); font-size: 19px; }
.btn--primary:hover { background: var(--orange-text); color: var(--surface); }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--navy); font-size: 16px; padding: 12px 20px; }
.btn--secondary:hover { background: var(--hover-tint); color: var(--navy); }
.btn--on-dark { background: transparent; color: var(--surface); border-color: rgba(255, 255, 255, .7); font-size: 16px; padding: 12px 18px; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); color: var(--surface); }
.btn--back { background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600; min-height: var(--touch-min); padding: 10px 4px; }
.btn--back:hover { color: var(--navy); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 20px; height: 20px; }

/* ---------- Header ----------
   Weiß, volle Breite, klebt oben. Unter 1100 px Menü-Button, unter 900 px blendet er sich
   beim Runterscrollen aus und beim Hochscrollen wieder ein (js/main.js). */
html { scroll-padding-top: 104px; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }

.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: var(--touch-min); text-decoration: none; }
.logo__arc { stroke: var(--blue); }
.logo__house { fill: var(--navy); }
.logo__door { fill: var(--surface); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--surface); }
.logo__name span { color: var(--orange-brand); }
.site-header .logo__name { color: var(--navy); }
.site-header .logo__name span { color: var(--orange-button); }
.logo__sub { margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--touch-min);
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 20px; padding-left: 28px; border-left: 1px solid var(--line); }
.header-phone { display: flex; align-items: center; gap: 10px; min-height: var(--touch-min); text-decoration: none; }
.header-phone__icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; transition: background-color .15s ease, color .15s ease; }
.header-phone__icon .icon { width: 18px; height: 18px; }
.header-phone__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.header-phone__label { font-size: 13px; font-weight: 400; color: var(--muted); }
.header-phone__number { font-size: 16px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.header-phone:hover .header-phone__icon { background: var(--blue); color: var(--surface); }
.header-phone:hover .header-phone__number { color: var(--blue); }
/* Kleiner Orange-Button: 15px Schrift, daher orange-text (4,9:1) statt orange-button */
.btn--header { min-height: var(--touch-min); padding: 10px 18px; font-size: 15px; background: var(--orange-text); color: var(--surface); white-space: nowrap; }
.btn--header:hover { background: var(--orange-text-hover); color: var(--surface); }

.menu-toggle {
  display: none; position: relative; flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-button); background: var(--surface); cursor: pointer;
}
.menu-toggle:hover { border-color: var(--navy); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle__bars { left: 11px; right: 11px; top: 50%; margin-top: -1px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; right: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.menu { display: none; }
.menu__list { list-style: none; margin: 0; padding: 4px 0 0; }
.menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px;
  border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.menu__list a .icon { width: 18px; height: 18px; color: var(--blue); }
.menu__list a:hover { color: var(--blue); }
.menu__list a:focus-visible { outline-offset: -3px; border-radius: 4px; }
.menu__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 22px 0 26px; }
.menu__actions .btn--primary { grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--footer); color: var(--surface); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  /* Kräftige blaue Abdunklung: das Foto (Hochformat, stark vergrößert) bleibt Stimmung, der Text steht klar davor */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 47, 85, .95) 0%, rgba(6, 47, 85, .9) 45%, rgba(6, 47, 85, .78) 75%, rgba(6, 47, 85, .68) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 104px; padding-bottom: 112px; }
.hero__content { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: var(--on-dark-accent); align-self: flex-start; }
.hero h1 { color: var(--surface); font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 span { display: block; color: var(--on-dark-accent); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 255, 255, .94); max-width: 540px; }

.plz-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.plz-form label { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--surface); }
.plz-form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.plz-form input {
  width: 210px; min-height: var(--button-height); padding: 12px 16px;
  border: 1.5px solid var(--surface); border-radius: var(--radius-button);
  background: var(--surface); color: var(--ink); font-size: 17px;
}
.plz-form input::placeholder { color: var(--muted); }
.plz-form input:focus { outline: 3px solid var(--on-dark-accent); outline-offset: 2px; }
/* Rückmeldung zur PLZ: belohnt die Eingabe sofort */
.plz-status { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--surface); }
.plz-status:empty { display: none; }
.plz-status.is-in::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238cc2f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plz-badge__status { font-weight: 600; color: var(--muted); }
.plz-badge__status.is-in { color: var(--blue); }
.b-plz-status { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.b-plz-status:empty { display: none; }
.b-plz-status.is-in { font-weight: 600; color: var(--blue); }
/* Danke-Bildschirm: Einladung zu WhatsApp-Fotos */
.b-whatsapp { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-button); }
.b-whatsapp[hidden] { display: none; }
.b-whatsapp p { font-size: 15px; line-height: 1.55; color: var(--body); }
.b-whatsapp strong { color: var(--navy); }

.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.direct__label { font-size: 16px; font-weight: 700; color: var(--surface); margin-right: 4px; }
.direct .btn--on-dark { min-height: 48px; }

/* ---------- Ablauf + Booster ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface-soft); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.col-1-5 { grid-column: 1 / 6; }
.col-7-12 { grid-column: 7 / 13; }

.ablauf__intro { display: flex; flex-direction: column; gap: 18px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.step__title { display: block; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--navy); margin-bottom: 4px; }
.step__text { display: block; font-size: var(--fs-body); line-height: 1.6; color: var(--body); }
.reassure { display: flex; gap: 12px; align-items: flex-start; margin-top: 34px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink); font-weight: 600; }
.reassure .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* ---------- Booster-Karte ---------- */
.booster {
  container-type: inline-size;
  scroll-margin-top: 0;
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-float);
  padding: var(--space-7);
}
.b-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.b-head__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.b-head__count { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.b-progress { display: flex; gap: 6px; margin: 10px 0 22px; }
.b-progress span { flex: 1 1 0; height: 5px; border-radius: 3px; background: var(--line); }
.b-progress span.is-on { background: var(--blue); }

.b-step[hidden] { display: none; }
.b-q { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 16px; }
/* Fragen bekommen per Skript den Fokus (für Screenreader); sie sind nicht bedienbar, daher ohne Ring */
.b-q:focus, .b-q:focus-visible { outline: none; }
.b-sub { margin: 18px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.b-sub:first-of-type { margin-top: 0; }
.b-note { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-field); background: var(--surface-soft); font-size: 15px; line-height: 1.5; color: var(--navy); }
.b-hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.b-text { margin-bottom: 16px; font-size: 16px; line-height: 1.6; color: var(--body); }

.b-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 64px; padding: 12px 14px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-button);
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer;
}
/* Zwei Spalten nur, wenn die Karte breit genug ist */
@container (max-width: 460px) {
  .b-tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 54px; }
}
/* Ungerade letzte Kachel über die volle Breite */
.b-tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile:hover { border-color: var(--blue); background: var(--hover-tint); }
.tile__dot { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid var(--line-control); border-radius: 50%; }
.tile[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.tile[aria-pressed="true"] .tile__dot { border: 5px solid var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch-min); padding: 9px 14px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-field);
  background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--navy); box-shadow: inset 0 0 0 1px var(--blue); }

.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field {
  width: 100%; min-height: var(--field-height); padding: 12px 14px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-field);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 101, 190, .25); }
.field[aria-invalid="true"] { border-color: var(--error); }
.field--plz { max-width: 200px; }
.b-fields { display: flex; flex-direction: column; gap: 14px; }

.plz-badge { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--ink); }
.plz-badge strong { font-weight: 700; }
.link-btn { background: none; border: none; padding: 10px 2px; min-height: var(--touch-min); color: var(--blue); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--navy); }

.upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; padding: 18px; text-align: center; cursor: pointer;
  border: 2px dashed var(--control-idle); border-radius: var(--radius-icon); background: var(--upload-tint);
}
.upload:hover { border-color: var(--blue); }
.upload .icon { width: 30px; height: 30px; color: var(--blue); }
.upload__title { font-size: 16px; font-weight: 700; color: var(--navy); }
.upload__hint { font-size: 14px; color: var(--muted); }
.upload-input:focus-visible + .upload { outline: 3px solid var(--blue); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--blue); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.b-error { margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--error); }
.b-error:empty { display: none; }
.b-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.b-nav[hidden] { display: none; }
.b-nav .btn--primary { min-width: 150px; }

.b-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.b-done__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--surface); display: grid; place-items: center; }
.b-done__icon .icon { width: 28px; height: 28px; stroke-width: 2.6; }
.b-paket { width: 100%; padding: 16px; border-radius: var(--radius-button); background: var(--surface-soft); }
.b-paket__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.b-paket__text { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--navy); }

/* ---------- Inhaltsabschnitte ---------- */
.section--dark { background: var(--navy); }
.on-dark .eyebrow { color: var(--on-dark-accent); }
.on-dark .h2, .on-dark h3 { color: var(--surface); }
.on-dark .lead { color: var(--on-dark-text); }
.section-intro { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.strong { color: var(--navy); font-weight: 700; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.grid--center { align-items: center; }
.col-1-4 { grid-column: 1 / 5; }
.col-1-6 { grid-column: 1 / 7; }
.col-5-12 { grid-column: 5 / 13; }
.col-6-12 { grid-column: 6 / 13; }
.col-8-12 { grid-column: 8 / 13; }

.media { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-image); background: var(--surface-soft); }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--fill { height: 100%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
/* Abschluss-CTA: zentriert auf allen Breiten */
.cta { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.cta .section-intro { align-items: center; max-width: 640px; }
#kontakt { padding-block: calc(var(--section-y) - 16px); }
.cta-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; }
.cta-actions .btn--primary { grid-column: 1 / -1; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch-min); font-weight: 700; font-size: 16px; color: var(--navy); text-underline-offset: 4px; }
.text-link .icon { width: 18px; height: 18px; }

.checklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--blue); stroke-width: 2.4; }
.checklist--strong li { font-weight: 600; }
.checklist li > span { min-width: 0; }
.checklist--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }


/* Karten */
.cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: var(--gutter); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: var(--space-7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.card h3 { font-size: var(--fs-h3); line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.card p { font-size: var(--fs-card); line-height: 1.6; color: var(--body); }
.cards--4 .card h3 { min-height: 2.6em; }
.icon-tile { width: var(--icon-tile); height: var(--icon-tile); flex: 0 0 var(--icon-tile); border-radius: var(--radius-icon); background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.icon-tile .icon { width: 26px; height: 26px; }
.aside-note { margin-top: 32px; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.aside-note strong { color: var(--navy); }

/* Angehörige: festes 4:5-Bild, mittig zum Text (wie „Für Unternehmen“) */
.angehoerige { align-items: center; }
.angehoerige__media .media { object-position: 60% 50%; } /* Kiste mit Fotos rechts der Mitte */
.unternehmen__media .media { object-position: 50% 100%; } /* 4:3 unter 1100 px: Besen und Leisten unten im Bild */
.angehoerige__text { align-self: center; }
.angehoerige__text .actions { gap: 12px 20px; }

/* Verwertung */
.uses { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.use { display: flex; gap: 18px; align-items: flex-start; }
.use h3 { font-size: var(--fs-h3); line-height: 1.3; margin-bottom: 4px; }
.use p { font-size: var(--fs-card); line-height: 1.6; color: var(--body); }
.uses--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); margin-top: 24px; }
.verwertung { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .16); }
.verwertung__title { font-size: 22px; line-height: 1.3; }
.on-dark .use p { color: var(--on-dark-text); }
.on-dark .card h3 { color: var(--navy); }
.on-dark .aside-note { color: var(--on-dark-text); }
.on-dark .aside-note strong { color: var(--surface); }

/* Unternehmen: typische Aufträge */
.usecases { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); }
.usecase { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.usecase h3 { font-size: 19px; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.usecase p { font-size: var(--fs-card); line-height: 1.6; color: var(--body); }
.actions .small { max-width: 280px; }

/* Versprechen */
.promises { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
.promise { display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--line-strong); }


.promise h3 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.promise p { font-size: var(--fs-card); line-height: 1.6; color: var(--body); }

/* FAQ */
.faq__intro { align-self: start; position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 24px; height: 24px; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding-bottom: 22px; max-width: 680px; font-size: var(--fs-body); line-height: 1.7; color: var(--body); }

/* Einsatzgebiet */
.regions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.region { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px var(--gutter); align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.region h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.35; }
.region h3 .icon { width: 18px; height: 18px; color: var(--blue); }
.region p { font-size: 16px; line-height: 1.6; color: var(--body); }

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-1-4 { grid-column: 1 / 6; }
  .col-6-12 { grid-column: 7 / 13; }
  .col-5-12 { grid-column: 1 / -1; }
  .col-1-4.section-intro { grid-column: 1 / -1; }
  .col-8-12 { grid-column: 8 / 13; }
  .angehoerige > .angehoerige__media, .angehoerige > .angehoerige__text { grid-column: 1 / -1; }
  .angehoerige .media--4x5 { aspect-ratio: 16 / 9; }
  .promises, .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses--row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq__intro { position: static; }
  #einsatzgebiet .col-1-5, #einsatzgebiet .col-7-12 { grid-column: 1 / -1; }
  .cards--4 .card h3 { min-height: 0; }
}

@media (max-width: 900px) {
  .col-1-4, .col-1-6, .col-5-12, .col-6-12, .col-8-12 { grid-column: 1 / -1; }
  .grid-12 { row-gap: 36px; }
  .cards--4, .cards--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
  .angehoerige__media { min-height: 0; }
  .media--fill, .angehoerige .media--4x5 { height: auto; aspect-ratio: 4 / 3; }
  #unternehmen .media--4x5 { aspect-ratio: 4 / 3; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .usecases { margin-top: 0; }
  .promise { padding: 20px 0; }
  .promise + .promise { border-top-color: var(--line); }
}

@media (max-width: 560px) {
  .checklist--2col { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { grid-template-columns: minmax(0, 1fr); }
  .unternehmen__media { display: none; }
  .usecases { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .usecase { display: grid; grid-template-columns: var(--icon-tile) minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px 0; }
  .usecase .icon-tile { grid-row: 1 / span 2; }
  .usecase + .usecase { border-top-color: var(--line); }
  /* Leistungskarten: Symbol neben dem Titel, Text und Link darunter über die volle Breite */
  .cards--4 .card { display: grid; grid-template-columns: var(--icon-tile) minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 12px; padding: 20px; }
  .cards--4 .card p, .cards--4 .card .card__link { grid-column: 1 / -1; }
  .cards--4 .card .card__link { justify-self: start; margin-top: -4px; padding-top: 0; }
  .region { grid-template-columns: minmax(0, 1fr); }
  .region p { padding-left: 26px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--footer); color: var(--on-dark-text); padding-top: 72px; padding-bottom: 40px; font-size: 15px; line-height: 1.6; }
.site-footer a { color: var(--on-dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--surface); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 36px; }
.footer-brand { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .logo__name { font-size: 22px; }
.footer-col { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.footer-col--wide { grid-column: span 4; }
.footer-col h2 { font-size: 15px; font-weight: 700; color: var(--surface); margin-bottom: 4px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul.footer-places { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px;
}
.footer-bottom nav { display: flex; gap: 24px; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page-top .site-header { position: static; }
.legal { padding-block: 72px var(--section-y); }
.legal__inner { max-width: 760px; overflow-wrap: anywhere; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 8px; }
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.7; color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 0; }
.legal address { font-style: normal; font-size: var(--fs-body); line-height: 1.7; color: var(--body); }
.legal .draft { margin-bottom: 28px; padding: 14px 16px; border-radius: var(--radius-button); background: var(--blue-tint); color: var(--navy); font-size: 15px; line-height: 1.5; }
.notfound { padding-block: 96px var(--section-y); }
.notfound .section-intro { max-width: 600px; }
.notfound h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; }

/* ---------- Leistungsseiten (erzeugt von _tools/build-leistungen.mjs) ---------- */
/* Hero: Text zentriert in Spalten 1–6, rechts ein gedrehtes Raster aus 6 Bildkacheln,
   stark aufgehellt (reine Dekoration, Ausschnitte ohne Wasserzeichen). Unter 1100 px liegen
   die Kacheln noch blasser hinter dem Text. */
.page-hero { position: relative; overflow: hidden; padding-block: 64px 88px; background: var(--surface-soft); }
.page-hero > .wrap { position: relative; }
/* Raster 2 × 4, gleichmäßig (kein Versatz). Bewusst höher als der Hero: oben verschwindet es
   unter dem Header, unten hinter dem Weiß der nächsten Section. Die Kacheln teilen sich die Höhe. */
.page-hero__kacheln {
  position: absolute; top: -72px; bottom: -72px; left: calc(50% + var(--gutter) + 24px); right: var(--margin);
  display: flex; gap: 14px; transform: rotate(3deg); opacity: 0.2; pointer-events: none;
}
.page-hero__spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.page-hero__kacheln img { display: block; flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: cover; border-radius: 16px; background: var(--line); filter: saturate(0.6); }
.page-hero__text { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.page-hero .breadcrumb ol { justify-content: center; }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--body); max-width: 34em; }
.page-hero .actions { justify-content: center; }
.page-hero__fakten { list-style: none; margin: 14px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.page-hero__fakten li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.page-hero__fakten .icon { width: 22px; height: 22px; color: var(--blue); stroke-width: 2.4; }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--line-control); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--touch-min); color: var(--blue); text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.anlaesse { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
.anlass { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.anlass h3 { font-size: 19px; line-height: 1.3; }
.anlass p { font-size: var(--fs-card); line-height: 1.6; color: var(--body); }
.anlass .text-link { align-self: flex-start; font-size: 15px; color: var(--blue); }

.prose p { font-size: var(--fs-body); line-height: 1.7; color: var(--body); }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--navy); }

.kosten__label { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.hinweis { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-button); background: var(--surface); border: 1px solid var(--line); font-size: 16px; line-height: 1.55; font-weight: 600; color: var(--navy); }

.steps.col-7-12 { margin-top: 0; }

.related { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.related__item {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease;
}
.related__item:hover { border-color: var(--blue); color: var(--ink); }
.related__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.related__text strong { font-size: 18px; color: var(--navy); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.related__text span { font-size: 15px; line-height: 1.5; color: var(--body); }
.related__item > .icon { width: 20px; height: 20px; color: var(--blue); flex: 0 0 auto; }

/* Startseite: Link von der Leistungskarte zur Unterseite */
.card__link { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch-min); font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; }
.card__link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.card__link .icon { width: 16px; height: 16px; }

/* ---------- Handy-Leiste ---------- */
.mobile-bar { display: none; }

/* ---------- Breakpoints ---------- */
/* Unter 1280 px: Telefon nur als Symbol, Nav enger */
@media (max-width: 1279px) {
  .nav__list { gap: 22px; }
  .header-inner { gap: 24px; }
  .header-actions { gap: 14px; padding-left: 20px; }
  .header-phone__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; border-left: 0; padding-left: 0; gap: 10px; }
  .menu-toggle { display: inline-block; }
  .menu:not([hidden]) {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-header);
    height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
  }
  html.menu-open { overflow: hidden; }
  html.menu-open .mobile-bar { display: none; }
  .col-1-5 { grid-column: 1 / 7; }
  .col-7-12 { grid-column: 7 / 13; }
  .footer-brand { grid-column: span 12; }
  .footer-col { grid-column: span 4; }
  .footer-col--wide { grid-column: span 8; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 10px; }
  .btn--header { display: none; }
  .legal { padding-top: 48px; }
  .notfound { padding-top: 64px; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 47, 85, .89) 0%, rgba(6, 47, 85, .92) 100%); }
  .hero__inner { padding-top: 48px; padding-bottom: 64px; }
  .hero__lead { font-size: 18px; }
  .plz-form__row { flex-direction: column; }
  .plz-form input, .plz-form .btn { width: 100%; }
  .direct__label { width: 100%; }
  .direct .btn--on-dark { flex: 1 1 0; }


  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .col-1-5, .col-7-12 { grid-column: 1 / -1; }

  /* Einspaltig: 12 Spalten mit 30 px Abstand bräuchten allein 330 px Breite */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
  .footer-brand, .footer-col--wide { grid-column: 1 / -1; }
  .footer-col { grid-column: auto; }
  .footer-col--wide { order: 3; }
  .verwertung { margin-top: 40px; padding-top: 32px; }
  /* Touch-Ziele ≥ 44px */
  .footer-col ul:not(.footer-places) { gap: 0; }
  .footer-col ul:not(.footer-places) a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar);
  }
  .mobile-bar a {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: var(--radius-field); border: 1.5px solid var(--navy);
    color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px;
  }
  .mobile-bar a .icon { width: 18px; height: 18px; flex: 0 0 auto; }
  /* 15px-Text auf Orange: orange-text statt orange-button (Kontrast) */
  .mobile-bar a.is-primary { flex-grow: 1.3; background: var(--orange-text); border-color: var(--orange-text); color: var(--surface); }
  .site-footer { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom, 0px)); }
  /* Erst nach dem Hero einblenden (js/main.js, Teil 5): Im Hero stehen Anrufen und WhatsApp schon.
     Übergang erst ab .is-animated, damit die Leiste beim Laden nicht sichtbar wegrutscht. */
  .mobile-bar.is-hidden { transform: translateY(calc(100% + 12px)); visibility: hidden; }
  .mobile-bar.is-animated { transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0s; }
  .mobile-bar.is-animated.is-hidden { transition: transform .22s ease-in, visibility 0s linear .22s; }
}

/* Sehr schmale Handys (iPhone SE 1, kleine Android, Falt-Handys zugeklappt): Telefon steht in der Handy-Leiste */
@media (max-width: 359px) {
  /* Lange Wörter wie „Hausverwaltungen“ dürfen hier getrennt werden */
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
  .header-phone { display: none; }
  .logo { gap: 8px; }
  .logo__name { font-size: 17px; }
  .menu__list a { font-size: 18px; }
  .mobile-bar { gap: 6px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .mobile-bar a.is-primary { font-size: 14px; flex-grow: 1; } /* alle drei gleich breit, damit „WhatsApp“ Luft hat */
}

@media (max-width: 480px) {
  .menu__actions { grid-template-columns: minmax(0, 1fr); }
  .booster { padding: 20px 18px; }
  .b-q { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Leistungsseiten: Breakpoints */
@media (max-width: 1100px) {
  .related { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Hero: Text über die volle Breite, Kacheln blass dahinter (3 Spalten) */
  .page-hero .page-hero__text { grid-column: 1 / -1; max-width: 680px; margin-inline: auto; }
  .page-hero__kacheln {
    top: 50%; bottom: auto; left: -4%; right: auto; width: 108%; transform: translateY(-50%) rotate(3deg);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); opacity: 0.1;
  }
  .page-hero__kacheln img { flex: none; aspect-ratio: 4 / 3; filter: saturate(0.6) contrast(0.75) brightness(1.1); } /* dunkle Stellen anheben, Text bleibt lesbar */
  .page-hero__kacheln img:nth-child(4) { display: none; } /* 3 × 2 genügen hinter dem Text */
  .page-hero__spalte { display: contents; }
}
@media (max-width: 900px) {
  /* Hero: Kacheln 2-spaltig oben hinter dem Text, laufen nach unten aus */
  .page-hero { padding-block: 32px 64px; }
  .page-hero__kacheln {
    top: -24px; left: -8%; width: 116%; display: flex; gap: 12px; transform: rotate(3deg);
    -webkit-mask-image: linear-gradient(#000 45%, transparent 85%); mask-image: linear-gradient(#000 45%, transparent 85%);
  }
  .page-hero__spalte { display: flex; gap: 12px; }
  /* Fakten untereinander und linksbündig am Rand: Haken stehen auf allen Seiten in einer Linie */
  .page-hero__fakten { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 18px; }
  .page-hero__fakten li { flex-direction: row; justify-content: flex-start; align-items: flex-start; text-align: left; gap: 10px; }
  .page-hero__fakten .icon { flex: 0 0 auto; margin-top: -1px; }
  .page-hero__lead { font-size: 18px; }
  .anlaesse { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .anlass { padding: 20px 0; }
  .anlass + .anlass { border-top-color: var(--line); }
  .related { margin-top: 28px; }
}

/* ---------- Animationen ----------
   Sparsam und günstig: nur opacity und transform/translate/scale (laufen auf der Grafikkarte).
   Bei „Bewegung reduzieren“ greift oben die Regel ohne Animationen; js/main.js versteckt dann nichts.
   1. Einblenden beim Scrollen: js/main.js setzt .reveal (nur unterhalb des sichtbaren Bereichs)
      und .is-in, sobald das Element ins Bild kommt; danach werden die Klassen wieder entfernt.
   2. Intro im Hero beim Laden (nur CSS)
   3. Parallax beim Scrollen: nur Desktop, nur Browser mit scroll-gesteuerten Animationen
   4. Kleine Details: Booster-Schritte, FAQ, Menü, Buttons */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* 1. Einblenden beim Scrollen */
.reveal {
  opacity: 0; transform: translate3d(0, var(--reveal-y, 22px), 0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.reveal--bild { transform: scale(1.04); transition-duration: 1s; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-bald { will-change: opacity, transform; } /* nur kurz vor und während des Einblendens (js/main.js) */
#angehoerige .reveal { transform: none; transition-duration: 1.1s; } /* Angehörige: nur ruhig einblenden, keine Bewegung */
@media (max-width: 900px) {
  .reveal { --reveal-y: 14px; transition-duration: .55s; transition-delay: calc(var(--reveal-i, 0) * 60ms); }
  .reveal--bild { transform: scale(1.025); transition-duration: .8s; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* 2. Intro im Hero */
@keyframes hoch { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-zoom { from { scale: 1.06; } to { scale: 1; } }
@keyframes kachel-ein { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }

.hero__img { animation: hero-zoom 1.8s var(--ease-out) both; }
.hero__content > *, .page-hero__text > * { animation: hoch .8s var(--ease-out) both; }
.hero__content > :nth-child(2), .page-hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3), .page-hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4), .page-hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5), .page-hero__text > :nth-child(5) { animation-delay: .32s; }
.page-hero__text > :nth-child(6) { animation-delay: .4s; }
.page-hero__text > h1 { animation: none; } /* H1 = größtes Element beim Laden (LCP): sofort sichtbar */

/* Kacheln der Leistungsseiten erscheinen nacheinander */
.page-hero__kacheln img { animation: kachel-ein 1s var(--ease-out) both; }
.page-hero__spalte img:nth-child(1) { animation-delay: .15s; }
.page-hero__spalte img:nth-child(2) { animation-delay: .27s; }
.page-hero__spalte img:nth-child(3) { animation-delay: .39s; }
.page-hero__spalte img:nth-child(4) { animation-delay: .51s; }
.page-hero__spalte + .page-hero__spalte img:nth-child(1) { animation-delay: .21s; }
.page-hero__spalte + .page-hero__spalte img:nth-child(2) { animation-delay: .33s; }
.page-hero__spalte + .page-hero__spalte img:nth-child(3) { animation-delay: .45s; }
.page-hero__spalte + .page-hero__spalte img:nth-child(4) { animation-delay: .57s; }
@media (max-width: 900px) {
  .hero__content > *, .page-hero__text > * { animation-duration: .6s; }
  /* Kein Zoom am Hero-Bild: liegt am Handy unter starker Abdunklung, spart beim Laden eine bildschirmgroße Animation */
  .hero__img { animation: none; }
}
/* Unter 1100 px: die blassen Kacheln nicht einzeln einblenden (6 gefilterte Bilder unter Maske),
   sondern die Fläche einmal als Ganzes – sieht bei 10 % Deckkraft gleich aus und kostet viel weniger */
@keyframes kacheln-blass { from { opacity: 0; } }
@media (max-width: 1100px) {
  .page-hero__kacheln img { animation: none; }
  .page-hero__kacheln { animation: kacheln-blass .9s var(--ease-out) .15s both; }
}

/* 3. Parallax beim Scrollen (Desktop; ohne Unterstützung bleibt alles ruhig stehen) */
@keyframes hero-parallax { to { translate: 0 12vh; } }
@keyframes kacheln-drift { to { translate: 0 -56px; } }
@supports (animation-timeline: scroll()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .hero__img {
      animation: hero-zoom 1.8s var(--ease-out) both, hero-parallax linear both;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0 100vh;
    }
  }
  @media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
    .page-hero__spalte { animation: kacheln-drift linear both; animation-timeline: scroll(root block); animation-range: 0 700px; }
  }
}

/* 4. Kleine Details */
@keyframes schritt { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes auf { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.b-step:not([hidden]) { animation: schritt .35s var(--ease-out); }
.b-progress span { transition: background-color .3s ease; }
.faq details[open] > :not(summary) { animation: auf .3s var(--ease-out); }
.menu:not([hidden]) { animation: auf .22s var(--ease-out); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn--primary { transition: background-color .15s ease, box-shadow .2s ease, translate .2s var(--ease-out); }
  .btn--primary:hover { translate: 0 -1px; box-shadow: 0 10px 22px -10px rgba(185, 82, 5, .55); }
  .btn--primary:active { translate: 0 0; box-shadow: none; }
  .related__item { transition: border-color .15s ease, box-shadow .2s ease, translate .2s var(--ease-out); }
  .related__item:hover { translate: 0 -2px; box-shadow: var(--shadow-header); }
  /* Pfeile rücken beim Überfahren ein Stück nach rechts */
  .icon:has(> use[href="#i-arrow"]) { transition: translate .2s var(--ease-out); }
  a:hover .icon:has(> use[href="#i-arrow"]), button:hover .icon:has(> use[href="#i-arrow"]) { translate: 3px 0; }
}

/* ---------- Details (Feinschliff 19.11.) ----------
   Jedes Detail hat einen Grund: Blick lenken, Klarheit oder Marke. Einzeln abschaltbar. */

/* Typografie: keine einzelnen Wörter in der letzten Zeile (Überschriften sind oben schon „balance“) */
p, li { text-wrap: pretty; }
/* Höchstens eine fette Stelle pro Abschnitt: das, was beim Überfliegen hängen bleiben soll */
.lead strong { font-weight: 700; color: var(--navy); }
.on-dark .lead strong, .hero__lead strong { color: var(--surface); }
.checklist li strong { font-weight: 700; color: var(--navy); }
/* Zweiter Satz einer Überschrift in Blau – gleiche Handschrift wie „Alles aus einer Hand.“ im Hero */
.h2-akzent { display: block; color: var(--blue); }

/* Ortszeile (Eyebrow) mit kurzem Strich, immer in der Farbe der Schrift daneben */
.eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px;
  vertical-align: .3em; border-radius: 2px; background: currentColor;
}

/* Ablauf: feine Linie verbindet die Schritt-Nummern zu einem Weg */
.step { position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: -18px; width: 2px;
  border-radius: 2px; background: var(--line-strong);
}



/* Textlinks: feinere, etwas abgesetzte Unterstreichung, beim Überfahren voll */
.text-link, main p a:not(.btn), .legal a:not(.btn) {
  text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color .15s ease, text-decoration-color .2s ease;
}
.text-link:hover, main p a:not(.btn):hover, .legal a:not(.btn):hover { text-decoration-color: currentColor; }

/* Markenfarben im Kleinen */
::selection { background: rgba(232, 113, 23, .22); }
input, textarea { caret-color: var(--orange-button); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* Fotos: hauchdünne Innenkante, damit helle Bilder auf hellem Grund sauber abschließen */
.media { outline: 1px solid rgba(7, 62, 112, .08); outline-offset: -1px; }

/* Handy/Tablet hochkant: Bild der Problem-Sektion über den Text. Sonst folgen das Problem-Bild
   und das Angehörigen-Bild direkt aufeinander; so wechseln sich Bild und Text ab. */
@media (max-width: 900px) {
  #problem .col-7-12 { order: -1; }
}

/* Handy-Leiste: auf schmalen Handys Symbol über dem Wort (damit „WhatsApp“ Luft hat); auf Tablets und quer gehaltenen Handys bleibt sie einzeilig */
@media (max-width: 480px) {
  .mobile-bar a:not(.is-primary) { flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.15; padding: 4px 6px; }
}
