/* Lokale Schriften (selbst-gehostet) */
@font-face{font-family:'Exo';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/exo-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Exo';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/exo-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Exo';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/exo-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Exo';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/exo-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/nunito-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/nunito-sans-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/nunito-sans-latin-700-normal.woff2') format('woff2');}


/* ===================== GLOBAL ===================== */

/* ============================================================
   Vrech-Bau – Design System
   Marke: Bau-Blau (#0050A0), Amber-Akzent (#F0B000), klare Neutrals
   Fonts: Exo (Headlines/Labels) · Nunito Sans (Body)
   ============================================================ */

/* Self-hosted fonts (DSGVO-freundlich, keine externen Requests)
   Exo (Überschriften/Labels) + Nunito Sans (Fließtext) */

:root {
  /* Brand – exakt von vrech-bau.de (Logo + Inline-Styles) */
  --blue: #0058a0;        /* Logo-Blau */
  --blue-600: #0a64ad;
  --blue-700: #024a86;
  --blue-800: #073a6b;
  --blue-900: #052a4f;
  --blue-950: #04223f;
  --amber: #f29f05;       /* Original-Orange (Akzent/Boxen) */
  --amber-600: #db8f00;
  --amber-soft: #ffc865;
  --orange: #f29f05;

  /* Neutrals – Original nutzt #333/#555 */
  --ink: #2c2c2c;         /* headings */
  --slate: #555555;       /* body text */
  --slate-light: #73777f;
  --line: #dcdee1;        /* hairlines (Original) */
  --mist: #f4f5f7;        /* light section bg */
  --mist-2: #ebeef2;
  --paper: #ffffff;
  --dark: #20262b;        /* dunkle Referenzen-Sektion */
  --cream: #f7e7cf;       /* Creme-Box (Original Projekte) */
  --blue-back: #d3e4f5;   /* helle Blau-Box hinter geschichteten Elementen */

  /* Surfaces / tints */
  --blue-tint: #e7f0f9;

  /* Edle Farbverläufe für die Blöcke */
  --grad-blue: linear-gradient(145deg, #0a66b2 0%, #015089 55%, #023f72 100%);
  --grad-orange: linear-gradient(145deg, #f8b73f 0%, #f29f05 55%, #db8a00 100%);

  /* Typography – Exo (Headlines/Labels) + Nunito Sans (Fließtext) */
  --font-display: 'Exo', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Exo', system-ui, sans-serif;

  /* Spacing / shape – kantig/architektonisch (keine Rundungen) */
  --container: 1280px;
  --container-wide: 1400px;
  --radius: 0px;
  --radius-lg: 0px;
  --radius-sm: 0px;

  /* Schatten deaktiviert – flacher, klarer Look (Definition über Linien) */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --shadow-blue: none;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* NUR zwei Größen auf der ganzen Seite */
  --fs-text: 1.2rem;                          /* Fließtext, Buttons, Labels, Kleingedrucktes – überall gleich */
  --fs-heading: clamp(2.1rem, 4vw, 3.4rem);   /* alle Überschriften – einheitlich */
}

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

/* WICHTIG: Das hidden-Attribut muss zuverlässig verstecken. Sonst überschreibt
   ein author-seitiges display:flex (Modals/Lightbox) das hidden-Attribut und legt
   ein unsichtbares Vollbild-Overlay über die Seite, das alle Klicks abfängt. */
[hidden] {
  display: none !important;
}

html {
  /* Smooth-Scroll wird per JS mit Header-Offset gesteuert (robuster als CSS) */
  scroll-behavior: auto;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.7;
  font-size: var(--fs-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Alle Absätze einheitlich groß */
p {
  font-size: var(--fs-text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

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

::selection {
  background: var(--amber);
  color: var(--blue-900);
}

/* ------------------------------ Layout helpers ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Nur für Screenreader (SEO-H1 unsichtbar) */
.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;
}

.section {
  padding-block: clamp(6.5rem, 11vw, 10rem);
  position: relative;
  /* Volle Sektionshöhe – Inhalt vertikal zentriert (gleicher Abstand oben/unten) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section > .container {
  width: 100%;
}

.section--tight {
  min-height: 0;
  padding-block: clamp(5rem, 8vw, 7.5rem);
}

/* ------------------------------ Typography utilities ------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-text);
  color: var(--blue);
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2.5px;
  background: var(--amber);
}

.eyebrow--light {
  color: #fff;
}
.eyebrow--light::before,
.eyebrow--cream::before {
  background: rgba(255, 255, 255, 0.85);
}
.eyebrow--cream {
  color: #fff;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  /* einheitliche Überschriftengröße */
  font-size: var(--fs-heading);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: clamp(1.5rem, 2.6vw, 2.2rem);
  max-width: 24ch;
}
/* Akzentwort in Überschriften: gleiche Farbe, nur minimal kräftiger */
.section-title strong {
  font-weight: inherit;
  color: inherit;
}

.section-head {
  margin-bottom: clamp(3.5rem, 6.5vw, 6rem);
  max-width: 60ch;
}

.lead {
  font-size: var(--fs-text);
  color: var(--slate);
  margin-top: clamp(1.3rem, 2.2vw, 1.9rem);
  max-width: 62ch;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Button-Schrift wie Fließtext, gleiche Größe */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-text);
  letter-spacing: 0.01em;
  padding: 0.95rem 1.8rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}

.btn svg {
  transition: transform 0.35s var(--ease);
}
.btn-arrow {
  display: inline-block;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn--primary {
  background: var(--amber);
  color: #fff;
}

.btn--primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--solid {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--solid:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.btn--solid:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn--outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Weißer Button auf farbigem Block */
.btn--white {
  background: #fff;
  color: var(--ink);
}
.btn--white:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

/* Sektionsfarbige Verlaufs-Buttons (nutzen die Marken-Gradienten) */
.btn--grad-blue {
  background: var(--grad-blue);
  color: #fff;
  background-size: 150% 150%;
  background-position: 0% 0%;
  transition: transform 0.3s var(--ease), background-position 0.55s var(--ease);
}
.btn--grad-blue:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
}
.btn--grad-orange {
  background: var(--grad-orange);
  color: #fff;
  background-size: 150% 150%;
  background-position: 0% 0%;
  transition: transform 0.3s var(--ease), background-position 0.55s var(--ease);
}
.btn--grad-orange:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
}

/* ------------------------------ Bild-Tönungen (Duotone-System) ------------------------------
   Regel: blauer Block → blau-getöntes Bild + s/w-Bild; oranger Block → s/w + orange-getöntes. */
.tint {
  position: relative;
  overflow: hidden;
}
.tint img,
.tint img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}
.tint::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: 2;
}
.tint--bw img {
  filter: grayscale(1) contrast(1.06);
}
/* Blau-Duotone entfernt (sah furchtbar aus) – jetzt natürliche Farbe */
.tint--blue img,
.tint--orange img {
  filter: contrast(1.04) saturate(1.03);
}
.tint--blue::after,
.tint--orange::after {
  opacity: 0;
}
/* Kein Hover-Farbwechsel mehr auf den kleinen Sektionsbildern */

/* ------------------------------ Einheitliches Bild-System (alle Sektionen) ------------------------------
   Ein großes FARBIGES Hauptbild + ein kleineres GRAUES Nebenbild, versetzt & überlappend,
   mit weißem Rahmen als sichtbarem Abstand. Bewusst KEIN Hover-Farbwechsel. */
/* Zwei Spalten: das Foto füllt seine Spalte komplett und ist leicht nach unten
   versetzt. Standard: Foto links. Variante --rev: Foto rechts. */
.sec-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  width: 96%;
  margin-inline: auto;
}
.sec-stage--rev {
  flex-direction: row-reverse;
}
.sec-box {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}
/* Foto-Spalte: exakt so hoch wie der Block (stretch), nur leicht nach unten versetzt */
.sec-photo {
  position: relative;
  z-index: 1;
  flex: 0 0 44%;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(-14px);
}
.sec-photo img,
.sec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Graustufen-Basis für sauberes Duotone */
  filter: grayscale(1) contrast(1.05) brightness(1.06);
}
/* Sauberer Duotone-Look (Farbe, kein dunkles Multiply): blau bzw. orange gesättigt */
.sec-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--blue);
  mix-blend-mode: color;
  opacity: 0.9;
  pointer-events: none;
}
.sec-photo--orange::after {
  background: var(--amber);
  opacity: 0.82;
}
@media (max-width: 900px) {
  .sec-stage,
  .sec-stage--rev {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .sec-photo {
    flex: none;
    width: 100%;
    height: 230px;
    transform: none;
    margin-bottom: 1.5rem;
  }
}

/* ------------------------------ Wort-für-Wort-Reveal für Überschriften ------------------------------ */
.w-out {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.w-in {
  display: inline-block;
}

/* ------------------------------ Einheitlicher Sektions-Rhythmus + CTA ------------------------------ */
/* Freistehender CTA (helle/dunkle Sektion): Trennlinie + kurze Einladung + Button,
   damit der Button nicht „verloren" wirkt */
.section-cta {
  margin-top: clamp(3.2rem, 6vw, 5rem);
  padding-top: clamp(2.4rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.section-cta-label {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}
/* Weißer CTA für farbige (blaue/orange) Panels – liest auf beiden Farben, konsistent */
.btn--white {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
}
.btn--white:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-2px);
}
/* CTA innerhalb der farbigen Panels: durch Trennlinie verankert (nicht verloren) */
.panel-cta-wrap {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: clamp(2rem, 3.2vw, 2.8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

/* ------------------------------ Sektions-Bühne: kleineres Foto, das vom breiteren Block überlappt wird ------------------------------ */
.sec-stage {
  position: relative;
  display: flex;
  align-items: center;
}
/* Foto kleiner als der Block, liegt im Hintergrund */
.sec-photo {
  position: relative;
  z-index: 1;
  width: 38%;
  flex-shrink: 0;
  overflow: hidden;
}
.sec-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.1);
  transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.sec-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.sec-stage--blue .sec-photo::after {
  background: var(--blue);
  opacity: 0.55;
}
.sec-stage--orange .sec-photo::after {
  background: var(--amber);
  opacity: 0.5;
}
/* Kein Hover-Effekt auf den Sektionsfotos (Tönung bleibt konstant) */
/* Farbiger Block (breiter), liegt vorne und überlappt das Foto */
.sec-box {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  margin-left: -7%;
}
/* Gespiegelt: Foto rechts, Block links */
.sec-stage--right {
  flex-direction: row-reverse;
}
.sec-stage--right .sec-box {
  margin-left: 0;
  margin-right: -7%;
}
.panel-cta-wrap {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

@media (max-width: 860px) {
  .sec-stage,
  .sec-stage--right {
    flex-direction: column;
    align-items: stretch;
  }
  .sec-photo,
  .sec-stage--right .sec-photo {
    width: calc(100% - 2rem);
    margin-inline: auto;
  }
  .sec-photo img {
    aspect-ratio: 16 / 10;
  }
  .sec-box,
  .sec-stage--right .sec-box {
    width: 100%;
    margin: -2.5rem 0 0 0;
  }
}

/* ------------------------------ Reveal animations (GSAP-progressive enhancement) ------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* Falls JS aus ist: Inhalte trotzdem sichtbar */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ------------------------------ Blueprint background pattern ------------------------------ */
.blueprint {
  --grid: rgba(255, 255, 255, 0.07);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ------------------------------ Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ===================== Header ===================== */


  /* Glas-Band – immer sichtbar als klarer Streifen über dem Inhalt */
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid rgba(0, 88, 160, 0.12);
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }
  /* Gescrollt: etwas dichteres Glas + feine Schattenkante */
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 88, 160, 0.2);
    box-shadow: 0 1px 22px rgba(8, 22, 40, 0.07);
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 74px;
  }

  .brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .brand img {
    width: 214px;
    height: auto;
    transition: width 0.4s var(--ease);
  }
  .site-header.is-scrolled .brand img {
    width: 186px;
  }

  .nav {
    margin-left: auto;
  }
  .nav ul {
    display: flex;
    gap: 0.35rem;
  }
  .nav a {
    display: block;
    padding: 0.55rem 1.05rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.32rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--ink);
    border-radius: 0;
    position: relative;
    transition: color 0.25s ease;
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.34rem;
    height: 2px;
    /* Akzent durchgehend Blau (kein Orange) */
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav a:hover,
  .nav a.is-active {
    color: var(--blue);
  }
  .nav a:hover::after,
  .nav a.is-active::after {
    transform: scaleX(1);
  }
  .nav a.is-active {
    font-weight: 600;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-shrink: 0;
  }
  /* Telefon als klarer, rahmenloser Link – blaues Icon, blaue Schrift */
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.3rem 0.2rem;
    color: var(--blue);
    line-height: 1.05;
    transition: color 0.25s ease;
  }
  .header-phone .hp-icon {
    width: 23px;
    height: 23px;
    color: var(--blue);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
  }
  .header-phone:hover .hp-icon {
    transform: rotate(-8deg) scale(1.05);
  }
  .header-phone .hp-meta {
    display: flex;
    flex-direction: column;
  }
  .header-phone .hp-label {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.82;
  }
  .header-phone .hp-num {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .header-phone:hover {
    color: var(--blue-700);
  }

  /* Burger */
  /* Feines, elegantes Burger-Icon – zarte Linien, kein Kasten */
  .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 8px;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.25s ease, width 0.4s var(--ease), background-color 0.25s ease;
  }
  /* dezent asymmetrische Mittellinie, richtet sich beim Hover aus */
  .burger span:nth-child(2) {
    width: 17px;
    align-self: flex-end;
  }
  .burger:hover span:nth-child(2) {
    width: 24px;
  }
  .burger:hover span {
    background: var(--blue);
  }
  /* offen: alle gleich lang → sauberes, feines X */
  .burger[aria-expanded='true'] span {
    width: 24px;
    align-self: center;
  }
  .burger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .burger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .burger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Mobile nav panel */
  .mobile-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav ul {
    display: grid;
    gap: 0.15rem;
    counter-reset: mnav;
  }
  .mobile-nav ul a {
    display: flex;
    align-items: baseline;
    gap: 0.95rem;
    padding: 1.15rem 0.25rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, padding-left 0.3s var(--ease);
  }
  .mobile-nav ul a::before {
    counter-increment: mnav;
    content: counter(mnav, decimal-leading-zero);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--blue);
  }
  .mobile-nav ul a:hover,
  .mobile-nav ul a:active {
    color: var(--blue);
    padding-left: 0.6rem;
  }
  .mobile-meta {
    margin-top: 1.6rem;
    display: grid;
    gap: 0.7rem;
  }
  .mobile-meta a {
    display: flex;
    align-items: center;
  }
  /* Mobile-Anruf-Button (immer einen Tap entfernt) */
  .header-call {
    display: none;
    width: 46px;
    height: 46px;
    place-content: center;
    background: var(--blue);
    color: #fff;
    flex-shrink: 0;
  }
  .header-call svg {
    width: 22px;
    height: 22px;
  }

  /* Telefon im Mobilmenü als Vollbreit-Button */
  .mobile-meta {
    grid-template-columns: 1fr;
  }
  .mobile-phone {
    justify-content: center;
    background: var(--blue);
    color: #fff !important;
    min-height: 54px;
    font-size: 1.15rem;
    font-weight: 700 !important;
  }
  .mobile-mail {
    justify-content: center;
    min-height: 48px;
  }

  @media (max-width: 940px) {
    .nav,
    .header-cta {
      display: none;
    }
    .header-call {
      display: grid;
      margin-left: auto;
    }
    .burger {
      display: flex;
      margin-left: 0.6rem;
    }
  }


