/* beiling-classic.de – Stylesheet (von Hand gepflegt).
   Nach Änderungen: python3 scripts/build.py (setzt den ?v=<hash> in allen Seiten). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Werkstatt-Dunkel, warmes Papier, das Gelb des 504 Cabriolets, Rücklicht-Rot */
  --ink: #15120f;
  --coal: #1d1915;
  --coal-2: #2a241e;
  --coal-3: #3b332a;
  --stone: #b9ad9c;
  --sand: #e4dccd;
  --paper: #f4eee3;
  --cream: #fbf8f2;
  --white: #fff;
  --muted: #655b4f;
  --yellow: #e6c95a;
  --yellow-soft: #f1e2a3;
  --ochre: #7d6210;
  --red: #a52c1f;
  --red-dark: #86231a;
  --line: rgba(255, 255, 255, .13);
  --line-dark: rgba(21, 18, 15, .13);
  --radius: 6px;
  --shadow: 0 20px 44px -20px rgba(21, 18, 15, .55);
  --wrap: 1180px;
  --head: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
picture img { width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--ochre); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.4vw, 5.9rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.7rem; letter-spacing: .035em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem .75rem;
  font-family: var(--head); font-size: 1.3rem; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); margin-top: -.12em; }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-soft); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--red); color: var(--white); }
.btn-call { background: var(--yellow); color: var(--ink); padding: .65rem 1rem .55rem; font-size: 1.2rem; }
.btn-call:hover { background: var(--white); color: var(--ink); }
/* Lichtkante, die beim Überfahren über den Button läuft */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  translate: -120% 0;
}
.btn:hover::after { translate: 120% 0; transition: translate .7s var(--ease); }

.more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--head); font-size: 1.25rem; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none; color: var(--red);
}
.more .icon { transition: transform .25s var(--ease); margin-top: -.12em; }
a.more:hover .icon, .card:hover .more .icon { transform: translateX(5px); }

.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--head); font-size: 1.2rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .8rem; line-height: 1.1;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 3px; background: currentColor; flex: none; margin-top: -.1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

.social { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 15, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.emblem { width: 46px; height: 46px; flex: none; }
.emblem-bg { fill: var(--ink); }
.site-header .emblem-bg { fill: var(--coal-2); }
.emblem-hub { fill: var(--yellow); }
.emblem-wheel { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; transform-origin: 32px 32px; transition: rotate .7s var(--ease); }
.brand:hover .emblem-wheel { rotate: -70deg; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--head); font-weight: 400; font-size: 1.75rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-text span { font-size: .72rem; color: var(--stone); letter-spacing: .34em; text-transform: uppercase; }
.nav ul { display: flex; gap: .3rem; }
.nav a {
  position: relative; display: block; padding: .6rem .8rem .5rem;
  font-family: var(--head); font-size: 1.3rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--sand);
}
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px;
  background: var(--yellow); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current]::after { scale: 1 1; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }

