/* ==========================================================================
   Martinez-Tiefbau — Stylesheet
   Farben aus Logo (#10366B) und Hero-Vorlage (#0B4DA2) abgeleitet.
   Flächen in Neutralgrau, Weiß nur als Akzent.
   ========================================================================== */

@import url('fonts.css');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Blau — aus dem Hero-Bild bzw. Logo */
  --blau:            #0B4DA2;
  --blau-dunkel:     #093F86;
  --blau-tief:       #0A2E59;
  --blau-tiefer:     #072241;
  --blau-logo:       #10366B;
  --blau-hell:       #E4EBF4;

  /* Flächen — Neutralgrau, Weiß nur sparsam */
  --seite:           #EFEFEF;
  --karte:           #F7F7F7;
  --karte-tief:      #E7E7E7;
  --weiss:           #FFFFFF;
  --rand:            #DEDEDE;
  --rand-stark:      #CFCFCF;

  /* Text */
  --text:            #1C1C1C;
  --text-gedaempft:  #5A5A5A;
  --text-invers:     #F4F6F9;
  --text-invers-ged: #AEBDD2;

  /* Signal */
  --fehler:          #B3261E;
  --erfolg:          #1B6E3C;
  --gelb:            #E8A33D;   /* Baumaschinen-Akzent, sehr sparsam */

  /* Typografie */
  --schrift-titel: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --schrift-text:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.35rem + 4.6vw, 4.25rem);
  --fs-h1:      clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --fs-h3:      clamp(1.1875rem, 1.08rem + 0.5vw, 1.375rem);
  --fs-lead:    clamp(1.0625rem, 1.01rem + 0.28vw, 1.1875rem);
  --fs-body:    1.0625rem;
  --fs-klein:   0.9375rem;
  --fs-mini:    0.8125rem;

  /* Abstände */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --sektion:  clamp(4rem, 7.5vw, 7rem);
  --breite:   1200px;
  --breite-schmal: 760px;

  /* Form */
  --radius-s: 4px;
  --radius:   8px;
  --radius-l: 16px;
  --radius-pill: 999px;

  --schatten-s: 0 1px 2px rgba(16, 30, 50, 0.06), 0 1px 3px rgba(16, 30, 50, 0.05);
  --schatten:   0 4px 12px rgba(16, 30, 50, 0.07), 0 2px 4px rgba(16, 30, 50, 0.05);
  --schatten-l: 0 18px 40px rgba(10, 30, 60, 0.14), 0 4px 12px rgba(10, 30, 60, 0.08);

  --takt: 220ms;
  --kurve: cubic-bezier(0.22, 0.61, 0.36, 1);

  --kopf-hoehe: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & Grundlagen
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 16px);
}

body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  color: var(--blau-logo);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }

strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 2px;
}
.auf-dunkel :focus-visible { outline-color: #8FB6E8; }

::selection { background: var(--blau); color: #fff; }

/* Screenreader-only */
.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: var(--s-4); top: -100px; z-index: 200;
  background: var(--blau); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  text-decoration: none; transition: top 160ms var(--kurve);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout-Bausteine
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap--schmal { max-width: var(--breite-schmal); }

.sektion { padding-block: var(--sektion); }
.sektion--eng { padding-block: clamp(3rem, 5vw, 4.5rem); }

.sektion--karte { background: var(--karte); border-block: 1px solid var(--rand); }
.sektion--tief  { background: var(--blau-tief); color: var(--text-invers); }
.sektion--tief h2, .sektion--tief h3 { color: #fff; }

.kopfzeile { max-width: 62ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.kopfzeile--mitte { margin-inline: auto; text-align: center; }
.kopfzeile p { color: var(--text-gedaempft); font-size: var(--fs-lead); margin-bottom: 0; }
.sektion--tief .kopfzeile p { color: var(--text-invers-ged); }

/* Kleines Label über Überschriften */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--schrift-titel);
  font-size: var(--fs-mini);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blau);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--blau); flex: none;
}
.sektion--tief .eyebrow { color: #8FB6E8; }
.sektion--tief .eyebrow::before { background: #8FB6E8; }
.kopfzeile--mitte .eyebrow { justify-content: center; }

/* Gitter */
.gitter { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.gitter--2 { grid-template-columns: repeat(2, 1fr); }
.gitter--3 { grid-template-columns: repeat(3, 1fr); }
.gitter--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .gitter--3, .gitter--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gitter--2, .gitter--3, .gitter--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  font-family: var(--schrift-titel);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--takt) var(--kurve),
              border-color var(--takt) var(--kurve),
              color var(--takt) var(--kurve),
              box-shadow var(--takt) var(--kurve),
              transform 120ms var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primaer {
  background: var(--blau); color: #fff; border-color: var(--blau);
  box-shadow: 0 2px 10px rgba(11, 77, 162, 0.24);
}
.btn--primaer:hover {
  background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff;
  box-shadow: 0 6px 18px rgba(11, 77, 162, 0.3);
}

.btn--sekundaer {
  background: var(--karte); color: var(--blau-logo); border-color: var(--rand-stark);
}
.btn--sekundaer:hover {
  background: var(--weiss); border-color: var(--blau); color: var(--blau);
}

.btn--rand {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.btn--rand:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.btn--breit { width: 100%; }

.btn-reihe { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Textlink mit Pfeil */
.pfeil-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-klein);
  color: var(--blau); text-decoration: none;
}
.pfeil-link svg { width: 16px; height: 16px; transition: transform var(--takt) var(--kurve); }
.pfeil-link:hover svg { transform: translateX(4px); }
.pfeil-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   5. Kopfbereich
   -------------------------------------------------------------------------- */

.fortschritt {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--blau);
  z-index: 120;
  will-change: transform;
}

.topbar {
  background: var(--blau-tief);
  color: var(--text-invers-ged);
  font-size: var(--fs-mini);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 40px; flex-wrap: wrap;
}
.topbar__gruppe { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.topbar a {
  color: var(--text-invers-ged); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 26px;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s-2); }
.topbar__item svg { width: 14px; height: 14px; opacity: 0.75; flex: none; }

@media (max-width: 760px) {
  .topbar__zeit { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 480px) {
  .topbar__adresse { display: none; }
}

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
  transition: box-shadow var(--takt) var(--kurve), background-color var(--takt) var(--kurve);
}
.kopf.ist-geklebt { box-shadow: 0 4px 16px rgba(16, 30, 50, 0.09); }

.kopf__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--kopf-hoehe);
  transition: min-height var(--takt) var(--kurve);
}
.kopf.ist-geklebt .kopf__inner { min-height: 64px; }


.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.5rem); }
.nav a {
  position: relative;
  font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-klein);
  color: var(--blau-logo); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--s-2) var(--s-1);
  transition: color var(--takt) var(--kurve), font-weight var(--takt) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.nav a:hover {
  color: var(--blau);
  font-weight: 700;
}
.nav a[aria-current="page"] {
  color: var(--blau);
  font-weight: 700;
}

/* .nav a (0-1-1) ist spezifischer als .btn--primaer (0-1-0) — sonst bekaeme
   der CTA im Mobilmenue dunkelblaue Schrift auf blauem Grund. */
.nav a.btn--primaer,
.nav a.btn--primaer:hover { color: #fff; }

.kopf__aktion { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.kopf__tel {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--schrift-titel); font-weight: 700; font-size: 1rem;
  color: var(--blau-logo); text-decoration: none; white-space: nowrap;
}
.kopf__tel { min-height: 44px; justify-content: center; }
.kopf__tel svg { width: 17px; height: 17px; color: var(--blau); flex: none; }
.kopf__tel:hover { color: var(--blau); }

/* Sobald die volle Nav (inkl. "Kontakt") im Header Platz hat, ist das
   Telefon-Icon überflüssig — Kontakt ist dann schon ein Nav-Link. */
@media (min-width: 1001px) {
  .kopf__tel { display: none; }
}

/* Mobile-Navigation */
.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--rand-stark);
  border-radius: var(--radius); cursor: pointer; color: var(--blau-logo);
  transition: border-color var(--takt) var(--kurve);
}
.burger:hover { border-color: var(--blau); color: var(--blau); }
.burger__strich {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative;
  transition: transform var(--takt) var(--kurve), background-color 80ms linear;
}
.burger__strich::before, .burger__strich::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--takt) var(--kurve), top var(--takt) var(--kurve);
}
.burger__strich::before { top: -6px; }
.burger__strich::after  { top: 6px; }
.burger[aria-expanded="true"] .burger__strich { background: transparent; }
.burger[aria-expanded="true"] .burger__strich::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__strich::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .kopf__tel { min-width: 44px; }
  .kopf__tel svg { width: 20px; height: 20px; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    top: var(--kopf-hoehe);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--karte);
    border-bottom: 1px solid var(--rand);
    box-shadow: var(--schatten-l);
    padding: var(--s-3) clamp(1.25rem, 4vw, 2.5rem) var(--s-5);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 300ms var(--kurve), opacity 200ms var(--kurve),
                visibility 0s linear 300ms, top var(--takt) var(--kurve);
  }
  .kopf.ist-geklebt .nav { top: 64px; }
  .nav.ist-offen {
    max-height: 70vh; overflow-y: auto; opacity: 1; visibility: visible;
    transition-delay: 0s;
  }
  .nav a {
    padding: var(--s-4) 0; font-size: 1.0625rem;
    border-bottom: 1px solid var(--rand);
  }
  .nav a[aria-current="page"] { color: var(--blau); }
  .nav__cta {
    margin-top: var(--s-4);
    border-bottom: none;
  }
  .kopf__aktion .btn--primaer { display: none; }
}
@media (min-width: 1001px) { .nav a.nav__cta { display: none; } }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; background: var(--seite); overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  z-index: 2;
}

