/* Business Management Heidi Beyer Licht · styles.css v3 · Tokens laut recherche/design-system.md (v2)
   Helles Theme mit einem dunklen Schlussband, Theme-Lock (kein Dunkelmodus-Schalter).
   Radius-Regel: Buttons Pille, Kacheln/Karten --r-tile, Felder --r-s. */

/* Poppins lokal (v7, Nutzerliste Punkt 3): drei statische Schnitte, nur WOFF2, kein local(), Latin-Subset (Fontsource 5).
   Lizenz: SIL OFL 1.1, assets/fonts/OFL-Poppins.txt */
@font-face {
  font-family: "Poppins";
  src: url(assets/fonts/poppins-latin-400.v1.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Poppins";
  src: url(assets/fonts/poppins-latin-500.v1.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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: "Poppins";
  src: url(assets/fonts/poppins-latin-600.v1.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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;
}
/* Metrik-angepasste Fallbacks gegen Layoutsprung beim Schriftwechsel (gemessen mit fontTools, B7) */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 110.88%; ascent-override: 94.70%; descent-override: 31.57%; line-gap-override: 9.02%; }
@font-face { font-family: "Poppins Fallback Android"; src: local("Roboto");
  size-adjust: 111.69%; ascent-override: 94.01%; descent-override: 31.34%; line-gap-override: 8.95%; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f4f5f8;
  --tile: #eceef3;
  --fg: #101317;
  --fg-2: #5a6068;
  --line: rgb(16 19 23 / .10);
  --line-2: rgb(16 19 23 / .18);
  --accent: #3f6f85;
  --accent-hover: #355e71;
  --accent-2: #97bece;
  --cognac: #a8623a;
  --brand-blue: #9abecb;
  --brand-grey: #a2a4a6;
  --on-brand-line: rgb(16 19 23 / .18);
  --dark: #0d1014;
  --on-dark: #f4f5f8;
  --on-dark-2: #a9b0ba;
  --on-dark-line: rgb(244 245 248 / .14);
  --focus: #2f5f73;
  --error: #b42318;

  --font: "Poppins", "Poppins Fallback", "Poppins Fallback Android", system-ui, sans-serif;
  --fs-h1: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  --fs-stat: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --w-display: 600; --w-medium: 500; --w-regular: 400;
  --lh-display: 1.12; --lh-h3: 1.2; --lh-body: 1.55;
  --track-h1: -0.02em; --track-h2: -0.018em; --track-h3: -0.01em; --track-body: 0;

  --section: clamp(56px, 3rem + 5.5vw, 128px);
  --gutter: clamp(20px, 5vw, 48px);
  --container: 1200px;
  --text-col: 880px;
  --gap: clamp(12px, 1.6vw, 20px);
  --head-gap: clamp(32px, 4vw, 56px);
  --r-tile: clamp(20px, 2vw, 28px);
  --r-s: 12px;
  --r-pill: 980px;
  --header-h: 52px;
  --bar-h: 60px;

  --ease: cubic-bezier(.4, 0, .6, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-hover: 320ms;
}

/* Basis */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* Worttrennung nur an weichen Trennzeichen (&shy;) und echten Bindestrichen (v6, B6) */
  hyphens: manual;
  -webkit-hyphens: manual;
  font-synthesis: none; /* nur echte Schnitte 400/500/600, kein Faux-Bold/-Italic */
}
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--bar-h) + 12px); }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p, li, dd, blockquote, summary { text-wrap: pretty; overflow-wrap: break-word; }
@media (max-width: 767px) {
  .footer__nap { column-gap: 18px; }
  .footer__nap > span[aria-hidden] { display: none; }
}
h1, h2, h3 { font-weight: var(--w-display); text-wrap: balance; hyphens: manual; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--track-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-display); letter-spacing: var(--track-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--track-h3); }
.nw { white-space: nowrap; }
em, i, cite, address, dfn, var { font-style: normal; }
strong, b { font-weight: var(--w-display); }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
sup { font-size: inherit; line-height: 0; vertical-align: baseline; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--accent-2); }
/* Auf Blau und Grau ist nur --fg kontrastsicher (B12) */
.blue :focus-visible, .grey :focus-visible { outline-color: var(--fg); }

