/* ==========================================================================
   Preisacher Unfallinstandsetzung — site.css
   Ein Stylesheet für alle Seiten. Ersetzt style.css / main.css / transition.css
   (die alten Dateien liegen unverändert in _stand_vor_template/).
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "KH Teka";
  src: url("../fonts/KHTeka-Medium.woff2") format("woff2"),
       url("../fonts/KHTeka-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* IvyOra Display kommt über das Adobe-Fonts-Kit (link im <head>). */

/* ---------- Tokens ---------- */
:root {
  --serif: "ivyora-display", "Baskerville", "Times New Roman", serif;
  --sans: "KH Teka", "Helvetica Neue", Arial, sans-serif;

  --bg: #16131c;          /* Grundfläche */
  --bg-2: #1d1a24;        /* etwas hellere Fläche (Karten, Bänder) */
  --line: rgba(248, 248, 255, 0.12);
  --white: #f8f8ff;
  --text: #adadb6;        /* Fließtext */
  --muted: #7d7c87;
  --red: #b00a0e;         /* Logo-/Button-Rot */
  --red-hover: #cf1217;

  --header-h: 88px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 12vw, 10rem);   /* vertikaler Abstand zwischen Sektionen */

  --ease: cubic-bezier(.22, .9, .28, 1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--red); color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow--red { color: var(--red-hover); }

