/* Archivo lokal gehostet (DSGVO: keine Verbindung zu Google-Servern) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-wght.woff2') format('woff2');
}

:root {
  --ink: #161B22;
  --white: #ffffff;
  --muted-dark: #9AA3AC;
  --muted-light: #6B6660;
  --surface: #f2f1ee;
  --border: #e6e4df;
  --success: #7ee2a8;
  --max-width: 1240px;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* hidden-Attribut immer respektieren, auch bei display:flex/grid-Regeln */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }

section[id] { scroll-margin-top: 24px; }

.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;
}

/* Sichtbare Fokus-Ringe für Tastaturnutzer */
:focus-visible {
  outline: 3px solid #4da3ff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Icons ---------- */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vertical-align: -0.12em;
}
.icon-lg { width: 1.4em; height: 1.4em; }

/* ---------- Scroll-Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease-out var(--d, 0s),
    transform 0.8s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  color: var(--white);
  /* Am Seitenanfang verschmilzt die Schrift leicht mit dem Bild (wie früher) */
  mix-blend-mode: difference;
}
/* Nach dem Scrollen bekommt der Header eine deckende Leiste,
   damit die Navigation nie direkt auf Seitentext liegt */
.site-header.is-scrolled {
  mix-blend-mode: normal;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

/* Brand: E-Monogramm ersetzt das E von ERWIN */
.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  overflow: visible;
}
.brand-mark rect { transform-box: fill-box; }
.brand-mark .eb-tower { transform-origin: bottom; }
.brand-mark .eb-floor-1,
.brand-mark .eb-floor-2,
.brand-mark .eb-floor-3 { transform-origin: left; }

.brand-word-main {
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  transform: translateY(1px);
}
.brand-word-sub {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 5.5px;
  line-height: 1;
  opacity: 0.7;
  padding-left: 2px;
}

/* Logo-Intro (Handoff Variante 2a „Aufbau") — läuft bei jedem Laden */
@keyframes eb-grow-y { 0% { transform: scaleY(0); } 14% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
@keyframes eb-arm-1  { 0%, 16% { transform: scaleX(0); } 28% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes eb-arm-2  { 0%, 26% { transform: scaleX(0); } 38% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes eb-arm-3  { 0%, 36% { transform: scaleX(0); } 48% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes eb-word     { 0%, 46% { opacity: 0; letter-spacing: 12px; } 62% { opacity: 1; letter-spacing: 4px; } 100% { opacity: 1; letter-spacing: 4px; } }
@keyframes eb-word-sub { 0%, 54% { opacity: 0; } 70% { opacity: 0.7; } 100% { opacity: 0.7; } }

html.play-intro .brand-mark .eb-tower   { animation: eb-grow-y 6s ease-out 1 both; }
html.play-intro .brand-mark .eb-floor-1 { animation: eb-arm-1 6s ease-out 1 both; }
html.play-intro .brand-mark .eb-floor-2 { animation: eb-arm-2 6s ease-out 1 both; }
html.play-intro .brand-mark .eb-floor-3 { animation: eb-arm-3 6s ease-out 1 both; }
html.play-intro .brand-word-main { animation: eb-word 6s ease-out 1 both; }
html.play-intro .brand-word-sub  { animation: eb-word-sub 6s ease-out 1 both; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 0;
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 0.7; }
.nav-cta {
  font-weight: 700 !important;
  border: 1px solid currentColor;
  padding: 10px 18px !important;
}

/* ---------- Hero („BAM"-Version: alles Wichtige above the fold) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

/* Crossfade-Slideshow mit Ken-Burns-Effekt */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Ruheposition = Endstand des Zooms, damit beim Ausblenden nichts zurückspringt */
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
  animation: hero-zoom 7s ease-out both;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.74));
}

/* Slide-Steuerung */
.hero-dots {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.hero-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
}
.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 1px solid var(--white);
  background: transparent;
  transition: background 0.3s ease;
}
.hero-dot.is-active::before { background: var(--white); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 48px;
}

.hero-eyebrow {
  margin: 0 0 26px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 3px solid var(--white);
  padding-left: 12px;
  align-self: flex-start;
}