.skip-link {
  position: absolute;
  left: 12px;
  top: 4px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-weight: var(--w-medium);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sektionen: symmetrisches Padding aus einer Skala, Bänder Weiß / --band, ein dunkles Band */
.section { padding-block: var(--section); }
.band { background: var(--band); }
/* Farbflächen v3: auf Blau und Grau nur --fg (B12) */
.blue { background: var(--brand-blue); }
.grey { background: var(--brand-grey); }
.section__head { text-align: center; margin-bottom: var(--head-gap); }
.section__head h2 { max-width: 18ch; margin-inline: auto; }
.section__lead {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: var(--fs-lead);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  text-wrap: balance;
}
.section__cta { margin-top: var(--head-gap); }

/* Links im Fließtext; --hit vergrößert die Trefferfläche auf 44 px ohne Zeilensprung */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent);
  transition: text-decoration-color var(--t-hover) var(--ease);
}
.link--hit { display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}

/* Buttons: Pille 48 px (mobil 52), nur Farbe im Hover, :active scale */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: var(--w-medium);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--secondary:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
}
@media (min-width: 768px) {
  .btn { min-height: 48px; }
}
.btn--s { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
/* Weißer Button auf Blau (v4, B2): 18,6:1 */
.btn--white { background: #fff; color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: #f1f2f4; }
}
.cta-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.section__cta--single { display: flex; justify-content: center; }

/* Header: Glas-Leiste 52 px */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); }
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand-wrap { display: flex; align-items: center; min-width: 0; margin-right: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  font-weight: var(--w-display);
  font-size: .875rem;
  line-height: 1.15;
  letter-spacing: 0;
}
.brand img { width: 28px; height: 28px; flex: none; }
/* Wortmarke: zweizeilig („Business Management“ / „Heidi Beyer Licht“), ab 1200 px einzeilig (B6) */
.brand__name > span { display: block; white-space: nowrap; }
.brand__name > span:first-child { font-weight: var(--w-medium); color: var(--fg-2); font-size: .8125rem; letter-spacing: 0; }
.nav { display: none; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: var(--w-medium);
  letter-spacing: 0;
  transition: color var(--t-hover) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--t-hover) var(--ease-out);
}
.nav a[aria-current] { color: var(--fg); }
.nav a[aria-current]::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--fg); }
}
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }
.header-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
  color: var(--accent);
  transition: background-color var(--t-hover) var(--ease);
}
.header-call-icon svg { width: 20px; height: 20px; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: .9375rem;
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(.97); }
.menu-toggle[aria-expanded="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 374px) {
  .brand { gap: 7px; font-size: .8125rem; }
  .brand__name > span:first-child { font-size: .75rem; }
  .brand img { width: 24px; height: 24px; }
  .menu-toggle { padding: 0 12px; }
}
/* 320 bis 359 px mit Poppins (breiter): Wortmarke, Telefon-Icon und „Menü“ mit >= 8 px Abstand (v7, B15) */
@media (max-width: 359px) {
  .site-header__inner { padding-inline: 14px; gap: 4px; }
  .site-header__actions { gap: 2px; }
  .brand { gap: 6px; font-size: .75rem; }
  .brand__name > span:first-child { font-size: .6875rem; }
  .brand img { width: 22px; height: 22px; }
  .menu-toggle { padding: 0 10px; }
}

/* Mobiles Menü (natives popover) */
.menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  margin: 0;
  padding: 8px var(--gutter) 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  opacity: 1;
  transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.menu::backdrop { background: rgb(16 19 23 / .18); }
.menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: var(--w-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.menu a[aria-current] { color: var(--accent); }
.menu__call { width: 100%; margin-top: 20px; }
@starting-style {
  .menu:popover-open { opacity: 0; transform: translateY(-8px); }
}
.menu:not(:popover-open) { opacity: 0; transform: translateY(-8px); }

@media (min-width: 768px) {
  .header-call-icon { display: none; }
  .header-cta { display: inline-flex; }
  .brand { font-size: .9375rem; }
}
/* Desktop (v8, Nutzer 2026-11-10): Wortmarke links, dann Navigation, dann Button, mit exakt gleichem sichtbarem
   Abstand „t“ von „Licht“ → „Leistungen“ und „Q“ von „FAQ“ → linker Rand des Buttons.
   --header-gap = 82,9 px (v7 gemessen) × 1,5; die Link-Polster (12 px) werden abgezogen, damit der Abstand
   am Text und nicht an der Klickfläche stimmt.
   v8b: Die Navigation steht in der Mittelspalte = exakt Seitenmitte = H1-Mitte; Wortmarke und Button docken
   von dort aus mit --header-gap an (Wortmarke rechtsbündig in der linken Spalte, Button linksbündig in der rechten).
   Beide stehen dadurch nicht mehr am Container-Rand. */
@media (min-width: 1024px) {
  .site-header__inner {
    /* v8c (Nutzer): 180 px. Unter 1100 px passt das neben der zweizeiligen Wortmarke nicht (halbe Navigation
       142,6 + Wortmarke 201 + Rand 16 = 360 px je Seite), dort schrumpfen beide Abstände gemeinsam. */
    --header-gap: min(180px, 50vw - 370px);
    --nav-pad: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0;
    /* Wortmarke und Button hängen an der Seitenmitte, nicht am 1200-px-Container: volle Breite freigeben,
       sonst reicht die linke Spalte (600 px) nicht für die einzeilige Wortmarke (626,6 px ab Mitte). */
    max-width: none;
    padding-inline: 16px;
  }
  .brand-wrap { justify-self: end; min-width: 0; margin-right: 0; }
  .nav { display: block; margin-inline: calc(var(--header-gap) - var(--nav-pad)); }
  .menu-toggle, .menu { display: none; }
  .site-header__actions { justify-self: start; }
}
/* Wortmarke einzeilig erst, wenn sie links der mittigen Navigation Platz hat: halbe Navigation 142,6 px
   + Abstand 180 px + Wortmarke mit Logo 374,5 px = 697,1 px je Seite (+ 16 px Rand) → Viewport >= 1427 px.
   Umschaltpunkt 1440 px; darunter zweizeilig (201 px breit). */
@media (min-width: 1440px) {
  .brand__name > span { display: inline; }
  .brand__name > span:first-child { font-weight: var(--w-display); color: var(--fg); font-size: inherit; letter-spacing: inherit; }
  .brand { font-size: 1rem; }
}

/* 1 Hero: zentriert, Hintergrundgrafik (v5) als dekorative Ebene, unten verankert.
   Unten bleibt Platz für die Wellen: Sie beginnen in der Textspalte frühestens bei 76 % der Bildhöhe
   (Desktop, 16:9) bzw. 82 % (Mobil-Zuschnitt); die Bildunterkante ist #9ABECB = Fakten-Band, keine Fuge. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding-top: calc(var(--header-h) + var(--section));
  padding-bottom: 172px;
  text-align: center;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (min-width: 768px) {
  .hero { padding-bottom: max(13.5vw + 32px, 210px); }
}
.hero h1 { max-width: 11.2em; margin-inline: auto; }
.hero__lead {
  max-width: 30em;
  margin: 18px auto 0;
  font-size: var(--fs-lead);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hero__ctas { margin-top: clamp(24px, 3vw, 36px); }
.hero__note {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--fg-2);
  letter-spacing: 0;
  text-wrap: balance;
}
.hero__note .link { color: var(--fg); text-decoration-color: var(--accent); }
@media (max-width: 767px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__lead { max-width: 24em; }
  .hero__note { font-size: .875rem; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(72dvh, 640px); }
}

/* 2 Fakten: Band #9ABECB, drei weiße Kacheln (B13) */
.fakten { display: grid; grid-template-columns: 1fr; gap: 10px; }
/* v6: Zahl und Label in jeder Kachel horizontal und vertikal mittig, auf allen Breiten */
.fakt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  text-align: center;
  border-radius: var(--r-tile);
  background: var(--bg);
}
.fakt__big {
  font-size: 2rem;
  font-weight: var(--w-display);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}