/* Blaue Fläche rechts mit leichter Schräge — wie in der Vorlage */
.hero__flaeche {
  position: absolute; inset: 0 0 0 auto;
  width: 46%;
  background: linear-gradient(158deg, var(--blau) 0%, var(--blau-tief) 78%);
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero__text { max-width: 34rem; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  background: var(--blau-hell);
  border: 1px solid #CFDCEC;
  border-radius: var(--radius-pill);
  font-size: var(--fs-klein); font-weight: 600;
  color: var(--blau-logo);
  margin-bottom: var(--s-5);
}
.badge__punkt {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blau); flex: none;
}

.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--blau); }

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-gedaempft);
  max-width: 30rem;
  margin-bottom: var(--s-6);
}

.hero__btns { margin-bottom: var(--s-7); }

/* Kennzahlen */
.kennzahlen {
  display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rand-stark);
}
.kennzahl { display: flex; align-items: center; gap: var(--s-3); }
.kennzahl__wert {
  font-family: var(--schrift-titel); font-size: clamp(2.5rem, 3.4vw, 3rem);
  font-weight: 700; color: var(--blau); line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kennzahl__label {
  font-size: var(--fs-klein); color: var(--text-gedaempft);
  max-width: 15ch; line-height: 1.3;
  padding-left: var(--s-3); border-left: 2px solid var(--blau);
}

/* Bild */
.hero__bild { position: relative; }
.hero__bild figure { margin: 0; position: relative; }
.hero__bild img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-l);
}
.hero__bild figcaption {
  position: absolute; left: 4%; right: 4%; bottom: -28px;
  display: flex; align-items: flex-start; gap: var(--s-3);
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--schatten-l);
}
.hero__bild figcaption svg {
  width: 34px; height: 34px; flex: none;
  padding: 8px; border-radius: 50%;
  background: var(--blau-hell); color: var(--blau);
}
.hero__bild figcaption b {
  display: block; font-family: var(--schrift-titel); font-size: var(--fs-klein);
  color: var(--blau-logo); margin-bottom: 2px;
}
.hero__bild figcaption span { font-size: var(--fs-mini); color: var(--text-gedaempft); }

/* Vorteile-Liste: nur auf dem Smartphone sichtbar (ersetzt dort Kennzahl
   und Bild-Hinweis) */
.hero__vorteile,
.hero__lead-kurz { display: none; }

@media (max-width: 940px) {
  /* Smartphone-Hero: Text oben auf Grau, Bild direkt unter dem Lead,
     ab Bildmitte blauer Bereich mit Vorteilen und Haupt-CTA.
     .hero__text wird per display: contents aufgelöst, damit das Bild
     zwischen Lead und Vorteilen einsortiert werden kann. */
  .hero__flaeche { display: none; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: clamp(1.75rem, 6vw, 2.5rem);
  }
  .hero__text { display: contents; }

  .hero .badge     { order: 1; justify-self: start; margin-bottom: var(--s-4); }
  .hero h1         { order: 2; margin-bottom: var(--s-3); font-size: clamp(2.125rem, 1.4rem + 3vw, 2.75rem); }
  .hero__lead      { order: 3; max-width: none; margin-bottom: var(--s-5); }
  .hero__bild      { order: 4; z-index: 0; }
  .hero__vorteile  { order: 5; }
  .hero__btns      { order: 6; margin-bottom: 0; }
  .kennzahlen      { display: none; }
  .hero__lead-lang { display: none; }
  .hero__lead-kurz { display: inline; }

  /* Blaue Fläche ab Bildmitte bis zum Ende des Hero (.hero schneidet ab) */
  .hero__bild img { aspect-ratio: 16 / 10; }
  .hero__bild::before {
    content: '';
    position: absolute;
    top: 50%; height: 200vh;
    left: 50%; width: 100vw; margin-left: -50vw;
    background: linear-gradient(162deg, var(--blau) 0%, var(--blau-tief) 55%);
    z-index: -1;
  }
  .hero__bild figcaption { display: none; }

  .hero__vorteile {
    display: grid; gap: var(--s-2);
    margin: var(--s-5) 0;
    padding: 0; list-style: none;
    color: #fff; font-size: var(--fs-body); line-height: 1.35;
    position: relative; z-index: 1;
  }
  .hero__vorteile li { display: flex; align-items: flex-start; gap: var(--s-3); }
  .hero__vorteile li::before {
    content: '';
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
  }

  /* Haupt-CTA weiß auf Blau, Zweit-Button entfällt mobil */
  .hero__btns { position: relative; z-index: 1; }
  .hero__btns .btn--sekundaer { display: none; }
  .hero__btns .btn--primaer {
    width: 100%;
    background: var(--weiss); color: var(--blau-logo); border-color: var(--weiss);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  .hero__btns .btn--primaer:hover {
    background: var(--blau-hell); border-color: var(--blau-hell); color: var(--blau-logo);
  }
}

/* --------------------------------------------------------------------------
   7. Karten
   -------------------------------------------------------------------------- */

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: border-color var(--takt) var(--kurve),
              box-shadow var(--takt) var(--kurve),
              transform var(--takt) var(--kurve);
}
.karte--link:hover {
  border-color: var(--blau);
  box-shadow: var(--schatten);
  transform: translateY(-3px);
}
.karte h3 { margin-bottom: var(--s-3); }
.karte p { color: var(--text-gedaempft); font-size: var(--fs-klein); }