/* ===================== Hero ===================== */


  .hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 90px;
    overflow: hidden;
    background: var(--mist);
  }
  /* Blueprint dezent in Blau auf hellem Grund */
  .hero .blueprint {
    --grid: rgba(0, 80, 160, 0.07);
  }

  /* Slider */
  .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
  }
  .hero-slide.is-active {
    opacity: 1;
  }
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) contrast(1.05);
  }
  /* Sanfter Ken-Burns-Zoom auf dem aktiven Slide */
  .hero-slide.is-active img {
    animation: heroKenburns 8s ease-out both;
  }
  @keyframes heroKenburns {
    from { transform: scale(1.03); }
    to { transform: scale(1.11); }
  }

  /* Vignette-Schleier: Mitte hell (Logo/Buttons lesbar), Slider an den Rändern sichtbar,
     oben/unten dezent abgedunkelt für weiße Navi-Links & Scroll-Hinweis */
  .hero-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(72% 68% at 50% 46%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.5) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0.55) 100%);
  }
  /* Karo-Raster auf der Startseite komplett aus (wirkte störend) */
  .hero-grid {
    display: none;
  }

  /* Inhalt */
  .hero-inner {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-logo {
    width: min(720px, 88vw);
  }
  .hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(8, 33, 66, 0.18));
  }

  .hero-claim {
    margin-top: 1.8rem;
    max-width: 22ch;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: 0.005em;
    color: var(--ink);
  }

  .hero-sub {
    margin-top: 1.3rem;
    max-width: 48ch;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
    color: var(--slate);
    font-weight: 300;
  }

  .hero-actions {
    margin-top: 2.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
  }
  .btn--lg {
    padding: 0.92rem 1.7rem;
  }

  /* Slider-Punkte */
  .hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.6rem;
  }
  .hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(0, 80, 160, 0.45);
    background: transparent;
    padding: 0;
    transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .hero-dot.is-active {
    background: var(--amber);
    border-color: var(--amber);
    transform: scale(1.15);
  }

  /* Scroll-Hinweis am rechten Rand – vertikales Wort + wandernde Linie */
  .scroll-cue {
    position: absolute;
    right: clamp(18px, 3vw, 40px);
    bottom: 44px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--blue);
  }
  .scroll-word {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.74rem;
    font-weight: 500;
  }
  .scroll-line {
    position: relative;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(0, 88, 160, 0.5), rgba(0, 88, 160, 0));
    overflow: hidden;
  }
  .scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 42%;
    background: var(--blue);
    animation: scrolldown 1.9s var(--ease) infinite;
  }
  @keyframes scrolldown {
    0% { transform: translateY(-100%); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: translateY(170%); opacity: 0; }
  }

  @media (max-width: 640px) {
    .hero-dots { bottom: 20px; }
    .scroll-cue { display: none; }
    .hero-sub {
      color: var(--ink);
      font-weight: 400;
    }
    .hero-actions {
      flex-direction: column;
      width: 100%;
      max-width: 360px;
    }
    .hero-actions .btn {
      width: 100%;
      justify-content: center;
      min-height: 54px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-slide.is-active img { animation: none; }
    .scroll-line::after { animation: none; }
  }


/* ===================== Welcome ===================== */


  /* Blauer Text-Kasten im Vordergrund (Foto liegt gleich groß versetzt dahinter) */
  .welcome-box {
    background: var(--grad-blue);
    color: #fff;
    padding: clamp(3rem, 5vw, 5.5rem) clamp(2.5rem, 4.5vw, 5rem);
  }
  .welcome-heading {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-heading);
    color: #fff;
    margin-bottom: clamp(2.1rem, 3.2vw, 3rem);
    line-height: 1.15;
    letter-spacing: 0.005em;
  }
  .welcome-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: var(--fs-text);
    font-weight: 400;
    line-height: 1.9;
    max-width: 62ch;
  }
  .welcome-text:last-child {
    margin-bottom: 0;
  }