.fakt__label { color: var(--fg-2); font-size: 1rem; line-height: 1.35; }
@media (min-width: 768px) {
  .fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .fakt { gap: 12px; padding: clamp(20px, 2.6vw, 36px); }
  .fakt__big { font-size: var(--fs-stat); }
  .fakt__label { font-size: var(--fs-body); }
}

/* Galerie-Komponente: Raster ab 768 px, darunter Wischgalerie mit Buttons (WCAG 2.5.7) */
.gal__ctrl { display: none; }
@media (max-width: 767px) {
  .gal__track {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gal__track::-webkit-scrollbar { display: none; }
  .gal__track > li { flex: 0 0 var(--card-w, 84vw); scroll-snap-align: start; }
  .gal__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
  .gal__dots { display: flex; gap: 6px; margin-right: auto; }
  .gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 200ms var(--ease), width 200ms var(--ease-out); }
  .gal__dots i.is-on { width: 18px; border-radius: 3px; background: var(--fg); }
  .gal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tile);
    color: var(--fg);
    cursor: pointer;
    transition: opacity 200ms var(--ease), transform 160ms var(--ease-out);
  }
  .band .gal__btn, .grey .gal__btn { background: var(--bg); }
  .grey .gal__dots i { background: var(--on-brand-line); }
  .grey .gal__dots i.is-on { background: var(--fg); }
  .gal__btn:active { transform: scale(.94); }
  .gal__btn svg { width: 20px; height: 20px; }
  .gal__btn[aria-disabled="true"] { opacity: .4; cursor: default; }
}

/* 3 Leistungen: Bento 7+5 / 4+4+4 */
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-tile);
  background: var(--tile);
}
.tile__media { flex: none; overflow: hidden; aspect-ratio: 3 / 2; background: var(--tile); }
.tile--lg .tile__media img { object-position: 50% 62%; }
.tile__media picture { height: 100%; }
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Naht: Bildunterkante läuft weich in den Kachelgrund aus */
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
  transition: transform 600ms var(--ease-out);
}
.tile__body { padding: clamp(20px, 2.4vw, 32px); padding-top: clamp(4px, .8vw, 8px); }
.tile h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }
.tile p { margin-top: 10px; color: var(--fg-2); max-width: 46ch; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media img { transform: scale(1.03); }
}
@media (min-width: 768px) {
  .bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
  .bento > .tile:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .bento > .tile:last-child .tile__body { padding-top: clamp(20px, 2.4vw, 32px); }
}
/* Desktop (v4b, Nachtrag 13/B14): ganze Sektion passt in 100dvh − Header.
   Fünf Kacheln in einer Reihe; Bildhöhe, Abstände und Padding (oben = unten) hängen an dvh.
   --rest = Höhe aller übrigen Teile (Padding, Kopf, Kacheltext) je Breitenbereich, gemessen; v6 ohne CTA-Zeile. */