/* Schriftgröße am längsten Wort „Nachunternehmer" ausgerichtet, damit nichts clippt */
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 6.6vw, 5.8rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span { display: inline-block; }

@keyframes line-up {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
html.play-intro .hero h1 .line span {
  animation: line-up 0.85s var(--ease-out) both;
}
html.play-intro .hero h1 .line:nth-child(1) span { animation-delay: 0.15s; }
html.play-intro .hero h1 .line:nth-child(2) span { animation-delay: 0.32s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
html.play-intro .hero-eyebrow   { animation: fade-up 0.7s ease-out 0.05s both; }
html.play-intro .hero-services  { animation: fade-up 0.7s ease-out 0.65s both; }
html.play-intro .hero-ctas      { animation: fade-up 0.7s ease-out 0.8s both; }
html.play-intro .hero-promise   { animation: fade-up 0.7s ease-out 0.95s both; }

/* Service-Quick-Strip */
.hero-services {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-services a {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(13, 17, 23, 0.35);
  backdrop-filter: blur(2px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-services a:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(13, 17, 23, 0.55);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}
.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.hero-call:hover { opacity: 0.75; }
.hero-call .icon { font-size: 1.2em; }

/* Harte Promise-Bar am Hero-Boden */
.hero-promise {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 17, 23, 0.55);
  backdrop-filter: blur(4px);
}
.hero-contactbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-cb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 10px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
  transition: background 0.15s ease;
}
.hero-cb-item + .hero-cb-item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 26px;
}
a.hero-cb-item:hover { background: rgba(255, 255, 255, 0.06); }
.hero-cb-item .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  color: var(--white);
}
.hero-cb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-cb-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-cb-value {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 18px 44px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--surface); }
.btn:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: transparent; border-color: var(--white); }

/* ---------- Kicker (Sektions-Label) ---------- */
.kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 3px;
  background: currentColor;
  margin-right: 12px;
  vertical-align: 0.2em;
}
.kicker-light { color: var(--muted-dark); }

/* ---------- Leistungs-Kacheln ---------- */
/* 2×2-Raster laut Design-System; eine Spalte unter 1000px,
   damit „Betonoberflächen" neben dem Anfragen-Button Platz hat */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--ink);
}
@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr; }
}
.tile {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
  background-color: var(--ink);
  overflow: hidden;
}
.tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.tile:hover .tile-bg,
.tile:focus-visible .tile-bg { transform: scale(1.05); }
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.88) 0%, rgba(13, 17, 23, 0.3) 55%, rgba(13, 17, 23, 0.12) 100%);
  transition: background 0.25s ease;
}
.tile:hover::before {
  background: linear-gradient(to top, rgba(13, 17, 23, 0.94) 0%, rgba(13, 17, 23, 0.5) 55%, rgba(13, 17, 23, 0.28) 100%);
}
.tile-bg-eisen { background-image: url('../img/fotos/tile-eisenflechten.jpg'); }
.tile-bg-fuge  { background-image: url('../img/fotos/tile-fugenschnitt.jpg'); }
.tile-bg-beton { background-image: url('../img/fotos/tile-betonoberflaechen.jpg'); }
.tile-bg-boden { background-image: url('../img/fotos/tile-boden.jpg'); }

.tile-num {
  position: absolute;
  top: 28px;
  left: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  z-index: 2;
}
.tile-content {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
/* Textspalte darf schrumpfen, damit der Anfragen-Button nie abgeschnitten wird */
.tile-content > div { min-width: 0; }
.tile h3 { overflow-wrap: break-word; }
.tile h3 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.tile p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}
.tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.tile-btn .icon { transition: transform 0.2s var(--ease-out); }
.tile:hover .tile-btn {
  background: var(--white);
  color: var(--ink);
}
.tile:hover .tile-btn .icon { transform: translateX(3px); }

/* ---------- Ablauf ---------- */
.steps-section {
  background: var(--white);
  padding: 120px 0;
}
.steps-section .kicker { text-align: center; }
.steps-section h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}
.steps-lead {
  margin: 0 auto 72px;
  text-align: center;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--muted-light);
  font-weight: 600;
  max-width: 560px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}
