/* Fayz Custom Car Interiors — Infoseite (dunkles Design)
   Schwarz, warmes Leder-Gold, Bordeaux als Akzent. Animationen nur ruhig und dezent. */
:root {
  --bg: #0b0908;
  --surface: #141110;
  --surface-2: #1b1715;
  --text: #f2ece3;
  --muted: #a89f94;
  --line: #2b2521;
  --gold: #c8a87c;
  --gold-light: #e4d3b8;
  --wine: #8a1c30;
  --wine-deep: #4a0e18;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
p { text-wrap: pretty; } /* keine einzelnen Wortreste in der letzten Zeile */
button { font-family: inherit; } /* Knöpfe sonst mit Browser-Schrift statt der Seitenschrift */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 70px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Header / Nav: liegt transparent über dem Hero, wird beim Scrollen zur Glas-Leiste ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
}
.site-header.scrolled {
  background: rgba(11,9,8,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
/* Rechtsseiten haben keinen Hero: Leiste dort immer als Glas-Leiste */
.site-header:has(+ .legal) { background: rgba(11,9,8,0.9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { --lh: 42px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; min-width: 0; }
.brand img { display: block; height: var(--lh); width: auto; flex-shrink: 0; }
/* Schrift und Logo sind eine Einheit: Größe hängt an --lh (Logohöhe). Gemessen (Pixelvergleich): obere und untere Kante der Schrift = Kanten des Logos */
.brand-name { font-family: var(--font); font-weight: 500; font-size: calc(var(--lh) * 0.5); letter-spacing: 0.01em; line-height: 1.17; transform: translateY(calc(var(--lh) * -0.035)); }
.brand-name span { display: block; width: max-content; font-weight: inherit; color: #d8a735; background: linear-gradient(172deg, #b07a1c 0%, #d8a735 22%, #fae376 42%, #fdf9bd 50%, #f0c44f 62%, #c18525 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } /* beide Zeilen: gleiche Schrift, Größe, Gold-Glanz wie das Logo */
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85;
}
.nav-actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
/* Sprach-Umschalter (Globus) oben rechts neben dem Menü */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; padding: 8px 4px; }
.lang-btn svg { width: 20px; height: 20px; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px; list-style: none; margin: 0; padding: 6px; z-index: 60; display: none; background: rgba(11,9,8,0.98); border: 1px solid var(--line); box-shadow: 0 22px 55px -18px rgba(0,0,0,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang.open .lang-menu { display: block; }
.lang-menu li { width: 100%; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; font-size: 0.92rem; text-align: left; padding: 11px 12px; }
.lang-menu button.active { color: var(--gold); font-weight: 700; }
.lang-soon { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.25s; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; padding: 0;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); padding-top: 120px; }
.hero .eyebrow {
  font-size: clamp(0.85rem, 4.4vw, 1.7rem); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 700;
}
.hero h1 { font-size: clamp(1.9rem, 9.4vw, 8rem); color: #fff; margin-bottom: 6px; max-width: none; }
/* Zweites Wort direkt unter der Überschrift: exakt gleicher Stil UND gleiche Größe wie die Überschrift */
.hero .subline { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; font-size: clamp(1.9rem, 9.4vw, 8rem); margin-bottom: 22px; }
/* Name über der Überschrift: ebenfalls Wort für Wort von links nach rechts, beginnt zuerst */
.hero .eyebrow span { display: inline-block; opacity: 0; animation: part-in 0.7s var(--ease) forwards; animation-delay: calc(0.2s + var(--i) * 0.14s); }
.hero .where { font-size: clamp(0.9rem, 1.8vw, 1.05rem); color: rgba(255,255,255,0.7); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
/* Einblenden beim Laden */
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.6s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.75s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.95s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes part-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.hero-inner > .eyebrow { animation: none; opacity: 1; transform: none; } /* die Wörter darin animieren einzeln */

.btn {
  display: inline-block; background: var(--gold); color: #1a1209;
  padding: 15px 34px; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid var(--gold); cursor: pointer; font-family: inherit;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---- Fester Video-Hintergrund ---- */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--bg) url("../img/hero.png") center/cover no-repeat; }
.stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.stage video.active { opacity: 1; }
.stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,9,8,0.82) 0%, rgba(11,9,8,0.45) 55%, rgba(11,9,8,0.62) 100%),
    linear-gradient(180deg, rgba(11,9,8,0.5) 0%, rgba(11,9,8,0) 30%, rgba(11,9,8,0.55) 100%);
}
.site-footer, section { position: relative; z-index: 1; }

/* ---- Leistungs-Szenen: nur Text, das Video läuft dahinter ---- */
.scene { min-height: 62vh; min-height: 62svh; display: flex; align-items: center; padding: 72px 0; }
.scene-inner { width: 100%; }
.scene .kicker { font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.scene h1, .scene h2 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); max-width: 13ch; margin-bottom: 22px; color: #fff; }
.scene .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.85); max-width: 40ch; margin-bottom: 30px; }