.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.display--xl { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
.display--l  { font-size: clamp(2rem, 4vw, 3.4rem); }
.display--m  { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
}

.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--white); border-bottom: 1px solid var(--red); }
.prose a:hover { color: var(--red-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn:active { transform: scale(.97); }

.link-arrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); display: inline-flex; gap: .6em; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(22, 19, 28, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo img { width: 132px; height: auto; transition: opacity .3s; }
.site-logo:hover img { opacity: .75; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 1.9rem; }
.site-nav a:not(.btn) {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); position: relative; padding: .4em 0;
  transition: color .3s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { padding: .65em 1.3em; }
/* Desktop: Menüpunkte mittig im Header, Logo links, Kontakt rechts */
@media (min-width: 1081px) {
  .site-header .wrap { position: relative; }
  .site-nav ul { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .site-nav a:not(.btn) { white-space: nowrap; }
}

/* Burger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobiles Menü: Glasfeld, das unter dem Header langsam aufgleitet
   (Bewegung und Look aus Jürgens Entwurf: main.css / .dropdown_menu) */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% - .4rem);
    left: var(--gutter); right: var(--gutter);
    height: 0;
    overflow: hidden;
    flex-direction: column; justify-content: center; align-items: center; gap: 0;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .nav-open .site-nav { height: 70vh; height: 70svh; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 0; }
  .site-nav li { padding: 1rem; display: flex; justify-content: center; }
  .site-nav a:not(.btn) { font-size: .8rem; }
  .site-nav .btn { margin-top: 1rem; }
  /* Unschärfe im Header abschalten, solange das Menü offen ist –
     sonst kann das Glasfeld den Seiteninhalt dahinter nicht weichzeichnen */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   HERO (Startseite: 100vh, Unterseiten: .hero--page)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero--page { min-height: 78vh; min-height: 78svh; }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(to bottom, rgba(22,19,28,.72) 0%, rgba(22,19,28,.55) 45%, rgba(22,19,28,.92) 100%);
}

.hero__content {
  width: min(100% - 2 * var(--gutter), 56rem);
  padding-top: var(--header-h);
}
.hero__content .eyebrow { margin-bottom: 1.4rem; }
.hero__content .display { margin-bottom: 1.4rem; }
.hero__content .lead { max-width: 42rem; margin-inline: auto; color: rgba(248,248,255,.82); }

/* Einblend-Reihenfolge: Text zuerst, Bild zuletzt (wie in deinem Entwurf) */
.hero .eyebrow, .hero .display, .hero .lead, .hero .hero__actions {
  opacity: 0; transform: translateY(22px); filter: blur(4px);
  animation: fadeUp .9s var(--ease) forwards;
}
.hero .eyebrow  { animation-delay: .45s; }
.hero .display  { animation-delay: .7s; }
.hero .lead     { animation-delay: .95s; }
.hero .hero__actions { animation-delay: 1.15s; margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__media { opacity: 0; transform: scale(1.05); animation: mediaIn 1.6s ease-out 1.2s forwards; }

@keyframes fadeUp { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mediaIn { to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   SEKTIONEN
   ========================================================================== */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
/* Trenner: kurzer Strich mittig, 10 % der Bildschirmbreite statt durchgehender Linie */
.section--line, .cta, .site-footer { position: relative; }
.section--line::before, .cta::before, .site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 10vw; min-width: 48px; height: 1px; background: var(--line);
}

/* Statement: großer kursiver Satz, zentriert */
.statement { text-align: center; }
.statement .eyebrow { margin-bottom: 1.6rem; display: block; }
.statement .display + .lead { margin-top: 1.8rem; }

/* Bild + Text nebeneinander */
.split {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.split__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__text .eyebrow { display: block; margin-bottom: 1.2rem; }
.split__text .display { margin-bottom: 1.4rem; }
.split__text .link-arrow { margin-top: 2rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Breites Bildband */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 700px) { .band img { aspect-ratio: 4 / 3; } }

/* Video-Sektion (Startseite) */
.video-stage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate;
}
.video-stage > video, .video-stage > img, .video-stage > picture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.video-stage > video, .video-stage > img, .video-stage > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.video-stage .hero__shade { background: linear-gradient(to bottom, rgba(22,19,28,.92) 0%, rgba(22,19,28,.45) 40%, rgba(22,19,28,.55) 70%, rgba(22,19,28,.95) 100%); }
.video-stage__content { width: min(100% - 2 * var(--gutter), 52rem); }
/* Video-Stage mit Text oben – Motiv (z. B. Stern 300 SL) bleibt in der Bildmitte frei */
.video-stage--top { place-items: start center; padding-top: clamp(7rem, 16vh, 11rem); }
.video-stage--top > picture img { object-position: 50% 50%; }
.video-stage--top .hero__shade { background: linear-gradient(to bottom, rgba(22,19,28,.95) 0%, rgba(22,19,28,.7) 30%, rgba(22,19,28,.2) 55%, rgba(22,19,28,.25) 75%, rgba(22,19,28,.95) 100%); }

.video-stage .eyebrow { display: block; margin-bottom: 1.4rem; }
.video-stage .lead { margin-top: 1.4rem; color: rgba(248,248,255,.82); }

/* Kapitel: zentrierter Text über einem großen Bild/Video */
.chapter { text-align: center; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.chapter .eyebrow { display: block; margin-bottom: 1.4rem; }
.chapter .display { margin-bottom: 1.6rem; }
.chapter .lead { max-width: 40rem; margin-inline: auto; }
.chapter .link-arrow { margin-top: 2rem; }
.chapter .checklist { max-width: 30rem; margin: 2.6rem auto 0; text-align: center; }
.chapter .checklist li { padding: .45rem 0; color: var(--white); }
.chapter .checklist li::before { display: none; }

/* Großes Bild / Video über die ganze Breite */
.media {
  margin: 0;
  width: 100%;
  height: clamp(22rem, 82vh, 58rem);
  overflow: hidden;
  background: var(--bg-2);
}
.media img, .media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.8s var(--ease);
}
.media.reveal { opacity: 1; transform: none; }          /* Fläche sofort da … */
.media.is-visible img, .media.is-visible video { transform: scale(1); }  /* … Bild zoomt sanft rein */
@media (max-width: 700px) { .media { height: 70vh; height: 70svh; } }

/* Rahmen: große Bilder und Video-Bühnen rücken 2 % vom Rand ab */
.media, .video-stage { width: auto; margin-inline: 2vw; }
.media + .section, .video-stage + .section { margin-top: 0; }

/* Leistungs-Kacheln (Startseite) */
.cards-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
/* Kachel-Slider: eine Reihe, links bündig mit dem Inhalt, rechts bis an den Rand */
.cards {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;   /* kein scroll-behavior:smooth – ruckelt mit Snap auf iOS */
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cards::-webkit-scrollbar { display: none; }
.cards::after { content: ""; flex: 0 0 1px; }   /* rechter Innenabstand am Ende */
.cards > .card { flex: 0 0 clamp(17rem, 28vw, 23rem); scroll-snap-align: start; }
@media (max-width: 640px) { .cards > .card { flex-basis: 82vw; } }
@media (hover: none) { .cards > .card { scroll-snap-stop: always; } }   /* Touch: eine Kachel pro Wisch, ruhiger */

.cards-tools { display: flex; align-items: center; gap: 1.8rem; }
.slider-nav { display: flex; gap: .6rem; }
.slider-nav[hidden] { display: none; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: none; color: var(--white);
  border: 1px solid rgba(248, 248, 255, .25);
  transition: border-color .3s, opacity .3s;
}
.slider-btn:hover { border-color: var(--white); }
.slider-btn:disabled { opacity: .25; cursor: default; }
.slider-btn:disabled:hover { border-color: rgba(248, 248, 255, .25); }
.slider-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .slider-nav { display: none !important; } }   /* Touch: wischen statt klicken */
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 26rem; padding: 2rem; overflow: hidden; border-radius: 4px;
  background: var(--bg-2); color: var(--white); isolation: isolate;
}
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: filter .6s;
  filter: brightness(.85);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,19,28,.95) 0%, rgba(22,19,28,.25) 60%, rgba(22,19,28,.1) 85%, rgba(22,19,28,.45) 100%);
}
.card:hover img { filter: brightness(1); }
/* Slider: Kacheln nur einblenden, nicht verschieben */
.cards > .card.reveal { transform: none; }
.card__num { position: absolute; top: 1.6rem; left: 2rem; font-size: .72rem; letter-spacing: .2em; color: var(--text); }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.card p { margin-top: .6rem; font-size: .95rem; color: var(--text); max-width: 22rem; }
.card .link-arrow { margin-top: 1.4rem; }
@media (max-width: 640px)  { .card { min-height: 22rem; } }
/* Hochformat-Kacheln (Oldtimer) */
.cards--tall > .card { min-height: 0; aspect-ratio: 3 / 4; }
/* Leistungs-Kacheln: auf großen Bildschirmen alle vier mittig nebeneinander statt Slider */
@media (min-width: 1240px) {
  .cards--center { overflow: visible; padding-inline: var(--edge); }
  .cards--center::after { display: none; }
  .cards--center > .card { flex: 1 1 0; }
  .cards--center .card p { min-height: 4.8em; }   /* Titel aller Kacheln auf einer Höhe */
}

