/* vongehlen.com, Gestaltung nach entwurf/startseite-entwurf.dc.html */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --grund: #24112B;
  --flaeche: #3A1D45;
  --fuss: #1A0B20;
  --akzent: #FF4F93;
  --akzent-hell: #FFC2D8;
  --text: #F7EEF3;
  --neben: #D9C6D4;
  --neben-hell: #E3D3DE;
  --karte: #FBF4F7;
  --karte-foto: #E9DCE4;
  --karte-neben: #4A2D52;
  --schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
  --rand: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--akzent); }
a:hover { color: var(--akzent-hell); }
a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

img { display: block; max-width: 100%; }

.innen { max-width: 1200px; margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

.schmal { font-family: var(--schmal); }

/* Kopfzeile */

.kopf { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { flex: none; }
.logo span { font-family: var(--schmal); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--schmal); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--akzent); }

/* Aufmacher */

.aufmacher { padding-top: 72px; }
.dachzeile { margin: 0 0 18px; font-family: var(--schmal); font-weight: 600; font-size: 20px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--akzent); }
h1 { margin: 0; font-family: var(--schmal); font-weight: 800; font-size: clamp(48px, 7vw, 108px); line-height: 0.95; letter-spacing: -0.01em; }
.lead { margin: 32px 0 0; max-width: 620px; font-size: 22px; color: var(--neben-hell); }

.profil { margin-top: 56px; height: 180px; position: relative; overflow: hidden; }
.profil svg { display: block; width: 100%; height: 180px; }

/* Animationen (animation.js setzt .anim; ohne Skript bleibt alles sichtbar) */

.anim .profil:not(.gefahren) svg { clip-path: inset(0 100% 0 0); }
.profil-fahrer { display: none; }
.anim .profil-fahrer { display: block; position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 6px rgba(255, 79, 147, 0.25); transition: opacity 0.6s ease 0.2s; }
.anim .profil.gefahren .profil-fahrer { opacity: 0; }
.anim:not(.anim-bereit) [data-zahl] { visibility: hidden; }
[data-zahl] { font-variant-numeric: tabular-nums; }

/* Kacheln beim Überfahren mit der Maus bzw. beim Tastaturfokus */

.jahr, .karte, .kachel, .neben-kachel { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.karte-foto { overflow: hidden; }
.karte-foto img { transition: transform 0.5s ease; }
@media (hover: hover) {
  .jahr:hover, .karte:hover, a.kachel:hover, .neben-kachel:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(10, 2, 14, 0.45); }
  .karte:hover .karte-foto img { transform: scale(1.06); }
}
a.kachel:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(10, 2, 14, 0.45); }

/* Kennzahlen */

.kennzahlen { background: var(--flaeche); }
.kennzahlen .innen { padding-top: 40px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.kennzahl { display: flex; flex-direction: column; gap: 4px; }
.kennzahl .wert { font-family: var(--schmal); font-weight: 800; font-size: 64px; line-height: 1; color: var(--akzent); }
.kennzahl .label { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neben); }
.kennzahl .zusatz { font-size: 15px; color: var(--neben); }

/* Abschnitte */

