/* =====================================================================
   Benoit Gerüstbau GmbH – Design-System (handcodiert)
   Egger Communications · 2026
   Modern · Responsive · Barrierefrei (WCAG 2.1 AA)
   Kein Bootstrap · Kein Mobirise · Vanilla CSS3
   ===================================================================== */

/* ---------- Schrift (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/opensans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben */
  --red:        #e1341f;   /* Benoit-Rot (Logo) */
  --red-dark:   #b8260f;   /* Hover / Aktiv */
  --red-soft:   #fdece9;   /* zarter roter Hintergrund */

  /* Stahl / Anthrazit */
  --steel-900:  #17191d;
  --steel-800:  #212429;
  --steel-700:  #2c313a;
  --steel-600:  #3b414c;

  /* Neutral */
  --ink:        #1a1c20;   /* Fließtext */
  --muted:      #565b64;   /* Sekundärtext */
  --line:       #e3e6ea;   /* Trennlinien */
  --bg:         #ffffff;
  --bg-soft:    #f4f6f8;
  --bg-warm:    #f7f4f1;
  --white:      #ffffff;

  /* Maße */
  --maxw:       1200px;
  --gap:        clamp(1rem, 3vw, 2rem);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 10px 30px rgba(23,25,29,.10);
  --shadow-lg:  0 20px 60px rgba(23,25,29,.18);
  --header-h:   84px;

  /* Typo-Skala (fluid) */
  --fs-900: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  --fs-800: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-700: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  --fs-600: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  --fs-500: 1.2rem;
  --fs-400: 1.0625rem;
  --fs-300: .95rem;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-400);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: var(--red-dark); text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--steel-900); }

