/* ==========================================================================
   Racing Connects – Stylesheet
   Grundlage: Brand Manual V01.0 (August 2026)
   Farben: Racing Black #010101 · Racing Orange #F26722 · Off-White #F3F4F6 · Weiß
   Schriften: Montserrat (Marke/Headlines), Inter (Fließtext) – selbst gehostet
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --black: #010101;
  --orange: #F26722;
  --offwhite: #F3F4F6;
  --white: #FFFFFF;
  --grey-900: #25272B;
  --grey-700: #3A3D42;
  --grey-500: #6B7079;
  --grey-400: #8A8E95;
  --grey-200: #C9CCD1;
  --line: #DADCE0;

  --font-brand: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6.5vw, 96px);
  --section: clamp(72px, 10vw, 120px);
  --maxw: 1560px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--black); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Typografie ---------- */
.eyebrow { font-family: var(--font-brand); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.h1 { font-family: var(--font-brand); font-weight: 900; font-size: clamp(44px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-brand); font-weight: 900; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; text-wrap: balance; }
.h3 { font-family: var(--font-brand); font-weight: 800; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--grey-700); text-wrap: pretty; }
.subline { font-family: var(--font-brand); font-weight: 300; font-size: clamp(13px, 1.4vw, 18px); letter-spacing: 0.24em; text-transform: uppercase; }
.accent-line { width: 64px; height: 3px; background: var(--orange); }
.muted { color: var(--grey-500); }
p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-family: var(--font-brand); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; border: 0; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--black); color: var(--white); }
.on-dark .btn-primary:hover { background: var(--white); color: var(--black); }
.link-arrow { font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; }

/* ---------- Header ---------- */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--white); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1180px) {
  .site-header .wrap { height: 68px; }
  .brand img { height: 28px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 0 0; background: var(--black); flex-direction: column; align-items: flex-start; gap: 0; padding: 16px var(--gutter) 40px; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-family: var(--font-brand); font-weight: 800; font-size: 24px; padding: 16px 0; width: 100%; border-bottom: 1px solid var(--grey-900); }
  .nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--grey-900); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: 0.8; }
.hero:not(.hero--page)::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(1,1,1,0.92) 0%, rgba(1,1,1,0.8) 35%, rgba(1,1,1,0.25) 70%, rgba(1,1,1,0.1) 100%); }
@media (max-width: 900px) { .hero:not(.hero--page)::before { background: rgba(1,1,1,0.62); } }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 8vw, 112px); }
.hero-inner { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.hero .lead { color: var(--grey-200); max-width: 580px; }
.hero--page .wrap { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 9vw, 112px); }
.hero--page .h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }

/* ---------- Sektionen ---------- */
.section { padding: var(--section) 0; }
.section--off { background: var(--offwhite); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .lead { color: var(--grey-200); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 96px); }
.grid-contact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-contact { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 2px solid var(--black); }
.card .num { font-family: var(--font-brand); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; color: var(--grey-500); }
.card p { font-size: 16px; color: var(--grey-700); text-wrap: pretty; }
.card .link-arrow { margin-top: auto; }

.quote { font-family: var(--font-brand); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; max-width: 1000px; text-wrap: pretty; }

.list-lines { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-content: start; }
.list-lines li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-brand); font-weight: 500; font-size: 17px; }
@media (max-width: 560px) { .list-lines { grid-template-columns: 1fr; } }