.karte__icon {
  width: 48px; height: 48px; margin-bottom: var(--s-5);
  display: grid; place-items: center;
  background: var(--blau-hell); color: var(--blau);
  border-radius: var(--radius);
}
.karte__icon svg { width: 26px; height: 26px; }

.sektion--karte .karte__icon,
.leistung-block__kopf .karte__icon { background: var(--blau-logo); color: #fff; }

.karte__nummer {
  font-family: var(--schrift-titel); font-size: var(--fs-mini); font-weight: 700;
  letter-spacing: 0.1em; color: #4A6DA3;
  display: block; margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}

/* Liste mit Häkchen */
.check-liste { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.check-liste li {
  position: relative; padding-left: 1.75rem;
  font-size: var(--fs-klein); color: var(--text-gedaempft);
  margin-bottom: var(--s-3);
}
.check-liste li::before {
  content: ''; position: absolute; left: 0; top: 0.45em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau);
  transform: rotate(-45deg);
}
.sektion--tief .check-liste li { color: var(--text-invers-ged); }
.sektion--tief .check-liste li::before { border-color: #8FB6E8; }

/* --------------------------------------------------------------------------
   8. Leistungen — Kategorien mit klebender Spalte
   -------------------------------------------------------------------------- */

.leistung-block { border-top: 1px solid var(--rand-stark); }
.leistung-block:first-of-type { border-top: none; }

.leistung-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.leistung-block__kopf { position: sticky; top: calc(var(--kopf-hoehe) + 32px); }
.leistung-block__nr {
  font-family: var(--schrift-titel);
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; line-height: 1;
  color: #7688A7;
  letter-spacing: -0.04em;
  display: block; margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.leistung-block__kopf p { color: var(--text-gedaempft); }

.leistung-liste { display: grid; gap: var(--s-5); }

.leistung-punkt {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-left: 3px solid var(--blau);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}
.leistung-punkt h3 { margin-bottom: var(--s-2); }
.leistung-punkt p { color: var(--text-gedaempft); font-size: var(--fs-klein); margin: 0; }

@media (max-width: 860px) {
  .leistung-block__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .leistung-block__kopf { position: static; }
}

/* --------------------------------------------------------------------------
   9. Ablauf — Schritte mit Fortschrittslinie
   -------------------------------------------------------------------------- */

.ablauf { position: relative; display: grid; gap: var(--s-6); }
.ablauf::before {
  content: ''; position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 2px; background: rgba(255, 255, 255, 0.16);
}
.ablauf__fuellung {
  content: ''; position: absolute; left: 23px; top: 12px;
  width: 2px; background: #8FB6E8;
  height: 0;
  transition: height 120ms linear;
}
.ablauf-schritt {
  position: relative; display: grid;
  grid-template-columns: 48px 1fr; gap: var(--s-5); align-items: start;
}
.ablauf-schritt__punkt {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blau-tief);
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-family: var(--schrift-titel); font-weight: 700; font-size: 1.0625rem;
  color: #fff;
  transition: background-color 300ms var(--kurve), border-color 300ms var(--kurve),
              transform 300ms var(--kurve);
  z-index: 1;
}
.ablauf-schritt.ist-aktiv .ablauf-schritt__punkt {
  background: var(--blau); border-color: #8FB6E8; transform: scale(1.06);
}
.ablauf-schritt h3 { margin-bottom: var(--s-2); font-size: var(--fs-h3); }
.ablauf-schritt p { color: var(--text-invers-ged); font-size: var(--fs-klein); margin: 0; }

@media (max-width: 560px) {
  .ablauf-schritt { grid-template-columns: 40px 1fr; gap: var(--s-4); }
  .ablauf-schritt__punkt { width: 40px; height: 40px; font-size: 0.9375rem; }
  .ablauf::before, .ablauf__fuellung { left: 19px; }
}

/* --------------------------------------------------------------------------
   10. Einzugsgebiet
   -------------------------------------------------------------------------- */

.orte { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }
.orte li { margin: 0; }
.ort-chip {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius-pill);
  font-size: var(--fs-klein);
  color: var(--text-gedaempft);
  transition: border-color var(--takt) var(--kurve), color var(--takt) var(--kurve);
}
.ort-chip:hover { border-color: var(--blau); color: var(--blau); }
.ort-chip--stark {
  background: var(--blau-hell); border-color: #CFDCEC;
  color: var(--blau-logo); font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Referenzen
   -------------------------------------------------------------------------- */

.sterne { display: inline-flex; gap: 3px; margin-bottom: var(--s-4); }
.sterne svg { width: 18px; height: 18px; color: var(--gelb); }
.sterne--platzhalter svg { color: var(--rand-stark); }

.stimme {
  display: flex; flex-direction: column;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
.stimme blockquote {
  margin: 0 0 var(--s-5); flex: 1;
  font-size: var(--fs-klein); color: var(--text-gedaempft);
  line-height: 1.7;
}
.stimme__fuss {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4); border-top: 1px solid var(--rand);
}
.stimme__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--karte-tief); color: var(--text-gedaempft);
  font-family: var(--schrift-titel); font-weight: 700; font-size: var(--fs-klein);
}
.stimme__name {
  font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-klein);
  color: var(--blau-logo); display: block;
}
.stimme__ort { font-size: var(--fs-mini); color: var(--text-gedaempft); }

