/* ==========================================================================
   PLAMBECK UND PARTNER - Dachdeckerei Reinbek / Hamburg
   style.css
   --------------------------------------------------------------------------
   Aufbau
   01  Schriften (selbst gehostet)
   02  Design-Tokens
   03  Reset & Basis
   04  Typografie
   05  Layout-Raster
   06  Buttons & Links
   07  Kopfbereich, Navigation, Leistungs-Menue
   08  Mobile Navigation
   09  Hero
   10  Laufband
   11  Inhaltsbausteine
   12  Leistungsraster
   13  Ablauf
   14  Galerie
   15  Regionen & Einsatzgebiete
   16  FAQ
   17  Formular
   18  Handlungsaufforderung
   19  Fussbereich
   20  Mobile Aktionsleiste
   21  Animationen & Reveals
   22  Hilfsklassen
   ========================================================================== */

/* 01  Schriften =========================================================== */
/* Selbst gehostet: kein Drittanbieter-Request, keine Uebertragung von
   IP-Adressen an externe Font-CDNs (DSGVO), schnellerer First Paint. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 02  Design-Tokens ======================================================= */

:root {
  /* Farbwelt: Schwarz, Anthrazit, Weiss, warmes Grau, Bronze */
  --ink: #0b0c0e;
  --ink-2: #14161a;
  --ink-3: #1d2025;
  --ink-4: #272b31;

  --paper: #fbfaf8;
  --paper-2: #f3f1ec;
  --paper-3: #e9e5dd;
  --sand: #ddd7cb;

  --grey: #5c574f;
  --grey-2: #9a948b;
  --grey-3: #b9b3a9;

  /* Sekundaertext. Wird in dunklen Abschnitten neu gesetzt, damit auf
     beiden Untergruenden mindestens WCAG AA (4.5:1) erreicht wird. */
  --muted: #6a655e;

  /* Bronze ist der Akzentton und wird auch fuer Text benutzt. Ein
     einziger Wert kann auf hellem und dunklem Grund nicht beides
     erfuellen, deshalb ist der Ton kontextabhaengig - genauso wie
     --muted weiter unten. Hell: 4,7:1 auf --paper. Dunkel: 7,7:1 auf
     --ink. Beides ueber WCAG AA. */
  --bronze: #7d6134;
  --bronze-2: #c2a06a;
  --bronze-3: #e3d3b6;

  /* Fester Ton fuer die Hauptaktion. Bewusst nicht kontextabhaengig:
     der Knopf traegt weisse Schrift und muss auf hellen wie dunklen
     Abschnitten dieselben 5,0:1 erreichen. */
  --bronze-solid: #7d6134;

  --line: #dcd7cd;
  --line-soft: #e7e3da;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-soft: rgba(255, 255, 255, 0.055);

  /* Typografie */
  --font-sans: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', ui-monospace, monospace;

  --fs-display: clamp(2.6rem, 7.4vw, 6.4rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 3.3vw, 2.9rem);
  --fs-h3: clamp(1.18rem, 1.7vw, 1.5rem);
  --fs-h4: clamp(1.02rem, 1.2vw, 1.12rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.28rem);
  /* Fliesstext nie unter 16px - auch nicht auf kleinen Viewports. */
  --fs-body: clamp(1rem, 1vw, 1.06rem);
  --fs-small: 0.9rem;
  --fs-label: 0.72rem;

  /* Mindestgroesse fuer Tippziele */
  --tap: 44px;

  /* Raster & Raum */
  --shell: 1400px;
  --shell-narrow: 1080px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --section-tight: clamp(3.25rem, 6vw, 5.5rem);

  /* Radien */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 30px;

  /* Bewegung */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 0.22s;
  --t-med: 0.42s;
  --t-slow: 0.8s;

  /* Schatten: immer in den Hintergrundton getoent, nie neutrales Schwarz */
  --shadow-sm: 0 1px 2px rgba(20, 17, 12, 0.05),
    0 8px 20px -12px rgba(20, 17, 12, 0.14);
  --shadow-md: 0 24px 48px -28px rgba(20, 17, 12, 0.24);
  --shadow-lg: 0 40px 80px -40px rgba(11, 12, 14, 0.4);

  --header-h: 76px;
  --topbar-h: 44px;
}

/* Auf dunklen Flaechen wird der Sekundaerton aufgehellt. Sonst faellt
   grauer Text dort unter das AA-Kontrastminimum. */
.section--dark,
.hero,
.subhero,
.topbar,
.header.is-stuck,
.megamenu,
.drawer,
.ticker,
.tile,
.cta,
.footer,
.mobile-cta,
.cookie {
  --muted: #a8a299;
  --bronze: #c2a06a;
}

/* 03  Reset & Basis ======================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  /* clip statt hidden: verhindert seitliches Scrollen, ohne einen
     Scroll-Container zu erzeugen (position: sticky bleibt funktionsfaehig). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Lange deutsche Komposita duerfen das Layout nicht sprengen
   ("Dachrinnen & Entwässerung", "Fassadensanierung"). */
h1, h2, h3, h4, p, li, a, summary, dd, dt, figcaption, label, button {
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  -webkit-hyphens: auto;
  hyphens: auto;
}