@media (min-width: 1024px) {
  #leistungen {
    --rest: calc(280px + 23dvh);
    padding-block: clamp(24px, 6.5dvh, 96px);
    scroll-margin-top: -12px; /* Oberkante direkt unter dem 52-px-Header statt 64 */
  }
  #leistungen .section__head { margin-bottom: clamp(20px, 3.2dvh, 44px); }
  #leistungen h2 { font-size: min(var(--fs-h2), 6.4dvh); }
  #leistungen .section__lead { max-width: none; margin-top: clamp(6px, 1.2dvh, 14px); font-size: clamp(1.0625rem, 2.9dvh, 1.5rem); }
  .bento { grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.2vw, 20px); }
  .bento > .tile, .bento > .tile:last-child { grid-column: auto; display: flex; }
  /* Bild höchstens 3:2 (kein seitlicher Anschnitt), bei knapper Höhe flacher (vertikaler Ausschnitt) */
  .bento > .tile .tile__media {
    aspect-ratio: 3 / 2;
    height: auto;
    max-height: clamp(96px, calc(100dvh - 52px - var(--rest)), 400px);
  }
  .bento > .tile .tile__body, .bento > .tile:last-child .tile__body { padding: 2px 16px 18px; }
  .bento h3 { font-size: 1.125rem; line-height: 1.2; }
  .bento p { margin-top: 6px; font-size: .9375rem; line-height: 1.42; }
}
@media (min-width: 1280px) { #leistungen { --rest: calc(225px + 23dvh); } }
@media (min-width: 1536px) { #leistungen { --rest: calc(275px + 23dvh); } .bento > .tile .tile__body, .bento > .tile:last-child .tile__body { padding: 4px 20px 22px; } .bento p { font-size: 1rem; } }

/* 4 Ablauf: drei Bild-Kacheln auf #9ABECB (v4); Kacheln weiß, alles direkt auf Blau in --fg */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile--step { background: var(--bg); flex-direction: row; align-items: stretch; }
.tile--step .tile__media { background: var(--bg); width: 40%; aspect-ratio: auto; min-height: 128px; }
.tile--step .tile__media img {
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to right, #000 80%, transparent);
}
.tile--step .tile__body { flex: 1; align-self: center; padding: 14px 16px 14px 6px; }
.step__no {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: var(--w-medium);
  letter-spacing: 0;
}
.tile--step h3 { font-size: 1.0625rem; line-height: 1.2; }
.tile--step p { margin-top: 4px; font-size: .9375rem; line-height: 1.4; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .tile--step { flex-direction: column; }
  .tile--step .tile__media { width: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .tile--step .tile__media img {
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
  }
  .tile--step .tile__body { align-self: stretch; padding: 4px clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px); }
  .step__no { font-size: var(--fs-small); margin-bottom: 10px; }
  .tile--step h3 { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); }
  .tile--step p { margin-top: 8px; font-size: var(--fs-body); line-height: var(--lh-body); }
}

/* 5 Zuständigkeit: zwei Farbkarten (#9ABECB / #A2A4A6), ohne Linie (v3, B14); nur --fg auf den Flächen */
.linie { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.linie__card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-tile); color: var(--fg); }
.linie__card--ich { background: var(--brand-blue); }
.linie__card--kanzlei { background: var(--brand-grey); }
.linie__card h3 { margin-bottom: clamp(16px, 2vw, 24px); }
.linie__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--on-brand-line);
  line-height: 1.4;
}
.linie__list li:first-child { border-top: 0; padding-top: 0; }
.linie__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--fg); }
.linie__card--kanzlei li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: .5em 7px 0;
  border-radius: 50%;
  background: var(--fg);
}
/* Brückenabsatz: 30 % größer als v2 (.875rem × 1,3) */
.linie__bruecke {
  max-width: 62ch;
  margin: clamp(28px, 3.5vw, 48px) auto 0;
  text-align: center;
  font-size: 1.1375rem;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: balance;
}
@media (min-width: 768px) {
  .linie { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; align-items: stretch; }
  .linie__card { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
}
@media (min-width: 1024px) {
  .linie__card { padding: clamp(28px, 2.8vw, 40px); }
  .linie__card h3 { white-space: nowrap; font-size: clamp(1.25rem, 1.95vw, 1.625rem); }
}

/* 6 Über mich: Band #A2A4A6, alles in --fg (B15) */
.ueber { display: grid; grid-template-areas: "h" "p" "t"; gap: 20px; }
.portrait { grid-area: p; position: relative; }
.portrait picture, .portrait > picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: var(--r-tile);
}
.ueber__head { grid-area: h; }
.ueber__text { grid-area: t; max-width: 62ch; color: var(--fg); }
.ueber__text p + p { margin-top: 14px; }
.gal--stationen { margin-top: clamp(40px, 5vw, 72px); }
.stationen__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stationen__head h3 { margin-right: auto; }
.stationen__head .gal__ctrl { margin-top: 0; }
.subhead { font-size: var(--fs-h3); }
.stationen { --card-w: 46vw; }
.stationen li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-top: 16px;
  border-top: 1px solid var(--on-brand-line);
  line-height: 1.35;
  color: var(--fg);
}
.stationen li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--fg);
}
.station__year { font-weight: var(--w-display); letter-spacing: 0; white-space: nowrap; }
.stationen li > span:last-child { font-size: .9375rem; }
.branchen__head { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 16px; }
.branchen { display: flex; flex-wrap: wrap; gap: 8px; }
.branchen li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  font-size: .9375rem;
  font-weight: var(--w-medium);
  line-height: 1.3;
}
@media (max-width: 767px) {
  .ueber { gap: 16px; }
  .ueber h2 { font-size: 2rem; }
  .portrait picture, .portrait > picture img { aspect-ratio: 16 / 10; object-position: 50% 30%; }
  .gal--stationen { margin-top: 32px; }
  .branchen__head { margin-top: 24px; margin-bottom: 12px; }
}
@media (min-width: 768px) {
  .ueber {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "p ." "p h" "p t" "p .";
    grid-template-rows: 1fr auto auto 1fr;
    gap: 0 clamp(32px, 5vw, 72px);
    align-items: start;
  }
  .portrait picture, .portrait > picture img { aspect-ratio: 2 / 3; object-position: 50% 50%; }
  .ueber__text { margin-top: clamp(20px, 2.6vw, 32px); }
  .stationen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); }
}