/* Zwei Abteilungen: zwei Textspalten, feine Trennlinie */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo__col { padding: 0 clamp(1.5rem, 5vw, 4.5rem); text-align: center; }
.duo__col .eyebrow { display: block; margin-bottom: 1.2rem; }
.duo__col h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: 1.2rem; }
.duo__col p { max-width: 30rem; margin-inline: auto; }
.duo__col .link-arrow { margin-top: 1.8rem; }
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo__col { padding: 0; }
  .duo__col + .duo__col { margin-top: 4rem; }
}

/* Marken-Leiste (Text, keine Logos) */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(1.5rem, 5vw, 4rem); margin-top: 2.6rem; }
.brands li { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--white); }
/* Herstellerlogos statt Schriftzug – optisch gleich gewichtet */
.brands--logos { align-items: center; gap: 1.8rem clamp(2.5rem, 7vw, 5.5rem); }
.brand-logo { width: auto; opacity: .92; }
.brand-logo--aston  { height: clamp(30px, 3.4vw, 42px); }
.brand-logo--jaguar { height: clamp(15px, 1.7vw, 21px); }
.brand-logo--lr     { height: clamp(40px, 4.4vw, 56px); }
@media (max-width: 640px) {   /* Handy: alle drei in einer Reihe */
  .brands--logos { flex-wrap: nowrap; gap: 6vw; }
  .brand-logo--aston  { height: 7vw; }
  .brand-logo--jaguar { height: 3.6vw; }
  .brand-logo--lr     { height: 9.5vw; }
}

/* Liste mit Leistungen */
.checklist { margin-top: 2rem; }
.checklist li { padding: .5rem 0 .5rem 2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 10px; height: 1px; background: var(--red); }

/* Leiser Schlusssatz vor dem Footer */
.cta { padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta__line {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--text);
}