/* ===================== Services ===================== */


  .svc-panel {
    background: var(--grad-orange);
    color: #fff;
    padding: clamp(2.8rem, 4.5vw, 4.5rem) clamp(2.4rem, 4vw, 4rem);
  }
  .svc-heading {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-heading);
    color: #fff;
    letter-spacing: 0.005em;
    margin: 1rem 0 1.3rem;
    line-height: 1.1;
  }
  .svc-intro {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 1.8rem;
    max-width: 52ch;
  }

  /* Akkordeon (weiß auf Orange) */
  .acc-item {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }
  .acc-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }
  .acc-item h3 {
    margin: 0;
  }
  .acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-text);
    letter-spacing: 0.01em;
    transition: color 0.25s var(--ease);
  }
  .acc-trigger:hover {
    color: rgba(255, 255, 255, 0.75);
  }
  .acc-trigger:hover .acc-icon::before,
  .acc-trigger:hover .acc-icon::after {
    background: rgba(255, 255, 255, 0.75);
  }
  .acc-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .acc-icon::before,
  .acc-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .acc-icon::before {
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
  }
  .acc-icon::after {
    top: 0;
    left: 8px;
    width: 2px;
    height: 18px;
  }
  .acc-item.is-open .acc-icon::after {
    transform: scaleY(0);
    opacity: 0;
  }
  .acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
  }
  .acc-item.is-open .acc-panel {
    grid-template-rows: 1fr;
  }
  .acc-panel-inner {
    overflow: hidden;
  }
  .acc-panel-inner p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    padding-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s var(--ease) 0.05s, transform 0.4s var(--ease) 0.05s;
  }
  .acc-item.is-open .acc-panel-inner p {
    opacity: 1;
    transform: none;
  }