/* Platzhalter-Zustand */
.ist-platzhalter { border-style: dashed; border-color: var(--rand-stark); }
.platzhalter-hinweis {
  display: inline-flex; align-items: center; gap: var(--s-2);
  align-self: flex-start;   /* sonst dehnt der Flex-Container das Label */
  font-size: var(--fs-mini); font-weight: 600;
  color: var(--text-gedaempft);
  background: var(--karte-tief);
  border-radius: var(--radius-s);
  padding: 2px var(--s-2);
  margin-bottom: var(--s-4);
}
.platzhalter-text { color: var(--rand-stark) !important; }
.platzhalter-balken {
  display: block; height: 10px; border-radius: var(--radius-s);
  background: var(--karte-tief); margin-bottom: var(--s-2);
}
.platzhalter-balken:nth-child(2) { width: 92%; }
.platzhalter-balken:nth-child(3) { width: 78%; }

.projekt-bild {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--karte-tief);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--rand-stark);
  border-bottom: 1px solid var(--rand);
}
.projekt-bild svg { width: 44px; height: 44px; }
.projekt-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projekt { padding: 0; overflow: hidden; }
.projekt__text { padding: clamp(1.25rem, 2.2vw, 1.75rem); }

.galerie {
  display: grid; gap: clamp(.5rem, 1.2vw, 1rem);
  grid-template-columns: repeat(3, 1fr);
}
.galerie__bild {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--karte-tief);
  border: 1px solid var(--rand);
}
.galerie__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.galerie__bild a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.galerie__bild img { transition: transform .4s ease; }
.galerie__bild a:hover img, .galerie__bild a:focus-visible img { transform: scale(1.04); }
.galerie__bild a:focus-visible { outline-offset: -3px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(7, 16, 30, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(7, 16, 30, .6); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figur {
  margin: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 4rem clamp(1rem, 7vw, 6rem) 1.25rem;
}
.lightbox__bild {
  max-width: 100%; max-height: calc(100dvh - 8rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.lightbox__text { font-size: var(--fs-klein); text-align: center; color: rgba(255,255,255,.85); max-width: 60ch; }
.lightbox__zaehler { margin-left: .5rem; color: rgba(255,255,255,.55); white-space: nowrap; }
.lightbox__knopf {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .2s ease;
}
.lightbox__knopf:hover { background: rgba(255,255,255,.2); }
.lightbox__knopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__schliessen { top: 1rem; right: 1rem; }
.lightbox__zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox__figur { padding-inline: .5rem; }
  .lightbox__zurueck, .lightbox__weiter { top: auto; bottom: 1rem; transform: none; }
  .lightbox__bild { max-height: calc(100dvh - 11rem); }
  .lightbox__figur { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .galerie__bild img { transition: none; }
  .galerie__bild a:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   12. Formular
   -------------------------------------------------------------------------- */

.formular { display: grid; gap: var(--s-5); }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 620px) { .feld-paar { grid-template-columns: 1fr; } }

.feld { display: grid; gap: var(--s-2); }
.feld label {
  font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-klein);
  color: var(--blau-logo);
}
.feld label .pflicht { color: var(--fehler); margin-left: 2px; }

.feld input, .feld select, .feld textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  font-family: var(--schrift-text); font-size: 1rem; color: var(--text);
  background: var(--karte);
  border: 1.5px solid var(--rand-stark);
  border-radius: var(--radius);
  transition: border-color var(--takt) var(--kurve), box-shadow var(--takt) var(--kurve);
}
.feld textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.feld select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' 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 var(--s-4) center;
  background-size: 18px;
  padding-right: var(--s-8);
}
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--text-gedaempft); }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.16);
}
.feld__hilfe { font-size: var(--fs-mini); color: var(--text-gedaempft); }