@media (min-width: 768px) {
  h1, h2, h3, h4 {
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

/* Platz fuer die fixierte Aktionsleiste am unteren Rand.
   Gilt fuer die gesamte Seite, nicht nur fuer den Fussbereich. */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  background-color: var(--paper-3);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

::selection {
  background: var(--bronze);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  transform: translate(-50%, -140%);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* Feine Bildstoerung ueber dem gesamten Viewport.
   Nur auf grossen Zeigergeraeten: eine ganzflaechige, fixierte Ebene mit
   mix-blend-mode zwingt mobile GPUs bei jedem Scrollschritt zum Neuzeichnen
   und ist dort die teuerste Einzelmassnahme der Seite. */
@media (min-width: 1024px) and (hover: hover) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.026;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* Abschnitte unterhalb des Viewports erst rendern, wenn sie gebraucht
   werden. contain-intrinsic-size haelt die Scrollhoehe stabil, damit
   dadurch kein Layoutversatz (CLS) entsteht. */
.section,
.cta,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* Der erste Abschnitt und alles oberhalb der Falz bleiben ausgenommen. */
.hero,
.subhero,
.ticker,
.header,
.topbar,
.section--first {
  content-visibility: visible;
}

/* 04  Typografie ========================================================== */

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.24;
  letter-spacing: -0.018em;
}

h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
  color: var(--grey);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--ink);
  font-weight: 500;
}

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.94;
}

.lead {
  max-width: 62ch;
  color: var(--grey);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: -0.008em;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bronze);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.label::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.label--plain::before {
  display: none;
}

.label--muted {
  color: var(--muted);
}

/* Fliesstext-Bereiche auf Unterseiten */
.prose > * + * {
  margin-top: 1.1em;
}

.prose h3 {
  margin-top: 2.2em;
}

.prose a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--t-fast) var(--ease);
}

.prose a:not(.btn):hover {
  color: var(--bronze);
}

.prose ul {
  display: grid;
  gap: 0.7rem;
  max-width: 68ch;
}

.prose ul li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--grey);
}

.prose ul li::before {
  content: '';
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 0.55rem;
  height: 1px;
  background: var(--bronze);
}

/* 05  Layout-Raster ====================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: var(--section-tight);
}

.section--dark {
  background: var(--ink);
  color: var(--paper-2);
}

.section--paper {
  background: var(--paper-2);
}

.section--flush-top {
  padding-top: 0;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p,
.section--dark .lead {
  color: var(--grey-3);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

/* Asymmetrische Standardaufteilungen (ab 900px) */
@media (min-width: 900px) {
  .grid--12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .grid--7-5 {
    grid-template-columns: 7fr 5fr;
  }
  .grid--5-7 {
    grid-template-columns: 5fr 7fr;
  }
  .grid--4-8 {
    grid-template-columns: 4fr 8fr;
  }
  .grid--8-4 {
    grid-template-columns: 8fr 4fr;
  }
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--gap-lg {
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

/* Zweispaltige Abschnittsueberschrift: links Titel, rechts Text */
.section-head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .section-head--offset {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    padding-left: clamp(0rem, 6vw, 7rem);
  }
}

.section-head__title {
  display: grid;
  gap: 1.1rem;
}

.section-head__aside {
  padding-bottom: 0.35rem;
}

/* 06  Buttons & Links ==================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.02rem 1.85rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    transform 0.12s var(--ease), box-shadow var(--t-med) var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn__icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  transition: transform var(--t-med) var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* Primaer: Bronze auf hell und dunkel identisch lesbar */
.btn--primary {
  background: var(--bronze-solid);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 34px -22px rgba(112, 80, 34, 0.7);
}

.btn--primary:hover {
  background: #69512b;
}

/* Sekundaer auf hellem Grund */
.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Sekundaer auf dunklem Grund */
.btn--ghost-light {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.btn--solid-dark {
  background: var(--ink);
  color: #fff;
}

.btn--solid-dark:hover {
  background: var(--ink-3);
}

.btn--sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

/* Magnetischer Effekt: Transform wird per JS ueber Custom Properties
   gesetzt, damit kein React-/State-Zyklus und kein Layout-Thrash entsteht. */
.btn--magnetic {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background-color var(--t-fast) var(--ease),
    transform 0.5s var(--ease), box-shadow var(--t-med) var(--ease);
}

.btn--magnetic.is-pulling {
  transition: background-color var(--t-fast) var(--ease),
    transform 0.08s linear;
}

/* Textlink mit unterstrichener Wischanimation */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.008em;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.link:hover::after {
  transform: scaleX(1);
}

.link svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform var(--t-med) var(--ease);
}

.link:hover svg {
  transform: translateX(3px);
}

.link--light {
  color: #fff;
}

.link--bronze {
  color: var(--bronze);
}

/* 07  Kopfbereich & Navigation =========================================== */

.topbar {
  position: relative;
  z-index: 41;
  background: var(--ink);
  color: var(--grey-3);
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--topbar-h);
}

.topbar__region {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding-block: 0.35rem;
  color: var(--grey-3);
  transition: color var(--t-fast) var(--ease);
}

.topbar__link:hover {
  color: #fff;
}

.topbar__link svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--bronze-2);
}

.topbar__link--emergency {
  color: #fff;
}