/* ===================== References ===================== */


  /* Dunkle Referenzen-Sektion wie im Original */
  .references {
    background: var(--dark);
  }
  .references .eyebrow {
    color: var(--amber);
  }
  .references .section-title {
    color: #fff;
  }
  /* CTA-Trennlinie & Label auf dunklem Grund */
  .references .section-cta {
    border-top-color: rgba(255, 255, 255, 0.16);
  }
  .references .section-cta-label {
    color: #fff;
  }
  .ref-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    max-width: none;
  }
  .ref-head .lead {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.72);
  }

  .ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.4rem;
    padding-bottom: 70px; /* Platz für den Spaltenversatz */
  }
  /* Versetzte Spalten – Kacheln „hintereinander/übereinander" gestaffelt */
  .ref-card:nth-child(3n + 2) {
    --shift: 48px;
  }
  .ref-card:nth-child(3n) {
    --shift: 24px;
  }
  .ref-card {
    --shift: 0px;
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    background: #2c343a;
    transform: translateY(var(--shift));
    transition: border-color 0.4s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  }
  .ref-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(0.92);
    transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
  }
  /* Hover: Bild wird farbig & scharf, heller Rahmen, Kachel nach vorne */
  .ref-card:hover,
  .ref-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    transform: translateY(var(--shift)) scale(1.06);
    z-index: 5;
  }
  .ref-card:hover img,
  .ref-card:focus-visible img {
    filter: grayscale(1) contrast(1.05) brightness(1.06);
  }

  /* Overlay: kein Farbverlauf mehr – nur Tag oben + zentrales Zoom-Icon */
  .ref-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
  }
  .ref-card:hover .ref-overlay,
  .ref-card:focus-visible .ref-overlay {
    opacity: 1;
  }
  .ref-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(8, 22, 40, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.32rem 0.7rem;
  }
  .ref-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    display: grid;
    place-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-900);
    transition: transform 0.45s var(--ease);
  }
  .ref-card:hover .ref-zoom,
  .ref-card:focus-visible .ref-zoom {
    transform: translate(-50%, -50%) scale(1);
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(5, 22, 45, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .lightbox.is-open {
    opacity: 1;
  }
  .lb-figure {
    margin: 0;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }
  .lb-figure img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
  }
  .lb-figure figcaption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
    max-width: 60ch;
  }
  .lb-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-content: center;
    transition: background-color 0.2s ease;
  }
  .lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .lb-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
  }
  .lb-nav:hover {
    background: var(--amber);
    color: var(--blue-900);
    border-color: var(--amber);
  }

  @media (max-width: 820px) {
    .ref-head {
      grid-template-columns: 1fr;
      gap: clamp(1.4rem, 3.5vw, 2rem);
    }
    .ref-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 180px;
      padding-bottom: 36px;
    }
    .ref-card:nth-child(3n + 2),
    .ref-card:nth-child(3n) {
      transform: translateY(0);
    }
    .ref-card:nth-child(even) {
      transform: translateY(28px);
    }
  }
  @media (max-width: 540px) {
    .ref-grid {
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 140px;
    }
    .lb-nav {
      position: absolute;
      bottom: 1.2rem;
    }
    .lb-prev { left: 1.2rem; }
    .lb-next { right: 1.2rem; }
  }


/* ===================== Projects ===================== */


  .projects {
    background: var(--mist);
    border-top: 1px solid var(--line);
  }
  .proj-head {
    text-align: center;
    max-width: none;
    margin-inline: auto;
  }
  .proj-head .eyebrow {
    justify-content: center;
  }
  .proj-head .section-title {
    margin-inline: auto;
  }

  .pills {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    gap: 0.7rem;
    height: clamp(420px, 56vw, 560px);
  }

  .pill {
    position: relative;
    flex: 0.85;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s var(--ease);
  }
  .pill:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: -3px;
  }
  /* Standard: erstes Pill geöffnet */
  .pill.is-active {
    flex: 2.7;
  }
  /* Beim Hovern der Reihe übernimmt das gehoverte Pill */
  .pills:hover .pill.is-active {
    flex: 0.85;
  }
  .pills:hover .pill:hover {
    flex: 2.7;
  }

  .pill-img {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .pill-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
  }
  /* Orange-Duotone, das beim Öffnen zu Farbe wird */
  .pill-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--amber);
    mix-blend-mode: color;
    opacity: 0.85;
    transition: opacity 0.6s var(--ease);
  }
  .pill.is-active .pill-img img,
  .pill:hover .pill-img img {
    filter: grayscale(0.7) contrast(1.05);
    transform: scale(1.04);
  }
  .pill.is-active .pill-img::after,
  .pill:hover .pill-img::after {
    opacity: 0;
  }
  .pills:hover .pill.is-active .pill-img img {
    filter: grayscale(1) contrast(1.05);
    transform: none;
  }
  .pills:hover .pill.is-active .pill-img::after {
    opacity: 0.85;
  }
  .pills:hover .pill:hover .pill-img img {
    filter: grayscale(0.7) contrast(1.05);
    transform: scale(1.04);
  }
  .pills:hover .pill:hover .pill-img::after {
    opacity: 0;
  }

  .pill-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 45%, transparent 72%);
    color: #fff;
  }
  .pill-num {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--amber);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-text);
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
  }
  .pill-title {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: var(--fs-text);
    color: #fff;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .pill-text {
    margin-top: 0.9rem;
    font-size: var(--fs-text);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--ease) 0.1s, transform 0.45s var(--ease) 0.1s;
  }
  .pill.is-active .pill-text,
  .pill:hover .pill-text {
    opacity: 1;
    transform: none;
  }
  .pills:hover .pill.is-active .pill-text {
    opacity: 0;
  }
  .pills:hover .pill:hover .pill-text {
    opacity: 1;
  }

  @media (max-width: 860px) {
    .pills {
      flex-direction: column;
      height: auto;
      gap: 1rem;
    }
    .pill,
    .pill.is-active,
    .pills:hover .pill.is-active {
      flex: none;
      height: 300px;
    }
    /* Auf Mobile entsättigt + Text sichtbar */
    .pill .pill-img img {
      filter: grayscale(0.7) contrast(1.05);
    }
    .pill .pill-img::after {
      opacity: 0;
    }
    .pill .pill-text {
      opacity: 1;
      transform: none;
    }
    .pill-title {
      white-space: normal;
    }
  }