/* ---------- Fokus (Tastatur-Bedienung) ---------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Screenreader / Skip-Link ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--steel-900); color: #fff;
  padding: .7rem 1.2rem; border-radius: 8px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color:#fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem,4vw,3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: .8rem;
}
.eyebrow::before { content:""; display:inline-block; width:28px; height:2px; background:var(--red); vertical-align:middle; margin-right:.6rem; }
h1.title { font-size: var(--fs-900); }
h2.title { font-size: var(--fs-800); }
.lead { font-size: var(--fs-500); color: var(--muted); }
.text-red { color: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225,52,31,.30); }
.btn--primary:hover { background: var(--red-dark); color:#fff; }
.btn--dark { background: var(--steel-900); color:#fff; }
.btn--dark:hover { background: var(--steel-700); color:#fff; }
.btn--ghost { background: transparent; color:#fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background:#fff; color: var(--steel-900); border-color:#fff; }
.btn--outline { background:#fff; color: var(--steel-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--red); color: var(--red-dark); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; }
/* Verlauf hinter der Navigation über dem Hero (sichere Lesbarkeit) */
.site-header[data-landing="true"]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,16,19,.60), rgba(15,16,19,0));
  transition: opacity .3s var(--ease);
}
.site-header[data-landing="true"].scrolled::before { opacity: 0; }
.site-header.scrolled,
.site-header.solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: 0 2px 20px rgba(23,25,29,.10);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 52px; width: auto; transition: height .3s var(--ease); }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.05;
  font-weight: 800; color: var(--steel-900); letter-spacing: .01em;
}
.brand-name b { color: var(--red); font-size: 1.15rem; }
.brand-name span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
/* Über dem Hero (heller Text), solange nicht gescrollt */
.site-header:not(.scrolled):not(.solid) .brand-name b { color:#fff; }
.site-header:not(.scrolled):not(.solid) .brand-name span { color: rgba(255,255,255,.85); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav > ul { display: flex; align-items: center; gap: .2rem; }
.nav a.nav-link, .nav > ul > li > .nav-link {
  display: inline-flex; align-items: center; gap:.35rem;
  padding: .6rem .9rem; border-radius: 8px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  color: var(--steel-800); background: none; border: 0;
}
.site-header:not(.scrolled):not(.solid) .nav a.nav-link,
.site-header:not(.scrolled):not(.solid) .nav > ul > li > .nav-link { color: #fff; }
.nav a.nav-link:hover, .nav .nav-link:hover { color: var(--red); }
.site-header:not(.scrolled):not(.solid) .nav a.nav-link:hover { color:#fff; background: rgba(255,255,255,.15); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle::after { content:""; width:.5rem; height:.5rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform: rotate(45deg); margin-left:.15rem; transition: transform .2s; }
.has-dropdown[aria-expanded="true"] .dropdown-toggle::after,
.has-dropdown.open .dropdown-toggle::after { transform: rotate(-135deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem; margin-top: 10px; display: none; z-index: 50;
}
/* unsichtbare Brücke, damit das Menü beim Rübergehen offen bleibt */
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; display: none; }
.has-dropdown.open::after { display: block; }
.has-dropdown.open .dropdown-menu { display: block; animation: fadeDown .18s var(--ease); }
.dropdown-menu a {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  color: var(--steel-800); text-decoration: none; font-weight: 600; font-size:.95rem;
}
.dropdown-menu a:hover { background: var(--red-soft); color: var(--red-dark); }
@keyframes fadeDown { from { opacity:0; transform: translateY(-6px);} to {opacity:1; transform:none;} }

.nav-phone {
  display: inline-flex; align-items: center; gap:.5rem;
  margin-left: .5rem; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--red); color:#fff !important; font-weight: 800; text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--red-dark); }
.nav-phone svg { width:1.1em; height:1.1em; fill: currentColor; }

/* Hamburger */
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none;
  position: relative; border-radius: 10px;
}
.nav-toggle span { position:absolute; left:12px; right:12px; height:3px; border-radius:3px; background: var(--steel-900); transition: .25s var(--ease); }
.site-header:not(.scrolled):not(.solid) .nav-toggle span { background:#fff; }
.nav-toggle span:nth-child(1){ top:15px; }
.nav-toggle span:nth-child(2){ top:22px; }
.nav-toggle span:nth-child(3){ top:22px; }
.nav-toggle span:nth-child(4){ top:29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(4){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: rotate(-45deg); }
.site-header.solid .nav-toggle span, .site-header.scrolled .nav-toggle span { background: var(--steel-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero__bg { position:absolute; inset:0; z-index:-2; }
.hero__bg img { width:100%; height:100%; object-fit: cover; object-position: center; }
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(23,25,29,.55) 0%, rgba(23,25,29,.15) 35%, rgba(23,25,29,.75) 100%);
}
.hero__inner { padding-bottom: clamp(3.5rem, 8vh, 7rem); padding-top: calc(var(--header-h) + 2rem); }
.hero h1 { color:#fff; font-size: var(--fs-900); max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .kicker { display:inline-block; font-weight:800; letter-spacing:.14em; text-transform:uppercase; font-size:.85rem; color:#fff; background: var(--red); padding:.4rem .9rem; border-radius:999px; margin-bottom:1.2rem; }
.hero p.hero-sub { font-size: var(--fs-500); max-width: 52ch; margin-top: 1rem; color: rgba(255,255,255,.94); text-shadow:0 2px 20px rgba(0,0,0,.4); }
.hero .btn-row { display:flex; flex-wrap:wrap; gap:.9rem; margin-top: 2rem; }
.hero__scroll {
  position:absolute; left:50%; bottom:1.2rem; transform:translateX(-50%); z-index:2;
  color:#fff; opacity:.85; animation: bob 2s var(--ease) infinite; text-decoration:none;
}
.hero__scroll svg{ width:2rem; height:2rem; fill:currentColor; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Hero: „brutal coole" Einlauf-Animation ---------- */
.hero__bg img { animation: heroZoom 11s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }

html.js .hero .kicker,
html.js .hero .hero-sub,
html.js .hero .btn-row > *,
html.js .hero .badge,
html.js .hero__scroll { opacity: 0; }

html.js .hero .kicker { animation: heroRise .85s var(--ease) .25s both; }
html.js .hero .hero-sub { animation: heroRise .85s var(--ease) 1.15s both; }
html.js .hero .btn-row > *:nth-child(1) { animation: heroRise .8s var(--ease) 1.4s both; }
html.js .hero .btn-row > *:nth-child(2) { animation: heroRise .8s var(--ease) 1.55s both; }
html.js .hero__scroll { animation: heroRise 1s var(--ease) 2.4s both; }
@keyframes heroRise { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform:none; } }

/* Headline Wort für Wort (aus Unschärfe hoch) */
html.js .hero h1 { opacity: 0; }
html.js .hero h1.ready { opacity: 1; }
html.js .hero h1 .word { display:inline-block; opacity:0; transform: translateY(.55em); filter: blur(9px); animation: wordUp .8s var(--ease) both; }
@keyframes wordUp { to { opacity:1; transform:none; filter:blur(0); } }

/* Zahlen · Daten · Fakten „reinknallen" */
html.js .hero .badge:nth-of-type(1){ animation: heroPop .7s cubic-bezier(.18,1.5,.4,1) 1.65s both; }
html.js .hero .badge:nth-of-type(2){ animation: heroPop .7s cubic-bezier(.18,1.5,.4,1) 1.83s both; }
html.js .hero .badge:nth-of-type(3){ animation: heroPop .7s cubic-bezier(.18,1.5,.4,1) 2.01s both; }
@keyframes heroPop { 0%{ opacity:0; transform: scale(.35) translateY(16px); } 55%{ opacity:1; transform: scale(1.14); } 100%{ opacity:1; transform:none; } }
html.js .hero .badge b { display:inline-block; }

@media (prefers-reduced-motion: reduce) {
  html.js .hero .kicker, html.js .hero .hero-sub, html.js .hero .btn-row > *,
  html.js .hero .badge, html.js .hero__scroll,
  html.js .hero h1, html.js .hero h1 .word { opacity:1 !important; transform:none !important; filter:none !important; animation:none !important; }
  .hero__bg img { animation:none !important; }
}

.badges { display:flex; flex-wrap:wrap; gap:1.4rem 2rem; margin-top:2.2rem; }
.badge { display:flex; align-items:center; gap:.6rem; font-weight:700; color:#fff; }
.badge b { font-size:1.5rem; color: var(--red); background:#fff; border-radius:8px; padding:.05rem .5rem; }

/* ---------- Willkommen / Intro ---------- */
.intro-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items:center; }
.intro-figure { position:relative; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width:100%; }
.stat-card {
  position:absolute; right:-10px; bottom:-22px; background:#fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding:1rem 1.3rem; display:flex; gap:.9rem; align-items:center;
  border-left: 5px solid var(--red);
}
.stat-card .n { font-size:2rem; font-weight:800; color: var(--red-dark); line-height:1; }
.stat-card .l { font-size:.85rem; color: var(--muted); font-weight:600; }

/* ---------- Slider (scroll-snap, JS-gesteuert) ---------- */
.slider { position:relative; }
.slider__track {
  display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding: .5rem .2rem 1.2rem; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.slider__track::-webkit-scrollbar{ display:none; }
.slide {
  flex: 0 0 clamp(240px, 42vw, 360px); scroll-snap-align:center;
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
  background:#fff; aspect-ratio: 3/4;
}
.slide img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.slide:hover img { transform: scale(1.05); }
.slider__btn {
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:54px; height:54px; border-radius:999px; border:0; background:#fff; color:var(--steel-900);
  box-shadow: var(--shadow); display:grid; place-items:center;
}
.slider__btn:hover { background: var(--red); color:#fff; }
.slider__btn svg{ width:1.4rem; height:1.4rem; fill:currentColor; }
.slider__btn--prev{ left:-6px; } .slider__btn--next{ right:-6px; }
@media (max-width:640px){ .slider__btn{ display:none; } }

/* ---------- Schritte (Ablauf) ---------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:1.2rem; counter-reset: step; }
.step {
  position:relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 1.4rem 1.6rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step__num {
  position:absolute; top:-24px; left:1.4rem; width:52px; height:52px; border-radius:14px;
  background: var(--red); color:#fff; font-weight:800; font-size:1.5rem;
  display:grid; place-items:center; box-shadow: 0 8px 18px rgba(225,52,31,.35);
}
.step h3 { font-size:1.2rem; margin-bottom:.5rem; }
.step p { color: var(--muted); font-size:.98rem; }

/* ---------- Ansprechpartner ---------- */
.team { display:grid; grid-template-columns: repeat(2,1fr); gap:1.6rem; }
.person {
  display:flex; gap:1.4rem; align-items:center; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); padding:1.2rem; box-shadow: var(--shadow);
}
.person img { width:130px; height:150px; object-fit:cover; border-radius:12px; flex:none; }
.person h3 { font-size:1.3rem; }
.person .role { color: var(--red-dark); font-weight:700; margin:.15rem 0 .6rem; }
.person a { display:block; font-size:.95rem; text-decoration:none; color: var(--muted); font-weight:600; }
.person a:hover { color: var(--red-dark); }

/* ---------- Historisches (dunkel) ---------- */
.dark-section { position:relative; color:#fff; isolation:isolate; overflow:hidden; }
.dark-section .container { position:relative; z-index:2; }
.dark-section h2 { color:#fff; }
.dark-section .eyebrow { color:#ff8c7a; }
.dark-bg { position:absolute; inset:0; z-index:-2; }
.dark-bg img { width:100%; height:100%; object-fit:cover; }
.dark-section::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, rgba(23,25,29,.94), rgba(33,36,41,.82)); }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1rem; color: rgba(255,255,255,.9); }

/* ---------- Projekte (Galerie) ---------- */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap:.9rem; }
.gallery figure { position:relative; margin:0; border-radius:12px; overflow:hidden; aspect-ratio:1/1; box-shadow: var(--shadow); }
.gallery img { width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease); }
.gallery button.tile { display:block; width:100%; height:100%; padding:0; border:0; background:none; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position:absolute; inset:auto 0 0 0; padding:.9rem .8rem .7rem;
  background: linear-gradient(0deg, rgba(23,25,29,.85), transparent);
  color:#fff; font-size:.82rem; font-weight:600; opacity:0; transform: translateY(8px); transition:.25s var(--ease);
}
.gallery figure:hover figcaption, .gallery button.tile:focus-visible figcaption { opacity:1; transform:none; }

/* Lightbox */
.lightbox {
  position:fixed; inset:0; z-index:3000; background: rgba(15,16,19,.92);
  display:none; place-items:center; padding: clamp(1rem,4vw,3rem);
}
.lightbox.open { display:grid; }
.lightbox img { max-width:100%; max-height:82vh; border-radius:10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { color:#fff; text-align:center; margin-top:1rem; font-weight:600; }
.lightbox__close, .lightbox__nav {
  position:absolute; background: rgba(255,255,255,.12); border:0; color:#fff; border-radius:999px;
  width:54px; height:54px; display:grid; place-items:center; backdrop-filter: blur(4px);
}
.lightbox__close{ top:1.2rem; right:1.2rem; font-size:1.6rem; }
.lightbox__nav{ top:50%; transform:translateY(-50%); }
.lightbox__nav svg{ width:1.6rem; height:1.6rem; fill:#fff; }
.lightbox__nav:hover, .lightbox__close:hover{ background: var(--red); }
.lightbox__prev{ left:1.2rem; } .lightbox__next{ right:1.2rem; }

/* ---------- Layher (Feature-Split) ---------- */
.feature-split { display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items:center; }
.feature-split .logo-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:2.4rem; display:grid; place-items:center; box-shadow: var(--shadow); }
.feature-split .logo-box img { max-width:280px; }

/* ---------- CTA / Gerüst abmelden ---------- */
.cta-band { position:relative; color:#fff; isolation:isolate; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); }
.cta-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:2.5rem; align-items:center; }
.cta-band h2 { color:#fff; }
.info-list { display:grid; gap:.6rem; margin-top:1.2rem; }
.info-list li { display:flex; gap:.7rem; align-items:flex-start; }
.info-list svg { width:1.3rem; height:1.3rem; fill:#fff; flex:none; margin-top:.2rem; }
.hours-card { background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding:1.6rem; backdrop-filter: blur(4px); }
.hours-card h3 { color:#fff; margin-bottom:.8rem; }
.hours-card dl { display:grid; grid-template-columns:auto 1fr; gap:.3rem 1rem; }
.hours-card dt { font-weight:700; } .hours-card dd { text-align:right; }

/* ---------- Kontakt-Buttons (Standard MBWC) ---------- */
.kontakt-buttons { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; padding-block: 2.4rem; }
.kontakt-button {
  display:inline-flex; align-items:center; gap:.7rem; padding:.9rem 1.5rem; border-radius:999px;
  background: var(--steel-900); color:#fff !important; text-decoration:none; font-weight:700;
  transition: transform .18s var(--ease), background .2s;
}
.kontakt-button:hover { transform: translateY(-2px); background: var(--red); }
.kontakt-button svg { width:1.2rem; height:1.2rem; fill: currentColor; }

/* ---------- Audio-Vorlesefunktion ---------- */
.audio-block { background: var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.audio-player {
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  max-width: var(--maxw); margin-inline:auto; padding: 1rem var(--gap);
}
.audio-player .label { display:flex; align-items:center; gap:.6rem; font-weight:700; color: var(--steel-800); }
.audio-player .label svg { width:1.4rem; height:1.4rem; fill: var(--red-dark); }
.audio-player audio { height:40px; flex:1; min-width:240px; max-width:520px; }

/* ---------- Karte ---------- */
.map-wrap { position:relative; }
.map-wrap iframe { width:100%; height:460px; border:0; display:block; filter: grayscale(.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); color: rgba(255,255,255,.82); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap:2rem; }
.site-footer h4 { color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration:none; }
.site-footer a:hover { color: var(--red); }
.site-footer .foot-logo img { max-width:180px; background:#fff; border-radius:10px; padding:.6rem; }
.site-footer ul { display:grid; gap:.55rem; }
.site-footer .contact-li { display:flex; gap:.6rem; align-items:flex-start; }
.site-footer .contact-li svg { width:1.1rem; height:1.1rem; fill: var(--red); flex:none; margin-top:.35rem; }
.a11y-note { display:inline-flex; align-items:center; gap:.5rem; margin-top:1rem; font-size:.85rem; color: rgba(255,255,255,.6); }
.footer-bottom { margin-top:2.5rem; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.12); text-align:center; font-size:.88rem; color: rgba(255,255,255,.6); }

/* ---------- Legal-Seiten ---------- */
.page-hero {
  margin-top: 0; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem;
  background: linear-gradient(120deg, var(--steel-900), var(--steel-700)); color:#fff;
}
.page-hero h1 { color:#fff; font-size: var(--fs-800); }
.page-hero .crumbs { color: rgba(255,255,255,.7); font-size:.9rem; margin-bottom:.6rem; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); }
.legal { max-width: 860px; margin-inline:auto; }
.legal h2 { font-size: var(--fs-600); margin: 2.2rem 0 .8rem; padding-top:1rem; border-top:2px solid var(--line); color: var(--steel-900); }
.legal h3 { font-size:1.2rem; margin:1.6rem 0 .5rem; color: var(--red-dark); }
.legal h4 { font-size:1.05rem; margin:1.2rem 0 .4rem; }
.legal p { margin-bottom:1rem; color: var(--ink); }
.legal a { word-break: break-word; }
/* Übermäßige <br> im importierten Rechtstext zähmen */
.legal br { line-height: 0; }

/* ---------- Barrierefreiheit: ein Button links mittig + Menü ---------- */
.a11y-widget { position:fixed; left:0; top:50%; transform:translateY(-50%); z-index:1200; display:flex; align-items:center; }
.a11y-fab {
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  background:var(--steel-900); color:#fff; border:2px solid #fff; border-left:0;
  border-radius:0 16px 16px 0; padding:1rem .55rem; box-shadow:var(--shadow-lg);
  transition:background .2s var(--ease);
}
.a11y-fab:hover, .a11y-fab[aria-expanded="true"] { background:var(--red); }
.a11y-fab svg { width:1.55rem; height:1.55rem; fill:currentColor; }
.a11y-fab .lbl { writing-mode:vertical-rl; transform:rotate(180deg); font-weight:700; font-size:.82rem; letter-spacing:.04em; }
.a11y-panel { display:none; flex-direction:column; gap:.5rem; margin-left:.55rem; background:#fff; border:1px solid var(--line); border-radius:14px; padding:.7rem; box-shadow:var(--shadow-lg); }
.a11y-widget.open .a11y-panel { display:flex; animation:fadeDown .18s var(--ease); }
@media (max-width:620px){
  .a11y-fab { padding:.8rem .45rem; }
  .a11y-fab .lbl { font-size:.72rem; }
}
.a11y-btn {
  display:inline-flex; align-items:center; gap:.5rem; border:2px solid #fff;
  background: var(--steel-900); color:#fff; padding:.7rem .95rem; border-radius:999px;
  font-weight:700; font-size:.9rem; box-shadow: var(--shadow-lg);
}
.a11y-btn svg { width:1.2rem; height:1.2rem; fill: currentColor; }
.a11y-btn:hover { background: var(--red); }
.a11y-btn[aria-pressed="true"] { background: var(--red); }

#scrollTop {
  position:fixed; right:16px; bottom:90px; z-index:1100; width:48px; height:48px;
  border-radius:999px; border:0; background: var(--red); color:#fff; display:grid; place-items:center;
  box-shadow: var(--shadow-lg); opacity:0; visibility:hidden; transform: translateY(10px);
  transition:.3s var(--ease);
}
#scrollTop.show { opacity:1; visibility:visible; transform:none; }
#scrollTop svg { width:1.4rem; height:1.4rem; fill:#fff; }

/* ---------- Popup (Lesbarkeits-Hinweis) ---------- */
.modal-overlay {
  position:fixed; inset:0; z-index:2500; background: rgba(15,16,19,.72);
  display:none; place-items:center; padding:1.2rem;
}
.modal-overlay.open { display:grid; animation: fadeDown .25s var(--ease); }
.modal {
  background:#fff; border-radius: var(--radius); max-width:560px; width:100%;
  box-shadow: var(--shadow-lg); overflow:hidden;
}
.modal__head { display:flex; align-items:center; justify-content:space-between; padding:1.2rem 1.4rem; background: var(--bg-soft); border-bottom:1px solid var(--line); }
.modal__head h2 { font-size:1.2rem; }
.modal__close { width:40px; height:40px; border:0; background:none; border-radius:8px; font-size:1.4rem; color: var(--steel-800); }
.modal__close:hover { background: var(--line); }
.modal__body { padding:1.4rem; color: var(--muted); font-size:.98rem; }
.modal__body kbd { background: var(--steel-900); color:#fff; padding:.1rem .5rem; border-radius:6px; font-size:.85rem; font-weight:700; }

/* ---------- Animation on scroll (dezent) ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }

/* ---------- Willkommen-Bild: „supercool" Effekt ---------- */
.intro-figure { position: relative; }
.intro-figure .fx {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.intro-figure .fx img {
  display: block; width: 100%; height: auto; will-change: transform, filter, clip-path;
  clip-path: inset(0 0 100% 0); filter: blur(18px); transform: scale(1.05);
  transition: clip-path 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
}
.intro-figure.in .fx img {
  clip-path: inset(0 0 0 0); filter: blur(0); transform: scale(1);
  animation: kenburns 26s ease-in-out 1.3s infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
/* Glanz-Sweep bei Hover */
.intro-figure .fx::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.42) 48%, transparent 62%);
  transform: translateX(-130%);
}
.intro-figure .fx:hover::after { animation: shine 1.1s var(--ease); }
@keyframes shine { to { transform: translateX(130%); } }
/* Roter Akzentrahmen, der einschwebt */
.intro-figure::before {
  content: ""; position: absolute; right: -16px; bottom: -16px; width: 55%; height: 62%;
  border: 3px solid var(--red); border-radius: var(--radius); z-index: 0;
  opacity: 0; transform: translate(14px,14px);
  transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s;
}
.intro-figure.in::before { opacity: 1; transform: none; }

/* ---------- Karriere / Stellenanzeige ---------- */
.karriere .job-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 2.2rem;
}
.karriere .job-hero img { width: 100%; display: block; aspect-ratio: 16 / 8; object-fit: cover; }
.karriere .job-hero__badge {
  position: absolute; left: 0; bottom: 1.4rem; background: var(--red); color: #fff;
  padding: .7rem 1.5rem .85rem; border-radius: 0 12px 12px 0; box-shadow: var(--shadow);
}
.karriere .job-hero__badge span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.karriere .job-hero__badge strong { font-size: clamp(1.15rem, 2.2vw, 1.75rem); line-height: 1.1; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.job-card h3 { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--red-soft); }
.ticks { display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2.1rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .12rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9.3 16.2 5 11.9l-1.4 1.4 5.7 5.7L20.4 7.9 19 6.5z'/%3E%3C/svg%3E");
  background-size: .85rem; background-position: center; background-repeat: no-repeat;
}
.stripe {
  height: 14px; margin: 2.2rem 0 0; border-radius: 6px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--red) 0 20px, #fff 20px 40px);
}
.job-apply {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.4rem; background: var(--steel-900); color: #fff; border-radius: var(--radius); padding: 1.8rem 2rem;
}
.job-apply h3 { color: #fff; }
.job-apply p { color: rgba(255,255,255,.82); margin-top: .3rem; }
@media (max-width: 900px) {
  .job-grid { grid-template-columns: 1fr; }
  .job-apply { flex-direction: column; align-items: flex-start; }
}
/* Kontrastmodus */
body.high-contrast .job-card, body.high-contrast .job-apply { background: #000; border: 2px solid #fff; }
body.high-contrast .job-apply p { color: #fff; }
body.high-contrast .job-hero__badge { background: #ffea00; color: #000; }
body.high-contrast .ticks li::before { background-color: #ffea00; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M9.3 16.2 5 11.9l-1.4 1.4 5.7 5.7L20.4 7.9 19 6.5z'/%3E%3C/svg%3E"); }
body.high-contrast .stripe { background: repeating-linear-gradient(45deg, #ffea00 0 20px, #000 20px 40px); border-color: #fff; }
/* Reduced Motion: Bild-Effekt sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  .intro-figure .fx img { clip-path: none !important; filter: none !important; transform: none !important; animation: none !important; }
  .intro-figure::before { opacity: 1 !important; transform: none !important; }
}

/* ---------- Header: mehr Luft zwischen Logo und Navigation ---------- */
.site-header .container { gap: clamp(1.2rem, 4vw, 3rem); }
.brand { flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
@media (max-width: 900px){ .brand img { height: 52px; } }

/* ---------- Layher: Logo zentriert, Text animiert eingeblendet ---------- */
.layher-center { text-align: center; max-width: 860px; margin-inline: auto; }
.layher-center .logo-box { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 2.2rem; padding: 2rem 2.8rem; }
.layher-center .logo-box img { max-width: 260px; height: auto; }
.layher-center .lh-text p { margin-inline: auto; max-width: 70ch; }
html.fx-full .layher-center .logo-box { opacity: 0; transform: scale(.78); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.fx-full .layher-center.in .logo-box { opacity: 1; transform: none; }
html.fx-full .layher-center .lh-text > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.fx-full .layher-center.in .lh-text > * { opacity: 1; transform: none; }
html.fx-full .layher-center.in .lh-text > *:nth-child(1){ transition-delay: .4s; }
html.fx-full .layher-center.in .lh-text > *:nth-child(2){ transition-delay: .55s; }
html.fx-full .layher-center.in .lh-text > *:nth-child(3){ transition-delay: .7s; }

/* ---------- Google Maps: Consent-Platzhalter ---------- */
.map-consent { position: relative; min-height: 460px; display: grid; place-items: center; text-align: center; padding: 2.5rem 1.5rem; background: linear-gradient(120deg, var(--steel-900), var(--steel-700)); color: #fff; }
.map-consent__box { max-width: 540px; }
.map-consent svg { width: 3rem; height: 3rem; fill: var(--red); margin-bottom: .8rem; }
.map-consent h3 { color: #fff; margin-bottom: .6rem; }
.map-consent p { color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 1.3rem; }
.map-consent .mini { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 1rem; }
.map-consent .mini a { color: rgba(255,255,255,.85); }
body.high-contrast .map-consent { background: #000; border: 2px solid #fff; }

/* ---------- Consent-Button (Kreis) unten links ---------- */
.consent-fab { position: fixed; left: 16px; bottom: 16px; z-index: 1150; width: 52px; height: 52px; border-radius: 999px; border: 2px solid #fff; background: var(--steel-900); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: background .2s var(--ease), transform .2s var(--ease); }
.consent-fab:hover { background: var(--red); transform: translateY(-2px); }
.consent-fab svg { width: 1.55rem; height: 1.55rem; fill: currentColor; }
body.high-contrast .consent-fab { background: #000; border-color: #fff; }
body.high-contrast .consent-fab:hover { background: #ffea00; color: #000; }

/* ---------- Selbst-gehostetes Consent (zentriertes Modal) ---------- */
.consent { position: fixed; inset: 0; z-index: 2600; background: rgba(15,16,19,.72); display: none; place-items: center; padding: 1.2rem; }
.consent.show { display: grid; animation: fadeDown .3s var(--ease); }
.consent__modal { background: #fff; width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--red); }
.consent__head { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.consent__head h2 { font-size: 1.35rem; }
.consent__body { padding: 1.1rem 1.5rem; }
.consent__intro { font-size: .92rem; line-height: 1.6; color: var(--muted); margin-bottom: .6rem; }
.consent__intro a { color: var(--red-dark); }
.consent__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.consent__info b { display: block; color: var(--steel-900); margin-bottom: .1rem; }
.consent__info span { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.consent__foot { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); background: var(--bg-soft); }
.consent__foot .btn { flex: 1; justify-content: center; padding: .7rem 1rem; white-space: nowrap; }
/* Schalter */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #c9ced6; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--steel-700); cursor: not-allowed; opacity: .7; }
.switch input:focus-visible + .slider { outline: 3px solid var(--red); outline-offset: 2px; }
body.high-contrast .consent__modal { background: #000; border-color: #ffea00; }
body.high-contrast .consent__head h2, body.high-contrast .consent__info b { color: #fff; }
body.high-contrast .consent__intro, body.high-contrast .consent__info span { color: #eee; }
body.high-contrast .consent__foot { background: #000; }
body.high-contrast .switch input:checked + .slider { background: #ffea00; }
@media (max-width: 520px){ .consent__foot .btn { flex: 1 1 100%; } }

/* =====================================================================
   GERÄTE-WEICHE: Mobil = Animationen aufs Wesentliche
   ===================================================================== */
html.fx-lite .hero .kicker,
html.fx-lite .hero .hero-sub,
html.fx-lite .hero .btn-row > *,
html.fx-lite .hero .badge,
html.fx-lite .hero__scroll,
html.fx-lite .hero h1,
html.fx-lite .hero h1 .word { opacity:1 !important; transform:none !important; filter:none !important; animation:none !important; }
html.fx-lite .hero__bg img,
html.fx-lite .intro-figure .fx img { animation:none !important; transform:none !important; filter:none !important; clip-path:none !important; }
html.fx-lite .intro-figure::before { display:none !important; }

/* =====================================================================
   DESKTOP-ANIMATIONEN (html.fx-full) – gestaffelt & hochwertig
   ===================================================================== */
/* Schritte */
html.fx-full .steps .step { opacity:0; transform: translateY(42px) scale(.95); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i,0) * 120ms); }
html.fx-full .steps .step.in { opacity:1; transform:none; }
html.fx-full .steps .step .step__num { transform: scale(0) rotate(-30deg); transition: transform .6s cubic-bezier(.2,1.6,.4,1); transition-delay: calc(var(--i,0) * 120ms + .18s); }
html.fx-full .steps .step.in .step__num { transform:none; }

/* Ansprechpartner – „gigantisch": 3D-Klappe + Bild-Wipe */
html.fx-full .team .person { opacity:0; transform: perspective(1000px) rotateY(14deg) translateY(54px); transform-origin:left center; transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: calc(var(--i,0) * 170ms); }
html.fx-full .team .person:nth-child(2){ transform: perspective(1000px) rotateY(-14deg) translateY(54px); transform-origin:right center; }
html.fx-full .team .person.in { opacity:1; transform:none; }
html.fx-full .team .person img { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .25s; }
html.fx-full .team .person.in img { clip-path: inset(0 0 0 0); }

/* Karriere: Bild-Reveal + Ken-Burns + Badge fährt ein + Karten + Streifen */
html.fx-full .job-hero { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
html.fx-full .job-hero.in { clip-path: inset(0 0 0 0); }
html.fx-full .job-hero img { transform: scale(1.12); transition: transform 7s var(--ease); }
html.fx-full .job-hero.in img { transform: scale(1); }
html.fx-full .job-hero__badge { transform: translateX(-115%); transition: transform .75s cubic-bezier(.2,1.3,.4,1) .55s; }
html.fx-full .job-hero.in .job-hero__badge { transform:none; }
html.fx-full .job-grid .job-card { opacity:0; transform: translateY(48px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i,0) * 140ms); }
html.fx-full .job-grid .job-card.in { opacity:1; transform:none; }
html.fx-full .stripe { transform: scaleX(0); transform-origin:left; transition: transform .9s var(--ease); }
html.fx-full .stripe.in { transform: scaleX(1); }

/* Galerie: jede Kachel ploppt beim Scrollen ein */
html.fx-full .gallery figure { opacity:0; transform: translateY(34px) scale(.93); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.fx-full .gallery figure.in { opacity:1; transform:none; }

/* =====================================================================
   HISTORISCHES – Kacheln / Timeline (Text vollständig)
   ===================================================================== */
.history-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:1.2rem; }
.history-card {
  position:relative; background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  border-left:4px solid var(--red); border-radius: var(--radius); padding:1.6rem 1.6rem 1.7rem;
  backdrop-filter: blur(3px);
}
.history-year { display:inline-block; font-weight:800; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:#ff8c7a; margin-bottom:.4rem; }
.history-card h3 { color:#fff; font-size:1.25rem; margin-bottom:.6rem; }
.history-card p { color: rgba(255,255,255,.9); margin:0; }
html.fx-full .history-grid .history-card { opacity:0; transform: translateY(42px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i,0) * 130ms); }
html.fx-full .history-grid .history-card.in { opacity:1; transform:none; }
body.high-contrast .history-card { background:#000; border:2px solid #fff; border-left:4px solid #ffea00; }
body.high-contrast .history-year { color:#ffea00; }
@media (max-width:760px){ .history-grid { grid-template-columns:1fr; } }

/* Reduced Motion: alle neuen Effekte sofort sichtbar */
@media (prefers-reduced-motion: reduce){
  html.fx-full .steps .step, html.fx-full .steps .step .step__num,
  html.fx-full .team .person, html.fx-full .team .person img,
  html.fx-full .job-hero, html.fx-full .job-hero img, html.fx-full .job-hero__badge,
  html.fx-full .job-grid .job-card, html.fx-full .stripe, html.fx-full .gallery figure,
  html.fx-full .history-grid .history-card {
    opacity:1 !important; transform:none !important; clip-path:none !important; transition:none !important;
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); row-gap:2.4rem; }
}
@media (max-width: 900px){
  :root { --header-h: 72px; }
  .nav-toggle { display:block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background:#fff; flex-direction:column; align-items:stretch; justify-content:flex-start;
    padding: calc(var(--header-h) + 1rem) 1.2rem 2rem; gap:.2rem;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,.2); overflow-y:auto;
  }
  .nav.open { transform:none; }
  .nav > ul { flex-direction:column; align-items:stretch; gap:.1rem; width:100%; }
  .nav a.nav-link, .nav .nav-link { color: var(--steel-800) !important; width:100%; padding:.9rem .8rem; border-radius:10px; }
  .nav a.nav-link:hover { background: var(--bg-soft); }
  .dropdown-menu { position:static; display:none; box-shadow:none; border:0; border-left:2px solid var(--red-soft); border-radius:0; margin:.2rem 0 .4rem .6rem; padding-left:.4rem; }
  .has-dropdown.open .dropdown-menu { display:block; animation:none; }
  .nav-phone { margin:.6rem 0 0; justify-content:center; color:#fff !important; }
  .nav-backdrop { position:fixed; inset:0; background: rgba(15,16,19,.5); z-index:999; opacity:0; visibility:hidden; transition:.3s; }
  .nav-backdrop.show { opacity:1; visibility:visible; }
  .intro-grid { grid-template-columns:1fr; }
  .intro-figure { order:-1; }
  .stat-card { right:10px; }
  .team { grid-template-columns:1fr; }
  .feature-split { grid-template-columns:1fr; }
  .cta-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px){
  .gallery { grid-template-columns: repeat(2,1fr); gap:.6rem; }
  .steps { grid-template-columns:1fr; }
  .person { flex-direction:column; text-align:center; }
  .person img { width:150px; height:170px; }
  .hero { min-height: 92svh; }
  .badges { gap:1rem 1.4rem; }
}

/* =====================================================================
   KONTRASTMODUS (Barrierefreiheit)
   ===================================================================== */
body.high-contrast {
  --ink:#ffffff; --muted:#f0f0f0; --bg:#000000; --bg-soft:#0a0a0a; --bg-warm:#0a0a0a;
  --line:#ffffff; --steel-900:#000000; --steel-800:#000000; --steel-700:#000000;
  --red:#ffea00; --red-dark:#ffea00; --red-soft:#1a1a00;
  background:#000; color:#fff;
}
body.high-contrast a { color:#ffea00; }
body.high-contrast h1,body.high-contrast h2,body.high-contrast h3,body.high-contrast h4 { color:#fff; }
body.high-contrast .btn--primary,
body.high-contrast .kontakt-button,
body.high-contrast .nav-phone { background:#ffea00; color:#000 !important; }
body.high-contrast .btn--primary svg { fill:#000; }
body.high-contrast .site-header,
body.high-contrast .site-header.solid,
body.high-contrast .site-header.scrolled { background:#000; border-bottom:2px solid #fff; }
body.high-contrast .nav a.nav-link,
body.high-contrast .brand-name b,
body.high-contrast .brand-name span,
body.high-contrast .site-header:not(.scrolled):not(.solid) .nav a.nav-link { color:#fff !important; }
body.high-contrast .step, body.high-contrast .person, body.high-contrast .card,
body.high-contrast .feature-split .logo-box, body.high-contrast .modal { background:#000; border:2px solid #fff; }
body.high-contrast .hero::after,
body.high-contrast .dark-section::after,
body.high-contrast .cta-band::before { background: rgba(0,0,0,.8); }
body.high-contrast .eyebrow, body.high-contrast .dark-section .eyebrow { color:#ffea00; }
body.high-contrast .site-footer { background:#000; border-top:2px solid #fff; }
body.high-contrast .a11y-btn[aria-pressed="true"] { background:#ffea00; color:#000; border-color:#000; }
body.high-contrast .a11y-fab { background:#000; border-color:#fff; color:#fff; }
body.high-contrast .a11y-fab:hover, body.high-contrast .a11y-fab[aria-expanded="true"] { background:#ffea00; color:#000; }
body.high-contrast .a11y-panel { background:#000; border-color:#fff; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce){
  * { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .reveal { opacity:1 !important; transform:none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header,.a11y-tools,#scrollTop,.hero__scroll,.slider__btn,.audio-block,.map-wrap,.nav-toggle { display:none !important; }
  body { color:#000; }
  a { color:#000; text-decoration:underline; }
}