.step {
  border-top: 4px solid var(--ink);
  padding-top: 24px;
}
.step-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.98rem;
}

/* ---------- Referenzen ---------- */
.refs-section {
  background: var(--surface);
  padding: 120px 0;
}
.refs-section h2 {
  margin: 0 0 56px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}
.ref-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ref-img {
  aspect-ratio: 3 / 2;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.ref-card:hover .ref-img { transform: scale(1.04); }
.ref-body { padding: 24px 26px 28px; }
.ref-body p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.ref-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ---------- Galerie: Auto-Scroll-Marquee (aus dem Design-System-Kit) ---------- */
.marquee-section {
  background: var(--ink);
  color: var(--white);
  padding: 110px 0 120px;
  overflow: hidden;
}
.marquee-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.marquee-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.marquee-head p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 320px;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.shot {
  position: relative;
  width: 420px;
  height: 300px;
  flex: 0 0 auto;
  margin: 0 20px 0 0;
  overflow: hidden;
  background: #0d1117;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  filter: saturate(0.9);
}
.shot:hover img { transform: scale(1.06); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.85) 0%, rgba(13, 17, 23, 0.05) 60%);
}
.shot figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.shot:hover figcaption {
  opacity: 1;
  transform: none;
}
/* Ohne Hover (Touch): Captions immer zeigen */
@media (hover: none) {
  .shot figcaption { opacity: 1; transform: none; }
}

/* ---------- Einsatzgebiet ---------- */
.region {
  background: var(--ink);
  color: var(--white);
  padding: 110px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.region-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: center;
}
.region h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
/* Animierte Signal-Karte: Verbindungen von Ludwigshafen in die Region */
.region-map svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}
.map-region {
  fill: rgba(255, 255, 255, 0.18);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.map-link {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out) var(--ld, 0s);
}
.region-map.is-visible .map-link { stroke-dashoffset: 0; }
@keyframes map-signal {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
.map-signal {
  stroke: var(--white);
  stroke-width: 2;
  stroke-dasharray: 0.08 0.92;
  stroke-dashoffset: 1;
  opacity: 0;
}
.region-map.is-visible .map-signal {
  opacity: 0.9;
  animation: map-signal 2.8s linear infinite;
  animation-delay: calc(var(--ld, 0s) + 1.1s);
}
/* Stadt-Marker: gedrehtes Quadrat (Marken-Stil, eckig) mit Kernpunkt */
.node-mark {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(45deg) scale(0);
  transition: transform 0.5s var(--ease-out) calc(var(--nd, 0s) + 0.6s);
}
.region-map.is-visible .node-mark { transform: rotate(45deg) scale(1); }
.node-core {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease-out) calc(var(--nd, 0s) + 0.75s);
}
.region-map.is-visible .node-core { transform: scale(1); }
.map-node text {
  fill: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease calc(var(--nd, 0s) + 0.85s);
}
.map-node text.t-end { text-anchor: end; }
.region-map.is-visible .map-node text { opacity: 1; }

/* Basis-Station: Radar-Ringe, rotierender Ring, Puls und Quadrat-Kern */
.map-radar {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}
.map-radar-2 { stroke: rgba(255, 255, 255, 0.06); }
@keyframes map-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.map-base-spin {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  stroke-dasharray: 14 8;
  transform-box: fill-box;
  transform-origin: center;
}
.region-map.is-visible .map-base-spin { animation: map-spin 14s linear infinite; }
.map-base-ring {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
@keyframes map-pulse {
  from { transform: scale(0.5); opacity: 0.9; }
  to   { transform: scale(2.4); opacity: 0; }
}
.region-map.is-visible .map-base-ring { animation: map-pulse 2.4s ease-out infinite; }
.map-base-mark {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(45deg);
}
.map-base-label {
  fill: var(--white);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--ink);
  color: var(--white);
  padding: 120px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 72px;
  align-items: start;
}
.contact h2 {
  margin: 0 0 40px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact-big {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}
.contact-big:hover { color: var(--muted-dark); }
.contact-address {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-intro {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-dark);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 52px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(154, 163, 172, 0.6); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--white);
}
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #ff8080; }