/* ===================== WhyUs ===================== */


  .why-panel {
    background: var(--grad-blue);
    color: #fff;
    padding: clamp(2.8rem, 4.5vw, 4.5rem) clamp(2.4rem, 4vw, 4rem);
  }
  .why-heading {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-heading);
    color: #fff;
    letter-spacing: 0.005em;
    margin: 1rem 0 2rem;
    line-height: 1.1;
  }

  .acc-item {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
  .acc-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
  .acc-item h3 {
    margin: 0;
  }
  .acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-text);
    letter-spacing: 0.01em;
    transition: color 0.25s var(--ease);
  }
  .acc-trigger:hover {
    color: rgba(255, 255, 255, 0.75);
  }
  .acc-trigger:hover .acc-icon::before,
  .acc-trigger:hover .acc-icon::after {
    background: rgba(255, 255, 255, 0.75);
  }
  .acc-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .acc-icon::before,
  .acc-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .acc-icon::before {
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
  }
  .acc-icon::after {
    top: 0;
    left: 8px;
    width: 2px;
    height: 18px;
  }
  .acc-item.is-open .acc-icon::after {
    transform: scaleY(0);
    opacity: 0;
  }
  .acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
  }
  .acc-item.is-open .acc-panel {
    grid-template-rows: 1fr;
  }
  .acc-panel-inner {
    overflow: hidden;
  }
  .acc-panel-inner p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    padding-bottom: 1.3rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s var(--ease) 0.05s, transform 0.4s var(--ease) 0.05s;
  }
  .acc-item.is-open .acc-panel-inner p {
    opacity: 1;
    transform: none;
  }


/* ===================== Partners ===================== */


  .partners {
    position: relative;
    background: var(--grad-blue);
    color: #fff;
    overflow: hidden;
  }
  /* Karo-Raster sehr dezent (heller, kaum sichtbar) */
  .partners-bg {
    position: absolute;
    inset: 0;
    --grid: rgba(255, 255, 255, 0.05);
    opacity: 0.55;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 70%);
  }
  .partners-inner {
    position: relative;
    z-index: 2;
  }
  /* Gestapelter Sektions-Kopf: Label -> Überschrift -> Fließtext
     mit klarem, einheitlichem Abstand (wie die übrigen Sektionen) */
  .partners-head {
    display: block;
    max-width: 62ch;
  }
  .partners-title {
    color: #fff;
  }
  .partners-intro {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--fs-text);
    max-width: 58ch;
    margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  /* Statisches Logo-Raster */
  .partners-grid {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
  }
  .logo-chip {
    position: relative;
    background: #fff;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    padding: 0;
    /* Neigung zum Cursor (--lrx/--lry per JS) + Anheben + Skalieren beim Hover */
    transform: perspective(700px) rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg))
      translateY(var(--lly, 0px)) scale(var(--lsc, 1));
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .logo-chip:hover {
    --lly: -6px;
    --lsc: 1.05;
    box-shadow: 0 16px 30px rgba(4, 24, 46, 0.28);
    z-index: 3;
  }
  /* Glanz-Sweep (Lichtstreif) beim Hover */
  .logo-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.65s var(--ease);
    pointer-events: none;
    z-index: 2;
  }
  .logo-chip:hover::after {
    left: 150%;
  }
  .logo-chip img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
    opacity: 0.9;
    transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
  }
  .logo-chip:hover img {
    filter: grayscale(0);
    opacity: 1;
  }

  @media (max-width: 900px) {
    .partners-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 560px) {
    .partners-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  }


/* ===================== Contact ===================== */


  /* Mehr Luft zwischen Überschrift und Einleitungssatz */
  .section-head .lead {
    margin-top: clamp(2rem, 3.8vw, 3rem);
  }

  /* ── Grid: zwei gleich breite Spalten ── */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.4rem);
    align-items: stretch;
  }

  /* ── Linke Spalte: Flex-Container, damit Karte den Rest füllt ── */
  .contact-left {
    display: flex;
    flex-direction: column;
  }

  /* ── Kontaktliste ── */
  .contact-list {
    display: grid;
    gap: 0;
    flex-shrink: 0;
  }
  .contact-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-list li:first-child {
    border-top: 1px solid var(--line);
  }
  .ci-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--fs-text);
    color: var(--blue);
    margin-bottom: 0.35rem;
  }
  .ci-value {
    color: var(--ink);
    font-size: var(--fs-text);
    line-height: 1.5;
    transition: color 0.2s ease;
  }
  .ci-value:hover {
    color: var(--blue);
  }
  /* Telefonnummer optisch hervorheben */
  .ci-value--phone {
    font-family: var(--font-display);
    font-size: var(--fs-text);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--blue);
  }
  .ci-value--phone:hover {
    color: var(--blue-700);
  }

  /* ── Karte: wächst, um den verbleibenden Platz zu füllen ── */
  .contact-map {
    margin-top: 1.4rem;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    min-height: 280px;
  }
  .contact-map iframe {
    width: 100%;
    flex: 1 1 0;
    border: 0;
    display: block;
    /* entsättigt (Schwarz-Weiß), passend zum Bild-Look der Seite */
    filter: grayscale(1) contrast(1.05);
  }
  .map-link {
    display: block;
    text-align: center;
    padding: 0.65rem;
    background: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-text);
    letter-spacing: 0.04em;
    color: var(--blue);
    border-top: 1px solid var(--line);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
  }
  .map-link:hover {
    background: var(--mist);
  }

  /* ── Formular-Wrapper ── */
  .contact-form-wrap {
    background: var(--mist);
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    padding: clamp(1.75rem, 3vw, 2.6rem);
    display: flex;
    flex-direction: column;
  }
  .contact-form {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
  }

  /* ── Vertrauenszeile ── */
  .contact-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .contact-trust li {
    font-size: var(--fs-text);
    color: var(--slate);
  }
  .contact-trust strong {
    color: var(--blue);
    font-weight: 600;
  }

  /* ── Felder ── */
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .field {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
  }
  .field label {
    font-weight: 600;
    font-size: var(--fs-text);
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
  }
  .req {
    color: var(--blue);
    font-weight: 700;
  }
  .field input,
  .field select,
  .field textarea {
    font: inherit;
    font-size: var(--fs-text);
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .field textarea {
    resize: vertical;
    min-height: 120px;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 88, 160, 0.12);
  }
  .field input:user-invalid,
  .field textarea:user-invalid {
    border-color: #c8453b;
  }

  /* ── Datenschutz-Checkbox ── */
  .field-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--slate);
    margin: 0.2rem 0 1.4rem;
    line-height: 1.5;
    cursor: pointer;
  }
  .field-check input {
    margin-top: 0.18rem;
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
    flex-shrink: 0;
    cursor: pointer;
  }
  .inline-legal {
    background: none;
    border: none;
    padding: 0;
    color: var(--blue);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
  }
  .inline-legal:hover {
    color: var(--blue-700);
  }

  /* ── Absende-Button ── */
  .cf-submit {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 1rem 2rem;
    font-size: var(--fs-text);
  }

  /* ── Fallback-Anruf & Hinweis ── */
  .cf-call {
    margin-top: 1.1rem;
    text-align: center;
    font-size: var(--fs-text);
    color: var(--slate);
  }
  .cf-call a {
    color: var(--blue);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color 0.2s ease;
  }
  .cf-call a:hover {
    color: var(--blue-700);
  }
  .cf-hint {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--slate-light);
    text-align: center;
  }

  /* ── Status-Meldungen (JS-Feedback) ── */
  .cf-status {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    font-size: var(--fs-text);
    font-weight: 500;
    border-radius: 8px;
  }
  /* solange leer (kein Feedback): keinen Kasten anzeigen */
  .cf-status:empty {
    display: none;
  }
  .cf-status.is-ok {
    background: #e7f4ec;
    color: #1d7a44;
  }
  .cf-status.is-err {
    background: #fdeceb;
    color: #c8453b;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
    .contact-map {
      min-height: 320px;
    }
    .contact-map iframe {
      min-height: 300px;
    }
  }
  @media (max-width: 480px) {
    .field-row {
      grid-template-columns: 1fr;
    }
  }