/* 7 Stimmen */
.stimmen > li { display: flex; }
.stimme {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-tile);
  background: var(--band);
}
.sterne { display: inline-flex; gap: 3px; color: var(--accent); }
.sterne svg { width: 18px; height: 18px; }
.stimme blockquote {
  flex: 1;
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.stimme figcaption { font-weight: var(--w-medium); }
@media (min-width: 768px) {
  .stimmen { display: grid; gap: var(--gap); }
}
@media (min-width: 1024px) {
  .stimmen { grid-template-columns: repeat(3, 1fr); }
}

/* 8 Fragen */
.faq { max-width: var(--text-col); margin-inline: auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 48px 16px 0;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  font-weight: var(--w-medium);
  letter-spacing: 0;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--accent);
  transition: transform 240ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 62ch; padding: 0 48px 24px 0; color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent); }
}

/* 9 Kontakt: weiß (v3, B17) */
.kontakt { display: grid; gap: 16px; max-width: 1040px; margin-inline: auto; }
/* Foto statt Wege-Liste (v4, B6/B10) */
.kontakt__foto { overflow: hidden; border-radius: var(--r-tile); background: var(--band); }
.kontakt__foto picture { height: 100%; }
.kontakt__foto img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 22%; }
.kontakt__rechts { display: grid; gap: var(--gap); align-content: start; }
/* Anruf-Kachel über dem Formular (v4, B9) */
.anruf-kachel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 clamp(20px, 3vw, 36px);
  border: 1px solid rgb(16 19 23 / .14);
  border-radius: var(--r-tile);
  background: #fff;
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: var(--w-display);
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color var(--t-hover) var(--ease), transform 160ms var(--ease-out);
}
.anruf-kachel svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.anruf-kachel:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .anruf-kachel:hover { background: var(--band); }
}
.form-card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-tile);
  background: var(--band);
  color: var(--fg);
}
/* Sprung auf #kontakt (Ablauf-Button, Aktionsleiste): oberes Sektions-Padding überspringen, damit H2 und ganzes Formular auch bei 1024×768 sichtbar sind (v4) */
#kontakt { scroll-margin-top: calc(-1 * var(--section) - 8px); }
/* Sprung auf #kontaktformular: Anruf-Kachel (64) + Abstand + Kartenrand bleiben über dem Formular sichtbar (B11) */
.kontakt-form { display: grid; gap: 18px; scroll-margin-top: 120px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9375rem; font-weight: var(--w-medium); color: var(--fg); }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #858b94; /* 3,4:1 auf Weiss (WCAG 1.4.11) */
  border-radius: var(--r-s);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: var(--track-body);
  transition: border-color 200ms var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; field-sizing: content; max-height: 320px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .875rem; font-weight: var(--w-medium); }