.feld__fehler {
  display: none;
  font-size: var(--fs-mini); font-weight: 600; color: var(--fehler);
}
.feld.hat-fehler .feld__fehler { display: block; }
.feld.hat-fehler input, .feld.hat-fehler select, .feld.hat-fehler textarea {
  border-color: var(--fehler);
}
.feld.hat-fehler input:focus, .feld.hat-fehler select:focus, .feld.hat-fehler textarea:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}

/* Einwilligung */
.zustimmung {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  align-items: start;
  font-size: var(--fs-klein); color: var(--text-gedaempft);
}
.zustimmung input[type="checkbox"] {
  width: 24px; height: 24px; min-height: 0; margin-top: 1px;
  accent-color: var(--blau); cursor: pointer; flex: none;
}
.zustimmung.hat-fehler { color: var(--fehler); }

/* Honeypot */
.honigtopf {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* Status */
.formular__status {
  display: none;
  gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--fs-klein);
}
.formular__status.ist-sichtbar { display: flex; }
.formular__status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.formular__status--ok {
  background: #E7F2EB; border: 1px solid #BEDCC9; color: #14522C;
}
.formular__status--fehler {
  background: #FBE9E7; border: 1px solid #F0C4BF; color: #8C1D16;
}

.btn.laedt { pointer-events: none; opacity: 0.72; }
.btn .spinner { display: none; }
.btn.laedt .spinner { display: block; }
.btn.laedt .btn__label { opacity: 0.9; }
.spinner {
  width: 17px; height: 17px; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: dreh 700ms linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   13. Kontaktdaten & Karte
   -------------------------------------------------------------------------- */

.kontakt-kachel {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-decoration: none;
  transition: border-color var(--takt) var(--kurve), box-shadow var(--takt) var(--kurve);
}
a.kontakt-kachel:hover { border-color: var(--blau); box-shadow: var(--schatten); }
.kontakt-kachel__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--blau-hell); color: var(--blau);
  border-radius: var(--radius);
}
.kontakt-kachel__icon svg { width: 22px; height: 22px; }
.kontakt-kachel dt {
  font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-mini);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-gedaempft); margin-bottom: var(--s-1);
}
.kontakt-kachel dd {
  margin: 0; font-family: var(--schrift-titel); font-weight: 600;
  font-size: 1.0625rem; color: var(--blau-logo); line-height: 1.4;
}
.kontakt-kachel small { display: block; font-family: var(--schrift-text);
  font-weight: 400; font-size: var(--fs-mini); color: var(--text-gedaempft); margin-top: 2px; }

/* Karte mit Einwilligung */
.karten-box {
  position: relative;
  width: 100%;
  /* Feste Hoehe statt aspect-ratio + min-height: die Kombination haette die
     Box auf mindestens 480px Breite aufgeblasen und das Layout gesprengt. */
  height: clamp(320px, 40vw, 460px);
  background: var(--karte-tief);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
}
.karten-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.karten-sperre {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  padding: var(--s-6);
  background: var(--karte-tief);
}
.karten-sperre__inhalt { max-width: 30rem; }
.karten-sperre svg { width: 36px; height: 36px; color: var(--blau); margin: 0 auto var(--s-4); }
.karten-sperre h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.karten-sperre p { font-size: var(--fs-klein); color: var(--text-gedaempft); margin-bottom: var(--s-5); }