/* ===================== Footer ===================== */


  .footer {
    position: relative;
    background: linear-gradient(180deg, #073a6b 0%, #04223f 100%);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
    isolation: isolate;
    /* feiner Akzent-Rand oben rahmt den Footer sauber ein */
    border-top: 3px solid var(--amber);
    /* kompaktere Footer-Typografie */
    --fs-text: 0.92rem;
  }

  /* Große, dezente Wortmarke im Hintergrund */
  .footer-watermark {
    position: absolute;
    left: 50%;
    bottom: -0.18em;
    transform: translateX(-50%);
    z-index: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4.5rem, 17vw, 17rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
    user-select: none;
    will-change: transform;
  }

  /* ── CTA-Band ── */
  .footer-cta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-block: clamp(2.2rem, 4vw, 3.4rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer-cta-eyebrow {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: var(--fs-text);
    color: var(--amber);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .footer-cta-eyebrow::before {
    content: '';
    width: 34px;
    height: 2.5px;
    background: var(--amber);
  }
  .footer-cta-title {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: var(--fs-heading);
    line-height: 1.12;
    color: #fff;
  }
  .footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
  }
  /* Haupt-CTA im Footer betont hervorheben (Marken-Orange) */
  .footer-cta-actions .btn--primary {
    padding-block: 1.1rem;
  }
  .footer-cta-phone {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    color: #fff;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--amber);
    transition: color 0.2s ease;
  }
  .footer-cta-phone:hover {
    color: var(--amber-soft);
  }

  /* ── Hauptbereich ── */
  .footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    gap: clamp(1.8rem, 3.5vw, 3rem);
    padding-block: clamp(2.4rem, 4vw, 3.4rem);
  }
  .footer-logo {
    width: 168px;
    height: auto;
    margin-bottom: 1.1rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
  }
  .footer-claim {
    font-size: var(--fs-text);
    line-height: 1.7;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.7);
  }

  /* Instagram-Link im Footer */
  .footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.1rem;
    font-family: var(--font-display);
    font-size: var(--fs-text);
    color: rgba(255, 255, 255, 0.74);
    transition: color 0.2s ease;
  }
  .footer-social svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .footer-social:hover {
    color: var(--amber);
  }

  .footer-col h3 {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--fs-text);
    color: #fff;
    margin-bottom: 1rem;
  }
  .footer-col ul {
    display: grid;
    gap: 0.55rem;
  }
  .footer-col a {
    color: rgba(255, 255, 255, 0.74);
    transition: color 0.2s ease, padding-left 0.25s var(--ease);
  }
  .footer-col a:hover {
    color: var(--amber);
    padding-left: 5px;
  }
  /* Kontakt-Spalte mit Mini-Labels */
  .footer-contact ul {
    gap: 1.1rem;
  }
  .footer-contact li {
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
  }
  .fc-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: var(--fs-text);
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.3rem;
  }

  /* ── Bottom ── */
  .footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    font-size: var(--fs-text);
    color: rgba(255, 255, 255, 0.6);
  }
  .footer-legal {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .footer-legal button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .footer-legal button:hover {
    color: var(--amber);
  }
  .footer-credit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
  }
  .footer-credit-label {
    font-size: var(--fs-text);
    white-space: nowrap;
  }
  .footer-credit-logo-link {
    display: inline-flex;
  }
  .footer-credit-logo {
    width: auto;
    height: 46px;
    opacity: 0.85;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
  }
  .footer-credit:hover .footer-credit-logo {
    opacity: 1;
  }

  /* destec-Promo-Popup über dem Logo (Hover/Fokus, rein CSS – wie auf den anderen Seiten) */
  .destec-pop {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    width: 380px;
    max-width: min(380px, 88vw);
    transform: translateX(-50%) translateY(8px) scale(0.97);
    transform-origin: bottom center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 200;
    transition: opacity 0.26s var(--ease), transform 0.32s var(--ease), visibility 0.26s;
  }
  /* unsichtbare Brücke über die Lücke Logo↔Popup, damit der Hover nicht abreißt */
  .destec-pop::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    height: 26px;
  }
  .footer-credit:hover .destec-pop,
  .footer-credit:focus-within .destec-pop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
  .destec-pop-inner {
    position: relative;
    text-align: left;
    background: linear-gradient(150deg, #0a4d8c 0%, #06325d 75%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1.5rem 1.7rem 1.6rem;
    box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.6);
  }
  .destec-pop-inner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom: 0;
    border-top-color: #06325d;
  }
  .destec-pop-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.55rem;
  }
  .destec-pop-title {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 0.6rem;
  }
  .destec-pop-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
    margin: 0 0 1.2rem;
  }
  .destec-pop-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--amber);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    padding: 0.7em 1.4em;
    border-radius: 50px;
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  }
  .destec-pop-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    color: #fff;
  }
  @media (max-width: 560px) {
    .destec-pop {
      left: auto;
      right: 0;
      transform: translateY(8px) scale(0.97);
    }
    .footer-credit:hover .destec-pop,
    .footer-credit:focus-within .destec-pop {
      transform: translateY(0) scale(1);
    }
    .destec-pop-inner::after {
      left: auto;
      right: 30px;
    }
  }

  /* Tablet: Marke über volle Breite, darunter drei gleich breite Spalten */
  @media (max-width: 900px) {
    .footer-main {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem 2.2rem;
    }
    .footer-brand {
      grid-column: 1 / -1;
      max-width: 52ch;
    }
  }
  /* Die einspaltige Telefon-Ansicht liegt gebündelt im 600px-Block weiter unten. */