.field__error[hidden], .form-success[hidden] { display: none; }
.kontakt-form .btn { justify-self: start; }
.form-success { padding: 12px 0; font-size: 1.25rem; font-weight: var(--w-medium); letter-spacing: 0; }
@media (min-width: 768px) {
  .kontakt { grid-template-columns: 5fr 7fr; gap: clamp(24px, 3vw, 40px); align-items: stretch; }
  .kontakt__foto img { aspect-ratio: 4 / 5; object-position: 50% 25%; }
}
/* 10 Footer: das einzige dunkle Band */
.site-footer {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--on-dark-line);
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: var(--fs-small);
}
.site-footer .container > * { max-width: 88ch; }
.footer__nap { display: flex; flex-wrap: wrap; column-gap: 8px; color: var(--on-dark); }
.footer__nap > span, .footer__nap > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .footer__nap a:hover, .footer__links a:hover { color: var(--accent-2); }
}
.footnote { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--on-dark-line); line-height: 1.55; }
.footnote:target { color: var(--on-dark); }
.footer__bild { margin-top: 12px; }

/* Mobile Aktionsleiste */
.actionbar { display: none; }
@media (max-width: 767px) {
  .actionbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
  }
  .actionbar .btn { min-height: 44px; }
  .actionbar .btn--secondary { background: var(--bg); }
  .site-footer { padding-bottom: calc(40px + var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* Rechtsseiten, 404 */
.legal { padding-top: calc(var(--header-h) + var(--section) * .6); padding-bottom: var(--section); }
.legal h1 { font-size: var(--fs-h2); line-height: var(--lh-display); letter-spacing: var(--track-h2); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; margin-top: 44px; margin-bottom: 10px; }
.legal p, .legal ul, .legal dl { max-width: 66ch; }
.legal p + p { margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 0 24px; }
.legal dt { color: var(--fg-2); }
.legal dd .link { display: inline-flex; align-items: center; min-height: 44px; }
.legal p .link { display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (max-width: 479px) {
  .legal dl { grid-template-columns: 1fr; }
}
.platzhalter { background: color-mix(in oklab, var(--accent-2) 35%, var(--bg)); padding: 0 4px; border-radius: 4px; }
.notfound { min-height: 80dvh; display: grid; align-content: center; padding-top: var(--header-h); padding-bottom: var(--section); text-align: center; }
.notfound h1 { font-size: var(--fs-h2); letter-spacing: var(--track-h2); }
.notfound p { margin: 16px auto 0; color: var(--fg-2); max-width: 46ch; }
.notfound .btn { margin-top: 28px; justify-self: center; }

/* Motion (MOTION 4): Kachel-Bilder blenden einmal ein (Klasse setzt main.js, ohne JS sichtbar). */
.io-img .tile__media img { opacity: .001; translate: 0 16px; transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out), transform 600ms var(--ease-out); }
.io-img .tile.is-in .tile__media img { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .tile__media img { opacity: 1 !important; translate: none !important; }
}

/* Sehr schmale Geräte (< 360 px) */
@media (max-width: 359px) {
  .hero h1 { font-size: 2.125rem; }
  .fakt { padding: 16px; }
  .stationen__head .gal__dots { display: none; }
  .fakt__big { font-size: 1.625rem; }
}

/* Druck: keine Einblend-Zustände, alle Bilder und die Linie sichtbar */
@media print {
  .io-img .tile__media img { opacity: 1; translate: none; }
  .action-bar, .site-header { position: static; }
}