/* ---------- Rallyestreifen (Zierelement in Hero und Seitenköpfen) ---------- */
.stripes {
  position: absolute; top: -20%; bottom: -20%; right: 9%; width: clamp(70px, 9vw, 130px);
  background:
    linear-gradient(90deg, var(--yellow) 0 22%, transparent 22% 39%, var(--red) 39% 61%, transparent 61% 78%, var(--yellow) 78%);
  opacity: .16;
  transform: skewX(-18deg);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero, .page-head {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(70rem 36rem at 88% -10%, rgba(230, 201, 90, .17), transparent 60%),
    radial-gradient(46rem 28rem at -10% 112%, rgba(165, 44, 31, .22), transparent 60%),
    var(--ink);
}
/* feine Nadelstreifen wie ein Werkstattboden im Gegenlicht */
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(180deg, #000 20%, transparent);
}
.hero .stripes, .page-head .stripes { z-index: -1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7.5rem);
}
.hero .eyebrow, .page-head .eyebrow { color: var(--yellow); }
.hero h1 { margin-bottom: .18em; }
.hero h1 .w { display: inline-block; }
.hero h1 .w:nth-last-child(-n+2) { color: var(--yellow); }
.hero-claim {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--sand); margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-claim::after { content: ""; flex: 1; max-width: 9rem; height: 1px; background: var(--yellow); transform-origin: left; }
.hero .lead, .page-head .lead { color: var(--sand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-media { position: relative; padding: 0 0 24% 10%; }
.hero-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-main { border: 1px solid var(--line); }
.hero-side { position: absolute; left: 0; bottom: 0; width: 46%; border: 5px solid var(--ink); }
.hero-badge {
  position: absolute; right: -.6rem; top: -1.4rem; margin: 0;
  display: flex; align-items: center; gap: .7rem;
  background: var(--cream); color: var(--ink); padding: .7rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.2;
}
.hero-badge .icon { width: 2rem; height: 2rem; color: var(--red); }
.hero-badge strong { display: block; font-family: var(--head); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }

/* Drehzahlmesser */
.tacho {
  position: absolute; right: 3%; bottom: 0; width: clamp(110px, 31%, 190px); height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
}
.tacho-rim { fill: var(--coal-3); stroke: var(--stone); stroke-width: 2; }
.tacho-face { fill: var(--ink); }
.tacho line { stroke: var(--sand); stroke-linecap: round; }
.tacho .t-major { stroke-width: 3; }
.tacho .t-minor { stroke-width: 1.2; opacity: .7; }
.tacho .t-red { stroke: #e0483a; opacity: 1; }
.tacho text { font-family: var(--head); font-size: 17px; fill: var(--sand); text-anchor: middle; }
.tacho .tacho-unit { font-family: var(--body); font-size: 8px; letter-spacing: .08em; fill: var(--stone); }
.tacho-needle { transform-origin: 100px 100px; rotate: -105deg; }
.tacho-needle path { stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; fill: none; }
.tacho-hub { fill: var(--coal-3); stroke: var(--yellow); stroke-width: 2; }

/* ---------- Laufband ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee span {
  display: flex; align-items: center; gap: 1.6rem; padding: .75rem 0 .6rem 1.6rem;
  font-family: var(--head); font-size: 1.5rem; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.marquee span::after { content: ""; width: .5rem; height: .5rem; background: var(--red); rotate: 45deg; margin-top: -.15em; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lead, .section-dark .prose { color: var(--sand); }
.section-dark .eyebrow { color: var(--yellow); }
.section-dark figcaption { color: var(--stone); }
.section-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head h2 { position: relative; padding-bottom: .42em; margin-bottom: .42em; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 5px;
  background: linear-gradient(90deg, var(--yellow) 0 46%, transparent 46% 54%, var(--red) 54%);
  transform-origin: left;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.9rem; margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1em; }

.frame { margin: 0; }
.frame-pic { position: relative; }
.frame picture { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame-pic::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1;
  border: 3px solid var(--yellow); border-radius: var(--radius);
}
figcaption { font-size: .88rem; color: var(--muted); margin-top: 1.9rem; }
.frame figcaption { padding-left: 1.1rem; border-left: 3px solid var(--red); line-height: 1.3; }
.split-media, .service-media, .about-media { position: relative; isolation: isolate; }

/* ---------- Fachgebiete (Karten) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 1.8rem 1.5rem 1.6rem;
  background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s, background-color .3s, color .3s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--yellow) 0 46%, transparent 46% 54%, var(--red) 54%);
  scale: 0 1; transform-origin: left; transition: scale .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: var(--ink); color: var(--white); }
.card:hover::before { scale: 1 1; }
.card-icon { width: 3.4rem; height: 3.4rem; color: var(--red); margin-bottom: 1.2rem; transition: color .3s, transform .4s var(--ease); }
.card:hover .card-icon { color: var(--yellow); transform: rotate(-6deg) scale(1.08); }
.card h3 { hyphens: auto; }
.card p { color: var(--muted); font-size: .98rem; transition: color .3s; }
.card:hover p { color: var(--sand); }
.card .more { margin-top: auto; }
.card:hover .more { color: var(--yellow); }

/* ---------- Peugeot-Baureihen ---------- */
.series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.6rem 0 1.8rem; }
.series li {
  display: grid; gap: .5rem; align-content: start;
  padding: 1rem .9rem 1.1rem; background: var(--cream); border-radius: var(--radius);
  border-bottom: 4px solid var(--yellow);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.series li:hover { transform: translateY(-4px); background: var(--ink); color: var(--white); }
.series strong {
  font-family: var(--head); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.series li:hover strong { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); }
.series span { font-size: .82rem; line-height: 1.35; color: var(--muted); transition: color .3s; }
.series li:hover span { color: var(--sand); }

/* ---------- Fakten ---------- */
.facts { background: var(--ink); color: var(--white); border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid li { padding: 2.2rem 1.6rem; border-left: 1px solid var(--line); display: grid; gap: .35rem; align-content: start; }
.facts-grid li:first-child { border-left: 0; padding-left: 0; }
.facts-grid .icon { width: 2.2rem; height: 2.2rem; color: var(--yellow); margin-bottom: .4rem; }
.facts-grid strong { font-family: var(--head); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; }
.facts-grid span { color: var(--stone); font-size: .95rem; line-height: 1.5; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 1.7rem; right: 1.7rem; top: 1.7rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--stone) 0 8px, transparent 8px 16px);
}
.step { position: relative; }
.step .icon {
  width: 3.4rem; height: 3.4rem; padding: .8rem; margin-bottom: 1.1rem;
  background: var(--ink); color: var(--yellow); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--cream);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.step:hover .icon { background: var(--red); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Fotos mit Großansicht ---------- */
.shot {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--coal-2); color: var(--white);
}
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: brightness(.82); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .7rem;
  font-size: .88rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(21, 18, 15, .88));
  opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; translate: 0 0; }