/* Kontakt-Raster */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.contact-grid h3 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.contact-grid p, .contact-grid a { color: var(--white); font-size: 1.15rem; line-height: 1.6; }
.contact-grid a:hover { color: var(--red-hover); }
.contact-grid .btn { margin-top: 1.2rem; font-size: .74rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Terminanfrage (kontakt.html) */
.form { margin-top: 3rem; display: grid; gap: 1.6rem; }
.form[hidden], .form-status[hidden] { display: none; }
section[id] { scroll-margin-top: var(--header-h); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .55rem; }
.field__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field__label em { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  padding: .85rem 1rem; transition: border-color .3s var(--ease);
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field input::placeholder { color: var(--muted); }
.check { display: flex; gap: .9rem; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--red); flex: none; }
.check a { color: var(--white); border-bottom: 1px solid var(--red); }
.form .btn { justify-self: start; margin-top: .4rem; cursor: pointer; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 2.4rem; padding: 1.2rem 1.4rem; border-radius: 4px; border: 1px solid var(--line); color: var(--white); }
.form-status--ok { border-color: rgba(120, 190, 140, .5); background: rgba(120, 190, 140, .08); }
.form-status--error { border-color: var(--red); background: rgba(176, 10, 14, .1); }

.hours { width: 100%; border-collapse: collapse; color: var(--white); }
.hours td { padding: .35rem 0; }
.hours td:last-child { text-align: right; color: var(--text); }

/* Rechtstexte */
.legal h2 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--white); font-size: 1.6rem; margin: 3rem 0 1rem; }
.legal h3 { color: var(--white); font-size: 1rem; margin: 2rem 0 .5rem; font-weight: 500; }
.legal p, .legal li { font-size: .98rem; }
.legal ul { margin: .6rem 0 0 1.2rem; list-style: disc; }


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding-top: 5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer-grid a { color: var(--white); transition: color .3s; }
.footer-grid a:hover { color: var(--red-hover); }
.footer-grid li + li { margin-top: .35rem; }
/* Rechtliches + Copyright: eine zentrierte Zeile direkt über dem roten Feld */
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .4rem 1.6rem; margin-top: 4.5rem;
  font-size: .72rem; color: var(--muted);
}
.footer-legal a { color: var(--muted); transition: color .3s; }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 420px) { .footer-legal { gap: .4rem .85rem; font-size: .66rem; } }

