/* ============================================================
   Components — Hero, Podium, Controls, Tabelle, Profil, Autos
   ============================================================ */

/* --- Page Hero --------------------------------------------- */
.hero { margin-bottom: 26px; }
.hero__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; }
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 56px); line-height: 1; margin: 8px 0 10px; text-transform: uppercase; }
.hero__title .grad-text { filter: drop-shadow(0 0 22px rgba(255, 46, 151, 0.35)); }
.hero__sub { color: var(--text-dim); font-size: 17px; max-width: 64ch; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* --- Stat-Chip --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.chip__k { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }
.chip__v { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--text); }
.chip__v.accent { color: var(--cyan); }

/* --- Podium ------------------------------------------------ */
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 16px; align-items: end; margin-bottom: 30px; }
.pod {
  position: relative; border-radius: var(--radius); padding: 20px 18px 22px;
  background: var(--card-strong); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); overflow: hidden; transition: transform 0.25s;
  min-height: 318px; display: flex; flex-direction: column;
}
.pod--1 { min-height: 352px; }
.pod::before { content: ''; position: absolute; inset: 0; opacity: 0.16; pointer-events: none; }
.pod:hover { transform: translateY(-4px); }
.pod--1 { padding-top: 30px; border-color: rgba(255, 210, 74, 0.5); box-shadow: 0 0 36px rgba(255, 210, 74, 0.18); }
.pod--1::before { background: radial-gradient(circle at 50% 0%, var(--gold), transparent 70%); }
.pod--2::before { background: radial-gradient(circle at 50% 0%, var(--silver), transparent 70%); }
.pod--3::before { background: radial-gradient(circle at 50% 0%, var(--bronze), transparent 70%); }
.pod__rank { font-family: var(--font-display); font-weight: 900; font-size: 54px; line-height: 1; }
.pod--1 .pod__rank { color: var(--gold); text-shadow: 0 0 22px rgba(255, 210, 74, 0.6); }
.pod--2 .pod__rank { color: var(--silver); }
.pod--3 .pod__rank { color: var(--bronze); }
.pod__crown { position: absolute; top: 12px; right: 14px; font-size: 22px; filter: drop-shadow(0 0 10px rgba(255, 210, 74, 0.8)); }
.pod__driver { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 12px 0 3px; display: flex; align-items: center; gap: 9px; }
.pod__car { color: var(--text-dim); font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.pod__photo {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64%; z-index: 0;
  pointer-events: none; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px;
}
.pod__photo .car-photo__img { width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; transform: translateX(8%) scale(1.15); transform-origin: center bottom; filter: brightness(1.45) contrast(1.06) saturate(1.1) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5)); }
.pod__photo .car-photo__ph { width: 54%; color: rgba(255, 255, 255, 0.14); margin-bottom: 16px; }
.pod__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--card-strong) 6%, rgba(5, 6, 10, 0.6) 34%, transparent 72%); }
.car-silhouette { width: 100%; height: 100%; }
.pod__overlay { position: relative; z-index: 2; margin-top: auto; padding-top: 10px; }
.pod__time { font-family: var(--font-mono); font-weight: 700; font-size: 38px; letter-spacing: -1px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.pod--1 .pod__time { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pod__meta { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; color: var(--text-dim); font-family: var(--font-mono); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.pod__meta b { color: var(--cyan-soft); font-weight: 700; }

/* --- Controls (Tabs / Presets / Sort / Suche) -------------- */
.controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.controls__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.controls__label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tab { padding: 9px 20px; border-radius: 8px; font-weight: 700; font-size: 14.5px; letter-spacing: 0.6px; color: var(--text-dim); transition: all 0.18s; }
.tab:hover { color: var(--text); }
.tab.active { color: #05060a; }
.tab.active[data-class="ALL"] { background: linear-gradient(120deg, #fff, #cfe3ff); }
.tab.active[data-class="GT3"] { background: var(--gt3); box-shadow: 0 0 16px rgba(0, 229, 255, 0.5); }
.tab.active[data-class="GTE"] { background: var(--gte); box-shadow: 0 0 16px rgba(255, 46, 151, 0.5); }
.tab.active[data-class="GT4"] { background: var(--gt4); box-shadow: 0 0 16px rgba(255, 176, 32, 0.5); }

/* Preset-Buttons */
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14px;
  color: var(--text-dim); background: var(--card); border: 1px solid var(--line);
  transition: all 0.18s;
}
.preset:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.preset.active { color: var(--text); border-color: transparent; background: var(--card-strong); box-shadow: inset 0 0 0 1.5px var(--accent, var(--cyan)), 0 0 18px -4px var(--accent, var(--cyan)); }
.preset__ico { font-size: 14px; }
.preset__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 8px var(--accent, var(--cyan)); }

/* Sort + Suche */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); min-width: 220px;
}
.search input { background: none; border: none; outline: none; color: var(--text); font-size: 15px; width: 100%; font-family: var(--font-ui); }
.search input::placeholder { color: var(--text-faint); }
.search__ico { color: var(--text-faint); }

.select {
  appearance: none; padding: 9px 34px 9px 14px; border-radius: 10px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237af3ff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600; font-family: var(--font-ui);
}
.toolbar__spacer { margin-left: auto; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.toggle.on { color: var(--text); border-color: rgba(182, 255, 60, 0.4); }
.toggle__sw { width: 34px; height: 18px; border-radius: 99px; background: rgba(255,255,255,0.12); position: relative; transition: background 0.2s; }
.toggle.on .toggle__sw { background: var(--lime); }
.toggle__sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #05060a; transition: transform 0.2s; }
.toggle.on .toggle__sw::after { transform: translateX(16px); }

/* --- Leaderboard-Tabelle ----------------------------------- */
.lb { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(8, 10, 18, 0.4); backdrop-filter: blur(8px); }
.lb__head, .lb__row {
  display: grid;
  grid-template-columns: 64px minmax(190px, 1.8fr) minmax(170px, 1.45fr) 120px 104px 152px 104px;
  align-items: center; gap: 12px; padding: 0 22px;
}
.lb__head { height: 50px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.lb__h { font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); font-weight: 700; user-select: none; }
.lb__h.sortable { cursor: pointer; transition: color 0.15s; }
.lb__h.sortable:hover { color: var(--cyan); }
.lb__h.sorted { color: var(--cyan); }
.lb__h .arrow { font-size: 9px; opacity: 0.9; }
.lb__h.num, .lb__cell.num { justify-self: end; text-align: right; }
.lb__h.date { text-align: left; }

.lb__row {
  height: 72px; border-bottom: 1px solid var(--line); position: relative;
  transition: background 0.15s; border-left: 3px solid transparent;
}
.lb__row:last-child { border-bottom: none; }
.lb__row:hover { background: var(--card-hover); }
.lb__row::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--rowc, var(--cyan)), transparent); opacity: 0.1; transition: width 0.25s; pointer-events: none; }
.lb__row:hover::after { width: 40%; }
.lb__row[data-class="GT3"] { border-left-color: var(--gt3); --rowc: var(--gt3); }
.lb__row[data-class="GTE"] { border-left-color: var(--gte); --rowc: var(--gte); }
.lb__row[data-class="GT4"] { border-left-color: var(--gt4); --rowc: var(--gt4); }