/* Zeilen gleicher Höhe, jedes Foto in seinem Seitenverhältnis (kein Beschnitt) */
.shots-flow { display: flex; flex-wrap: wrap; gap: .9rem; --row: 300px; }
.shots-flow .shot { flex: var(--r) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); }
.r-quer { --r: 1.679; }
.r-43 { --r: 1.333; }
.r-quadrat { --r: 1.072; }

/* Sprungmarken unter dem Seitenkopf */
.jump { background: var(--coal-2); border-bottom: 1px solid var(--line); position: sticky; top: 77px; z-index: 40; }
.jump ul { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.8rem; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: block; padding: .8rem .8rem .65rem; white-space: nowrap; text-decoration: none;
  font-family: var(--head); font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stone);
}
.jump a:hover { color: var(--yellow); }

/* ---------- Großansicht (per JavaScript) ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  background: rgba(21, 18, 15, .96); color: var(--white);
}
.lightbox::backdrop { background: rgba(21, 18, 15, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .3s var(--ease); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 3.5rem 1rem 0; }
.lb-stage img { max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); animation: lb-img .35s var(--ease); }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem; text-align: center; font-size: .95rem; }
.lb-count { color: var(--stone); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem;
  background: rgba(255, 255, 255, .1); color: var(--white); border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.lb-btn:hover { background: var(--red); transform: scale(1.08); }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; margin-top: -1.5rem; }
.lb-next { right: .8rem; top: 50%; margin-top: -1.5rem; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; scale: .96; } }

/* ---------- Handlungsaufruf ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(115deg, var(--red-dark), var(--ink) 62%);
}
.cta-band::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 56%; width: clamp(60px, 8vw, 110px);
  background: linear-gradient(90deg, var(--yellow) 0 22%, transparent 22% 39%, var(--yellow) 39% 61%, transparent 61% 78%, var(--yellow) 78%);
  opacity: .14; transform: skewX(-18deg);
}
.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; color: var(--sand); max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Unterseiten ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); margin-bottom: .25em; }
.page-head .lead { margin: 0; }

.services { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.service:nth-child(even) .service-text { order: 2; }
.service .eyebrow::before { display: none; }
.service .eyebrow .icon { width: 1.6rem; height: 1.6rem; margin-top: -.15em; }
.service-lead { font-size: 1.15rem; font-weight: 600; }
.checks { display: grid; gap: .55rem; margin: 1.4rem 0 1.6rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .45em; width: .95rem; height: .5rem;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); rotate: -45deg;
}
.section-dark .checks li::before { border-color: var(--yellow); }

.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.35; color: var(--ink);
  padding-left: 1.3rem; border-left: 5px solid var(--yellow); margin-bottom: 1.8rem;
}
.about-text .btn { margin: .8rem 1.4rem .6rem 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card { background: var(--ink); color: var(--white); padding: 2rem; border-radius: var(--radius); border-top: 5px solid var(--yellow); }
.info-card h2 { font-size: 2.2rem; margin-bottom: .3em; }
.info-card address { color: var(--sand); margin-bottom: 1.4rem; }
.contact-list { display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: 1.6rem 5rem 1fr; gap: .6rem; align-items: center; }
.contact-list .icon { color: var(--yellow); }
.contact-list span { color: var(--stone); font-size: .88rem; }
.contact-list a { color: var(--white); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--yellow); }
.map { margin: 1.6rem 0 0; }
.map picture { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.map figcaption { margin-top: .5rem; font-size: .8rem; }
.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.2rem; }

.form-card { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border-top: 5px solid var(--red); }
.form-card h2 { font-size: 2.2rem; margin-bottom: .3em; }
.form-card > p { color: var(--muted); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; align-content: start; }
select { min-height: 3.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; background: var(--white);
  border: 1.5px solid var(--stone); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(230, 201, 90, .6); }
textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-weight: 400; margin-bottom: 1.4rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--red); }
.form-note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Fuß ---------- */
.site-footer { background: #0e0c0a; color: var(--stone); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr .7fr; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-logo { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.footer-logo strong { font-family: var(--head); font-weight: 400; font-size: 1.75rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.footer-logo .emblem-bg { fill: var(--coal-2); }
.footer-brand p { max-width: 20rem; }
.site-footer h2 { font-size: 1.3rem; letter-spacing: .12em; color: var(--white); margin-bottom: .9rem; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { margin-bottom: 1em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-grid, .split, .service, .contact, .about { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 640px; }
  .service:nth-child(even) .service-text { order: 0; }
  .section-alt .split-media { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .steps::before { display: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-grid li:nth-child(-n+2) { border-top: 0; }
  .facts-grid li:nth-child(odd) { padding-right: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .frame-pic::before { inset: .8rem -.6rem -.8rem .8rem; }
  .split-media, .service-media, .about-media { margin-right: .6rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 170px; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .5rem; min-height: 0; }
  .emblem { width: 40px; height: 40px; }
  .nav { order: 3; width: 100%; }
  .nav ul { justify-content: space-between; gap: 0; }
  .nav a { padding: .55rem .3rem .45rem; font-size: 1.2rem; }
  .nav a::after { left: .3rem; right: .3rem; }
  .btn-call span { display: none; }
  .btn-call { padding: .7rem; border-radius: 50%; }
  .btn-call .icon { margin-top: 0; }
  .jump { top: 98px; }
  .shots-flow { --row: 190px; gap: .6rem; }
  .shot-cap { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cards, .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-badge { right: 0; top: -1.6rem; }
  .hero-media { margin-top: 1.6rem; padding-bottom: 30%; }
  .eyebrow { font-size: 1.05rem; letter-spacing: .12em; }
  .eyebrow::before { width: 1.4rem; }
  .lead { font-size: 1.08rem; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .steps { gap: 1.6rem 1rem; }
  .step h3 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .facts-grid li { padding-block: 1.5rem; }
  .contact-list li { grid-template-columns: 1.6rem 1fr; }
  .contact-list span { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 4.5rem; }
}

/* ---------- Animationen ----------
   Grundzustand ist immer „sichtbar“. Versteckt wird nur, wenn site.js läuft
   (html.js) – und nie bei „Bewegung reduzieren“. Es werden translate/scale/rotate
   animiert (nicht transform), damit Hover-Effekte danach weiter funktionieren. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Start: Wörter der Überschrift nacheinander, dann Zeile, Text, Buttons */
  .hero .eyebrow, .hero .lead, .hero-actions, .hero-claim,
  .page-head .eyebrow, .page-head h1, .page-head .lead {
    animation: rise .8s var(--ease) backwards;
  }
  .hero h1 .w { animation: word .8s var(--ease) backwards; }
  .hero h1 .w:nth-child(1) { animation-delay: .1s; }
  .hero h1 .w:nth-child(2) { animation-delay: .2s; }
  .hero h1 .w:nth-child(3) { animation-delay: .3s; }
  .hero h1 .w:nth-child(4) { animation-delay: .4s; }
  .hero h1 .w:nth-child(5) { animation-delay: .5s; }
  .hero-claim { animation-delay: .7s; }
  .hero-claim::after { animation: draw 1s 1s var(--ease) backwards; }
  .hero .lead { animation-delay: .85s; }
  .hero-actions { animation-delay: 1s; }
  .page-head h1 { animation-delay: .1s; }
  .page-head .lead { animation-delay: .22s; }
  .stripes { animation: stripes 1.4s var(--ease) backwards; }
  .hero-main { animation: wipe 1.2s .25s var(--ease) backwards; }
  .hero-main img { animation: kenburns 16s ease-out forwards; }
  .hero-side { animation: pop .8s .8s var(--ease) backwards; }
  .hero-badge { animation: pop .7s 1.1s var(--ease) backwards, float 6s 2s ease-in-out infinite; }
  /* Drehzahlmesser: einblenden, Nadel dreht hoch und fällt auf Leerlauf zurück, zittert dann leicht */
  .tacho { animation: pop .8s 1.1s var(--ease) backwards; }
  .tacho-needle { animation: rev 2.6s 1.5s cubic-bezier(.3, .1, .2, 1) backwards, idle 2.4s 4.1s ease-in-out infinite; }
  .marquee-track { animation: marquee 34s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Beim Scrollen (site.js setzt .in, --d staffelt gleichzeitig Erscheinendes) */
  .js .rv:not(.in), .js .cards > :not(.in), .js .steps > :not(.in), .js .series > :not(.in), .js .shots > :not(.in) { opacity: 0; }
  .js .rv.in, .js .cards > .in, .js .steps > .in, .js .shots > .in {
    animation: rise .8s var(--d, 0ms) var(--ease) backwards;
  }
  .js .series > .in { animation: flip .8s var(--d, 0ms) var(--ease) backwards; }
  .js .rv-img:not(.in) picture { clip-path: inset(0 100% 0 0); }
  .js .rv-img.in picture { animation: wipe 1.1s var(--d, 0ms) var(--ease) backwards; }
  .js .rv-img.in img { animation: settle 1.5s var(--d, 0ms) var(--ease) backwards; }
  .js .rv-img:not(.in) .frame-pic::before, .js .rv-img:not(.in) figcaption { opacity: 0; }
  .js .rv-img.in .frame-pic::before { animation: frame .9s calc(var(--d, 0ms) + .5s) var(--ease) backwards; }
  .js .rv-img.in figcaption { animation: rise .7s calc(var(--d, 0ms) + .6s) var(--ease) backwards; }
  .js .section-head:not(.in) h2::after { scale: 0 1; }
  .js .section-head.in h2::after { animation: draw .9s calc(var(--d, 0ms) + .35s) var(--ease) backwards; }
  /* Icons der Karten zeichnen sich selbst */
  .js .draw > * { stroke-dasharray: 1; }
  .js .cards > :not(.in) .draw > * { stroke-dashoffset: 1; }
  .js .cards > .in .draw > * { animation: stroke 1.4s calc(var(--d, 0ms) + .3s) ease-out backwards; }

  /* Lesefortschritt unter der Kopfzeile (Chrome, Edge, Safari 26+) */
  @supports (animation-timeline: scroll()) {
    .progress {
      background: linear-gradient(90deg, var(--red), var(--yellow));
      transform-origin: left; scale: 0 1;
      animation: progress linear both; animation-timeline: scroll(root);
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes word { from { opacity: 0; translate: 0 .5em; rotate: 3deg; } }
@keyframes draw { from { scale: 0 1; } }
@keyframes stripes { from { opacity: 0; translate: 40% 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { scale: 1.12; } }
@keyframes kenburns { from { scale: 1.1; } to { scale: 1; } }
@keyframes pop { from { opacity: 0; scale: .8; translate: 0 20px; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes flip { from { opacity: 0; translate: 0 24px; rotate: x 60deg; } }
@keyframes frame { from { opacity: 0; translate: -1.1rem -1.1rem; } }
@keyframes stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes progress { to { scale: 1 1; } }
@keyframes rev { 0% { rotate: -135deg; } 45% { rotate: 88deg; } 62% { rotate: 70deg; } 100% { rotate: -105deg; } }
@keyframes idle { 50% { rotate: -101deg; } }

@media print {
  .site-header, .marquee, .jump, .cta-band, .progress, .btn, .tacho { display: none !important; }
  .js .rv, .js .rv-img picture, .js .cards > *, .js .steps > *, .js .series > *, .js .shots > * { opacity: 1 !important; clip-path: none !important; }
  .hero, .page-head, .section-dark, .facts { background: none; color: #000; }
}