/* Select: eigener Pfeil, dunkles Design */
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3AC' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.contact-form select option { color: var(--ink); }
.contact-form select:required:invalid { color: rgba(154, 163, 172, 0.6); }

/* Datenschutz-Einwilligung */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 0;
  margin-top: 1px;
  accent-color: #ffffff;
  cursor: pointer;
}
.form-consent label {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-dark);
  cursor: pointer;
}
.form-consent a { color: var(--white); }

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.field-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9d9d;
}
.contact-form .btn-submit {
  width: 100%;
  align-self: stretch;
  text-align: center;
  margin-top: 4px;
}
.form-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted-dark);
}
.form-hint a { color: inherit; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--success);
}
.form-success:focus { outline: none; }
.form-error-msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff9d9d;
}
.form-error-msg a { color: inherit; }
.form-error-msg:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-nav a {
  text-decoration: none;
  margin-left: 24px;
}
.footer-nav a:first-child { margin-left: 0; }
.footer-nav a:hover { color: var(--white); }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.legal-page .site-header {
  position: sticky;
  mix-blend-mode: normal;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px;
}
.legal-main h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.legal-main h2 { font-size: 1.1rem; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header-inner { height: 80px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word-main { font-size: 1.95rem; }
  .brand-word-sub { font-size: 0.55rem; letter-spacing: 4px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 0.78rem; }
  .nav-cta { padding: 8px 12px !important; }
  .hero-inner { padding-top: 120px; }
  .hero-contactbar { grid-template-columns: 1fr; }
  .hero-cb-item { padding: 14px 6px; }
  .hero-cb-item + .hero-cb-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 6px;
  }
  .tile { min-height: 38vh; }
  .tile-content { flex-direction: column; align-items: flex-start; }
  .steps-section, .refs-section, .region, .contact { padding: 88px 0; }
  .contact-inner { gap: 48px; }
  .marquee-section { padding: 80px 0 88px; }
  .shot { width: 300px; height: 220px; margin-right: 12px; }
  .shot figcaption { left: 16px; bottom: 14px; font-size: 0.9rem; }
}