/* ===================== LegalModals ===================== */


  .legal-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .legal-modal.is-open {
    opacity: 1;
  }
  .legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 22, 45, 0.7);
    backdrop-filter: blur(4px);
  }
  .legal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 86vh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.985);
    transition: transform 0.32s var(--ease);
  }
  .legal-modal.is-open .legal-panel {
    transform: translateY(0) scale(1);
  }
  .legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem clamp(1.3rem, 3vw, 2rem);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .legal-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--blue);
  }
  .legal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--mist);
    color: var(--ink);
    display: grid;
    place-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .legal-close:hover {
    background: var(--blue);
    color: #fff;
  }
  .legal-body {
    overflow-y: auto;
    padding: 1.6rem clamp(1.3rem, 3vw, 2rem) 2rem;
  }
  .legal-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.6rem 0 0.5rem;
  }
  .legal-body h3:first-child {
    margin-top: 0;
  }
  .legal-body p {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--slate);
    margin-bottom: 0.7rem;
    word-break: break-word;
  }

/* ------------------------------ Skip-Link (aus Base-Layout) ------------------------------ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ======================================================================
   ZUSÄTZLICHE EFFEKTE & DYNAMIK (Erweiterung)
   ====================================================================== */

/* ---- Scroll-Fortschrittsbalken oben ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--amber) 100%);
  z-index: 150;
  pointer-events: none;
  will-change: transform;
}

/* ---- Buttons: nur sauberer Hover-Effekt (kein magnetisches Folgen mehr) ---- */

/* ---- Section-Foto: Vorhang-Reveal-Grundzustand (nur mit JS aktiv) ---- */
.fx-curtain {
  clip-path: inset(0 0 100% 0);
}

/* ---- Referenzkarten: 3D-Tilt (überschreibt die einfache Hover-Skalierung) ---- */
@media (pointer: fine) {
  .ref-grid {
    perspective: 1100px;
  }
  .ref-card {
    transform: translateY(var(--shift)) perspective(1100px)
      rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
    transform-style: preserve-3d;
    transition: border-color 0.4s var(--ease), transform 0.25s var(--ease),
      box-shadow 0.45s var(--ease);
  }
  .ref-card:hover,
  .ref-card:focus-visible {
    --sc: 1.06;
    transform: translateY(var(--shift)) perspective(1100px)
      rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  }
  /* Tag & Zoom-Icon leicht aus der Ebene heben (Tiefe) */
  .ref-card .ref-tag {
    transform: translateZ(38px);
  }
  .ref-card .ref-zoom {
    transition: transform 0.45s var(--ease);
  }
}

/* ---- Sanfte „Float"-Bewegung für Partner-Logos beim Hover (mehr Leben) ---- */
.logo-chip {
  will-change: transform;
}

/* ---- Reduced Motion: alle Zusatz-Effekte ruhigstellen ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .fx-curtain { clip-path: none !important; }
  .ref-card { transform: translateY(var(--shift)) !important; }
}

/* ======================================================================
   BETON-TEXTUR & HINTERGRUND-TYPOGRAFIE (Leistungen)
   ====================================================================== */

/* Leistungen-Sektion: ganz leicht hellgrauer Hintergrund (ohne Hintergrund-Wörter) */
.services {
  position: relative;
  overflow: hidden;
  background: #eceef0;
  border-top: 1px solid var(--line);
}

/* ----- Foto-Spalte hält das große Foto in Originalgröße ----- */
.sec-stack {
  position: relative;
  flex: 0 0 44%;
  align-self: stretch;
  z-index: 1;
  min-width: 0;
  display: flex;
}
.sec-stack .sec-photo {
  flex: 1 1 auto;
  width: 100%;
  /* etwas niedriger als die Karte; zur Karte hin geschoben (mehr darunter) + oben mehr heraus */
  height: 82%;
  align-self: flex-start;
  transform: translate(24px, -60px);
  position: relative;
  z-index: 1;
  will-change: transform;
}
/* gespiegelt (Foto rechts): zur Karte = nach links schieben */
.sec-stage--right .sec-stack .sec-photo {
  transform: translate(-24px, -60px);
}
.sec-stack .sec-photo img {
  height: 100%;
  aspect-ratio: auto;
}

/* Drittes, kleineres S/W-Foto – liegt hinter dem großen Foto, etwas tiefer
   versetzt und ragt unten leicht heraus (überlappt großes Foto + Karte). */
.sec-mini {
  position: absolute;
  z-index: 2; /* über dem getönten Foto (1), aber unter der Karte (eigener Block, z-index 2 außerhalb dieser Spalte) */
  bottom: -60px; /* Versatz über bottom (gleicher Überstand wie das Foto oben) */
  width: 70%;
  height: 56%;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 26px 54px rgba(8, 22, 40, 0.34);
  will-change: transform;
}
/* default (großes Foto links): kleines Foto nach rechts/unten versetzt */
.sec-stack .sec-mini {
  left: auto;
  right: -20%;
}
/* gespiegelt (großes Foto rechts, z. B. Leistungen): nach links/unten versetzt */
.sec-stage--right .sec-mini {
  right: auto;
  left: -20%;
}
.sec-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

@media (max-width: 900px) {
  /* Foto-Spalte mobil: großes Foto + kleines S/W-Foto untereinander */
  .sec-stack {
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .sec-stack .sec-photo,
  .sec-stage--right .sec-stack .sec-photo {
    height: auto;
    align-self: stretch;
    transform: none;
  }
  .sec-stack .sec-photo img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .sec-mini {
    position: relative;
    z-index: 1;
    width: 62%;
    height: auto;
    aspect-ratio: 16 / 10;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none !important;
    margin: -2.2rem 0.5rem 0 auto; /* leicht überlappend, rechtsbündig */
    box-shadow: 0 16px 34px rgba(8, 22, 40, 0.3);
  }
  .sec-stage--right .sec-mini {
    margin-left: 0.5rem;
    margin-right: auto;
  }
}

/* Inhalt der Leistungen klar über etwaigen Hintergrundebenen */
.services .container {
  position: relative;
  z-index: 2;
}

/* (Globaler Grain-Overlay entfernt – verursachte beim Scrollen Ruckeln) */
/* Sektionen müssen über dem Korn liegen */
main,
.footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .svc-bgwords span { transform: none !important; }
}


/* ============================================================
   MOBILE-FEINSCHLIFF  (Überarbeitung mobile Ansicht)
   Wird bewusst ans Ende gestellt, damit es ältere, verstreute
   Media-Queries zuverlässig überschreibt.
   ============================================================ */

/* Sicherheits-Riegel gegen seitliches Scrollen */
html { overflow-x: hidden; }