/* Rotes Feld ganz unten: nur die Hotline, eine Zeile */
/* Hotline-Balken: fest am unteren Bildschirmrand, auf allen Seiten */
.footer-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--red);
  /* Alternative (dunkel, Safari-Leiste bleibt dunkel):
     background: rgba(22, 19, 28, 0.9); backdrop-filter: blur(12px); border-top: 1px solid rgba(176, 10, 14, 0.75); */
  text-align: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: env(safe-area-inset-bottom);   /* iPhone: über der Home-Leiste */
}
body { padding-bottom: calc(2.9rem + env(safe-area-inset-bottom)); }   /* Platz, damit der Balken nichts verdeckt */
.site-footer { padding-bottom: 1.4rem; }
.footer-bottom .wrap { padding-block: .85rem; }
.footer-bottom a { display: block; color: rgba(248, 248, 255, .9); transition: color .3s; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SEITENÜBERGANG + SCROLL-REVEAL
   ========================================================================== */
.page-veil {
  position: fixed; inset: 0; z-index: 1000; background: #000; pointer-events: none;
  animation: veilOut 1.2s var(--ease) .15s forwards;
}
@keyframes veilOut { to { opacity: 0; } }
/* Beim Verlassen setzt app.js die Deckkraft per Transition wieder auf 1 */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Druck */
@media print {
  .site-header, .page-veil, video { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Kapitel-Auftakt: Bild mit Headline (historisch.html) */
.media--titled { position: relative; }
.media__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  margin: 0;
  padding: clamp(5rem, 14vw, 11rem) var(--gutter) clamp(2.2rem, 5vw, 4rem);
  text-align: center; color: var(--white);
  background: linear-gradient(to top, rgba(22,19,28,.78) 0%, rgba(22,19,28,.42) 50%, rgba(22,19,28,0) 100%);
  pointer-events: none;
}
.media__title .display { max-width: 48rem; margin: 0 auto; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
/* Headline im Bild rechtsbündig, Kante ca. 20 % vom rechten Rand (Gegenpol zum Text links) */
.media__title { text-align: right; padding-right: 18vw; }   /* 18vw + 2vw Bildrand = 20 % */
.media__title .display { margin: 0 0 0 auto; max-width: 40rem; }
@media (max-width: 700px) { .media__title { padding-right: var(--gutter); } }
.hero + .media--titled { margin-top: 2vw; }
figure[id] { scroll-margin-top: var(--header-h); }
/* Text bekommt eine eigene Bühne: fast bildschirmhoch, mittig zwischen den Bildern */
.media--titled + .section {
  min-height: 90vh; min-height: 90svh;
  display: flex; align-items: center; justify-content: center;
  padding-block: var(--section);
}
/* Text linksbündig, ca. 20 % vom linken Rand */
.media--titled + .section { justify-content: flex-start; text-align: left; }
.media--titled + .section > .wrap--narrow {
  margin-left: 20vw; margin-right: var(--gutter);
  width: min(100% - 20vw - var(--gutter), 40rem);
}
.media--titled + .section .lead { margin-inline: 0; }
@media (max-width: 700px) {
  .media--titled + .section { min-height: 75vh; min-height: 75svh; }
  .media--titled + .section > .wrap--narrow { margin-left: var(--gutter); width: auto; }
}

/* Telefonnummern nie umbrechen */
a[href^="tel:"] { white-space: nowrap; }

/* Zwei Bilder nebeneinander, 80 / 20 (lackieren.html) */
.media--pair { height: clamp(13rem, 28vw, 34rem); background: none; display: grid; grid-template-columns: 4fr 1fr; gap: 2vw; }
.media--pair .media__cell { height: 100%; overflow: hidden; background: var(--bg-2); }
.media--pair .media__cell:last-child img { object-position: 45% 50%; }
@media (max-width: 700px) { .media--pair { height: 72vw; grid-template-columns: 3fr 2fr; } }
/* umgekehrt: 20 / 80 */
.media--pair-rev { grid-template-columns: 1fr 4fr; }
.media--pair-rev .media__cell:first-child img { object-position: 38% 50%; }
.media--pair-rev .media__cell:last-child img { object-position: 50% 50%; }
@media (max-width: 700px) { .media--pair-rev { grid-template-columns: 2fr 3fr; } }
/* Bildausschnitte werkstatt.html */
.media--pair img[src*="werkstatt_jacke"] { object-position: 28% 50%; }
@media (max-width: 700px) { .media--pair img[src*="werkstatt_bmw"] { object-position: 72% 50%; } }
/* Textblöcke nach Bildpaaren wie auf historisch.html: viel Raum, linksbündig ca. 20 % vom Rand */
.media--pair + .section {
  min-height: 90vh; min-height: 90svh;
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left; padding-block: var(--section);
}
.media--pair + .section > .wrap--narrow { margin-left: 20vw; margin-right: var(--gutter); width: min(100% - 20vw - var(--gutter), 40rem); }
.media--pair + .section .lead { margin-inline: 0; }
@media (max-width: 700px) {
  .media--pair + .section { min-height: 75vh; min-height: 75svh; }
  .media--pair + .section > .wrap--narrow { margin-left: var(--gutter); width: auto; }
}
/* Statement nach dem Hero-Video wie die Kapiteltexte: viel Luft, linksbündig ca. 20 % vom Rand */
.statement--stage {
  min-height: 90vh; min-height: 90svh;
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left; padding-block: var(--section);
}
.statement--stage > .wrap--narrow { margin-left: 20vw; margin-right: var(--gutter); width: min(100% - 20vw - var(--gutter), 40rem); }
.statement--stage .lead { margin-inline: 0; }
@media (max-width: 700px) {
  .statement--stage { min-height: 75vh; min-height: 75svh; }
  .statement--stage > .wrap--narrow { margin-left: var(--gutter); width: auto; }
}
/* Schmales Bildband in voller Breite (instandsetzen.html) */
.media--band { height: clamp(14rem, 32vw, 38rem); }
@media (max-width: 700px) { .media--band { height: 60vw; } }
.hero + .media--band { margin-top: 2vw; }
.media--band + .section {
  min-height: 90vh; min-height: 90svh;
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left; padding-block: var(--section);
}
.media--band + .section > .wrap--narrow { margin-left: 20vw; margin-right: var(--gutter); width: min(100% - 20vw - var(--gutter), 40rem); }
.media--band + .section .lead { margin-inline: 0; }
@media (max-width: 700px) {
  .media--band + .section { min-height: 75vh; min-height: 75svh; }
  .media--band + .section > .wrap--narrow { margin-left: var(--gutter); width: auto; }
}