/* --------------------------------------------------------------------------
   14. CTA-Band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: linear-gradient(150deg, var(--blau) 0%, var(--blau-tief) 72%);
  color: var(--text-invers);
  overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.cta-band__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
  position: relative; z-index: 1;
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: var(--text-invers-ged); max-width: 46ch; margin: 0; }
.cta-band .btn--primaer { background: #fff; color: var(--blau-logo); border-color: #fff; }
.cta-band .btn--primaer:hover { background: var(--blau-hell); color: var(--blau-logo); border-color: var(--blau-hell); }

@media (max-width: 820px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Fußbereich
   -------------------------------------------------------------------------- */

.fuss {
  background: var(--blau-tiefer);
  color: var(--text-invers-ged);
  font-size: var(--fs-klein);
}
.fuss__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.fuss__titel {
  font-family: var(--schrift-titel); font-size: var(--fs-mini); font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: #fff; margin: 0 0 var(--s-4); line-height: 1.4;
}
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: var(--s-3); }
.fuss a {
  color: var(--text-invers-ged); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 26px;
}
.fuss address a { display: inline; min-height: 0; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss address { font-style: normal; line-height: 1.8; }

.fuss__unten {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-mini);
}
.fuss__unten nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.fuss__unten a.fuss__credit {
  position: relative; display: inline-flex; align-items: center; gap: 0.3em;
  /* Farben der Fority-Marketing-Website (aufgehellt für den dunklen Footer) */
  --fority-pink: #F65AC1; --fority-lila: #B56CF5; --fority-blau: #7C8BFF;
  min-height: 0; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
}
.fuss__credit-text {
  background: linear-gradient(90deg, var(--fority-pink) 0%, var(--fority-lila) 25%, var(--fority-blau) 50%, var(--fority-lila) 75%, var(--fority-pink) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: credit-glanz 5s linear infinite;
}
.fuss__unten a.fuss__credit::after {
  content: ''; position: absolute; left: 0; right: 1.3em; bottom: -3px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fority-pink), var(--fority-lila), var(--fority-blau), var(--fority-lila), var(--fority-pink));
  background-size: 200% 100%;
  transform-origin: left; transform: scaleX(0.35);
  animation: credit-glanz 5s linear infinite;
  transition: transform 0.35s ease;
}
.fuss__credit-pfeil {
  width: 0.95em; height: 0.95em; flex: none; color: var(--fority-pink);
  animation: credit-wippen 2.4s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.fuss__unten a.fuss__credit:hover,
.fuss__unten a.fuss__credit:focus-visible { text-decoration: none; }
.fuss__unten a.fuss__credit:hover::after,
.fuss__unten a.fuss__credit:focus-visible::after { transform: scaleX(1); }
.fuss__unten a.fuss__credit:hover .fuss__credit-pfeil,
.fuss__unten a.fuss__credit:focus-visible .fuss__credit-pfeil { animation: none; transform: translate(3px, -3px); }
@keyframes credit-glanz { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes credit-wippen { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -2px); } }
@media (prefers-reduced-motion: reduce) {
  .fuss__credit-text { -webkit-text-fill-color: var(--fority-pink); color: var(--fority-pink); }
}