@media (max-width: 900px) {

  /* ---------- 1) Graue Neben-/Mini-Bilder komplett ausblenden ---------- */
  .sec-mini { display: none !important; }

  /* ---------- 1b) Ein Foto je Sektion; farbiger Textblock liegt leicht
                    darüber – einheitlich für ALLE Sektionen ---------- */
  .sec-stage,
  .sec-stage--right {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-stack {
    width: 100%;
    flex: none;
    display: block;
    margin: 0;
  }
  .sec-stack .sec-photo,
  .sec-stage--right .sec-stack .sec-photo {
    width: 100%;
    height: 200px;          /* kompaktes Foto statt Riesenbild */
    transform: none !important;
    align-self: stretch;
  }
  /* Duotone-Tönung mobil aus – sonst verschmilzt das Foto mit dem
     farbigen Textblock zu einem Farbklumpen. Natürliches Foto. */
  .sec-stack .sec-photo::after {
    opacity: 0 !important;
  }
  .sec-stack .sec-photo img {
    height: 100%;
    aspect-ratio: auto;
    filter: grayscale(0.12) contrast(1.04) !important;
  }

  /* Farbiger Textblock überlappt das Foto leicht nach oben */
  .sec-box,
  .sec-stage--right .sec-box {
    width: 100%;
    margin: -2.2rem 0 0 0;
    z-index: 3;
  }

  /* Kompaktere Innenabstände der farbigen Blöcke */
  .welcome-box,
  .svc-panel,
  .why-panel {
    padding: clamp(1.8rem, 6vw, 2.6rem) clamp(1.4rem, 5vw, 2.1rem);
  }
  /* klar sichtbarer Abstand Überschrift -> Fließtext (alle farbigen Blöcke) */
  .welcome-heading,
  .svc-heading,
  .why-heading {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  .svc-intro {
    margin-bottom: clamp(1.6rem, 4.5vw, 2.2rem);
  }

  /* ---------- 3) Projekte „Ausgewählte Bauvorhaben" als gut lesbare
                    Karten: Bild oben, solider dunkler Textblock darunter ---------- */
  .pills {
    flex-direction: column;
    height: auto;
    gap: 1.2rem;
    overflow: visible;
    max-width: 100%;
  }
  .pill,
  .pill.is-active,
  .pills:hover .pill.is-active,
  .pills:hover .pill:hover {
    flex: none;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #1c2228;     /* solider Karten-Hintergrund */
  }

  /* Bild wird feste obere Zone statt Vollflächen-Hintergrund */
  .pill-img {
    position: relative;
    inset: auto;
    height: 195px;
    flex-shrink: 0;
  }
  .pill .pill-img img,
  .pills:hover .pill .pill-img img {
    filter: grayscale(0.12) contrast(1.05) !important;
    transform: none !important;
  }
  .pill .pill-img::after,
  .pills:hover .pill .pill-img::after {
    opacity: 0 !important;
  }

  /* Textbereich: eigener, kontraststarker Block UNTER dem Bild */
  .pill-content {
    position: static;
    inset: auto;
    background: none;
    padding: 1.25rem 1.35rem 1.5rem;
    justify-content: flex-start;
  }
  .pill-num {
    top: 0;
    left: 0;
    right: auto;
  }
  .pill-title {
    white-space: normal;
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
    line-height: 1.2;
  }
  .pill-text,
  .pill.is-active .pill-text,
  .pill:hover .pill-text,
  .pills:hover .pill.is-active .pill-text,
  .pills:hover .pill:hover .pill-text {
    opacity: 1 !important;
    transform: none !important;
    margin-top: 0;
    max-width: none;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
  }
}

/* ---------- 4) Header: Logo kleiner, Burger weiter an den Rand
                  und besser sichtbar (blau, kräftiger) ---------- */
@media (max-width: 940px) {
  .header-inner {
    gap: 0.9rem;
    height: 66px;
  }
  .brand img,
  .site-header.is-scrolled .brand img {
    width: 166px;
  }
  .header-call {
    width: 42px;
    height: 42px;
  }
  /* Burger an den rechten Rand schieben + fein & elegant (blau, sichtbar) */
  .burger {
    margin-left: 0.4rem;
    margin-right: -0.45rem;
    gap: 5px;
  }
  .burger span,
  .burger:hover span {
    background: var(--blue);
    height: 1.5px;
    width: 25px;
    border-radius: 2px;
  }
  .burger span:nth-child(2) {
    width: 16px;
  }
  .burger[aria-expanded='true'] span {
    width: 25px;
  }
  /* sauberes X passend zum engeren Abstand (gap 5px + 1.5px Linie) */
  .burger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .burger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .mobile-nav {
    top: 66px;
  }
}

@media (max-width: 600px) {
  /* ---------- 2) Fließtext kleiner + weniger Durchschuss ---------- */
  :root { --fs-text: 1.04rem; }

  .welcome-text {
    line-height: 1.55;
    margin-bottom: 1rem;
  }
  .svc-intro {
    line-height: 1.5;
  }
  .lead,
  .partners-intro,
  .pill-text,
  .acc-panel-inner p {
    line-height: 1.55;
  }

  /* Header noch etwas kompakter, Logo kleiner */
  .header-inner { height: 60px; }
  .brand img,
  .site-header.is-scrolled .brand img {
    width: 140px;
  }
  .mobile-nav { top: 60px; }

  /* Fotos der Sektionen etwas flacher */
  .sec-stack .sec-photo,
  .sec-stage--right .sec-stack .sec-photo {
    height: 165px;
  }

  /* ====================================================================
     FOOTER · MOBIL (≤600px) — komplett neu, einspaltig.
     EIN einziges Abstands-System für ALLES, gesteuert über drei Tokens:
       --fm-band  = Innenabstand jedes Bandes (oben/unten)
       --fm-gap   = Lücke zwischen gestapelten Blöcken
       --fm-inner = enge Lücke (Überschrift↔Liste, Item↔Item, Logo↔Text)
     So sind die Abstände garantiert überall identisch.
     ==================================================================== */
  .footer {
    --fm-band: 1.6rem;
    --fm-gap: 1.25rem;
    --fm-inner: 0.7rem;
  }

  /* ── CTA-Band ── */
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--fm-gap);
    padding-block: var(--fm-band);
  }
  .footer-cta-eyebrow { margin-bottom: var(--fm-inner); }
  .footer-cta-actions { gap: var(--fm-inner) 1.4rem; }

  /* ── Hauptbereich: jede Spalte ein Block, alle mit gleicher Block-Lücke ── */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--fm-gap);
    padding-block: var(--fm-band);
  }
  .footer-logo { margin-bottom: var(--fm-inner); }
  .footer-claim { max-width: 46ch; }

  /* gleicher Innen-Rhythmus in ALLEN Spalten – auch Kontakt */
  .footer-col h3 { margin-bottom: var(--fm-inner); }
  .footer-col ul { gap: 0.5rem; }          /* Navigation & Leistungen: Punkte enger */
  .footer-contact ul { gap: 0.7rem; }      /* Kontakt (mehrzeilig) etwas luftiger */
  .fc-label { margin-bottom: 0.2rem; }

  /* ── Bottom-Band: dieselbe Block-Lücke wie oben ── */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--fm-gap);
    padding-block: var(--fm-band);
  }
  .footer-credit { gap: 0.6rem; }
  .footer-credit-logo { height: 34px; }

  /* Hintergrund-Wortmarke gezähmt: kleiner, mittig, dezent */
  .footer-watermark {
    font-size: clamp(2.8rem, 20vw, 4.5rem);
    bottom: 0.3rem;
    opacity: 0.05;
  }
}