.statements { list-style: none; padding: 0; display: flex; flex-direction: column; }
.statements li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--font-brand); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.statements li::before { content: ""; flex: 0 0 18px; height: 3px; background: var(--orange); transform: translateY(-6px); }
.section--dark .statements li { border-bottom-color: var(--grey-900); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.values div { padding: 24px 0; border-top: 1px solid var(--line); }
.values dt { font-family: var(--font-brand); font-weight: 800; font-size: 20px; }
.values dd { margin: 6px 0 0; color: var(--grey-700); font-size: 16px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .h2 { font-size: clamp(34px, 4.6vw, 52px); }

.placeholder { background: #FFF1E9; color: #8A3A0F; padding: 0 4px; font-family: var(--font-text); font-weight: 600; font-size: 0.85em; letter-spacing: 0; text-transform: none; }

/* ---------- Kontaktformular ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--black); background: var(--white); border: 1px solid #BFC3C9; border-radius: 0; padding: 12px 14px; min-height: 50px; width: 100%; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.req { color: var(--orange); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--grey-700); }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--orange); }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; font-size: 15px; border-left: 4px solid var(--orange); background: var(--white); }
.notice[hidden] { display: none; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* ---------- Geführte Anfrage (Trichter) ---------- */
.schritt { border: 0; margin: 0; padding: 0; min-width: 0; }
.schritt legend, .schritt-titel { display: flex; align-items: center; gap: 12px; padding: 0; margin: 8px 0 14px;
  font-family: var(--font-brand); font-weight: 800; font-size: 20px; }
.schritt-titel { margin-bottom: 0; }
.schritt-nr { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto;
  background: var(--orange); color: var(--black); font-size: 15px; }
.schritt-hinweis, .schritt-leer { margin: -6px 0 14px; font-size: 14px; color: var(--grey-500); }
.wahl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wahl-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl-text { display: flex; align-items: center; min-height: 54px; padding: 12px 16px 12px 18px; background: var(--white);
  border: 1px solid #BFC3C9; font-size: 15px; font-weight: 500; line-height: 1.35; transition: border-color .15s ease, background .15s ease; }
.wahl:hover .wahl-text { border-color: var(--black); }
.wahl input:checked + .wahl-text { background: var(--black); color: var(--white); border-color: var(--black); box-shadow: inset 4px 0 0 var(--orange); }
.wahl input:focus-visible + .wahl-text { outline: 2px solid var(--orange); outline-offset: 2px; }
.wahl--klein .wahl-text { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.zweig-titel { margin: 18px 0 10px; font-weight: 600; font-size: 14px; color: var(--grey-700); }
.zweig-unter { margin: 16px 0 8px; font-size: 14px; color: var(--grey-500); }
.zweig + .zweig { margin-top: 8px; }
/* Mit JavaScript: nur der passende Zweig ist sichtbar. Ohne JavaScript bleiben alle sichtbar. */
.js .zweig { display: none; }
.js .zweig.aktiv { display: block; }
.js .zweig-titel { display: none; }
.schritt-leer { display: none; }
.js #schritt-2:not(.hat-wahl) .schritt-leer { display: block; }
.js #schritt-2:not(.hat-wahl) .schritt-hinweis { display: none; }
@media (max-width: 700px) {
  .wahl-raster { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wahl-text { min-height: 50px; padding: 10px 12px 10px 14px; font-size: 14px; }
}

.contact-direct { display: flex; flex-direction: column; gap: 20px; }
.contact-direct dt { font-weight: 600; font-size: 14px; color: var(--grey-500); }
.contact-direct dd { margin: 2px 0 0; font-family: var(--font-brand); font-weight: 800; font-size: 20px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-brand); font-weight: 800; font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--grey-700); }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-400); border-top: 1px solid var(--grey-900); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.site-footer img { height: 30px; width: auto; }
.footer-nav { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: var(--grey-400); }
.footer-nav a:hover { color: var(--white); }
[id] { scroll-margin-top: 100px; }

/* ---------- Wisch-Karten (nur Handy/Tablet) ---------- */
.swipe-dots { display: none; }
@media (max-width: 900px) {
  .swipe {
    display: flex; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .swipe-dots { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
  .swipe-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .swipe-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--line); transition: background .2s ease, transform .2s ease; }
  .swipe-dots button[aria-current="true"]::after { background: var(--orange); transform: scale(1.2); }
}

/* ---------- Perspektiven (gruppiert) + Gründer ---------- */
.perspektiven { display: flex; flex-direction: column; gap: 28px; }
.perspektiven .gruppe { font-family: var(--font-brand); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.perspektiven ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.perspektiven li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-brand); font-weight: 500; font-size: 17px; }
@media (max-width: 560px) { .perspektiven ul { grid-template-columns: 1fr; } }
.gruender { display: flex; align-items: center; gap: 16px; }
.gruender-foto { width: 72px; height: 72px; border-radius: 50%; background: var(--offwhite); flex: 0 0 auto; object-fit: cover; object-position: center 20%; }
.gruender-name { font-family: var(--font-brand); font-weight: 800; font-size: 18px; }
.gruender .muted { font-size: 14px; }

/* Startbild: auf breiten Bildschirmen etwas höher, damit unten die Strecke mit den Kerbs sichtbar bleibt */
.hero:not(.hero--page) { min-height: min(80vh, 860px); display: flex; align-items: center; }
.hero:not(.hero--page) > .wrap { width: 100%; }

/* ---------- RIC-Block ---------- */
.status { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--grey-700); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }

.contact-direct .mail-list { display: flex; flex-direction: column; gap: 4px; font-size: 17px; word-break: break-all; }
.contact-direct .mail-list a:hover { color: var(--orange); }

.gruender-portrait { width: 200px; max-width: 100%; height: auto; }

/* ---------- Leistungen in Gruppen (Fahrer & Teams) ---------- */
.leistungen { gap: clamp(32px, 5vw, 72px); align-items: start; }
.leistungen .gruppe { font-family: var(--font-brand); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); padding-bottom: 6px; border-bottom: 2px solid var(--black); }
.leistungen .statements li { font-size: clamp(19px, 1.8vw, 22px); }

.ric-liste li { font-size: clamp(18px, 1.7vw, 21px); padding: 16px 0; }

/* Handy: lange Wörter (z. B. „Motorsportveranstaltung“) umbrechen statt die Seite zu verbreitern */
.h1, .h2, .h3, h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-contact { grid-template-columns: minmax(0, 1fr); } }

/* Sprachumschalter DE | EN */
.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 24px; border-left: 1px solid var(--grey-900); font-size: 13px; }
.lang-switch span { color: var(--grey-700); }
.nav .lang-switch a { font-size: 13px; letter-spacing: 0.08em; color: var(--grey-400); }
.nav .lang-switch a[aria-current="true"] { color: var(--white); border-bottom-color: var(--orange); }
@media (max-width: 1180px) {
  .lang-switch { margin: 24px 0 0; padding: 0; border-left: 0; gap: 14px; }
  .nav .lang-switch a { width: auto; font-family: var(--font-text); font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav .lang-switch a[aria-current="true"] { color: var(--white); border-bottom-color: var(--orange); }
}

/* Startseite: Einstieg „Wer sind Sie?" im Hero (seit 21.09.2026) */
.einstieg { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.einstieg-titel { font-family: var(--font-brand); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.einstieg-hinweis { color: var(--grey-200); font-size: 15px; line-height: 1.5; margin-top: -6px; max-width: 580px; }
.einstieg-chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 700px; }
.einstieg-chips a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(1,1,1,0.45); color: var(--white); font-family: var(--font-text); font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s; }
.einstieg-chips a:hover, .einstieg-chips a:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--black); }
.einstieg-chips a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (max-width: 560px) { .einstieg-chips a { font-size: 14px; padding: 0 14px; min-height: 44px; } }