@media (min-width: 720px) {
  .topbar__region {
    display: block;
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    justify-content: center;
  }
  .topbar__actions {
    margin-left: 0;
    gap: 1.1rem;
  }
}

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    backdrop-filter var(--t-med) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

/* Variante ueber dunklem Hero */
.header--over-hero {
  color: #fff;
}

/* Ueber dem Hero liegt der Kopf direkt auf dem Foto. Faellt der
   Bildausschnitt dort hell aus - heller Himmel, Wolken -, verschwindet
   die weisse Schrift darin. Ein schmaler Verlauf nach unten sichert den
   Kontrast, ohne eine sichtbare Leiste zu zeichnen. Anders als
   backdrop-filter kostet ein Verlauf keine Filterberechnung pro Frame. */
.header--over-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 240%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 9, 11, 0.7),
    rgba(8, 9, 11, 0.35) 55%,
    rgba(8, 9, 11, 0)
  );
}

/* Sobald der Kopf seinen eigenen Hintergrund bekommt, ist der Verlauf
   ueberfluessig. */
.header--over-hero.is-stuck::before {
  display: none;
}

.header__inner {
  position: relative;
  z-index: 1;
}

.header--over-hero .brand__name,
.header--over-hero .nav__link {
  color: #fff;
}

.header--over-hero .brand__sub {
  color: rgba(255, 255, 255, 0.58);
}

/* Zustand nach dem Scrollen.
   Auf Mobilgeraeten deckend statt mit Blur: backdrop-filter auf einem
   sticky Element erzwingt pro Scrollframe eine erneute Filterberechnung. */
.header.is-stuck {
  background: #0d0e11;
  border-bottom-color: var(--line-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (min-width: 1024px) and (hover: hover) {
  .header.is-stuck {
    background: rgba(11, 12, 14, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
  }
}

.header.is-stuck .brand__name,
.header.is-stuck .nav__link {
  color: #fff;
}

.header.is-stuck .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

/* Header auf hellen Seiten (Unterseiten ohne dunklen Hero) */
.header--light .brand__name,
.header--light .nav__link {
  color: var(--ink);
}

.header--light {
  background: #fbfaf8;
  border-bottom-color: var(--line-soft);
}

@media (min-width: 1024px) and (hover: hover) {
  .header--light {
    background: rgba(251, 250, 248, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.header--light .brand__sub {
  color: var(--muted);
}

/* Marke */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  margin-right: auto;
}

.brand__mark {
  flex: none;
  width: 38px;
  height: 38px;
  transition: transform var(--t-med) var(--ease);
}

.brand:hover .brand__mark {
  transform: translateY(-2px);
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__name {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand__sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 400px) {
  .brand__sub {
    display: none;
  }
}

/* Hauptnavigation: bewusst nur drei Punkte */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.6rem 0.95rem;
  border-radius: 100px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: -0.004em;
  transition: color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.nav__link:hover {
  color: var(--bronze-2);
}

.nav__link[aria-current='page'] {
  font-weight: 500;
}

.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: 0.34rem;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--bronze);
}

.nav__caret {
  width: 0.62rem;
  height: 0.62rem;
  opacity: 0.55;
  transition: transform var(--t-med) var(--ease);
}

.nav__item.is-open .nav__caret {
  transform: rotate(180deg);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

@media (min-width: 1024px) {
  .header__actions {
    display: flex;
  }
}

/* Leistungs-Menue (Dropdown-Panel) */
.megamenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 50;
  width: min(880px, calc(100vw - 3rem));
  padding: 1.5rem;
  transform: translate(-50%, -10px);
  /* Das Menue existiert nur ab 1024px (siehe .nav), der Filter kann hier
     also nie auf einem Mobilgeraet greifen. */
  background: rgba(17, 19, 22, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease), visibility var(--t-med);
}

.nav__item.is-open .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 0.85fr;
  gap: 1.5rem;
}

.megamenu__col {
  display: grid;
  align-content: start;
  gap: 1px;
}

.megamenu__heading {
  margin-bottom: 0.75rem;
  padding-left: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.megamenu__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.megamenu__link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.megamenu__link svg {
  flex: none;
  width: 1.12rem;
  height: 1.12rem;
  color: var(--bronze-2);
  opacity: 0.8;
  transition: opacity var(--t-fast) var(--ease);
}

.megamenu__link:hover svg {
  opacity: 1;
}

/* Hervorgehobene Kachel im Menue */
.megamenu__promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: linear-gradient(
    165deg,
    rgba(168, 129, 74, 0.2),
    rgba(255, 255, 255, 0.02)
  );
}

.megamenu__promo h4 {
  color: #fff;
  font-size: 1.05rem;
}

.megamenu__promo p {
  margin: 0.5rem 0 0;
  color: var(--grey-3);
  font-size: 0.83rem;
  line-height: 1.5;
}

@media (max-width: 1140px) {
  .megamenu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .megamenu__promo {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
}

/* 08  Mobile Navigation ================================================== */

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.header--over-hero .burger,
.header.is-stuck .burger {
  border-color: var(--line-dark);
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.header--over-hero .burger span,
.header.is-stuck .burger span {
  background: #fff;
}

.burger span:last-child {
  width: 11px;
  align-self: flex-end;
  margin-right: 13.5px;
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line-dark-soft);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #fff;
}

.drawer__close svg {
  width: 1rem;
  height: 1rem;
}

.drawer__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: clamp(1.5rem, 5vh, 3rem);
}

.drawer__nav {
  display: grid;
  gap: 1px;
}

.drawer__row {
  border-bottom: 1px solid var(--line-dark-soft);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 0;
  color: #fff;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: left;
}

.drawer__link svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--bronze-2);
  transition: transform var(--t-med) var(--ease);
}

.drawer__row.is-open .drawer__link svg {
  transform: rotate(180deg);
}

/* Aufklappen ueber grid-template-rows statt ueber eine in JavaScript
   berechnete Pixelhoehe. Damit entfaellt das Auslesen von scrollHeight
   und der dadurch erzwungene Reflow bei jedem Klick.
   minmax(0, 0fr) statt 0fr: in einem Grid ohne feste Hoehe waechst eine
   reine 0fr-Spur auf die Hoehe der ersten Zeile, der zugeklappte
   Bereich wuerde also eine Textzeile durchscheinen lassen. Das overflow
   am Container faengt zusaetzlich das Innenabstands-Polster der Liste ab,
   das die auf null kollabierte Spur sonst ueberragt. */
.drawer__sub {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows var(--t-med) var(--ease);
}

.drawer__row.is-open .drawer__sub {
  grid-template-rows: minmax(0, 1fr);
}

.drawer__sub > ul {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 1px;
  padding: 0.25rem 0 1.4rem;
}

.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  padding: 0.55rem 0;
  color: var(--grey-3);
  font-size: 1.02rem;
}

