/* G&U Siebdruck & Werbetechnik – gemeinsames Stylesheet */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Ersatzschrift, bis Archivo geladen ist: Arial, auf die Laufweite von Archivo gedehnt (im Browser gemessen),
   damit beim Schriftwechsel keine neuen Zeilenumbrüche entstehen und das Layout nicht springt */
@font-face { font-family: "Archivo Ersatz"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; font-stretch: 50% 105%; size-adjust: 98%; ascent-override: 89.6%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; font-stretch: 106% 118%; size-adjust: 111%; ascent-override: 79.1%; descent-override: 18.9%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; font-stretch: 119% 200%; size-adjust: 125%; ascent-override: 70.2%; descent-override: 16.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 1000; font-stretch: 50% 105%; size-adjust: 97%; ascent-override: 90.5%; descent-override: 21.6%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 750; font-stretch: 106% 118%; size-adjust: 109%; ascent-override: 80.6%; descent-override: 19.3%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 751 1000; font-stretch: 106% 118%; size-adjust: 116%; ascent-override: 75.7%; descent-override: 18.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Ersatz"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 1000; font-stretch: 119% 200%; size-adjust: 130%; ascent-override: 67.5%; descent-override: 16.2%; line-gap-override: 0%; }

:root {
  --grund: #252d31;
  --bahn: #151a1d;
  --bahn-hell: #1d2428;
  --naht: rgba(244, 246, 245, 0.11);
  --linie: #56626a;
  --weiss: #f4f6f5;
  --text-2: #aeb8bd;
  --gelb: #ffd100;
  --gelb-hell: #ffe066;
  --gelb-text: #4a3d00;
  --magenta: #e4007c;
  --magenta-hell: #ff4fa7;
  --cyan: #00a0e3;
  --fehler: #ff9bb0;

  --verlauf-bahn: linear-gradient(155deg, #20282c 0%, #161b1e 45%, #101416 100%);
  --verlauf-plan: linear-gradient(160deg, #252d32 0%, #1a2024 100%);
  --verlauf-gelb: linear-gradient(115deg, #ffbf00 0%, #ffd100 45%, #ffe25a 100%);
  --verlauf-magenta: linear-gradient(115deg, #b3005c 0%, #e4007c 50%, #ff3f9c 100%);
  --lichtkante: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  /* Dichter, weicher Halo für Text auf Fotos – hält 4,5:1 auch auf hellen Bildstellen */
  --foto-schatten: 0 0 2px rgba(12, 15, 17, 0.9), 0 1px 3px rgba(12, 15, 17, 0.9), 0 0 14px rgba(12, 15, 17, 0.85), 0 0 32px rgba(12, 15, 17, 0.7);

  --font: "Archivo", "Archivo Ersatz", "Arial Nova", Arial, sans-serif;
  --fs-klein: 0.9375rem;
  --fs-text: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  --fs-h2: clamp(2.1rem, 1rem + 3.2vw, 4.25rem);
  --fs-mass: clamp(1.5rem, 0.9rem + 1.25vw, 2.25rem);

  --saum: clamp(6px, 0.75vw, 12px);
  --innen: clamp(1.25rem, 4vw, 4.5rem);
  --r-bahn: clamp(18px, 2.2vw, 32px);
  --r-bild: clamp(12px, 1.2vw, 18px);
  --kopf-h: 4.75rem;
  --ausrollen: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--gelb);
  scrollbar-color: var(--linie) var(--grund);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + 2rem);
}

body {
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--saum);
  background: var(--grund) linear-gradient(180deg, #2c353a 0%, var(--grund) 35%, #1c2327 100%) no-repeat;
  color: var(--weiss);
  font-family: var(--font);
  font-size: var(--fs-text);
  font-stretch: 100%;
  line-height: 1.6;
  caret-color: var(--gelb);
}

::selection { background: var(--gelb); color: var(--bahn); }

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }

p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--gelb);
  color: var(--bahn);
  font-weight: 700;
}
.sprung:focus { top: 1rem; outline-color: var(--weiss); }

/* Versalien-Stimme */
.versal {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

/* Schaltflächen */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, background-position 0.35s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.6; cursor: progress; }