.pos { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-dim); }
.pos--top { color: var(--gold); text-shadow: 0 0 12px rgba(255, 210, 74, 0.5); }

.driver-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; position: relative; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar__ini { position: absolute; inset: 0; display: grid; place-items: center; }
/* Discord-verknüpft -> blurple Ring + kleiner Discord-Punkt */
.avatar--discord { box-shadow: 0 0 0 2px #5865f2, 0 0 12px -2px #5865f2; }
.avatar--discord::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5865f2; border: 2px solid var(--bg-0); }

/* Marken-Logo transparent auf dunklem Grund, dezenter Schatten zur Abhebung */
.mfr-tile { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
.mfr-tile img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); }
.driver-cell__name { font-weight: 700; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.driver-cell__sub { font-size: 12.5px; color: var(--text-faint); }
.flag { font-size: 15px; }
.tag-hrc { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; background: rgba(182, 255, 60, 0.14); color: var(--lime); }

.car-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.car-cell__name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.mono-badge { font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; padding: 3px 7px; border-radius: 5px; flex-shrink: 0; }
.mono-badge[data-class="GT3"] { color: var(--gt3); background: rgba(0, 229, 255, 0.12); }
.mono-badge[data-class="GTE"] { color: var(--gte); background: rgba(255, 46, 151, 0.12); }
.mono-badge[data-class="GT4"] { color: var(--gt4); background: rgba(255, 176, 32, 0.12); }

.time { font-family: var(--font-mono); font-weight: 700; font-size: 19.5px; letter-spacing: -0.5px; }
.time--lead { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gap { font-family: var(--font-mono); font-size: 14.5px; color: var(--magenta-soft); }
.gap--zero { color: var(--lime); }

.date-cell { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.date-rel { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.date-exact { font-size: 11px; color: var(--text-faint); }

.speed-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.speed-val { font-family: var(--font-mono); font-weight: 700; font-size: 14.5px; color: var(--cyan-soft); }
.speed-bar { width: 78px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.speed-bar > i { display: block; height: 100%; background: var(--grad-cyan); box-shadow: var(--glow-cyan); }

.lb__empty { padding: 50px; text-align: center; color: var(--text-faint); }

/* --- Section-Heading (Monat/Woche/Autos) ------------------- */
.section-head { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 18px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.section-head .pill { font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--cyan-soft); }

/* --- Fahrerprofil ------------------------------------------ */
.profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-car { margin-left: auto; width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; }
.profile-car__cap { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.profile-car__media {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse 75% 85% at 50% 118%, rgba(0, 229, 255, 0.16), transparent 70%), var(--card-strong);
  border: 1px solid var(--line);
}
.profile-car__media .car-photo__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.65)); }
.profile-car__media .car-photo__ph { width: 58%; color: rgba(255, 255, 255, 0.18); }
.profile-car__name { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.profile-top .avatar { width: 84px; height: 84px; font-size: 30px; }
.profile-id h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 5vw, 40px); text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.profile-id p { color: var(--text-dim); margin-top: 4px; }
.back-link { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; display: inline-block; }
.back-link:hover { color: var(--cyan); }

/* Rekordhalter-Badges */
.rec-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.4px;
  padding: 6px 13px; border-radius: 99px; color: #1a1300;
  background: linear-gradient(120deg, #fff1b8, var(--gold)); box-shadow: 0 0 20px -3px var(--gold);
}
.rec-badge--gt3 { background: linear-gradient(120deg, var(--cyan-soft), var(--cyan)); color: #001318; box-shadow: 0 0 18px -3px var(--cyan); }
.rec-badge--gte { background: linear-gradient(120deg, var(--magenta-soft), var(--magenta)); color: #1a0010; box-shadow: 0 0 18px -3px var(--magenta); }
.rec-badge--gt4 { background: linear-gradient(120deg, #ffd98a, var(--gt4)); color: #1f1300; box-shadow: 0 0 18px -3px var(--gt4); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent, var(--cyan)); opacity: 0.12; filter: blur(20px); }
.stat-card__k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.stat-card__v { font-family: var(--font-mono); font-weight: 700; font-size: 30px; margin-top: 8px; }
.stat-card__v small { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.stat-card__note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* --- Autos-Liste ------------------------------------------- */
.cars { display: grid; gap: 12px; }
.car-row {
  display: grid; grid-template-columns: 52px 1fr 120px 110px; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--rowc, var(--cyan)); transition: transform 0.18s, background 0.18s; cursor: pointer;
}
.car-row:hover { transform: translateX(4px); background: var(--card-hover); }
.car-row[data-class="GT3"] { --rowc: var(--gt3); }
.car-row[data-class="GTE"] { --rowc: var(--gte); }
.car-row[data-class="GT4"] { --rowc: var(--gt4); }
.car-row__rank { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-dim); line-height: 1.05; }
.car-row__rank small { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--text-faint); }
.car-row__name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.car-row__holder { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.car-row__time { font-family: var(--font-mono); font-weight: 700; font-size: 18px; text-align: right; }
.car-row__count { font-size: 12px; color: var(--text-dim); text-align: right; font-family: var(--font-mono); }

/* --- Autos: Kachel-Grid ------------------------------------ */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cbox {
  position: relative; display: flex; flex-direction: column; gap: 7px; text-align: left;
  padding: 18px 18px 15px; border-radius: var(--radius); background: var(--card-strong);
  border: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer;
  overflow: hidden; min-height: 336px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cbox::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; transition: opacity 0.2s;
  background: radial-gradient(ellipse 85% 55% at 50% 100%, var(--rowc, var(--cyan)), transparent 70%); }
.cbox:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.75); }
.cbox:hover::after { opacity: 0.16; }
.cbox[data-class="GT3"] { --rowc: var(--gt3); border-left-color: var(--gt3); }
.cbox[data-class="GTE"] { --rowc: var(--gte); border-left-color: var(--gte); }
.cbox[data-class="GT4"] { --rowc: var(--gt4); border-left-color: var(--gt4); }
.cbox__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.cbox__logo .mfr-tile { width: 52px; height: 52px; }
.cbox__media { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 4px 0 2px; position: relative; z-index: 1; }
/* scale zoomt rein -> Auto wirkt größer, leere Bildränder werden vom media-overflow gecroppt (kein Foto-Edit nötig). */
.cbox__media .car-photo__img { max-width: 100%; max-height: 150px; object-fit: contain; transform: scale(1.42); transform-origin: center; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55)); }
.cbox__media .car-photo__ph { width: 50%; color: rgba(255, 255, 255, 0.14); }
.cbox__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.cbox__time { font-family: var(--font-mono); font-weight: 700; font-size: 23px; letter-spacing: -0.5px; display: flex; align-items: baseline; gap: 10px;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cbox__spd { font-size: 12.5px; font-weight: 600; color: var(--cyan-soft); -webkit-text-fill-color: var(--cyan-soft); }
.cbox__rec { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; position: relative; z-index: 1; }
.cbox__cap { width: 100%; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.cbox__holder { display: inline-flex; align-items: center; gap: 8px; padding: 3px 5px; margin: -3px -5px; border: none; background: none; border-radius: 7px; cursor: pointer; color: var(--text); font-size: 15px; font-family: inherit; }
.cbox__holder:hover { background: var(--card-hover); color: var(--cyan); }
.cbox__holder b { font-weight: 700; }
.cbox__date { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* --- Auto-Detail (#/auto/:id) ------------------------------ */
.cd-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 6px 0 20px; padding: 20px;
  border-radius: var(--radius); background: var(--card-strong); border: 1px solid var(--line); border-left: 4px solid var(--rowc, var(--cyan)); }
.cd-head[data-class="GT3"] { --rowc: var(--gt3); }
.cd-head[data-class="GTE"] { --rowc: var(--gte); }
.cd-head[data-class="GT4"] { --rowc: var(--gt4); }
.cd-head__media { width: min(330px, 72vw); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cd-head__media .car-photo__img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); }
.cd-head__media .car-photo__ph { width: 55%; color: rgba(255, 255, 255, 0.16); }
.cd-head__logo .mfr-tile { width: 46px; height: 46px; }
.cd-head__id h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 4vw, 36px); text-transform: uppercase; margin: 8px 0 7px; }
.cd-head__sub { display: flex; align-items: center; gap: 10px; }
.cd-headrow { display: grid; grid-template-columns: 60px minmax(170px, 2fr) 130px 120px 130px 104px; align-items: center; gap: 12px; padding: 0 22px; height: 44px;
  color: var(--text-faint); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.cd-headrow .num { justify-self: end; text-align: right; }
.lb__row.cd-row { grid-template-columns: 60px minmax(170px, 2fr) 130px 120px 130px 104px; cursor: pointer; }
.cd-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }

/* --- Reveal-Animation Hook --------------------------------- */
.reveal { opacity: 0; }

@media (max-width: 1180px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; }
  /* Einspaltig: P1 nach oben (DOM-Reihenfolge ist P2·P1·P3 fürs Desktop-Podium). */
  .pod--1 { order: 1; }
  .pod--2 { order: 2; }
  .pod--3 { order: 3; }
  .car-grid { grid-template-columns: 1fr; }
  .cd-head__media { width: 100%; }
  .cd-headrow { display: none; }
  .lb__row.cd-row { grid-template-columns: 40px 1fr auto; height: auto; padding: 12px 14px; gap: 4px 10px; }
  .cd-row .gap-cell, .cd-row .cd-date, .cd-row .speed-cell { display: none; }
  .lb__head { display: none; }
  .lb__row { grid-template-columns: 44px 1fr auto; height: auto; gap: 6px 10px; padding: 12px 14px; grid-template-areas: "pos driver time" "pos car gap"; }
  .lb__cell.date-cell, .lb__cell.speed-cell { display: none; }
  .lb__row .pos { grid-area: pos; }
  .driver-cell { grid-area: driver; }
  .car-cell { grid-area: car; }
  .lb__cell.time-cell { grid-area: time; justify-self: end; }
  .lb__cell.gap-cell { grid-area: gap; justify-self: end; }
  .car-row { grid-template-columns: 40px 1fr auto; }
  .car-row__count { display: none; }
  .profile-car { margin-left: 0; width: 100%; }
}