.drawer__sub a:hover {
  color: #fff;
}

.drawer__sub a::before {
  content: '';
  flex: none;
  width: 0.85rem;
  height: 1px;
  background: var(--bronze);
  opacity: 0.6;
}

.drawer__foot {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark-soft);
}

.drawer__contact {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* Browser setzen dd standardmaessig 40px ein. Im Raster der Schublade
   faellt der Wert sonst gegenueber dem dt aus der Flucht. */
.drawer__contact dd {
  margin: 0;
}

/* 09  Hero =============================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92dvh, 900px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 7rem));
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  transform: scale(1.04);
}

/* Die langsame Kamerafahrt laeuft nur auf grossen Zeigergeraeten.
   Eine Endlosanimation ueber ein bildschirmfuellendes Bild haelt auf
   Mobilgeraeten dauerhaft den Compositor beschaeftigt. */
@media (min-width: 1024px) and (hover: hover) {
  .hero__media img {
    animation: heroDrift 32s var(--ease-soft) infinite alternate;
  }

  @keyframes heroDrift {
    from {
      transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
      transform: scale(1.09) translate3d(-1%, -1.1%, 0);
    }
  }
}

/* Verlauf statt harter Abdunklung: Bild bleibt lesbar, Text kontrastreich */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(11, 12, 14, 0.94) 0%,
      rgba(11, 12, 14, 0.82) 34%,
      rgba(11, 12, 14, 0.34) 62%,
      rgba(11, 12, 14, 0.5) 100%
    ),
    linear-gradient(to top, rgba(11, 12, 14, 0.9) 0%, transparent 42%);
}

.hero__inner {
  position: relative;
  width: 100%;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: end;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr);
  }
}

/* Die Breite muss das laengste Wort der Schlagzeile bei voller
   Display-Groesse aufnehmen ("Substanz." bei 102px sind rund 480px).
   Ein Mass in ch war hier falsch: ch bezieht sich auf die Schriftgroesse
   des Containers, nicht auf die der Ueberschrift - die Spalte wurde
   dadurch nur 252px breit und die H1 brach mitten im Wort um.
   Die Lauftexte bekommen ihr eigenes, engeres Mass. */
.hero__content {
  max-width: min(100%, 33rem);
}

.hero__sub {
  max-width: 24ch;
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

/* "Dach. Fassade. Substanz." - dritter Begriff in Bronze als Akzent */
.hero h1 em {
  display: block;
  color: var(--bronze-2);
  font-style: normal;
}

.hero__eyebrow {
  margin-bottom: clamp(1.25rem, 3vw, 1.9rem);
  color: var(--bronze-2);
}

.hero__sub {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.55;
}

.hero__sub strong {
  color: #fff;
  font-weight: 500;
}

.hero__seo {
  max-width: 54ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.93rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Disziplinen-Index unten rechts */
.hero__index {
  display: grid;
  gap: 1px;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) and (hover: hover) {
  .hero__index {
    background: rgba(255, 255, 255, 0.035);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.hero__index dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__index dd {
  margin: 0.35rem 0 0;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line-dark-soft);
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.014em;
}

.hero__index > div + div {
  padding-top: 0.95rem;
}

.hero__index > div:last-child dd {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Scroll-Hinweis */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--bronze), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Kompakter Hero fuer Unterseiten */
.subhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(66dvh, 620px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem));
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.subhero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.subhero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.subhero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      95deg,
      rgba(11, 12, 14, 0.93) 0%,
      rgba(11, 12, 14, 0.78) 40%,
      rgba(11, 12, 14, 0.38) 100%
    ),
    linear-gradient(to top, rgba(11, 12, 14, 0.88), transparent 55%);
}

.subhero__inner {
  position: relative;
  width: 100%;
}

.subhero h1 {
  max-width: 22ch;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.038em;
}