/* ---- Laufender Streifen unter dem Hero (von links nach rechts) ---- */
.ticker {
  position: relative; z-index: 1; overflow: hidden; padding: 18px 0;
  background: rgba(11,9,8,0.86); border-block: 1px solid rgba(255,255,255,0.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker ul { display: flex; flex-shrink: 0; list-style: none; }
.ticker li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light);
}
.ticker li::after { content: ""; width: 6px; height: 6px; margin: 0 2.2rem; background: var(--gold); transform: rotate(45deg); }
/* Die Liste steht 4x da: eine Länge nach rechts schieben ergibt eine nahtlose Endlosschleife */
@keyframes ticker { from { transform: translateX(-25%); } to { transform: translateX(0); } }

/* ---- Sections ---- */
section { padding: clamp(72px, 11vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head .kicker {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; color: var(--text); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: rgba(20,17,16,0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.veil { background: rgba(11,9,8,0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---- Ablauf ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 8px; }
.step { position: relative; padding-top: 12px; border-top: 1px solid var(--line); }
.step .num { font-family: var(--font); font-size: 2.6rem; color: var(--gold); font-weight: 700; line-height: 1; margin-top: 16px; }
.step h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.notice {
  margin-top: 40px; padding: 22px 26px; border-left: 3px solid var(--gold);
  background: rgba(200,168,124,0.07); color: var(--muted);
}
.notice strong { color: var(--gold-light); }
.notice h3 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 8px; }

/* ---- Standorte ---- */
.loc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.loc { background: var(--surface); border: 1px solid var(--line); padding: 24px 26px; }
.tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 4px 12px; margin-bottom: 12px;
  border: 1px solid var(--gold); color: var(--gold);
}
.loc h3 { font-size: 1.2rem; margin-bottom: 6px; }
.loc address { font-style: normal; color: var(--muted); font-size: 0.97rem; }

/* ---- Kontakt ---- */
.contact-block h3 { font-size: 1.3rem; margin-bottom: 16px; }
.contact-block p { color: var(--muted); margin-bottom: 8px; }
.contact-block a { font-weight: 500; }
.contact-block .btn { margin-top: 18px; }

/* ---- Footer: alles mittig ---- */
.site-footer { background: #060505; color: rgba(255,255,255,0.7); padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.social { display: flex; gap: 14px; list-style: none; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: rgba(255,255,255,0.75);
  transition: color 0.3s, border-color 0.3s;
}
.social-link svg { width: 20px; height: 20px; }
.footer-links { display: flex; justify-content: center; gap: 0 12px; flex-wrap: wrap; list-style: none; }
.footer-links a { display: inline-block; padding: 12px 6px; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.bank-line { max-width: 760px; font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-bottom a { display: inline-block; padding: 12px 4px; }
.footer-bottom { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---- Anfrage-Fenster ---- */
html:has(dialog[open]) { overflow: hidden; }
dialog#anfrage {
  margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
  overflow: auto; padding: 0; color-scheme: dark;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9);
}
dialog#anfrage::backdrop { background: rgba(6,5,5,0.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog-body { position: relative; display: grid; gap: 16px; padding: 34px 28px 28px; }
.dialog-body .kicker { font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: -8px; }
.dialog-body h2 { font-size: 1.7rem; }
.dialog-close {
  position: absolute; top: 8px; right: 12px; background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 1.9rem; line-height: 1; padding: 6px 10px;
}
.dialog-hint { font-size: 0.86rem; color: var(--muted); }
.dialog-options { display: grid; gap: 10px; }
.dialog-options .btn { text-align: center; }

/* ---- Legal pages ---- */
.legal { padding-top: 120px; }
.legal h1 { font-size: min(clamp(1.9rem, 4vw, 2.6rem), 6.4vw); margin-bottom: 8px; } /* schmal: Schrift kleiner statt Wort trennen */
.legal .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #cfc6ba; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .placeholder {
  background: #fff6d6; border: 1px dashed #d4b73a; padding: 2px 8px; font-weight: 600; color: #7a5c00;
}
.legal .lawyer-note {
  background: rgba(200,168,124,0.08); border-left: 3px solid var(--gold);
  padding: 18px 22px; margin-bottom: 32px; color: var(--gold-light);
}

/* Platzhalter-Markierung im Fließtext (Startseite) */
.placeholder-inline { background: #fff6d6; color: #7a5c00; padding: 0 5px; font-weight: 600; }

/* ---- Einblenden beim Scrollen (Klasse .reveal setzt main.js) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(11,9,8,0.97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px; transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; }
  .nav-toggle { display: block; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  /* Auf dem Handy den Hero-Text oben ans Logo rücken und den Hero nur so hoch wie nötig machen
     (sonst oben große Lücke, unten viel leerer Raum) */
  .hero { align-items: flex-start; min-height: 0; }
  .hero-inner { padding-top: 96px; padding-bottom: 48px; }
  .hero-cta { margin-bottom: 0; }
}

/* Hover nur für Geräte mit Maus: auf dem Handy bleibt sonst nach dem Tippen der Hover-Zustand hängen */
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  .brand:hover, .nav-links a:hover, .btn:hover, .social-link[href]:hover, .footer-links a:hover { text-decoration: none; }
  .nav-links a:hover { color: var(--gold); opacity: 1; }
  .btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
  .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
  .social-link[href]:hover { color: var(--gold); border-color: var(--gold); }
  .footer-links a:hover { color: var(--gold); }
  .lang-menu button:not(.active):hover { color: var(--gold-light); }
  .lang-btn:hover { color: var(--gold); }
}

/* Kleine Handys (bis 360 px): nichts läuft mehr seitwärts, Markenname bleibt in einer Zeile */
@media (max-width: 360px) {
  .scene h1, .scene h2 { font-size: 2rem; }
  .legal h2 { font-size: 1.1rem; }
}

/* Schmale Handys: Name im Header kleiner, Logo etwas kleiner, damit beides neben dem Menü passt */
@media (max-width: 820px) {
  /* Handy: Schrift reicht von Kante zu Kante des Logos (obere Kante Großbuchstaben bis untere Grundlinie); beides wächst mit der Breite */
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .nav-actions { gap: 6px; }
  .brand { --lh: clamp(26px, calc((100vw - 125px) / 7.2), 38px); gap: 9px; }
  .brand img { height: var(--lh); }
}
@media (max-width: 430px) {
  .lang-current { display: none; } /* Handys: nur der Globus, Buchstaben "DE" weg */
}

/* Niedrige Handy-Bildschirme: Hero enger, damit "Anfrage stellen" ohne Scrollen sichtbar bleibt */
@media (max-width: 820px) and (max-height: 700px) {
  .hero-inner { padding-top: 84px; padding-bottom: 28px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .where { margin-bottom: 20px; }
  .hero-cta { margin-bottom: 0; gap: 10px; }
  .btn { padding: 12px 24px; }
}
/* Querformat am Handy: Knöpfe nebeneinander, Überschrift breiter */
@media (max-width: 820px) and (max-height: 480px) {
  .hero-inner { padding-top: 72px; padding-bottom: 20px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 1rem; }
  .hero h1, .hero .subline { font-size: clamp(1.6rem, 5vw, 2.4rem); max-width: none; margin-bottom: 6px; }
  .hero .where { margin-bottom: 14px; }
  .hero-cta .btn { flex: 0 1 auto; }
}
/* Breite, aber flache Desktop-Fenster: Überschrift etwas kleiner + Hero kompakter, damit alles ins Bild passt */
@media (min-width: 821px) and (max-height: 860px) {
  .hero-inner { padding-top: 92px; padding-bottom: 44px; }
  .hero h1, .hero .subline { font-size: clamp(2.5rem, 7.2vw, 6rem); }
}

/* Wer "Bewegung reduzieren" eingestellt hat, sieht keine Animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage video { display: none; }
  .hero-inner > * { animation: none; opacity: 1; transform: none; }
  .hero .eyebrow span { animation: none; opacity: 1; transform: none; }
  .ticker { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