/* Sehr kleine Screens: Navigation auf CTA reduzieren, damit nichts überläuft */
@media (max-width: 560px) {
  .main-nav a:not(.nav-cta) { display: none; }
  .hero-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.play-intro .brand-mark rect,
  html.play-intro .brand-word-main,
  html.play-intro .brand-word-sub,
  html.play-intro .hero h1 .line span,
  html.play-intro .hero-eyebrow,
  html.play-intro .hero-services,
  html.play-intro .hero-ctas,
  html.play-intro .hero-promise {
    animation: none !important;
  }
  .hero-slide {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  .tile-bg, .ref-img, .shot img, .shot figcaption, .tile-btn .icon {
    transition: none !important;
  }
  /* Marquee steht still, bleibt aber manuell scrollbar */
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  /* Karte: Verbindungen und Marker sofort sichtbar, keine Signale/Pulse/Rotation */
  .map-link { stroke-dashoffset: 0; transition: none; }
  .map-signal { display: none; }
  .node-mark { transform: rotate(45deg) scale(1); transition: none; }
  .node-core { transform: scale(1); transition: none; }
  .map-node text { opacity: 1; transition: none; }
  .region-map.is-visible .map-base-ring { animation: none; }
  .region-map.is-visible .map-base-spin { animation: none; }
}

/* ---------- Blocksatz für Fließtexte ---------- */
.service-intro,
.service-main p,
.legal-main p,
.steps-lead,
.step p,
.marquee-head p,
.contact-side-intro,
.check-list li,
.contact-check li {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Kurze Einzelzeilen bleiben linksbündig */
.service-main .service-cta p,
.service-main p.service-back {
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

/* ---------- Leistungs-Detailseiten ---------- */
.service-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Oben stark abgedunkelt, damit das Logo im fixierten Header lesbar bleibt */
  background: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.45) 200px, rgba(13, 17, 23, 0.5) 55%, rgba(13, 17, 23, 0.82));
}
.service-hero .container { position: relative; padding-top: 170px; padding-bottom: 56px; }
.service-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 12px 0 12px;
}
.service-claim { font-size: 1.15rem; color: var(--muted-dark); max-width: 640px; margin: 0; }
.service-main { padding: 64px 0 90px; }
.service-main .container { max-width: 820px; }
.service-intro { font-size: 1.12rem; line-height: 1.75; }
.service-main h2 { font-size: 1.3rem; margin: 46px 0 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.service-main p { line-height: 1.7; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; line-height: 1.6; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--ink);
}
.service-cta {
  margin-top: 64px;
  background: var(--ink);
  color: var(--white);
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.service-cta p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-tel {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px 18px;
}
.cta-tel:hover { border-color: var(--white); }
.service-back { margin-top: 44px; }
.service-back a { font-weight: 600; }
@media (max-width: 760px) {
  .service-hero .container { padding-top: 130px; padding-bottom: 40px; }
  .service-main { padding: 48px 0 70px; }
  .service-cta { padding: 26px 22px; }
}

/* ---------- Navigation: Leistungen-Dropdown ---------- */
.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
/* Bei geöffnetem Dropdown den Differenz-Blend abschalten, sonst scheint
   der Seitentext durch das Menü hindurch. Der Hintergrund blendet weich ein. */
.site-header { transition: background-color 0.25s ease; }
.site-header:has(.has-dropdown:hover),
.site-header:has(.has-dropdown:focus-within) {
  mix-blend-mode: normal;
  background: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-dropdown { transition: none; }
}
.nav-dropdown a {
  padding: 11px 18px !important;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- Footer: Leistungs-Links ---------- */
.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}
.footer-services a { color: var(--muted-dark); text-decoration: none; }
.footer-services a:hover { color: var(--white); }
.footer-services .footer-services-label {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .nav-dropdown { display: none !important; }
}

/* ---------- Hero: Schnellanfrage-Formular ---------- */
.hero-main { min-width: 0; }
.hero-quickform {
  width: 100%;
  max-width: 500px;
  margin-top: 44px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(13, 17, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-quickform-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-quickform-sub { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted-dark); }
.hero-quickform input[type="text"],
.hero-quickform input[type="tel"],
.hero-quickform input[type="email"],
.hero-quickform textarea,
.hero-quickform select {
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.hero-quickform input::placeholder { color: rgba(154, 163, 172, 0.75); }
.hero-quickform input:focus,
.hero-quickform textarea:focus,
.hero-quickform select:focus { outline: none; border-color: var(--white); }
.hero-quickform textarea { resize: vertical; min-height: 76px; font-family: inherit; }
.hero-quickform textarea::placeholder { color: rgba(154, 163, 172, 0.75); }
.hero-quickform select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3AC' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.hero-quickform select option { color: var(--ink); }
.hero-quickform select:required:invalid { color: rgba(154, 163, 172, 0.75); }
.hero-consent label { font-size: 0.72rem; line-height: 1.45; }
.qf-submit { width: 100%; }
.hero-quickform-alt { margin: 0; font-size: 0.8rem; color: var(--muted-dark); }
.hero-quickform-alt a { color: var(--white); font-weight: 600; }
.hero-quickform .form-success,
.hero-quickform .form-error-msg { margin: 0; font-size: 0.85rem; }

@media (min-width: 1080px) {
  .hero .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 500px);
    gap: 64px;
    align-items: center;
  }
  .hero-quickform { margin-top: 0; justify-self: end; }
  /* Headline an die schmalere linke Spalte anpassen, damit nichts clippt */
  .hero h1 { font-size: clamp(1.7rem, 4vw, 3.7rem); }
}

/* ---------- Kontakt-Bereich ohne Formular: Checkliste + CTA ---------- */
#quick-form { scroll-margin-top: 110px; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-side-intro { margin: 0; color: var(--muted-dark); line-height: 1.65; }
.contact-check { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 13px; }
.contact-check li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
  color: var(--muted-dark);
}
.contact-check li strong { color: var(--white); }
.contact-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--white);
}
.contact-cta { align-self: flex-start; }
.contact-note { margin: 0; font-size: 0.85rem; color: var(--muted-dark); }