.subhero__sub {
  max-width: 54ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.55;
}

.subhero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* Breadcrumbs */
.crumbs {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.crumbs a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t-fast) var(--ease);
}

.crumbs a:hover {
  color: var(--bronze-2);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.24);
}

.crumbs [aria-current='page'] {
  color: var(--bronze-2);
}

.crumbs--light a {
  color: var(--grey);
}

.crumbs--light li + li::before {
  color: var(--line);
}

.crumbs--light [aria-current='page'] {
  color: var(--bronze);
}

/* 10  Laufband =========================================================== */

.ticker {
  padding-block: 1.15rem;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark-soft);
  border-bottom: 1px solid var(--line-dark-soft);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.ticker__track {
  display: flex;
  width: max-content;
}

/* Das Laufband bewegt sich erst ab Tabletbreite. Darunter wird es
   statisch dargestellt: eine dauerhaft laufende Transform-Animation
   kostet auf Mobilgeraeten permanent Rechenzeit, ohne etwas beizutragen. */
@media (min-width: 768px) {
  .ticker__track {
    animation: tickerRun 46s linear infinite;
  }

  .ticker:hover .ticker__track {
    animation-play-state: paused;
  }
}

/* Statische Darstellung: nur die erste Gruppe zeigen, zweite ausblenden. */
@media (max-width: 767px) {
  .ticker__track {
    width: 100%;
    overflow: hidden;
  }

  .ticker__group + .ticker__group {
    display: none;
  }
}

@keyframes tickerRun {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.9rem;
  padding-right: 1.9rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.ticker__item:hover {
  color: #fff;
}

.ticker__item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.75;
}

/* 11  Inhaltsbausteine ================================================== */

/* Grosse Aussage links, Fliesstext rechts */
.statement {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
  .statement {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.statement__title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

.statement__title b {
  font-weight: 500;
}

.statement__title span {
  color: var(--bronze);
}

/* Merkmalsliste ohne Karten, nur Trennlinien */
.facts {
  display: grid;
  border-top: 1px solid var(--line);
}

.section--dark .facts {
  border-top-color: var(--line-dark-soft);
}

.facts__row {
  display: grid;
  gap: 0.4rem 2rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.section--dark .facts__row {
  border-bottom-color: var(--line-dark-soft);
}

@media (min-width: 720px) {
  .facts__row {
    grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: baseline;
  }
}

.facts__num {
  color: var(--bronze);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.facts__row h3 {
  font-size: 1.1rem;
  letter-spacing: -0.014em;
}

.facts__row p {
  margin: 0;
  font-size: 0.96rem;
}

/* Bild-Reveal mit Vorhang */
.reveal-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);

  /* Der Rahmen ist immer hell - auch in einem dunklen Abschnitt. Die
     kontextabhaengigen Tokens muessen deshalb hier zurueckgesetzt
     werden, sonst steht die Bildunterschrift in der Aufhellung fuer
     dunklen Grund auf hellem Grund. */
  --muted: #6a655e;
  --bronze: #7d6134;
}

.reveal-media img {
  width: 100%;
  transform: scale(1.06);
  transition: transform 1.35s var(--ease), filter 1.35s var(--ease);
  filter: saturate(0.88);
}

.reveal-media.is-in img {
  transform: scale(1);
}

.reveal-media::after {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: bottom;
  background: var(--ink);
  transition: transform 1.05s var(--ease);
}

.reveal-media.is-in::after {
  transform: scaleY(0);
}

.reveal-media--tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.reveal-media--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reveal-media--square img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Bildunterschrift */
.media-caption {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-caption::before {
  content: '';
  flex: none;
  width: 1.1rem;
  height: 1px;
  margin-bottom: 0.25em;
  background: var(--bronze);
}

/* Hinweisbox (Platzhalter, Hinweise, Einschraenkungen) */
.note {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--bronze);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--paper-2);
}

.note svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  color: var(--bronze);
}

.note p {
  margin: 0;
  font-size: 0.94rem;
}

.section--dark .note {
  border-color: var(--line-dark-soft);
  border-left-color: var(--bronze);
  background: rgba(255, 255, 255, 0.03);
}

/* Platzhalter fuer noch nicht bestaetigte Unternehmensdaten */
.placeholder {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px dashed var(--bronze);
  border-radius: var(--r-sm);
  background: rgba(168, 129, 74, 0.08);
  color: var(--bronze);
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section--dark .placeholder {
  border-color: rgba(194, 160, 106, 0.55);
  background: rgba(194, 160, 106, 0.12);
  color: var(--bronze-3);
}

/* 12  Leistungsraster =================================================== */

.services {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .services__item--wide {
    grid-column: span 7;
  }
  .services__item--narrow {
    grid-column: span 5;
  }
}

/* Kachel mit Lichtkegel unter dem Zeiger */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 34vw, 430px);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.92);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter var(--t-slow) var(--ease);
}

.tile:hover .tile__media img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(11, 12, 14, 0.92) 0%,
    rgba(11, 12, 14, 0.6) 42%,
    rgba(11, 12, 14, 0.14) 100%
  );
  transition: opacity var(--t-med) var(--ease);
}

/* Lichtkegel: --mx/--my werden per JS gesetzt */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(194, 160, 106, 0.22),
    transparent 68%
  );
  transition: opacity var(--t-med) var(--ease);
}