.abschnitt { padding-top: 96px; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
h2 { margin: 0; font-family: var(--schmal); font-weight: 800; font-size: clamp(44px, 6vw, 64px); line-height: 1; text-transform: uppercase; }
.abschnitt-kopf p { margin: 0; font-size: 16px; color: var(--neben); }
#engagement h2 { margin-bottom: 36px; }

/* Jahreskacheln */

.jahre { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.jahr { background: var(--flaeche); color: var(--text); border-radius: 6px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.jahr.hervor { background: var(--akzent); color: var(--grund); }
.jahr .zahl { font-family: var(--schmal); font-weight: 800; font-size: 36px; line-height: 1; }
.jahr .km { font-family: var(--schmal); font-weight: 700; font-size: 26px; line-height: 1; }
.jahr .km small { font-size: 15px; font-weight: 600; }
.jahr .rest { font-size: 14px; line-height: 1.4; opacity: 0.85; }
.jahr .tag { margin-top: auto; font-family: var(--schmal); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Neben dem Rad: bewusst kleiner und zurückhaltender als die Jahreskacheln */

.abschnitt-klein { padding-top: 56px; }
.abschnitt-klein .abschnitt-kopf { margin-bottom: 20px; }
.h2-klein { font-size: clamp(30px, 4vw, 36px); }
.neben { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.neben-kachel { border: 1px solid var(--flaeche); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.neben-titel { font-family: var(--schmal); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neben); }
.neben-wert { font-family: var(--schmal); font-weight: 700; font-size: 30px; line-height: 1; color: var(--akzent); }
.neben-wert small { font-size: 15px; font-weight: 600; }
.neben-info { font-size: 13px; color: var(--neben-hell); }
.neben-arten { font-size: 13px; line-height: 1.4; color: var(--neben); opacity: 0.8; }

/* Meilenstein */

.meilenstein { border: 2px solid var(--akzent); border-radius: 6px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; align-items: center; }
.meilenstein-text { display: flex; flex-direction: column; gap: 12px; }
.meilenstein .datum { font-family: var(--schmal); font-weight: 600; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--akzent); }
.meilenstein h2 { font-size: clamp(36px, 5vw, 48px); }
.meilenstein p { margin: 0; color: var(--neben-hell); }
.meilenstein-bild { background: var(--flaeche); border-radius: 6px; min-height: 240px; overflow: hidden; display: flex; align-items: flex-end; }
.meilenstein-bild { align-self: stretch; }
.meilenstein-bild img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: 20% center; }
.meilenstein-bild svg { display: block; width: 100%; height: 140px; }

/* Längste Ausfahrt */

.ausfahrt { background: var(--flaeche); border-radius: 6px; padding: 40px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: center; }
.ausfahrt-text { display: flex; flex-direction: column; gap: 14px; }
.ausfahrt .datum { font-family: var(--schmal); font-weight: 600; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--akzent); }
.ausfahrt h2 { font-size: clamp(36px, 5vw, 48px); }
.ausfahrt p { margin: 0; color: var(--neben-hell); }
.ausfahrt-werte { margin: 6px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.ausfahrt-werte div { display: flex; flex-direction: column-reverse; }
.ausfahrt-werte dd { margin: 0; font-family: var(--schmal); font-weight: 800; font-size: 40px; line-height: 1; color: var(--akzent); }
.ausfahrt-werte dt { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neben); }
.ausfahrt-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--grund); accent-color: var(--akzent); }
/* Das Vorschaubild hat ein eigenes Play-Symbol; das große Symbol mancher Browser würde es doppeln. */
.ausfahrt-video video::-webkit-media-controls-overlay-play-button { display: none; }

@media (max-width: 900px) {
  .ausfahrt { grid-template-columns: 1fr; }
}

/* Startnummern */