@media (max-width: 900px) {
  .fuss__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fuss__inner { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* --------------------------------------------------------------------------
   16. Seitenkopf (Unterseiten)
   -------------------------------------------------------------------------- */

.seitenkopf {
  position: relative;
  background: linear-gradient(150deg, var(--blau-tief) 0%, var(--blau-tiefer) 80%);
  color: var(--text-invers);
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.seitenkopf::after {
  content: ''; position: absolute; left: -80px; bottom: -180px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 52px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.seitenkopf__inner { position: relative; z-index: 1; max-width: 44rem; }
.seitenkopf h1 { color: #fff; }
.seitenkopf p { color: var(--text-invers-ged); font-size: var(--fs-lead); margin-bottom: 0; }
.seitenkopf .eyebrow { color: #8FB6E8; }
.seitenkopf .eyebrow::before { background: #8FB6E8; }

.brotkrumen {
  font-size: var(--fs-mini); margin-bottom: var(--s-4);
  color: var(--text-invers-ged);
}
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0; }
.brotkrumen li { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.brotkrumen li + li::before { content: '/'; opacity: 0.5; }
.brotkrumen a { color: var(--text-invers-ged); text-decoration: none; }
.brotkrumen a:hover { color: #fff; text-decoration: underline; }
.brotkrumen [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   17. Fließtext (Recht, Über uns)
   -------------------------------------------------------------------------- */

.fliesstext { max-width: 68ch; }
.fliesstext h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--rand-stark);
}
.fliesstext h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.fliesstext h3 { margin-top: var(--s-6); }

/* Über uns: zwei Fließtext-Spalten nebeneinander (Desktop), gestapelt auf Mobil */
.ueber-spalten {
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--rand-stark);
}
@media (max-width: 620px) {
  .ueber-spalten > .fliesstext + .fliesstext h2:first-child {
    margin-top: var(--s-2); padding-top: var(--s-6);
    border-top: 1px solid var(--rand-stark);
  }
}
.fliesstext p, .fliesstext li { color: var(--text-gedaempft); }
.fliesstext dl { margin: 0 0 var(--s-5); }
.fliesstext dt { font-weight: 600; color: var(--text); margin-top: var(--s-3); }
.fliesstext dd { margin: 0 0 var(--s-2); color: var(--text-gedaempft); }
.fliesstext address { font-style: normal; line-height: 1.9; color: var(--text-gedaempft); }

.info-kasten {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-left: 3px solid var(--blau);
  border-radius: var(--radius);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  font-size: var(--fs-klein);
  color: var(--text-gedaempft);
}
.info-kasten strong { color: var(--blau-logo); }

/* Über uns: Zitat */
.zitat {
  border-left: 3px solid var(--blau);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--schrift-titel);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45; letter-spacing: -0.015em;
  color: var(--blau-logo);
}
.zitat footer {
  font-family: var(--schrift-text); font-size: var(--fs-klein);
  font-weight: 400; color: var(--text-gedaempft); margin-top: var(--s-3);
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   18. Scroll-Animationen
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--kurve), transform 620ms var(--kurve);
  transition-delay: var(--verzug, 0ms);
}
[data-reveal].ist-sichtbar { opacity: 1; transform: none; }

[data-reveal="links"]  { transform: translateX(-24px); }
[data-reveal="rechts"] { transform: translateX(24px); }
[data-reveal="skala"]  { transform: scale(0.965); }

.js-parallax { will-change: transform; }

/* Bei ausgeschalteter Bewegung: alles sofort sichtbar, keine Effekte */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js-parallax { transform: none !important; }
  .fortschritt { display: none; }
}

/* Ohne JavaScript nichts verstecken */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. Druck
   -------------------------------------------------------------------------- */

@media print {
  .topbar, .kopf, .fuss, .cta-band, .fortschritt, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sektion { padding-block: 1rem; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   20. Logo-Lockup
   Die gelieferte Logodatei ist gestapelt (520x300) — der Schriftzug waere in
   Kopfhoehe nur ~6px hoch. Deshalb hier ein horizontales Lockup aus derselben
   Bildmarke plus Schriftzug in Archivo (Farben und Trenner wie im Original).
   -------------------------------------------------------------------------- */

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; flex: none;
  --logo-mark:   var(--blau-logo);
  --logo-wort:   var(--blau-logo);
  --logo-teiler: #B6C4D8;
  --logo-wort-2: #4A6DA3;
}

.logo__marke {
  height: 44px; width: 44px; flex: none;
  transition: height var(--takt) var(--kurve), width var(--takt) var(--kurve);
}
.logo__ring { fill: none; stroke: var(--logo-mark); }
.logo__m    { fill: var(--logo-mark); }

.kopf.ist-geklebt .logo__marke { height: 38px; width: 38px; }

.logo__wort { display: flex; flex-direction: column; line-height: 1.08; }
.logo__name {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: 1.1875rem; letter-spacing: -0.015em;
  color: var(--logo-wort);
  white-space: nowrap;
}
.logo__zusatz {
  font-family: var(--schrift-titel); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: 0.155em;
  color: var(--logo-wort-2);
  margin-top: 3px; white-space: nowrap;
}

/* Helle Variante fuer dunkle Flaechen (Fussbereich) */
.logo--hell {
  --logo-mark:   #FFFFFF;
  --logo-wort:   #FFFFFF;
  --logo-teiler: #4A6DA3;
  --logo-wort-2: #AEBDD2;
}

.fuss__logo.logo { margin-bottom: var(--s-5); }
.fuss__logo .logo__marke { height: 48px; width: 48px; }
.fuss__logo .logo__name { font-size: 1.25rem; }

@media (max-width: 420px) {
  .logo__name { font-size: 1.0625rem; }
  .logo__zusatz { font-size: 0.625rem; letter-spacing: 0.12em; }
  .logo__marke { height: 38px; width: 38px; }
}