.tile:hover::after {
  opacity: 1;
}

.tile__index {
  position: absolute;
  top: clamp(1.5rem, 2.6vw, 2.25rem);
  left: clamp(1.5rem, 2.6vw, 2.25rem);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.tile__icon {
  position: absolute;
  top: clamp(1.4rem, 2.6vw, 2.1rem);
  right: clamp(1.5rem, 2.6vw, 2.25rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

@media (min-width: 1024px) and (hover: hover) {
  .tile__icon {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.tile:hover .tile__icon {
  border-color: rgba(194, 160, 106, 0.55);
  background: rgba(194, 160, 106, 0.18);
}

.tile__icon svg {
  width: 1.24rem;
  height: 1.24rem;
  color: var(--bronze-2);
}

.tile h3 {
  color: #fff;
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
  letter-spacing: -0.024em;
}

.tile p {
  max-width: 44ch;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  line-height: 1.55;
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
  color: var(--bronze-2);
  font-size: 0.88rem;
  font-weight: 500;
}

.tile__more svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform var(--t-med) var(--ease);
}

.tile:hover .tile__more svg {
  transform: translateX(4px);
}

/* Restliche Leistungen als Liste mit Trennlinien statt Karten */
.service-list {
  display: grid;
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
  border-top: 1px solid var(--line);
}

.section--dark .service-list {
  border-top-color: var(--line-dark-soft);
}

.service-list__row {
  position: relative;
  display: grid;
  gap: 0.35rem 1.75rem;
  padding-block: clamp(1.15rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-fast) var(--ease),
    padding-left var(--t-med) var(--ease);
}

.section--dark .service-list__row {
  border-bottom-color: var(--line-dark-soft);
}

.service-list__row:hover {
  padding-left: 0.85rem;
  background: var(--paper-2);
}

.section--dark .service-list__row:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 760px) {
  .service-list__row {
    grid-template-columns: 2.6rem minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
    align-items: center;
  }
}

.service-list__num {
  color: var(--bronze);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.service-list__row h3 {
  font-size: 1.08rem;
  letter-spacing: -0.016em;
}

.service-list__row p {
  margin: 0;
  font-size: 0.94rem;
}

.service-list__go {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.section--dark .service-list__go {
  border-color: var(--line-dark);
  color: #fff;
}

.service-list__row:hover .service-list__go {
  border-color: var(--bronze);
  background: var(--bronze);
  color: #fff;
}

.service-list__go svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Verweisraster auf verwandte Leistungen (Unterseiten) */
.related {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

@media (min-width: 640px) {
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .related--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.related__item:hover {
  transform: translateY(-3px);
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
}

.related__item svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--bronze);
}

.related__item h3 {
  font-size: 1.02rem;
}

.related__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 13  Ablauf ============================================================ */

.steps {
  display: grid;
  counter-reset: step;
}

.steps__row {
  display: grid;
  gap: 0.6rem 2.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.35rem);
  border-bottom: 1px solid var(--line);
}

.steps__row:first-child {
  border-top: 1px solid var(--line);
}

.section--dark .steps__row {
  border-bottom-color: var(--line-dark-soft);
}

.section--dark .steps__row:first-child {
  border-top-color: var(--line-dark-soft);
}

.steps--light .steps__num {
  color: var(--bronze);
}

@media (min-width: 820px) {
  .steps__row {
    grid-template-columns: 4.5rem minmax(0, 0.95fr) minmax(0, 1.45fr);
    align-items: start;
  }
}

.steps__num {
  color: var(--bronze-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.steps__row h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
}

.steps__row p {
  margin: 0;
}

/* 14  Galerie =========================================================== */

.gallery {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.gallery.is-dragging * {
  pointer-events: none;
}

.gallery__item {
  flex: none;
  width: clamp(260px, 33vw, 440px);
  scroll-snap-align: start;
}

.gallery__item figure {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink-3);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.045);
}

.gallery__item figcaption {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.95rem;
}

.gallery__item figcaption b {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.014em;
}

.gallery__item figcaption span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-hint svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--bronze);
}

/* 15  Regionen & Einsatzgebiete ========================================= */

.local {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .local {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }
  .local--flip .local__media {
    order: 2;
  }
  /* Bewusst asymmetrische Einrueckung */
  .local--inset .local__body {
    padding-left: clamp(0rem, 4vw, 4rem);
  }
}

.local__body {
  display: grid;
  gap: 1.35rem;
  align-content: start;
}

.local__places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--grey);
  font-size: 0.9rem;
  transition: border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

a.chip:hover {
  border-color: var(--bronze);
  background: rgba(168, 129, 74, 0.07);
  color: var(--ink);
}

.section--dark .chip {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--grey-3);
}

.section--dark a.chip:hover {
  border-color: var(--bronze);
  background: rgba(194, 160, 106, 0.14);
  color: #fff;
}