/* Verlauf wandert beim Überfahren ins Helle – Position statt Farbe, damit es weich überblendet */
.knopf--gelb {
  background: linear-gradient(110deg, #ffc400 0%, var(--gelb) 45%, #ffe680 100%) 0 0 / 220% 100%;
  color: var(--bahn);
}
.knopf--gelb:hover { background-position: 100% 0; }

.knopf--geist { border-color: rgba(244, 246, 245, 0.55); color: var(--weiss); }
.knopf--geist:hover { border-color: var(--weiss); background: rgba(244, 246, 245, 0.1); }

.knopf--dunkel { background: var(--bahn); color: var(--weiss); }
.knopf--dunkel:hover { background: #2c353a; }

.knopf--weiss { background: var(--weiss); color: var(--bahn); }
.knopf--weiss:hover { background: #ffffff; }

/* Themen-Buttons in CMYK; Gelb ist .knopf--gelb */
.knopf--magenta {
  background: linear-gradient(110deg, #a30055 0%, #cc006f 50%, var(--magenta) 100%) 0 0 / 220% 100%;
  color: #ffffff;
}
.knopf--cyan {
  background: linear-gradient(110deg, #0096d8 0%, var(--cyan) 50%, #5cc8f2 100%) 0 0 / 220% 100%;
  color: var(--bahn);
}
.knopf--schwarz {
  background: linear-gradient(110deg, #000000 0%, #0b0e10 50%, #2a3237 100%) 0 0 / 220% 100%;
  border-color: rgba(244, 246, 245, 0.4);
  color: var(--weiss);
}
.knopf--magenta:hover,
.knopf--cyan:hover,
.knopf--schwarz:hover { background-position: 100% 0; }
.knopf--schwarz:hover { border-color: var(--weiss); }

/* Themenfarben nach CMYK: Siebdruck Magenta, Textildruck Gelb, Werbetechnik Cyan; Schwarz als Reserve */
.thema--magenta { --thema-text: var(--magenta-hell); }
.thema--gelb { --thema-text: var(--gelb); }
.thema--cyan { --thema-text: var(--cyan); }
.thema--schwarz { --thema-text: var(--weiss); }

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Kopfleiste */
/* Folgt der Seitenbreite von höchstens 1920px */
.kopf {
  position: fixed;
  top: var(--saum);
  left: 50%;
  z-index: 50;
  width: calc(min(100%, 1920px) - 2 * var(--saum));
  translate: -50% 0;
  border-radius: var(--r-bahn);
  /* Der Wechsel in den fixierten Zustand gleitet. Breite und Höhe bewusst als Übergang:
     Die Leiste ist fixiert und löst keinen Umbruch im Seiteninhalt aus. */
  transition:
    background-color 0.35s,
    box-shadow 0.45s,
    width 0.55s var(--ausrollen);
}

/* Fixiert: niedriger, heller als die Bahnen und mit Schlagschatten, damit sich die Leiste abhebt */
.kopf.ist-fixiert,
.kopf.menue-offen {
  background: rgba(48, 58, 64, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 22px 44px -8px rgba(0, 0, 0, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Desktop: fixiert 20 % schmaler, aber nie schmaler als der Inhalt braucht */
@media (min-width: 62.01rem) {
  .kopf.ist-fixiert {
    width: min(
      calc(min(100%, 1920px) - 2 * var(--saum)),
      max(calc((min(100%, 1920px) - 2 * var(--saum)) * 0.8), 60rem)
    );
  }
  .kopf.ist-fixiert .kopf__innen { padding-inline: clamp(1rem, 2vw, 2rem); }
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--kopf-h);
  padding-inline: var(--innen);
  transition: height 0.45s var(--ausrollen), padding-inline 0.45s var(--ausrollen);
}
.kopf.ist-fixiert .kopf__innen { height: calc(var(--kopf-h) - 1rem); }

.kopf__logo { flex: none; }
.kopf__logo img {
  width: clamp(150px, 13vw, 190px);
  transition: width 0.45s var(--ausrollen);
}
.kopf.ist-fixiert .kopf__logo img { width: clamp(130px, 11vw, 160px); }
.kopf.ist-fixiert .nav a { text-shadow: none; }

.nav { margin-left: auto; }

.nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding-block: 0.6rem;
  color: var(--weiss);
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  /* Unterstreichung als Farbstrich: läuft beim Überfahren von links ein und rechts wieder hinaus */
  background: linear-gradient(var(--unterstrich, var(--gelb)), var(--unterstrich, var(--gelb))) 100% calc(100% - 0.1em) / 0 0.14em no-repeat;
  background-origin: content-box;
  transition: background-size 0.45s var(--ausrollen);
}
/* Unterstreichung in der Themenfarbe des Menüpunkts */
.nav a[href$="siebdruck/"] { --unterstrich: var(--magenta-hell); }
.nav a[href$="textildruck/"] { --unterstrich: var(--gelb); }
.nav a[href$="werbetechnik/"] { --unterstrich: var(--cyan); }

.nav a:hover,
.nav a[aria-current="page"] {
  background-position-x: 0;
  background-size: 100% 0.14em;
}

.kopf__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(110deg, #ffc400 0%, var(--gelb) 45%, #ffe680 100%) 0 0 / 220% 100%;
  color: var(--bahn);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-position 0.35s;
}
.kopf__tel:hover { background-position: 100% 0; }

.kopf__menue svg { flex: none; }
.kopf__menue {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 2px solid rgba(244, 246, 245, 0.45);
  border-radius: 999px;
  background: rgba(21, 26, 29, 0.35);
  color: var(--weiss);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Hero: Foto-Bahn mit Wortmarke */
.held__bahn {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(36rem, calc(100svh - 2 * var(--saum)), 62rem);
  overflow: hidden;
  border-radius: var(--r-bahn);
  background: var(--bahn);
  box-shadow: var(--lichtkante);
}

.held__bahn--klein { min-height: clamp(28rem, 62svh, 40rem); }

.held__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.held__bahn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(12, 15, 17, 0.8) 0%,
    rgba(12, 15, 17, 0.38) 30%,
    rgba(12, 15, 17, 0.12) 50%,
    rgba(12, 15, 17, 0.55) 74%,
    rgba(12, 15, 17, 0.9) 100%);
}

.held__inhalt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 3rem;
  width: 100%;
  padding: calc(var(--kopf-h) + clamp(0.75rem, 2.5vw, 2rem)) var(--innen) clamp(1.5rem, 3.5vw, 3rem);
}

.wortmarke {
  display: inline-block;
  font-size: 14vw;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.held__zeile {
  display: block;
  margin-top: clamp(0.9rem, 1.8vw, 1.5rem);
  font-size: clamp(1rem, 0.75rem + 1vw, 1.625rem);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: var(--foto-schatten);
}

.held__unten {
  display: grid;
  grid-template-columns: minmax(0, 38rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.held__text p {
  max-width: 36ch;
  margin-bottom: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  text-shadow: var(--foto-schatten);
}

.held__ort {
  margin: 0;
  font-size: clamp(0.85rem, 0.7rem + 0.4vw, 1.05rem);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
  text-shadow: var(--foto-schatten);
}
.held__ort span { display: block; }

/* Fokusring auf dem Foto mit dunkler Unterlage, damit er sich von hellen Bildstellen abhebt */
.held__inhalt :focus-visible { box-shadow: 0 0 0 9px rgba(12, 15, 17, 0.85); }

/* Farbbänder: Laufband als Unterkante des Heros und Handlungsbänder zwischen den Bahnen */
.volant,
.volant-cta {
  position: relative;
  isolation: isolate;
  background: var(--verlauf-gelb);
  color: var(--bahn);
}

/* Punktraster als Druckstruktur, läuft nach links aus */
.volant-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../img/punktraster-hell-2000.webp") right -6rem center / 1100px auto no-repeat;
  /* Dieselbe Datei wie das helle Raster, schwarz gefiltert – spart einen zweiten Download */
  filter: brightness(0);
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 85%);
  pointer-events: none;
}

/* Schrift läuft an beiden Enden weich aus, statt an der Rundung abzuschneiden */
.volant__fenster {
  overflow: hidden;
  padding-block: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(2.5rem, 7vw, 6rem), #000 calc(100% - clamp(2.5rem, 7vw, 6rem)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(2.5rem, 7vw, 6rem), #000 calc(100% - clamp(2.5rem, 7vw, 6rem)), transparent 100%);
}

.volant__lauf {
  display: flex;
  width: max-content;
  will-change: transform;
}

.volant__gruppe {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.4rem;
  padding-right: 1.4rem;
  font-size: clamp(0.85rem, 0.75rem + 0.35vw, 1.1rem);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.naht {
  display: block;
  flex: none;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
}

.volant-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: var(--saum);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--innen);
  border-radius: var(--r-bahn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.volant-cta--magenta {
  background: var(--verlauf-magenta);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.volant-cta__frage {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2rem);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.3;
}

.volant-cta :focus-visible { outline-color: var(--bahn); }
.volant-cta--magenta :focus-visible { outline-color: #ffffff; }

/* Bahnen */
.bahn {
  position: relative;
  isolation: isolate;
  margin-top: var(--saum);
  padding: clamp(2.75rem, 6vw, 6rem) var(--innen);
  border-radius: var(--r-bahn);
  background: var(--verlauf-bahn);
  box-shadow: var(--lichtkante);
}

/* Helles Punktraster läuft aus der oberen rechten Ecke aus */
.bahn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../img/punktraster-hell-2000.webp") right -12rem top -10rem / min(1600px, 130%) auto no-repeat;
  opacity: 0.08;
  -webkit-mask-image: radial-gradient(85% 75% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(85% 75% at 100% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.bahn h2 {
  font-size: var(--fs-h2);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.bahn__kopf {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}
.bahn__kopf p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

/* Lange Einzelwörter (MASCHINENPARK) brauchen die volle Breite */
.bahn__kopf--gestapelt {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* Überschriften in schmalen Spalten kleiner, damit lange Wörter nicht in die Nachbarspalte laufen */
.zweispalter h2,
.ueber h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.2rem); }

.textlink {
  color: var(--weiss);
  font-weight: 700;
  text-decoration-color: var(--gelb);
}
.textlink:hover { text-decoration-thickness: 0.16em; }

/* Leistungen */
.leistungen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.leistung {
  position: relative;
  display: flex;
  flex-direction: column;
}

.leistung__bild {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  border-radius: var(--r-bild);
  object-fit: cover;
  transition: filter 0.4s, transform 0.8s var(--ausrollen);
}

.leistung__mass {
  order: 1;
  margin: 0 0 0.4rem;
  color: var(--thema-text, var(--gelb));
  font-size: var(--fs-mass);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leistung h3 {
  order: 2;
  margin-bottom: 0.6rem;
  font-size: 1.125rem;
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

.leistung__text {
  order: 3;
  margin-bottom: 1.25rem;
  color: var(--text-2);
  font-size: var(--fs-klein);
  line-height: 1.55;
}

/* Themen-Button; die gestreckte Fläche macht die ganze Kachel klickbar */
.leistung__knopf {
  order: 4;
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.9rem;
  padding: 0 1.25rem;
  font-size: var(--fs-klein);
}
.leistung__knopf::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-bild);
}

.leistung:hover .leistung__bild { filter: brightness(1.1) saturate(1.1); transform: scale(1.025); }
.leistung:hover .leistung__knopf { background-position: 100% 0; }

/* Maschinenpark */
.maschinen {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.bahn__kopf .maschinen__flaeche {
  font-size: clamp(1.1rem, 0.85rem + 0.8vw, 1.6rem);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.masstabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.masstabelle th,
.masstabelle td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--naht);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}

.masstabelle thead th {
  padding-top: 0;
  color: var(--text-2);
  font-size: var(--fs-klein);
  font-weight: 600;
}

.masstabelle tbody th { display: flex; align-items: baseline; gap: 0.75rem; }

.masstabelle td {
  padding-left: 1rem;
  font-stretch: 90%;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.masstabelle .punkt {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--farbe, transparent);
  box-shadow: inset 0 0 0 1.5px var(--rand, var(--farbe, var(--linie)));
}

.masstabelle tr.ist-aktiv th,
.masstabelle tr.ist-aktiv td { color: var(--gelb); }

.plan {
  position: sticky;
  top: calc(var(--kopf-h) + 2rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-bild);
  background: var(--verlauf-plan);
  box-shadow: var(--lichtkante);
}

.plan svg { width: 100%; overflow: visible; font-family: var(--font); }

.plan figcaption {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: var(--fs-klein);
}

.fl {
  fill-opacity: 0.16;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 0.2s, stroke-opacity 0.2s;
}
.fl--a { fill: var(--gelb); stroke: var(--gelb); }
.fl--b { fill: var(--magenta-hell); stroke: var(--magenta-hell); }
.fl--c { fill: var(--cyan); stroke: var(--cyan); }
.fl--d { fill: var(--weiss); stroke: var(--weiss); }
.fl--e { fill: var(--text-2); stroke: var(--text-2); }

.plan.hat-fokus .fl { fill-opacity: 0.04; stroke-opacity: 0.3; }
.plan.hat-fokus .fl.ist-aktiv { fill-opacity: 0.45; stroke-opacity: 1; }

.plan text {
  fill: var(--weiss);
  font-size: 7.5px;
  font-weight: 700;
  /* Dunkler Rand um die Ziffern – lesbar auch auf den farbigen Flächen */
  paint-order: stroke;
  stroke: #151a1d;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.mensch circle,
.mensch rect { fill: var(--text-2); }
.boden { stroke: var(--linie); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Materialien auf Gelb mit Punktraster */
.bahn--gelb {
  overflow: hidden;
  background: var(--verlauf-gelb);
  color: var(--bahn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bahn--gelb::before {
  background: url("../img/punktraster-hell-2000.webp") right -8rem top -6rem / min(1500px, 120%) auto no-repeat;
  filter: brightness(0);
  opacity: 0.16;
  /* Raster aus der unteren rechten Ecke – der Einleitungstext oben bleibt frei */
  -webkit-mask-image: linear-gradient(330deg, #000 5%, transparent 60%);
  mask-image: linear-gradient(330deg, #000 5%, transparent 60%);
}

.bahn--gelb .bahn__kopf p,
.bahn--gelb .material__fuss {
  color: var(--bahn);
  font-weight: 600;
}
.bahn--gelb :focus-visible { outline-color: var(--bahn); }

.material-liste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.55em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.6rem, 0.7rem + 3.3vw, 4.25rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.material-liste li { display: flex; align-items: center; gap: 0.55em; }
.material-liste li::before {
  content: "";
  flex: none;
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  background: currentColor;
}

.material__fuss {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: var(--fs-lead);
  font-weight: 600;
}
.material__fuss a { color: var(--bahn); font-weight: 800; }

/* Ablauf */
.ablauf-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.ablauf__bild {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border-radius: var(--r-bild);
  object-fit: cover;
  object-position: 55% 50%;
}
/* Nebeneinander richtet sich das Bild nach dem Text – Hochformate dehnen die Bahn sonst weit auf */
@media (min-width: 64.01rem) {
  .ablauf__bild { height: 0; min-height: max(24rem, 100%); }
}

.ablauf__text > p { margin-top: 1.25rem; color: var(--text-2); }

.ablauf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.ablauf li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--naht);
  counter-increment: schritt;
}

.ablauf li::before {
  content: counter(schritt);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--thema-text, var(--gelb));
  font-size: 3rem;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
}

.ablauf h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

.ablauf p { margin: 0; color: var(--text-2); }

/* Über uns und Kunden */
.ueber {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.ueber h2 { margin-bottom: 1.5rem; }
.ueber__text p { color: var(--text-2); }

.ueber__bild {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 2.25rem;
  border-radius: var(--r-bild);
  object-fit: cover;
}

.ueber__kunden h3 {
  margin-bottom: 0.6rem;
  font-size: var(--fs-h3);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

.ueber__hinweis { color: var(--text-2); font-size: var(--fs-klein); }

.kunden {
  columns: 3 11rem;
  column-gap: 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--naht);
  list-style: none;
}

.kunden li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--naht);
  break-inside: avoid;
  font-stretch: 92%;
}

/* Häufige Fragen */
/* Überschrift über der Liste – lange Themenwörter hätten in einer Seitenspalte keinen Platz */
.fragen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.fragen__liste { max-width: 64rem; border-top: 1px solid var(--naht); }
.fragen details { border-bottom: 1px solid var(--naht); }

.fragen summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding-block: 1.3rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.fragen summary { transition: color 0.25s; }
.fragen summary::-webkit-details-marker { display: none; }
/* Hover und offene Frage in der Themenfarbe der Seite; .schliesst setzt main.js, solange eine Antwort zuklappt */
.fragen summary:hover,
.fragen details[open]:not(.schliesst) summary { color: var(--thema-text, var(--gelb)); }

.fragen summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.3em;
  background:
    linear-gradient(var(--thema-text, var(--gelb)), var(--thema-text, var(--gelb))) center / 100% 2px no-repeat,
    linear-gradient(var(--thema-text, var(--gelb)), var(--thema-text, var(--gelb))) center / 2px 100% no-repeat;
  transition: rotate 0.5s var(--ausrollen);
}
.fragen details[open]:not(.schliesst) summary::after { rotate: 135deg; }
.fragen details p { padding-bottom: 1.3rem; color: var(--text-2); }

/* Kontakt-Bahn */
.kontakt {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.kontakt__person { max-width: 26rem; margin: 0; }

.kontakt__person img {
  width: 100%;
  aspect-ratio: 537 / 624;
  border-radius: var(--r-bild);
  object-fit: cover;
}

.kontakt__person figcaption {
  margin-top: 0.8rem;
  color: var(--text-2);
  font-size: var(--fs-klein);
}

.kontakt__text > p { color: var(--text-2); }

.kontakt__tel {
  display: inline-block;
  margin: 0.25rem 0 2rem;
  color: var(--gelb);
  font-size: min(clamp(2rem, 0.9rem + 3.3vw, 4rem), 8.2vw);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.kontakt__tel:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }

.kontakt__raster {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-bottom: 2rem;
  color: var(--text-2);
}

address { font-style: normal; }
address a { color: var(--weiss); }

.zeiten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1.25rem;
  margin: 0;
  align-content: start;
}
.zeiten dt { color: var(--weiss); font-weight: 700; }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Fuß */
.fuss {
  margin-top: var(--saum);
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--innen) 2rem;
  border-radius: var(--r-bahn);
  background: var(--verlauf-bahn);
  box-shadow: var(--lichtkante);
  color: var(--text-2);
  font-size: var(--fs-klein);
}

.fuss__raster {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

.fuss__logo { width: 190px; margin-bottom: 1.25rem; }

.fuss__titel {
  margin-bottom: 0.9rem;
  color: var(--weiss);
  font-size: 0.95rem;
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss li a { display: inline-block; padding-block: 0.35rem; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--gelb); }
.fuss address { line-height: 1.8; }

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--naht);
}
.fuss__unten p { margin: 0; }

/* Kontaktseite */
.krumen ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-klein);
  text-shadow: var(--foto-schatten);
}
.krumen li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-2); }

.kontaktseite {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.kontaktseite__daten {
  position: sticky;
  top: calc(var(--kopf-h) + 2rem);
}

.kontaktseite__daten h2,
.kontaktseite__formular > h2 {
  margin-bottom: 1rem;
  font-size: var(--fs-h3);
  line-height: 1.1;
}

.kontaktseite__daten address { margin-bottom: 1.75rem; color: var(--text-2); }
.kontaktseite__daten .kontakt__tel { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); margin-bottom: 1.5rem; }

.kontaktseite__zwischentitel {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.kontaktseite__daten .zeiten { color: var(--text-2); }

.kontaktseite__person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-klein);
  line-height: 1.4;
}
.kontaktseite__person strong { color: var(--weiss); }

.kontaktseite__person img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* Formular auf dunklem Grund */
.anfrage { display: grid; gap: 2.75rem; }
/* formmailer.js blendet das Formular nach dem Senden aus; weitere Dateifelder erscheinen erst bei Bedarf */
.anfrage[hidden], .feld[hidden] { display: none; }

.anfrage fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.anfrage__pflicht { margin: 0; color: var(--text-2); font-size: var(--fs-klein); }

.anfrage__gruppe > legend {
  margin-bottom: 1.25rem;
  padding: 0;
  font-size: var(--fs-h3);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.felder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

/* Spaltenbreiten nur innerhalb des Feldrasters – sonst erzeugt span 6
   im Formular selbst implizite Spalten. */
.felder > .feld { grid-column: span 6; }
.felder > .feld--halb { grid-column: span 3; }
.felder > .feld--drittel { grid-column: span 2; }

.feld label,
.feld__legende { padding: 0; font-weight: 700; }
.feld__legende { margin-bottom: 0.45rem; }

.pflicht { color: var(--gelb); font-weight: 700; }

.feld__hinweis {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-klein);
  line-height: 1.45;
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld input[type="number"],
.feld input[type="date"],
.feld textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #7a8890;
  border-radius: 12px;
  background: var(--bahn-hell);
  color: var(--weiss);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.feld textarea { min-height: 10rem; resize: vertical; }

.feld input:hover,
.feld textarea:hover { border-color: rgba(244, 246, 245, 0.55); }

.feld input:focus,
.feld textarea:focus {
  border-color: var(--gelb);
  outline: 2px solid var(--gelb);
  outline-offset: 2px;
}

.feld input[type="file"] {
  width: 100%;
  padding: 0.9rem;
  border: 1.5px dashed var(--linie);
  border-radius: 12px;
  background: var(--bahn-hell);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-klein);
}

.feld input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gelb);
  color: var(--bahn);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.feld input[aria-invalid="true"]:not(:focus),
.feld textarea[aria-invalid="true"]:not(:focus) { border-color: var(--fehler); }

/* Meldung am Feld, von formmailer.js gesetzt */
.fm-fehler {
  margin: 0;
  color: var(--fehler);
  font-size: var(--fs-klein);
  font-weight: 600;
}

.auswahl { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.auswahl label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  border: 1.5px solid var(--linie);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.auswahl label:hover { border-color: var(--weiss); }

.auswahl input { width: 1.15rem; height: 1.15rem; margin: 0; }

.auswahl label:has(input:checked) {
  border-color: var(--gelb);
  background: var(--gelb);
  color: var(--bahn);
}
.auswahl label:has(input:checked) input { accent-color: var(--bahn); }
.auswahl label:has(input:focus-visible) { outline: 3px solid var(--gelb); outline-offset: 3px; }

.zustimmung {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.zustimmung input { width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; }
.zustimmung label { font-weight: 400; color: var(--text-2); }
.zustimmung a { color: var(--weiss); }

.feld--falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.anfrage__absenden {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.anfrage__absenden p { margin: 0; color: var(--text-2); }
.anfrage__absenden a { color: var(--weiss); }
.anfrage__absenden [aria-busy="true"] { cursor: progress; opacity: 0.7; }
.anfrage .formular-meldung { margin-bottom: 0; }

.formular-meldung {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid;
  border-radius: var(--r-bild);
}
.formular-meldung p:last-child { margin-bottom: 0; }
.formular-meldung--ok { border-color: var(--gelb); background: rgba(255, 209, 0, 0.1); }
.formular-meldung--fehler { border-color: var(--fehler); background: rgba(255, 155, 176, 0.1); }

.anfahrt {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.anfahrt p { color: var(--text-2); }

/* ── Unterseiten ─────────────────────────────────────────────── */

/* Laufband und Farbbänder in der Themenfarbe (Kontrast für kleine Schrift gesichert) */
.volant.thema--magenta { background: linear-gradient(115deg, #a30055 0%, #cc006f 50%, var(--magenta) 100%); color: #ffffff; }
.volant.thema--cyan { background: linear-gradient(115deg, #0096d8 0%, var(--cyan) 50%, #5cc8f2 100%); color: var(--bahn); }
.volant.thema--schwarz {
  background: linear-gradient(115deg, #000000 0%, #151a1d 60%, #2c353a 100%);
  color: var(--weiss);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.volant-cta--cyan { background: linear-gradient(115deg, #0096d8 0%, var(--cyan) 50%, #5cc8f2 100%); color: var(--bahn); }
.volant-cta--schwarz {
  background: linear-gradient(115deg, #000000 0%, #1d2428 60%, #2c353a 100%);
  color: var(--weiss);
  box-shadow: var(--lichtkante), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.volant-cta--schwarz::before { background-image: url("../img/punktraster-hell-2000.webp"); filter: none; opacity: 0.08; }
.volant-cta--schwarz :focus-visible { outline-color: var(--gelb); }

/* Kopf ohne Foto (Rechtsseiten, Fehlerseite) */
.held__bahn--ohne-bild {
  min-height: clamp(20rem, 42svh, 28rem);
  background: var(--verlauf-bahn);
}
.held__bahn--ohne-bild::after {
  background: url("../img/punktraster-hell-2000.webp") right -10rem top -8rem / min(1400px, 130%) auto no-repeat;
  opacity: 0.08;
}

/* Zwei Spalten: Bild oder Fakten neben Text */
.zweispalter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.zweispalter--umgekehrt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.bild-rund {
  width: 100%;
  border-radius: var(--r-bild);
  object-fit: cover;
}

/* Kurze, zitierfähige Antwort direkt unter einer Frage-Überschrift */
.kurzantwort {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  color: var(--weiss);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.fliesstext > * { margin-top: 0; margin-bottom: 0; }
.fliesstext > * + * { margin-top: 1rem; }
.fliesstext p,
.fliesstext li { color: var(--text-2); }
.fliesstext h3 {
  margin-top: 2.25rem;
  font-size: var(--fs-h3);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}
.fliesstext ul { padding-left: 1.2rem; }
.fliesstext li + li { margin-top: 0.35rem; }
.fliesstext li::marker { color: var(--thema-text, var(--gelb)); }
.fliesstext strong { color: var(--weiss); }

/* Vergleichs- und Datentabellen */
.tabellen-rahmen { overflow-x: auto; margin-top: 2rem; }

.vergleich {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-klein);
  font-variant-numeric: tabular-nums;
}
.vergleich caption {
  margin-bottom: 1rem;
  color: var(--text-2);
  text-align: left;
}
.vergleich th,
.vergleich td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--naht);
  text-align: left;
  vertical-align: top;
}
.vergleich thead th {
  border-bottom: 2px solid var(--thema-text, var(--gelb));
  color: var(--weiss);
  font-size: 0.9rem;
  font-stretch: 112%;
  font-weight: 800;
  text-transform: uppercase;
}
.vergleich tbody th { color: var(--weiss); font-weight: 700; }
.vergleich td { color: var(--text-2); }

/* Materialliste kleiner, Punkte in der Themenfarbe; lange Komposita dürfen trennen */
.material-liste--klein { font-size: clamp(1.1rem, 0.6rem + 2.2vw, 2.6rem); }
.material-liste li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.bahn:not(.bahn--gelb) .material-liste li::before { background: var(--thema-text, var(--gelb)); }

/* Querverweise auf die anderen Leistungen */
.leistungen--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Zwei Querverweise: breite Kacheln mit Querformat-Bild */
.leistungen--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leistungen--zwei .leistung__bild { aspect-ratio: 3 / 2; }

/* Tablet: drei Kacheln als zwei plus eine breite, statt einer Lücke in der zweiten Reihe */
@media (min-width: 40.01rem) and (max-width: 64rem) {
  .leistungen--drei > .leistung:nth-child(3):last-child { grid-column: 1 / -1; }
  .leistungen--drei > .leistung:nth-child(3):last-child .leistung__bild { aspect-ratio: 2 / 1; }
}

/* Rechtstexte */
.rechtstext { max-width: 72ch; }
.rechtstext > :first-child { margin-top: 0; }
.bahn .rechtstext h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: var(--fs-h3);
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
.rechtstext h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
.rechtstext p,
.rechtstext li,
.rechtstext address { color: var(--text-2); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext a { color: var(--weiss); }
.rechtstext strong { color: var(--weiss); }

/* Sichtbarer Platzhalter für Angaben, die vor dem Livegang fehlen – vor jedem Upload danach suchen */
.platzhalter {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 2px dashed var(--fehler);
  border-radius: 6px;
  background: rgba(255, 155, 176, 0.12);
  color: var(--fehler);
  font-weight: 700;
}

/* Fuß: Pflichtangaben in der Abschlusszeile */
.fuss__recht { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Kopfleiste schmal: Klappmenü */
@media (max-width: 62rem) {
  .kopf__innen { gap: 0.6rem; }
  .kopf__tel { margin-left: auto; padding: 0; }
  .kopf__tel-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .js .kopf__menue { display: inline-flex; }

  .js .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem var(--innen) 1.5rem;
    border-radius: var(--r-bahn);
    background: var(--bahn);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    /* Im Querformat und bei starkem Zoom bleibt jeder Eintrag erreichbar */
    max-height: calc(100svh - var(--kopf-h) - 2 * var(--saum) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .nav.ist-offen { display: block; }

  /* Klappmenü gleitet herab, die Einträge folgen kurz nacheinander */
  .js .nav.ist-offen { transition: opacity 0.25s ease-out, translate 0.45s var(--ausrollen); }
  .js .nav.ist-offen li { transition: opacity 0.3s ease-out, translate 0.5s var(--ausrollen); }
  .js .nav.ist-offen li:nth-child(2) { transition-delay: 30ms; }
  .js .nav.ist-offen li:nth-child(3) { transition-delay: 60ms; }
  .js .nav.ist-offen li:nth-child(4) { transition-delay: 90ms; }
  .js .nav.ist-offen li:nth-child(5) { transition-delay: 120ms; }
  @starting-style {
    .js .nav.ist-offen { opacity: 0; translate: 0 -0.6rem; }
    .js .nav.ist-offen li { opacity: 0; translate: 0 -0.4rem; }
  }

  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--naht);
    font-size: 1.35rem;
    font-stretch: 125%;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: none;
  }

  html:not(.js) .kopf { position: absolute; }
  html:not(.js) .kopf__innen { flex-wrap: wrap; height: auto; padding-block: 0.75rem; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .nav a { font-size: 1rem; border: 0; text-transform: none; font-stretch: 100%; }
}

/* Sehr schmale Handys (320–370 px): Kopfleiste enger, Logo kleiner, damit die Menü-Pille passt */
@media (max-width: 23.5rem) {
  .kopf__innen,
  .kopf.ist-fixiert .kopf__innen { padding-inline: 0.75rem; gap: 0.5rem; }
}
@media (max-width: 22.4rem) {
  .kopf__logo img,
  .kopf.ist-fixiert .kopf__logo img { width: 116px; }
}

/* Tablet */
@media (max-width: 64rem) {
  .bahn__kopf,
  .maschinen,
  .ablauf-raster,
  .ueber,
  .fragen,
  .kontakt,
  .kontaktseite,
  .anfahrt,
  .zweispalter,
  .zweispalter--umgekehrt { grid-template-columns: minmax(0, 1fr); }

  .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .plan,
  .kontaktseite__daten { position: static; }

  .ablauf__bild { min-height: 0; aspect-ratio: 16 / 9; }

  .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss__raster > :first-child { grid-column: 1 / -1; }
}

/* Smartphone */
@media (max-width: 40rem) {
  :root { --kopf-h: 4.25rem; }

  .held__bahn { min-height: clamp(34rem, calc(100svh - 2 * var(--saum)), 54rem); }
  .held__bahn--klein { min-height: 30rem; }
  .held__bild { object-position: 58% 60%; }
  /* Über uns: helles Papier liegt links im Bild – am Handy den dunklen rechten Teil zeigen */
  .held__bild--rechts { object-position: 100% 60%; }
  .anfahrt .knopf { white-space: normal; text-align: center; }
  .feld input[type="file"] { padding: 0.6rem; }
  .feld input[type="file"]::file-selector-button { margin-right: 0.6rem; padding: 0.55rem 0.9rem; }

  .held__unten { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .held__ort { text-align: left; }
  .held__text .knoepfe .knopf { flex: 1 1 auto; }

  .leistungen { grid-template-columns: minmax(0, 1fr); }
  .leistung__bild { aspect-ratio: 16 / 11; }

  .ablauf { grid-template-columns: minmax(0, 1fr); }

  .plan text { font-size: 12px; }

  .bahn h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.4rem);
    font-stretch: 112%;
  }

  .bahn .kontaktseite__daten h2,
  .bahn .kontaktseite__formular > h2 { font-size: var(--fs-h3); }

  /* Maßtabelle gestapelt: Ausstattung oben, Leistung darunter */
  .masstabelle thead { display: none; }
  .masstabelle tbody tr {
    display: grid;
    gap: 0.15rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--naht);
  }
  .masstabelle th,
  .masstabelle td { padding: 0; border: 0; }
  .masstabelle td {
    padding-left: calc(0.7rem + 0.75rem);
    color: var(--text-2);
    text-align: left;
    white-space: normal;
  }

  .volant-cta .knopf { width: 100%; }

  .felder > .feld--halb,
  .felder > .feld--drittel { grid-column: span 6; }

  /* Lange Komposita (SCHAUFENSTERBESCHRIFTUNG) passen nur schmaler auf 375 px */
  .material-liste--klein { font-size: 1rem; font-stretch: 100%; }
  .fliesstext h3 { font-size: 1.05rem; font-stretch: 108%; overflow-wrap: break-word; hyphens: auto; }

  .fuss__raster { grid-template-columns: minmax(0, 1fr); }
}

/* Rakelzug: Fotos unterhalb des ersten Bildschirms werden beim Erscheinen wie ein Druck
   von links nach rechts aufgezogen. main.js vergibt .rakel nur, wenn Bewegung erwünscht ist –
   ohne Skript bleiben alle Bilder sichtbar. */
.js .rakel {
  clip-path: inset(0 100% 0 0);
  scale: 1.08;
}
.js .rakel.ist-gedruckt {
  clip-path: inset(0 0 0 0);
  scale: 1;
  transition:
    clip-path 0.95s var(--ausrollen) var(--rakel-verzug, 0ms),
    scale 1.4s var(--ausrollen) var(--rakel-verzug, 0ms);
}

/* Seitenwechsel: weiche Überblendung, die Kopfleiste bleibt stehen */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
::view-transition-old(root) { animation: 0.18s ease-in both seite-aus; }
::view-transition-new(root) { animation: 0.4s cubic-bezier(0.16, 1, 0.3, 1) both seite-ein; }
@keyframes seite-aus { to { opacity: 0; } }
@keyframes seite-ein { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .volant__lauf { transform: none !important; }
  .leistung:hover .leistung__bild { transform: none; }
}

/* Druck: helle Seite ohne Kopfleiste, Laufband und Bewegung */
@media print {
  .kopf,
  .sprung,
  .volant,
  .volant-cta,
  .kontaktseite__formular,
  .knoepfe { display: none !important; }
  html,
  body { background: #fff !important; color: #000 !important; }
  body * { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
  .bahn,
  .held__bahn,
  .fuss { background: none !important; border-radius: 0; padding-inline: 0; }
  .bahn::before,
  .held__bahn::after,
  .held__bahn--ohne-bild::after { display: none !important; }
  .held__bahn { min-height: 0 !important; }
  .held__bild { display: none; }
  .held__inhalt { padding: 0 0 1rem; }
  .wortmarke { font-size: 2.5rem !important; white-space: normal; }
  .js .rakel { clip-path: none !important; scale: 1 !important; }
  .fuss__logo { display: none; }
  a { text-decoration: underline; }
  details { display: block; }
  details > * { display: block !important; }
}