.rennen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; }
.karte { background: var(--karte); color: var(--grund); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.karte-band { background: var(--akzent); color: var(--grund); padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 12px; font-family: var(--schmal); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.karte-band span { white-space: nowrap; }
.karte-foto { height: 170px; background: var(--karte-foto); display: flex; align-items: flex-end; }
.karte-foto img { width: 100%; height: 100%; object-fit: cover; }
/* Senkrechter Ausschnitt je Foto, eingestellt über "foto_ausschnitt" in daten/rennen.json */
.ausschnitt-0 img { object-position: 50% 0%; } .ausschnitt-10 img { object-position: 50% 10%; }
.ausschnitt-20 img { object-position: 50% 20%; } .ausschnitt-30 img { object-position: 50% 30%; }
.ausschnitt-40 img { object-position: 50% 40%; } .ausschnitt-50 img { object-position: 50% 50%; }
.ausschnitt-60 img { object-position: 50% 60%; } .ausschnitt-70 img { object-position: 50% 70%; }
.ausschnitt-80 img { object-position: 50% 80%; } .ausschnitt-90 img { object-position: 50% 90%; }
.ausschnitt-100 img { object-position: 50% 100%; }
.karte-foto svg { display: block; width: 100%; height: 110px; }
.karte-text { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.karte .jahrzahl { font-family: var(--schmal); font-weight: 800; font-size: 56px; line-height: 0.9; }
.karte .jahrzahl.lang { font-size: 44px; }
.karte h3 { margin: 0; font-family: var(--schmal); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.karte .werte { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--karte-neben); }
.karte .notiz { margin: 4px 0 0; font-size: 15px; color: var(--karte-neben); }

/* Engagement */

.engagement { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.kachel { background: var(--flaeche); color: var(--text); border-radius: 6px; padding: 32px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
a.kachel:hover { color: var(--text); outline: 2px solid var(--akzent); }
.kachel .rubrik { font-family: var(--schmal); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--akzent); }
.kachel .titel { font-family: var(--schmal); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.kachel .beschreibung { color: var(--neben-hell); }

/* Fußbereich */

.fuss { margin-top: 112px; background: var(--fuss); }
.fuss .innen { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.fuss .kontakt { display: flex; flex-direction: column; gap: 10px; }
.fuss .ruf { font-family: var(--schmal); font-weight: 800; font-size: 48px; line-height: 1; text-transform: uppercase; }
.fuss .mail { font-size: 22px; overflow-wrap: anywhere; }
.fuss nav { display: flex; gap: 24px; font-size: 15px; }
.fuss nav a { color: var(--neben); }
.fuss nav a:hover { color: var(--akzent); }

/* Fehlerseite */

.fehler .lead a { font-weight: 600; }

/* Rechtstexte */

.recht { padding-top: 56px; max-width: 820px; }
.recht h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 40px; }
.recht h2 { font-size: 30px; margin: 48px 0 12px; }
.recht h3 { font-family: var(--schmal); font-weight: 700; font-size: 22px; text-transform: uppercase; margin: 28px 0 8px; }
.recht p, .recht li { color: var(--neben-hell); }
.recht p { margin: 0 0 14px; }
.recht .offen { color: var(--akzent); font-weight: 600; }
.hinweis { border: 2px solid var(--akzent); border-radius: 6px; padding: 16px 20px; margin-bottom: 32px; }

/* Schmale Bildschirme bis 360 px */

@media (max-width: 640px) {
  :root { --rand: 16px; }
  body { font-size: 17px; }
  .kopf { padding-top: 20px; padding-bottom: 20px; }
  .nav { gap: 6px 20px; font-size: 17px; }
  .aufmacher { padding-top: 48px; }
  .dachzeile { font-size: 16px; letter-spacing: 0.14em; }
  .lead { font-size: 19px; margin-top: 24px; }
  .profil, .profil svg { height: 120px; margin-top: 40px; }
  .profil svg { margin-top: 0; }
  .kennzahl .wert { font-size: 54px; }
  .abschnitt { padding-top: 72px; }
  .jahre { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .neben { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .neben-kachel { padding: 12px; }
  .jahr { padding: 14px 14px 12px; min-height: 150px; }
  .meilenstein { padding: 24px 20px; }
  .ausfahrt { padding: 24px 20px; gap: 24px; }
  .ausfahrt-werte dd { font-size: 34px; }
  .kachel { padding: 24px; }
  .kachel .titel { font-size: 30px; }
  .fuss { margin-top: 80px; }
  .fuss .ruf { font-size: 40px; }
  .fuss .mail { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jahr, .karte, .kachel, .neben-kachel, .karte-foto img { transition: none; }
  .jahr:hover, .karte:hover, a.kachel:hover, .neben-kachel:hover, a.kachel:focus-visible, .karte:hover .karte-foto img { transform: none; }
}