/* Einsatzgebiete: dichtes Raster, Monospace-Ortsnamen */
.areas {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line-dark-soft);
  border-left: 1px solid var(--line-dark-soft);
  /* min(100%, ...) verhindert, dass eine Spalte breiter wird als der
     Viewport - sonst entsteht bei 360px seitliches Scrollen. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

@media (min-width: 560px) {
  .areas {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  }
}

.areas__cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--tap);
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--line-dark-soft);
  border-bottom: 1px solid var(--line-dark-soft);
  color: var(--grey-3);
  font-size: 0.94rem;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.areas__cell:hover {
  background: rgba(194, 160, 106, 0.1);
  color: #fff;
}

.areas__cell b {
  color: var(--bronze);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.areas__cell--lead {
  background: rgba(194, 160, 106, 0.09);
  color: #fff;
}

/* 16  FAQ =============================================================== */

.faq {
  display: grid;
  border-top: 1px solid var(--line);
}

.section--dark .faq {
  border-top-color: var(--line-dark-soft);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.section--dark .faq__item {
  border-bottom-color: var(--line-dark-soft);
}

.faq__item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.2rem, 2.2vw, 1.6rem);
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.016em;
  line-height: 1.35;
  list-style: none;
  transition: color var(--t-fast) var(--ease);
}

.section--dark .faq__item > summary {
  color: #fff;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary:hover {
  color: var(--bronze);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  margin-top: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}

.section--dark .faq__sign {
  border-color: var(--line-dark);
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-med) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.faq__sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__sign {
  border-color: var(--bronze);
  background: var(--bronze);
  color: #fff;
  transform: rotate(180deg);
}

.faq__item[open] .faq__sign::after {
  opacity: 0;
}

/* Aufklappen ohne JavaScript.
   <details> haelt den Antworttext immer im DOM - er ist also auch ohne
   JavaScript lesbar und fuer Suchmaschinen sichtbar. Browser, die
   ::details-content noch nicht kennen, klappen ohne Animation auf. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--t-med) var(--ease),
      content-visibility var(--t-med) allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }
}

.faq__body > div {
  padding-bottom: clamp(1.3rem, 2.4vw, 1.8rem);
}

.faq__body p {
  max-width: 78ch;
  margin-bottom: 0.8em;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* 17  Formular ========================================================== */

.form {
  display: grid;
  gap: 1.15rem;
}

.form__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field > label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.field__req {
  color: var(--bronze);
  font-size: 0.9em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.92rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.field 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='%236d6862' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.05rem;
  padding-right: 2.75rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--bronze);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 129, 74, 0.14);
}

.field__hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Fehlerzustand, inline unter dem Feld */
.field__error {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #a8443a;
  font-size: 0.8rem;
}

.field__error svg {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c2564a;
  background: #fdf7f6;
}

.field.has-error .field__error {
  display: flex;
}

/* Einverstaendnis */
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.consent input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  accent-color: var(--bronze);
}

.consent label {
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.55;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.2em;
}

.consent.has-error label {
  color: #a8443a;
}

/* Honeypot gegen automatisierte Eintraege */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rueckmeldung nach dem Absenden */
.form__status {
  display: none;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form__status.is-visible {
  display: flex;
}

.form__status svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}

.form__status--ok {
  border: 1px solid #b6cdb6;
  background: #f1f7f0;
  color: #34613a;
}

.form__status--err {
  border: 1px solid #e0b9b3;
  background: #fdf5f4;
  color: #8f3a30;
}

/* Ladezustand des Absende-Buttons */
.btn.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.btn.is-busy .btn__icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Kontaktkarten */
.contact-cards {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.contact-cards__row {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 560px) {
  .contact-cards__row {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.35rem 1.1rem;
  }
  .contact-cards__row svg {
    grid-row: span 2;
  }
}

.contact-cards__row svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--bronze);
}

.contact-cards__row dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-cards__row dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* 18  Handlungsaufforderung ============================================ */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

/* Weicher Bronzeschimmer im Hintergrund, bewusst kein Neon-Glow */
.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -12%;
  z-index: -1;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 129, 74, 0.22),
    transparent 62%
  );
  filter: blur(18px);
}

.cta__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: -0.034em;
}

.cta p {
  max-width: 52ch;
  margin-top: 1.1rem;
  color: var(--grey-3);
  font-size: var(--fs-lead);
  font-weight: 300;
}

.cta__actions {
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

@media (min-width: 520px) {
  .cta__actions {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }
}

@media (min-width: 900px) {
  .cta__actions {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    justify-items: stretch;
  }
}

/* 19  Fussbereich ====================================================== */

.footer {
  background: var(--ink-2);
  color: var(--grey-3);
  border-top: 1px solid var(--line-dark-soft);
}

.footer__top {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
  }
}

.footer__brand {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.footer__brand p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__col h4 {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.62rem;
}

.footer__col a {
  color: var(--grey-3);
  font-size: 0.91rem;
  transition: color var(--t-fast) var(--ease);
}

.footer__col a:hover {
  color: var(--bronze-2);
}

.footer__contact {
  display: grid;
  gap: 0.95rem;
}

.footer__contact dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__contact dd {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 0.95rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.footer__legal a:hover {
  color: #fff;
}

.footer__note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 20  Mobile Aktionsleiste ============================================= */

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  /* Deckend: die Leiste liegt dauerhaft ueber scrollendem Inhalt, ein
     Blur daran waere ein permanenter Filterpass pro Frame. */
  background: #0d0e11;
  border-top: 1px solid var(--line-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(105%);
  transition: transform var(--t-med) var(--ease);
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.6rem;
  border-radius: 100px;
  font-size: 0.89rem;
  font-weight: 500;
}

.mobile-cta a svg {
  width: 1rem;
  height: 1rem;
}

.mobile-cta__call {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-cta__quote {
  background: var(--bronze-solid);
  color: #fff;
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* Platz fuer die Leiste am Seitenende schaffen */
@media (max-width: 1023px) {
  .footer__bottom {
    padding-bottom: 5.5rem;
  }
}

/* 21  Animationen & Reveals ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

[data-reveal='fade'] {
  transform: none;
}

[data-reveal='left'] {
  transform: translate3d(-26px, 0, 0);
}

[data-reveal='right'] {
  transform: translate3d(26px, 0, 0);
}

/* Zeilenweiser Auftritt der Hero-Headline */
.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  animation: lineUp 1.05s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.1s);
}

@keyframes lineUp {
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Dauerhafte, ruhige Mikrobewegung: Statuspunkt */
.pulse {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 8px;
  height: 8px;
  flex: none;
}

.pulse::before,
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bronze-2);
}

.pulse::after {
  animation: pulseRing 2.6s var(--ease) infinite;
}

@keyframes pulseRing {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* Vertikale Trennlinie, die beim Scrollen mitwaechst */
.rule-grow {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}

.rule-grow.is-in {
  transform: scaleX(1);
}

.section--dark .rule-grow {
  background: var(--line-dark);
}

@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__line > span {
    transform: none;
  }
  .reveal-media::after {
    display: none;
  }
  .reveal-media img {
    transform: none;
  }
}

/* 22  Hilfsklassen ===================================================== */

.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;
}

.stack {
  display: grid;
  align-content: start;
  gap: 1.35rem;
}

.stack--sm {
  gap: 0.85rem;
}

.stack--lg {
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.mt-md {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.text-bronze {
  color: var(--bronze);
}

.nowrap {
  white-space: nowrap;
}

/* 24  Cookie-Hinweis ===================================================== */
/* Ablehnen und Akzeptieren sind gleich gross und mit einem Klick
   erreichbar. Der Hinweis blockiert die Seite nicht. */

.cookie {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  padding: 1.05rem 0 calc(1.05rem + env(safe-area-inset-bottom));
  background: #0d0e11;
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.7);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.cookie.is-in {
  transform: translateY(0);
}

.cookie__inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.cookie__title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cookie__text {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.cookie__text a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie__text a:hover {
  color: #fff;
}

.cookie__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.cookie__actions .btn {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
  white-space: normal;
}

@media (min-width: 860px) {
  .cookie__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }

  .cookie__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 22rem;
  }
}

/* 23  Mobile-Feinschliff: Lesbarkeit & Tap-Targets ===================== */
/* Die Schriftgroessen oben sind fuer grosse Schirme gesetzt, wo feinere
   Abstufungen wirken. Auf dem Telefon kippt dieselbe Abstufung ins
   Unleserliche, deshalb wird hier ein Boden eingezogen:
   Fliesstext mindestens 16px, Label und Bildunterschriften mindestens
   12px. Nur unterhalb 900px, damit das Desktop-Layout unberuehrt bleibt. */

@media (max-width: 899px) {
  /* Fliesstext in allen Bausteinen auf mindestens 16px. */
  .facts__row p,
  .service-list__row p,
  .tile p,
  .note p,
  .related__item p,
  .hero__seo,
  .footer__brand p,
  .areas__cell,
  .footer__col a,
  .footer__contact dd,
  .contact-cards__row dd,
  .drawer__contact dd,
  .drawer__link,
  .drawer__sub a,
  .chip,
  .consent label,
  .form-status,
  .btn,
  .footer__legal a,
  .topbar {
    font-size: 1rem;
  }

  /* Hinweise und Fehlermeldungen bleiben sekundaer, muessen aber
     ohne Zoom lesbar sein. */
  .field__hint,
  .field__error,
  .media-caption,
  .gallery-hint,
  .gallery__item figcaption span,
  .footer__note,
  .crumbs,
  .label,
  .hero__index dt,
  .footer__col h4,
  .footer__contact dt,
  .contact-cards__row dt,
  .areas__cell b,
  .brand__sub {
    font-size: 0.8rem;
  }

  /* iOS Safari zoomt beim Fokus in jedes Feld unter 16px hinein und
     verschiebt damit das ganze Layout. 1rem verhindert das. */
  .field input,
  .field textarea,
  .field select {
    font-size: 1rem;
  }

  /* Tap-Targets: alles, was kein Link im Fliesstext ist, bekommt die
     geforderten 44px Hoehe. Bei den Textlinks wird die Trefferflaeche
     ueber ein Pseudoelement vergroessert, damit die Zeilenhoehe im
     Absatz nicht auseinanderfaellt. */
  .brand,
  .footer__brand .link {
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
  }

  .footer__legal a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }

  /* Die Brotkrumen bleiben typografisch klein, die Trefferflaeche
     wird darunter unsichtbar auf 44px aufgezogen. */
  .crumbs ol {
    gap: 0 0.55rem;
  }

  .crumbs a {
    position: relative;
    display: inline-block;
  }

  .crumbs a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: var(--tap);
    transform: translateY(-50%);
  }
}

@media print {
  .header,
  .topbar,
  .mobile-cta,
  .drawer,
  .hero__scroll,
  body::after {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
