/* KRL design system — shared across every page. Loaded after legacy styles. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../resources/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --backgroundcolor: #080d14;
  --main-bg: #0c1420;
  --surface: #121e2b;
  --surface-raised: #182635;
  --stroke: rgba(182, 218, 230, .15);
  --muted: #a7b6c5;
  --accent: #67e5df;
  --sundaysplit: #67e5df;
  --fontfamilytext: 'Inter', sans-serif;
  --fontsizeheadline: clamp(3.2rem, 7.5vw, 6.5rem);
  --fontsizeh2: clamp(1.6rem, 3.2vw, 2.5rem);
  --font-sizetext: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  color: #f2f8fb;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--backgroundcolor);
  background-image: linear-gradient(180deg, rgba(8,13,20,.9), rgba(8,13,20,.97) 70%), url('../resources/optimized/Season11-background.webp');
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 2000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: #e8faf9;
  color: #091721;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
/* Consistent heading scale for legal, rules and retired-league pages. */
.rules-page-title { font-size: clamp(2.2rem, 6vw, 4.5rem); margin: 2.5rem auto 1.25rem; }
.saturday-archive-notice { max-width: 900px; font-size: clamp(1.45rem, 3.4vw, 2.7rem); line-height: 1.2; margin: 3rem auto; }
::selection { background: var(--accent); color: #071219; }
body h1, body h2, body h3, .header {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: .025em;
  text-wrap: balance;
}
body h1 {
  font-size: var(--fontsizeheadline);
  margin: clamp(2.5rem, 7vw, 5rem) auto 1.5rem;
  padding: 0 1rem;
  text-align: center;
}
body h2 { font-size: var(--fontsizeh2); }
body p { overflow-wrap: anywhere; }

/* Header / keyboard-accessible desktop dropdowns / mobile drawer */
body > header { position: sticky; top: 0; z-index: 1000; }
.navbar {
  position: relative;
  width: 100%;
  min-height: 84px;
  padding: .65rem clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(8, 15, 24, .94);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar > a { flex: 0 0 auto; display: inline-flex; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { display: block; width: 64px; height: 64px; object-fit: contain; }
.nav-links {
  position: static;
  left: auto;
  transform: none;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(.1rem, .7vw, .9rem);
  margin: 0;
  padding: 0;
  white-space: normal;
}
.nav-links > li { position: relative; }
.nav-links :is(a,button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .7rem .85rem;
  border-radius: 9px;
  color: #e7f0f6;
  font-family: 'Inter', sans-serif;
  font-size: clamp(.72rem, .88vw, .88rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.nav-links :is(a,button):hover, .nav-links :is(a,button):focus-visible {
  color: var(--accent);
  background: rgba(103,229,223,.09);
}
.nav-links .dropdown > button::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 .6rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 225px;
  padding: .45rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #132131;
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
  transform: translateY(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown-content::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown-content li a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: .75rem .85rem;
  color: #dbe8ef;
  font-size: .86rem;
  text-align: left;
}
.nav-links li.submenu-open > .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-toggle { display: none; }
#progressBar { height: 3px; background: var(--accent); z-index: 1100; }

/* Home page — race imagery and existing league logos remain unchanged */
.homepage .hero { position: relative; overflow: visible; }
.homepage .landing_page {
  display: block;
  width: 100%;
  max-height: 630px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(103,229,223,.4);
  box-shadow: none;
}
.hero-intro {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: -50px auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(103,229,223,.28);
  border-radius: 22px;
  background: linear-gradient(115deg, #142535 0%, #0c1825 88%);
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
}
.eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .2em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-intro h1 {
  padding: 0;
  margin: 0 0 .7rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  text-align: left;
}
.hero-intro h1 span { color: var(--accent); }
.hero-intro p { max-width: 690px; color: var(--muted); margin: 0 0 1.6rem; font-size: clamp(.94rem, 1.4vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions a, .class-button, #toggle-points-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: .8rem 1.4rem;
  border: 1px solid var(--accent);
  border-image: none;
  border-radius: 10px;
  background: var(--accent);
  color: #07171d;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-actions a:hover, .class-button:hover, #toggle-points-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(103,229,223,.18); }
.hero-actions .secondary { background: transparent; color: var(--accent); }
.section-heading { margin: 0 auto 1.5rem; text-align: center; }
.section-heading .eyebrow { margin-bottom: .5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.5rem); text-transform: uppercase; }
.homepage .section-title {
  margin: clamp(2.5rem, 6vw, 4rem) auto 1.5rem;
  padding: 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
}
.feature-item {
  width: auto;
  min-width: 0;
  min-height: 160px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(21,35,49,.78);
  justify-content: center;
  gap: .85rem;
}
.feature-item i { font-size: 1.85rem; margin: 0; color: var(--accent); }
.feature-item p { margin: 0; font-size: .87rem; font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
.homepage .features-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.homepage .slider-container, .homepage .slider-container2 { margin: 3.5rem 0; }
.slider-container, .slider-container2 { width: 100%; max-width: 100%; overflow: hidden; border: 0; }
.slider-track, .slider-track2 {
  gap: 3rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(103,229,223,.35) !important;
  border-bottom: 1px solid rgba(103,229,223,.35) !important;
}
.slider-track img { width: 85px; height: 64px; object-fit: contain; margin: 0; }
.text-slide { font-family: 'Inter', sans-serif; font-size: 1.15rem; letter-spacing: .08em; font-weight: 700; margin: 0; }
.LigenContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
}
.LigenContainer > div {
  min-width: 0;
  border: 1px solid var(--stroke);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  background: linear-gradient(145deg, #192838, #101b27);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.LigenContainer > div:hover { transform: translateY(-5px); border-color: rgba(103,229,223,.5); box-shadow: 0 15px 35px rgba(0,0,0,.25); }
.LigenContainer > div a { min-height: 230px; width: 100%; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 1rem; padding: 1.25rem; text-decoration: none; }
.LigenContainer img { width: 100%; max-width: 150px; height: 150px; object-fit: contain; }
.LigenContainer .league-name { font-family: 'Inter', sans-serif; font-size: 1.35rem; letter-spacing: .065em; font-weight: 700; color: #f2f8fb; text-align: center; }
#Friday { border-top-color: var(--fridaysplit); }
#Sunday { border-top-color: var(--sundaysplit); }
#LMU { border-top-color: var(--lmu); }
#WDL { border-top-color: var(--wdl); }
#Endurance { border-top-color: var(--endurance); }
.counter-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: 0 1rem;
}
.counter-box { min-width: 0; margin: 0; padding: 1.5rem .7rem; border-top: 1px solid var(--stroke); text-align: center; }
.counter-number { font-family: 'Inter', sans-serif; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1; font-weight: 800; }
.counter-label { margin-top: .6rem; color: var(--muted); font-size: .74rem; line-height: 1.4; font-weight: 700; letter-spacing: .09em; }
.highlight { color: var(--accent); animation: none; }
.team-grid, .team-grid2, .team-grid3, .admin-group2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1rem;
}
.admin-card, .admin-card2 {
  position: relative;
  flex: 0 1 215px;
  width: 215px;
  height: auto;
  min-height: 220px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #142131;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .25rem;
  overflow-wrap: anywhere;
  transition: transform .2s ease, background .2s ease;
}
.admin-card:hover, .admin-card2:hover { transform: translateY(-3px); background: #192b3b; }
.admin-card .header-image, .admin-card2 .header-image { display: none; }
.admin-card .avatar, .admin-card2 .avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  margin: 0 0 .6rem;
  border: 2px solid rgba(103,229,223,.55);
  border-radius: 50%;
  object-fit: cover;
  background: #0e1721;
}
.admin-card :is(h2,h3), .admin-card2 :is(h2,h3) { margin: 0; font-family: 'Inter', sans-serif; font-size: 1.48rem; line-height: 1.1; }
.admin-card .role, .admin-card2 .role { margin: .2rem 0; color: var(--accent); font-size: .72rem; letter-spacing: .09em; font-weight: 800; }
.admin-card p, .admin-card2 p { margin: .1rem 0 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.admin-card a, .admin-card2 a { color: var(--accent); }
.homepage .überschrift, .homepage .überschrift2, .homepage .überschrift3,
.homepage .überschrift4, .homepage .überschrift5, .homepage .überschrift6,
.homepage .überschrift7, .homepage .überschrift8, .homepage .überschrift9 {
  margin: 3rem auto 1.25rem;
  padding: 0 1rem;
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  text-align: center;
}
.homepage .überschrift { color: var(--administration); }
.homepage .überschrift2 { color: #dbb3e8; }
.homepage .überschrift8 { color: #f6a9a3; }
.flexcontainer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); max-width: 1240px; gap: 1.2rem; margin: 3rem auto; padding: 0 1rem; }
.flexcontainer2 { width: 100%; min-width: 0; max-width: none; padding: 1rem 0 1.7rem; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(16,29,42,.7); }
.flexcontainer2 .admin-group2 { padding: 0 .75rem; gap: .75rem; }
.flexcontainer2 .admin-card2 { flex-basis: 180px; width: 180px; }

/* League / standings / history pages */
body[data-theme='friday'] { --accent: #75efa0; }
body[data-theme='sunday'] { --accent: #67e5df; }
body[data-theme='lmu'] { --accent: #fa6874; }
body[data-theme='wdl'] { --accent: #ff8985; }
body[data-theme='endurance'] { --accent: #f5aa6a; }
body[data-theme='icons'] { --accent: #fa86b7; }
main:not(.homepage) { max-width: 100%; min-width: 0; padding-bottom: 3rem; }
.f1-driver-grid { max-width: 1300px; margin: 0 auto; padding: 0 1rem; gap: 1rem; }
.team-card {
  flex: 1 1 235px;
  max-width: 290px;
  min-width: 0;
  padding: 1.6rem 1.1rem;
  border: 1px solid var(--stroke);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(145deg, #1a2a3a, #111e2b);
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform .2s ease;
}
.team-card:hover { transform: translateY(-3px); }
.team-card img, .team-card .team-logo, .team-card .image-RedBull,
.team-card .image-Audi, .team-card .image-astonmartin {
  display: block;
  width: auto;
  height: 82px;
  max-width: 90%;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}
.drivers { gap: .65rem; margin-top: 0; }
.drivers :is(h2,h3,h4), .team-card :is(h2,h3,h4) { font-family: 'Inter', sans-serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; margin: 0; }
.team-card .drivers > div { padding: .55rem .35rem; border-radius: 8px; background: rgba(255,255,255,.035); }
.container-3col { width: min(1200px, calc(100% - 2rem)); grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 2rem auto; }
.container-3col .column { min-width: 0; gap: 1rem; }
.driver-box { min-width: 0; border: 1px solid var(--stroke); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); padding: 1.15rem; font-size: 1rem; font-weight: 700; }
.header, .header h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.carousel-section { width: min(1320px, calc(100% - 2rem)); margin: 0 auto; }
.top-carousels { width: 100%; flex-wrap: wrap; align-items: flex-start; gap: 2rem; }
.carousel-box { min-width: 0; max-width: 100%; }
.carousel-box h2, .carousel-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 2rem 0 1rem; }
.carousel, .carousel-track-container, .carousel-track img {
  width: min(43vw, 530px);
  height: auto;
}
.carousel { max-width: 100%; }
.carousel-track-container { max-width: 100%; aspect-ratio: 620 / 800; border: 1px solid var(--stroke); border-image: none; border-radius: 15px; background: #14202d; }
.carousel-track img { flex: 0 0 auto; aspect-ratio: 620 / 800; object-fit: contain; }
.middle-carousel { width: 100%; max-width: 100%; margin: 2rem auto; }
.middle-carousel .carousel, .middle-carousel .carousel-track-container { margin-top: 0; }
.middle-carousel .carousel, .middle-carousel .carousel-track-container, .middle-carousel .carousel-track img {
  width: min(88vw, 1100px);
  height: auto;
  max-width: 100%;
}
.middle-carousel .carousel-track-container, .middle-carousel .carousel-track img { aspect-ratio: 16 / 9; }
.middle-carousel .carousel-track img { object-fit: contain; }
.carousel-btn { top: 50%; left: auto; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: #1d3545; color: white; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; font-size: 1.3rem; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:hover { background: var(--accent); color: #06141a; }
.timeline-container { width: min(1150px, calc(100% - 2rem)); margin: 2rem auto; }
.year-marker { gap: .5rem; }
.year-button { min-width: 0; padding: .5rem; color: #e7f0f6; font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.year-button:hover { color: var(--accent); }
.info-box { width: min(100%, 900px); max-width: 100%; margin: 1.4rem auto; padding: clamp(1rem,3vw,2rem); background: #142131; border: 1px solid var(--stroke); border-radius: 16px; }
.info-box h2 { font-size: clamp(1.4rem,3vw,2rem); margin: .2rem 0 1rem; }
.info-box p { font-size: 1rem; }
.punkte-container, .points-container { width: min(1050px, calc(100% - 2rem)); max-width: 1050px; margin: 3rem auto; }
.punkte-container h2 { font-size: clamp(2rem,4vw,3rem); }
.punkte-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.punkte-item, .mapping-item { min-width: 0; border: 1px solid var(--stroke); border-image: none; border-radius: 12px; background: var(--surface); padding: 1rem; font-size: .95rem; }
.punkte-platz, .punkte-wert { font-size: 1rem; }
.team-mapping-section { max-width: 1200px; padding: 2rem 1rem; }
.team-mapping-list { gap: .8rem; }
.mapping-item { gap: 1rem; }
.league-name, .team-name { font-size: .95rem; }
#toggle-points-btn { font-size: .9rem; color: #07171d; }

/* Text pages and utilities */
.regelwerk, .log, .Angaben { width: min(100% - 2rem, 1050px); max-width: 1050px; margin: 3rem auto; padding: clamp(1.25rem, 4vw, 3rem); font-family: 'Inter', sans-serif; background: #121f2c; border: 1px solid var(--stroke); border-radius: 18px; box-shadow: none; }
.regelwerk .regel-block { background: #172839; border: 1px solid var(--stroke); border-left: 3px solid var(--accent); border-radius: 12px; }
.regelwerk-nav { max-width: 900px; font-family: 'Inter', sans-serif; }
nav.regelwerk-nav { font-size: 1rem; }
nav.regelwerk-nav input { max-width: 520px; margin: 1.5rem auto; background: #eaf4f7; border-radius: 10px; }
nav.regelwerk-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
nav.regelwerk-nav li { margin: 0; }
nav.regelwerk-nav a { display: inline-block; border: 1px solid var(--stroke); border-radius: 8px; padding: .65rem .85rem; background: #1c2c3b; }
nav.regelwerk-nav a:hover { color: var(--accent); text-decoration: none; }
.regel-block h2, .log h2, .Angaben h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; }
.log h1, .Angaben h1 { font-size: clamp(2.5rem,6vw,4rem); }
.log h2, .Angaben h2 { margin-top: 2rem; }
.background { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.background .header { text-align: center; }
.background .header h1 { padding: 0; font-size: clamp(2.3rem,6vw,4.8rem); overflow-wrap: anywhere; }
.background .header h2 { font-size: clamp(1.3rem,3vw,2.3rem); }
.pdf-wrapper { width: min(100%, 1000px); margin: 0 auto; }
.pdf { width: 100%; height: min(75vh, 900px); min-height: 400px; border-radius: 14px; background: #e5eef1; }
.rdncontainer { grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 1rem; }
.rdn-feature-item { padding: 1.2rem; border: 1px solid var(--stroke); border-radius: 14px; background: #152535; }
main.background { width: min(1100px, calc(100% - 2rem)); padding: 2rem 0; }
main.background .blocktext { font-size: 1rem; line-height: 1.8; }
main.background details { padding: 1rem 1.5rem; border: 1px solid var(--stroke); border-left: 3px solid var(--accent); background: #142131; border-radius: 12px; }
main.background details summary { cursor: pointer; font-size: 1.2rem; font-weight: 700; }

/* Footer */
.footer {
  position: relative;
  bottom: auto;
  width: 100%;
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--stroke);
  background: #09131d;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.8;
}
.footer .container { max-width: 1100px; margin: 0 auto 1.25rem; }
.footer > div:last-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.footer a { color: #d9e7ec; }
.footer img { width: 38px; height: 38px; object-fit: contain; filter: none; }
.footer img:hover { transform: translateY(-2px); }

@media (max-width: 1100px) {
  .navbar { min-height: 74px; }
  .logo img { width: 56px; height: 56px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #172535;
    color: #f0f8fb;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
  }
  .menu-toggle[aria-expanded='true'] { color: var(--accent); border-color: var(--accent); }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    width: auto;
    margin: 0;
    padding: .7rem;
    max-height: min(75vh, 640px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: #102030;
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1001;
  }
  .nav-links.open { max-height: min(75vh, 640px); opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links > li { width: 100%; padding: 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > :is(a,button:not(.submenu-toggle)) { width: 100%; display: flex; justify-content: flex-start; text-align: left; padding: .75rem .9rem; color: #e6eef4; font-size: .9rem; }
  .nav-links .dropdown > button::after { margin-left: auto; }
  .dropdown-content {
    position: static;
    display: grid;
    gap: .1rem;
    width: 100%;
    min-width: 0;
    margin: 0 0 .5rem;
    padding: .2rem .5rem .3rem 1rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .dropdown-content::before { display: none; }
  .dropdown-content li { border: none; }
  .dropdown-content li a { padding: .52rem .9rem; border-left: 2px solid rgba(103,229,223,.3); color: #afc2cf; font-size: .83rem; }
  .dropdown-content li a:hover { color: var(--accent); }
  .top-carousels { gap: 1rem; }
  .carousel, .carousel-track-container, .carousel-track img { width: min(43vw, 470px); }
  .timeline-container { overflow-x: auto; }
}

@media (max-width: 700px) {
  body h1 { margin: 2.5rem auto 1.25rem; font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .homepage .landing_page { max-height: none; object-fit: contain; }
  .hero-intro { margin: -.7rem auto 0; border-radius: 16px; }
  .hero-intro h1 { font-size: clamp(2.3rem, 10vw, 3.7rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .features { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .feature-item { min-height: 135px; padding: 1rem .65rem; }
  .feature-item i { font-size: 1.45rem; }
  .feature-item p { font-size: .72rem; }
  .LigenContainer { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .LigenContainer > div a { min-height: 178px; padding: .75rem; }
  .LigenContainer img { height: 105px; max-width: 112px; }
  .LigenContainer .league-name { font-size: 1.1rem; }
  .counter-container { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; }
  .counter-box { padding: 1rem .4rem; }
  .team-grid, .team-grid2, .team-grid3, .admin-group2 { gap: .75rem; }
  .admin-card, .admin-card2, .flexcontainer2 .admin-card2 { flex: 1 1 145px; min-width: 0; max-width: 220px; padding: 1.1rem .65rem; }
  .flexcontainer { grid-template-columns: minmax(0,1fr); }
  .container-3col { grid-template-columns: minmax(0,1fr); }
  .column { gap: .65rem; }
  .driver-box { width: 100%; max-width: none; padding: .85rem 1rem; }
  .f1-driver-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .team-card { max-width: none; padding: 1rem .5rem; }
  .team-card img, .team-card .team-logo, .team-card .image-RedBull, .team-card .image-Audi, .team-card .image-astonmartin { height: 55px; margin-bottom: .8rem; }
  .drivers :is(h2,h3,h4), .team-card :is(h2,h3,h4) { font-size: 1.08rem; }
  .carousel, .carousel-track-container, .carousel-track img { width: min(87vw, 500px); }
  .top-carousels { flex-direction: column; align-items: center; }
  .carousel-btn { display: grid; width: 36px; height: 36px; }
  .middle-carousel .carousel, .middle-carousel .carousel-track-container, .middle-carousel .carousel-track img { width: min(91vw, 500px); }
  .year-marker { min-width: max-content; }
  .year-button { font-size: .8rem; min-width: 62px; color: #e7f0f6; background: #1c2e3d; border-radius: 8px; }
  .dot { width: 12px; height: 12px; }
  .info-box { padding: 1rem; margin: 1rem auto; }
  .info-box h2 { font-size: 1.5rem; }
  .info-box p { font-size: .9rem; }
  .punkte-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-mapping-list { grid-template-columns: 1fr; }
  .mapping-item { flex-direction: column; align-items: flex-start; }
  .footer { margin-top: 2.5rem; }
  .footer img { width: 34px; height: 34px; }
  .pdf { min-height: 320px; height: 58vh; }
}
@media (max-width: 380px) {
  .features, .LigenContainer, .f1-driver-grid, .punkte-grid { grid-template-columns: 1fr; }
  .LigenContainer > div a { min-height: 160px; }
  .hero-intro { width: calc(100% - 1rem); padding: 1.3rem; }
  .navbar { padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fly-in { opacity: 1; transform: none; }
}

/* ---------- Community storytelling on the homepage ---------- */
.home-quote-section, .home-endurance, .home-lmu {
  width: min(1220px, calc(100% - 2rem));
  margin: 4.5rem auto;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 24px;
}
.home-quote-section { grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); align-items: center; background: #111e2b; }
.home-quote-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 250px;
  padding: 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 25% 10%, rgba(103,229,223,.24), transparent 62%), #172b38;
}
.home-quote-visual img { width: min(118px, 100%); height: auto; max-height: 118px; object-fit: contain; margin: 0; }
.home-quote-visual h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; margin: 0; letter-spacing: -.03em; }
.home-quote-visual p { margin: 0; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .12em; }
.home-quote-copy { position: relative; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.6rem, 4vw, 3.5rem); }
.home-quote-copy blockquote, .icons-quote blockquote {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 2.1rem .4rem 2rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: .015em;
}
.home-quote-copy blockquote::before, .home-quote-copy blockquote::after,
.icons-quote blockquote::before, .icons-quote blockquote::after {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--accent);
  opacity: .62;
  pointer-events: none;
}
.home-quote-copy blockquote::before, .icons-quote blockquote::before { content: '“'; left: 0; top: -1.4rem; }
.home-quote-copy blockquote::after, .icons-quote blockquote::after { content: '”'; right: 0; bottom: -3.6rem; }
.home-quote-copy > p { color: var(--muted); font-size: .96rem; max-width: 42ch; }
.home-quote-copy blockquote { max-width: 58ch; margin: 0; padding: .3rem 0 .3rem 1rem; font-size: clamp(1.3rem, 2.15vw, 2rem); line-height: 1.2; }
.home-quote-copy blockquote::before, .home-quote-copy blockquote::after { font-size: 3.5rem; }
.home-quote-copy blockquote::before { top: -1.6rem; left: -.3rem; }
.home-quote-copy blockquote::after { right: -.2rem; bottom: -2.1rem; }
.home-quote-copy .class-button { border-color: #e91e63; background: #e91e63; color: #fff; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; color: var(--accent); font-size: .9rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-endurance {
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  align-items: center;
  background: linear-gradient(110deg, #1d262f, #101a25 75%);
}
.home-endurance-visual {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 250px;
  padding: 2rem;
  background: radial-gradient(circle, rgba(240,157,81,.16), transparent 70%), #19212b;
}
.home-endurance-visual img { width: min(220px, 100%); max-height: 220px; object-fit: contain; }
.home-endurance > div:last-child { padding: clamp(1.6rem, 4vw, 3.5rem); }
.home-endurance h2 { margin: .4rem 0 1rem; font-size: clamp(2rem, 4.3vw, 3.7rem); }
.home-endurance h2, .e-hero h1, .e-join h2, .icons-hero-copy h1, .rdn-hero h1 { overflow-wrap: anywhere; }
.home-endurance p { color: var(--muted); max-width: 58ch; margin: 0 0 1.5rem; }
.home-endurance .eyebrow { color: #f5aa6a; }
.home-endurance .class-button { border-color: #f5aa6a; background: #f5aa6a; color: #17130f; }

/* A second game-logo marquee, independent from the F1 season-logo strip. */
.homepage .home-endurance { margin-bottom: 1.25rem; }
/* Borders belong to the stationary viewport, outside the animated/clipped
   track. Both homepage strips share the same frame and spacing. */
.homepage .slider-container { margin: 2rem auto; border-block: 1px solid rgba(103,229,223,.35); }
.homepage .slider-track { align-items: center; min-height: 88px; border: 0 !important; }
.homepage .slider-track img {
  display: block;
  width: clamp(90px, 12vw, 144px);
  flex: none;
  height: 56px;
  object-fit: contain;
}
.homepage .slider-track.logo-marquee-ready:hover { animation-play-state: paused; }

.people-section { padding-top: 1rem; }
.people-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2rem;
  max-width: 1220px;
  margin: 4rem auto 2.5rem;
  padding: 0 1rem;
}
.people-intro .section-title { margin: .4rem 0 0; padding: 0; text-align: left; }
.people-intro p { color: var(--muted); margin: 0 0 .3rem; max-width: 45ch; }
.homepage .team-grid, .homepage .team-grid2, .homepage .team-grid3,
.homepage .admin-group2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  align-items: stretch;
  max-width: 1220px;
  gap: .9rem;
}
.homepage .team-grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 370px)); }
.homepage .admin-card, .homepage .admin-card2, .homepage .flexcontainer2 .admin-card2 {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 140px;
  flex: none;
  display: grid;
  grid-template-columns: 77px minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  column-gap: 1rem;
  align-content: center;
  justify-content: stretch;
  justify-items: start;
  text-align: left;
  padding: 1.2rem;
  background: linear-gradient(120deg, #182b3c, #111f2d);
  border-left: 3px solid rgba(103,229,223,.5);
}
.homepage .admin-card:hover, .homepage .admin-card2:hover { transform: none; background: #1b3041; }
.homepage .admin-card .avatar, .homepage .admin-card2 .avatar {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 72px;
  height: 72px;
  margin: 0;
}
.homepage .admin-card :is(h2,h3), .homepage .admin-card2 :is(h2,h3) { grid-column: 2; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.homepage .admin-card .role, .homepage .admin-card2 .role { grid-column: 2; }
.homepage .admin-card p, .homepage .admin-card2 p { grid-column: 2; }
.homepage .admin-card > a, .homepage .admin-card2 > a { grid-column: 2; font-size: .75rem; }
.homepage .flexcontainer2 { background: linear-gradient(150deg,#122536,#101b27); }
.homepage .flexcontainer2 .admin-group2 { grid-template-columns: 1fr; }
.homepage .flexcontainer2 .admin-card2 { border-left-color: var(--stroke); }
.home-socials { padding: 4rem 1rem 5rem; background: #0d1824; border-top: 1px solid var(--stroke); }
.home-socials .section-heading p { max-width: 50ch; margin: .9rem auto 0; color: var(--muted); }
.social-link-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: .8rem; max-width: 1220px; margin: 2rem auto 0; }
.social-link-grid a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.2rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #142434;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.social-link-grid a:hover { border-color: rgba(103,229,223,.5); background: #1b3042; }
.social-link-grid i { color: var(--accent); font-size: 1.5rem; width: 28px; text-align: center; }
.social-link-grid a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.social-link-grid strong { font-size: .9rem; }
.social-link-grid small { color: var(--muted); font-size: .72rem; }
.social-link-grid a > span:last-child { margin-left: auto; color: var(--muted); }

/* ---------- Icons / Hall of Fame ---------- */
main.icons-page { max-width: 100%; padding: 1rem 1rem 5rem; }
.icons-hero {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  align-items: stretch;
  width: min(1200px,100%);
  margin: 3rem auto;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  overflow: hidden;
  background: #142436;
}
.icons-hero-badge { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem; padding: 3rem; background: radial-gradient(circle at 50% 30%, rgba(255,121,177,.22), transparent 65%), #1b2736; }
.icons-hero-badge img { width: min(210px,100%); object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0,0,0,.3)); }
.icons-hero-badge span { color: #f6a9ca; letter-spacing: .14em; font-size: .82rem; font-weight: 800; }
.icons-hero-copy { align-self: center; padding: clamp(2rem,5vw,4rem); }
.icons-hero-copy h1 { margin: .5rem 0 1.1rem; padding: 0; text-align: left; font-size: clamp(3.5rem,8vw,6.4rem); }
.icons-hero-copy h1 em { font-style: normal; color: #fa86b7; }
.icons-hero-copy p { max-width: 55ch; color: var(--muted); font-size: 1rem; margin-bottom: 1.6rem; }
.icons-quote { max-width: 920px; margin: 5rem auto; padding: 2.3rem clamp(1.5rem,4vw,4rem); border-left: 3px solid #fa86b7; background: #152231; border-radius: 0 17px 17px 0; }
.icons-quote blockquote { margin: 0; font-size: clamp(2rem,4.3vw,3.5rem); text-align: center; }
.icons-stories { max-width: 1030px; margin: 0 auto; }
.icons-stories, .icons-quote { width: 100%; }
.icons-stories-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 0 0 2rem; }
.icons-stories-intro h2 { font-size: clamp(2.1rem,5vw,3.7rem); margin: .3rem 0 0; }
.icons-stories-intro p { color: var(--muted); max-width: 32ch; margin: 0; }
.icons-accordion { counter-reset: icon-entry; display: grid; gap: .8rem; }
.icons-accordion details {
  counter-increment: icon-entry;
  margin: 0;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #142332;
  overflow: hidden;
  transition: border-color .2s ease;
}
.icons-accordion details[open] { border-color: rgba(255,121,177,.6); background: #182b3c; }
.icons-accordion details > summary { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.5rem; cursor: pointer; list-style: none; }
.icons-accordion summary::-webkit-details-marker { display: none; }
.icons-accordion summary::before { content: counter(icon-entry, decimal-leading-zero); flex: 0 0 38px; color: #fa86b7; font-family: 'Inter',sans-serif; font-size: 1.55rem; font-weight: 800; }
.icons-accordion summary::after { content: '+'; margin-left: auto; color: #fa86b7; font-size: 2rem; line-height: 1; font-weight: 400; }
.icons-accordion details[open] summary::after { content: '−'; }
.icons-accordion summary h2 { margin: 0; font-size: clamp(1.45rem,3.3vw,2.1rem); }
.icons-accordion .blocktext { max-width: 80ch; margin: 0; padding: 0 1.6rem 1.3rem 5.2rem; font-size: .96rem; line-height: 1.8; color: #cbd9e3; }
.icons-accordion .blocktext:last-child { padding-bottom: 2rem; }

/* ---------- Driver cards and true image-sized GP results ---------- */
.f1-driver-grid .team-card, .f1-driver-grid .team-card:hover {
  transform: none;
  transition: none;
  border: 1px solid var(--stroke);
  border-top: 3px solid var(--accent);
  background: #152535;
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}
.f1-driver-grid .team-card img, .f1-driver-grid .team-card .team-logo,
.f1-driver-grid .team-card .image-RedBull, .f1-driver-grid .team-card .image-Audi,
.f1-driver-grid .team-card .image-astonmartin { height: 94px; }
.f1-driver-grid .drivers > div { border: 1px solid rgba(255,255,255,.06); background: #1c2f40; }
.middle-carousel .carousel, .middle-carousel .carousel-track-container,
.middle-carousel .carousel-track img {
  width: min(92vw, 1200px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.middle-carousel .carousel-track-container { border: 0; border-radius: 12px; overflow: hidden; }
.middle-carousel .carousel-track { align-items: flex-start; }
.middle-carousel .carousel-track img { max-width: none; display: block; flex-shrink: 0; object-fit: contain; border-radius: 0; }
.middle-carousel .carousel-btn.prev { left: 10px; }
.middle-carousel .carousel-btn.next { right: 10px; }

/* ---------- Rulebook chapter chips and search ---------- */
.regelwerk-nav .toc-help { margin: 0 auto 1rem; max-width: 58ch; text-align: center; color: var(--muted); font-size: .93rem; }
nav.regelwerk-nav ul { gap: .6rem; }
nav.regelwerk-nav a { font-size: .86rem; line-height: 1.4; background: #182b3a; }
nav.regelwerk-nav input { border: 1px solid var(--stroke); padding: .85rem 1rem; font-size: 1rem; }

/* ---------- RDN editorial layout ---------- */
.background.rdn-page { width: min(1120px, calc(100% - 2rem)); max-width: 1120px; padding: 0; margin: 3rem auto; }
.rdn-hero { padding: clamp(2rem,5vw,4rem); border: 1px solid var(--stroke); border-radius: 20px; background: radial-gradient(circle at 95% 5%,rgba(103,229,223,.13),transparent 42%), #142638; }
.rdn-hero h1 { margin: .4rem 0 1.3rem; padding: 0; font-size: clamp(3rem,7vw,5.7rem); text-align: left; overflow-wrap: anywhere; }
.rdn-hero h1 span { color: var(--accent); }
.rdn-hero > p { max-width: 66ch; color: #b9cbd7; margin: 0 0 2rem; font-size: 1.05rem; }
.rdn-steps { display: flex; flex-wrap: wrap; gap: .75rem; }
.rdn-steps span { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border: 1px solid var(--stroke); border-radius: 9px; background: rgba(255,255,255,.035); font-size: .82rem; font-weight: 700; }
.rdn-steps b { color: var(--accent); }
.rdn-document { margin-top: 1.25rem; overflow: hidden; border: 1px solid var(--stroke); border-radius: 18px; background: #14212f; }
.rdn-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem,3vw,2.5rem); }
.rdn-document-heading h2 { margin: .2rem 0 .5rem; font-size: clamp(1.8rem,3.6vw,2.8rem); text-align: left; }
.rdn-document-heading p { color: var(--muted); font-size: .9rem; margin: 0; }
.rdn-document .pdf-wrapper { width: 100%; padding: 0 clamp(.7rem,2vw,1.5rem) clamp(.7rem,2vw,1.5rem); }
.rdn-document .pdf { display: block; width: 100%; height: min(80vh, 920px); min-height: 460px; border: 0; border-radius: 10px; background: #f5f7f9; }

/* ---------- Endurance team / calendar ---------- */
.endurance-page { --accent: #f5aa6a; }
.endurance-page .eyebrow, .endurance-page .text-link { color: #f5aa6a; }
.endurance-page .hero-actions a, .endurance-page .class-button { background: #f5aa6a; border-color: #f5aa6a; color: #17130f; }
.endurance-page .hero-actions .secondary { background: transparent; color: #f5aa6a; }
.e-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 2rem; width: min(1260px,calc(100% - 2rem)); margin: 3rem auto 5rem; padding: clamp(2rem,5vw,4rem); border: 1px solid var(--stroke); border-radius: 24px; background: radial-gradient(circle at 85% 45%,rgba(245,170,106,.12),transparent 37%),linear-gradient(130deg,#192a37,#101c27); }
.e-hero h1 { text-align: left; padding: 0; margin: .4rem 0 1.1rem; font-size: clamp(3.2rem,6.8vw,6rem); }
.e-hero h1 span { color: #f5aa6a; }
.e-hero p { max-width: 55ch; margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; }
.e-hero-logo { display: grid; place-items: center; padding: 1rem; }
.e-hero-logo img { width: min(310px, 100%); object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.28)); }
.e-section { width: min(1200px,calc(100% - 2rem)); margin: 5rem auto; }
.e-section > h2, .e-section-top h2 { font-size: clamp(2.3rem,4.5vw,3.7rem); margin: .35rem 0 1rem; }
.e-section-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.e-section-top p { max-width: 55ch; margin: .5rem 0 0; color: var(--muted); font-size: .96rem; }
.e-section-top .text-link { flex: 0 0 auto; padding-bottom: .45rem; }
.e-event-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 1rem; }
.e-event-card { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--stroke); border-top: 3px solid #f5aa6a; border-radius: 17px; background: #172635; }
.e-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; gap: .1rem; padding: .8rem .3rem; border-radius: 11px; background: #293443; color: #fff; }
.e-event-day { font-family: 'Inter',sans-serif; font-weight: 800; font-size: 2.8rem; line-height: 1; }
.e-event-month { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.e-event-kicker, .e-contact-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #f5aa6a; font-weight: 800; }
.e-event-content h3 { margin: .3rem 0 .5rem; font-size: clamp(1.5rem,2.8vw,2rem); }
.e-event-window { margin: .1rem 0 1rem; font-size: .85rem; font-weight: 700; color: #dce7ed; }
.e-event-classes { display: flex; flex-wrap: wrap; gap: .4rem; }
.e-event-classes span { padding: .25rem .5rem; border: 1px solid var(--stroke); border-radius: 6px; font-size: .72rem; color: #ccdbe5; }
.e-event-unconfirmed, .e-event-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.e-event-link { color: #f5aa6a; font-weight: 800; font-size: .82rem; text-decoration: none; }
.e-event-link:hover { text-decoration: underline; }
.e-event-empty { grid-column: 1/-1; padding: 2rem; background: #182a38; border: 1px dashed var(--stroke); border-radius: 14px; color: var(--muted); text-align: center; }
.e-event-note { margin: 1rem 0 0; }
.e-contacts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.e-contact { display: flex; align-items: center; gap: 1.5rem; padding: 1.7rem; border: 1px solid var(--stroke); border-radius: 17px; background: #152535; }
.e-contact img { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%; border: 2px solid rgba(245,170,106,.48); object-fit: cover; background: #0d1b27; }
.e-contact h3 { font-size: clamp(1.6rem,3vw,2rem); margin: .3rem 0; }
.e-contact p { margin: 0; color: var(--muted); font-size: .87rem; }
.e-contact-hint { color: var(--muted); margin-top: 1.2rem; }
.e-contact-hint a { color: #f5aa6a; }
.e-roster-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: .7rem; }
.e-roster-grid span { display: flex; align-items: center; gap: .65rem; padding: 1rem; border: 1px solid var(--stroke); border-radius: 10px; background: #162635; font-weight: 700; font-size: .87rem; }
.e-roster-grid span::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #f5aa6a; }
.e-join { width: min(1200px,calc(100% - 2rem)); margin: 5rem auto 2rem; padding: clamp(2rem,5vw,4rem); border: 1px solid rgba(245,170,106,.3); border-radius: 22px; background: radial-gradient(circle at 80% 0%,rgba(245,170,106,.13),transparent 45%),#192836; text-align: center; }
.e-join h2 { margin: .4rem auto 1rem; max-width: 800px; font-size: clamp(2.5rem,5.5vw,4.3rem); }
.e-join p { margin: 0 auto 2rem; max-width: 70ch; color: var(--muted); }

@media (max-width: 900px) {
  .home-quote-section, .home-endurance, .icons-hero, .e-hero { grid-template-columns: 1fr; }
  .home-quote-visual { min-height: 180px; padding: 1rem; }
  .home-quote-visual img { width: 88px; max-height: 88px; }
  .home-quote-visual h2 { font-size: 1.6rem; }
  .home-quote-copy { padding: 2rem; }
  .home-endurance-visual { min-height: 180px; }
  .home-endurance-visual img { width: 150px; }
  .people-intro, .icons-stories-intro { grid-template-columns: 1fr; display: block; }
  .people-intro p, .icons-stories-intro p { margin-top: 1rem; }
  .icons-hero-badge { padding: 2rem; }
  .icons-hero-badge img { width: 140px; }
  .e-hero-logo { grid-row: 1; }
  .e-hero-logo img { width: 155px; }
}
@media (max-width: 700px) {
  .home-quote-section, .home-endurance { margin: 3rem auto; border-radius: 17px; }
  .home-quote-copy blockquote, .icons-quote blockquote { padding-left: .8rem; font-size: clamp(2rem,7vw,2.8rem); }
  .home-quote-copy blockquote::before, .icons-quote blockquote::before { top: -1.7rem; }
  .home-socials { padding: 3rem 1rem; }
  .people-intro { margin-top: 3rem; }
  .homepage .team-grid, .homepage .team-grid2, .homepage .admin-group2 { grid-template-columns: minmax(0,1fr); }
  .homepage .admin-card, .homepage .admin-card2, .homepage .flexcontainer2 .admin-card2 { min-height: 125px; padding: 1rem; grid-template-columns: 70px minmax(0,1fr); }
  .homepage .admin-card .avatar, .homepage .admin-card2 .avatar { width: 66px; height: 66px; }
  .icons-quote { margin: 3rem auto; }
  .icons-stories-intro { margin-bottom: 1.5rem; }
  .icons-accordion summary { padding: 1rem; gap: .7rem; }
  .icons-accordion summary::before { flex-basis: 32px; }
  .icons-accordion .blocktext { padding: 0 1rem 1rem; font-size: .9rem; }
  .rdn-hero h1 { font-size: clamp(2.6rem,11vw,4.3rem); }
  .rdn-document-heading { flex-direction: column; align-items: stretch; }
  .rdn-document .pdf { min-height: 340px; height: 56vh; }
  .e-section-top { display: block; }
  .e-section-top .text-link { margin-top: 1.2rem; }
  .e-contacts-grid { grid-template-columns: 1fr; }
  .e-contact { padding: 1rem; gap: .9rem; }
  .e-contact img { flex-basis: 76px; width: 76px; height: 76px; }
  .e-event-card { grid-template-columns: 64px minmax(0,1fr); gap: .85rem; padding: 1rem; }
  .e-event-day { font-size: 2.2rem; }
  .e-hero, .e-section, .e-join { margin-top: 3rem; margin-bottom: 3rem; }
}

/* 2026 visual refresh — consistent type and reduced visual noise. */
body, body button, body input, body select, body textarea,
body p, body li, body a, body .role, body .feature-item {
  font-family: 'Inter', sans-serif;
}
body h1, body h2, body h3, body .section-title, body .header {
  font-family: 'Inter', sans-serif;
}
body[data-theme='icons'] { --accent: #fa86b7; }

/* Result graphics are deliberately narrower than the page sections. */
.middle-carousel { width: min(100%, 840px); margin: 2.5rem auto; }
.middle-carousel .carousel,
.middle-carousel .carousel-track-container,
.middle-carousel .carousel-track img {
  width: min(82vw, 840px);
  max-width: 100%;
}
.middle-carousel .carousel-track img { max-width: none; }
.middle-carousel .headerGP-Ergebnisse { text-align: left; padding-left: 0; }

/* Homepage: clear sequence of leagues, LMU, endurance and Icons. */
.home-lmu {
  width: min(1220px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  align-items: center;
  margin: 4.5rem auto;
  overflow: hidden;
  border: 1px solid rgba(250,104,116,.3);
  border-radius: 24px;
  background: linear-gradient(115deg,#301b29,#181d2b 63%,#111a26);
}
.home-lmu-visual { display: grid; place-items: center; height: 100%; min-height: 250px; padding: 2rem; background: radial-gradient(circle,rgba(250,104,116,.16),transparent 66%); }
.home-lmu-visual img { width: min(220px,100%); max-height: 220px; object-fit: contain; }
.home-lmu-visual span { font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: #ffacb4; }
.home-lmu-content { align-self: center; padding: clamp(1.6rem,4vw,3.5rem); }
.home-lmu-content .eyebrow { color: #ff909d; }
.home-lmu-content h2 { max-width: 660px; margin: .4rem 0 1rem; font-size: clamp(2rem,4.3vw,3.7rem); overflow-wrap: anywhere; }
.home-lmu-content .class-button { background: #fa6874; border-color: #fa6874; color: #1d141b; }
@media (max-width: 900px) {
  .home-lmu { grid-template-columns: 1fr; }
  .home-lmu-visual { min-height: 180px; }
  .home-lmu-visual img { width: 150px; }
}
@media (max-width: 700px) {
  .home-lmu { margin: 3rem auto; border-radius: 17px; }
}
.home-quote-section { margin-top: 1.5rem; }
.home-quote-visual { background: radial-gradient(circle at 30% 20%,rgba(233,30,99,.12),transparent 60%),#1d2331; }
.home-quote-visual .eyebrow, .home-quote-copy .text-link { color: #ff75a0; }
.home-quote-section { border-color: rgba(233,30,99,.28); }
.home-quote-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.home-quote-copy blockquote { margin-bottom: .5rem; }

/* Team directory: a flat editorial roster, not the old nested card layout. */
.homepage .people-section {
  width: min(1240px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .7rem 1rem;
  margin: 5rem auto 3rem;
  padding: 0;
}
.people-section .people-intro {
  grid-column: 1/-1;
  display: block;
  max-width: none;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--stroke);
}
.people-section .people-intro .section-title { text-align: left; font-size: clamp(2.5rem,5.5vw,5rem); }
.homepage .people-section .team-grid, .homepage .people-section .team-grid2,
.homepage .people-section .team-grid3, .homepage .people-section .admin-group2,
.homepage .people-section .flexcontainer, .homepage .people-section .flexcontainer2 {
  display: contents;
}
.homepage .people-section .überschrift, .homepage .people-section .überschrift2,
.homepage .people-section .überschrift3, .homepage .people-section .überschrift4,
.homepage .people-section .überschrift5, .homepage .people-section .überschrift6,
.homepage .people-section .überschrift7, .homepage .people-section .überschrift8,
.homepage .people-section .überschrift9 {
  grid-column: 1/-1;
  width: 100%;
  margin: 2.3rem 0 .45rem;
  padding: 0 0 .8rem;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  color: #e9f3f8;
  font-size: clamp(1.65rem,3vw,2.35rem);
}
.homepage .people-section .admin-card, .homepage .people-section .admin-card2,
.homepage .people-section .flexcontainer2 .admin-card2 {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-content: center;
  justify-items: start;
  width: 100%;
  height: auto;
  min-height: 112px;
  padding: 1rem .9rem;
  margin: 0;
  border: 1px solid var(--stroke);
  border-left: 0;
  border-radius: 8px;
  background: linear-gradient(90deg,rgba(31,49,61,.6),rgba(18,31,42,.4));
  box-shadow: none;
  text-align: left;
  transition: none;
}
.homepage .people-section .admin-card:hover, .homepage .people-section .admin-card2:hover { transform: none; background: linear-gradient(90deg,rgba(31,49,61,.6),rgba(18,31,42,.4)); }
.homepage .people-section .admin-card .avatar, .homepage .people-section .admin-card2 .avatar {
  grid-column: 1;
  grid-row: 1/span 2;
  align-self: center;
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  object-fit: cover;
}

.homepage .people-section .admin-card :is(h2,h3),
.homepage .people-section .admin-card2 :is(h2,h3) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 1.55rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.homepage .people-section .admin-card .role,
.homepage .people-section .admin-card2 .role {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    color: #82dcd5;
    font-size: .71rem;
}

/* P-Tag sichtbar machen */
.homepage .people-section .admin-card p,
.homepage .people-section .admin-card2 p {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 5px 0 0;
    color: #a8b8c7;
    font-size: 0.85rem;
}

/* Nur diese Elemente ausblenden */
.homepage .people-section .header-image,
.homepage .people-section .admin-card > a {
    display: none;
}


/* Icons: the complete biographies are readable in a permanent gallery. */
main.icons-page { background: radial-gradient(circle at 55% 0,rgba(233,30,99,.07),transparent 35%); }
.icons-hero-badge { background: radial-gradient(circle at 50% 30%,rgba(233,30,99,.22),transparent 65%),#211c2b; }
.icons-hero-badge span { color: #ff83ac; }
.icons-hero-copy h1 em { color: #fa86b7; }
.icons-quote { border-left-color: #fa86b7; background: #211c2b; }
.icons-stories { max-width: 1180px; }
.icons-gallery { counter-reset: icon-profile; columns: 2 420px; column-gap: 1.25rem; }
.icons-gallery .icon-profile {
  counter-increment: icon-profile;
  display: block;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(233,30,99,.25);
  border-radius: 16px;
  background: linear-gradient(155deg,#242130,#141e2a);
}
.icons-gallery .icon-profile-header { display: flex; align-items: center; gap: .95rem; padding: 1.25rem 1.4rem 1rem; border-bottom: 1px solid rgba(233,30,99,.17); }
.icons-gallery .icon-profile-header::before { content: counter(icon-profile, decimal-leading-zero); flex: 0 0 2rem; color: #fa86b7; font-family: 'Inter',sans-serif; font-weight: 800; font-size: 1.6rem; }
.icons-gallery .icon-profile-header :is(h2,h3) { margin: 0; font-size: clamp(1.6rem,3vw,2.3rem); color: #fff; }
.icons-gallery .blocktext { max-width: none; margin: 0; padding: .85rem 1.4rem 0; font-size: .91rem; line-height: 1.75; color: #cbd7e2; background: none; }
.icons-gallery .blocktext:last-child { padding-bottom: 1.5rem; }
.icons-gallery .blocktext + .blocktext { margin-top: .45rem; }

/* F1 driver fields: crisp team labels and numbered driver lines, no hover motion. */
body[data-theme='friday'] .f1-driver-grid,
body[data-theme='sunday'] .f1-driver-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; width: min(1240px,calc(100% - 2rem)); padding: 0; }
body[data-theme='friday'] .f1-driver-grid .team-card, body[data-theme='sunday'] .f1-driver-grid .team-card {
  width: 100%;
  max-width: none;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.25rem;
  background: linear-gradient(155deg,#1d2a39,#101924);
  border: 1px solid var(--stroke);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  transform: none;
  box-shadow: none;
}
body[data-theme='friday'] .f1-driver-grid .team-card:hover,
body[data-theme='sunday'] .f1-driver-grid .team-card:hover { transform: none; box-shadow: none; }
body[data-theme='friday'] .f1-driver-grid .team-card img,
body[data-theme='sunday'] .f1-driver-grid .team-card img {
  width: 100%;
  max-width: 170px;
  height: 108px;
  margin: 0 auto 1.3rem;
  object-fit: contain;
}
body[data-theme='friday'] .f1-driver-grid .drivers,
body[data-theme='sunday'] .f1-driver-grid .drivers { display: grid; gap: 0; margin-top: auto; counter-reset: driver-slot; }
body[data-theme='friday'] .f1-driver-grid .drivers > div,
body[data-theme='sunday'] .f1-driver-grid .drivers > div {
  counter-increment: driver-slot;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .1rem;
  border: 0;
  border-top: 1px solid var(--stroke);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
body[data-theme='friday'] .f1-driver-grid .drivers > div::before,
body[data-theme='sunday'] .f1-driver-grid .drivers > div::before { content: counter(driver-slot, decimal-leading-zero); color: var(--accent); font: 800 1.3rem/1 'Inter',sans-serif; }
body[data-theme='friday'] .f1-driver-grid .drivers :is(h2,h3,h4),
body[data-theme='sunday'] .f1-driver-grid .drivers :is(h2,h3,h4) { font-size: 1.3rem; }

/* WDL has a warm racing-event identity; LMU a separate endurance-red identity. */
body[data-theme='wdl'] { --accent: #ff928a; }
body[data-theme='lmu'] { --accent: #fa6874; }
.wdl-hero, .lmu-hero {
  width: min(1240px,calc(100% - 2rem));
  min-height: 315px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem auto 1.8rem;
  padding: clamp(2rem,5vw,4rem);
  border-radius: 20px;
  border: 1px solid rgba(255,146,138,.3);
  background: radial-gradient(circle at 90% 50%,rgba(255,146,138,.18),transparent 45%),linear-gradient(120deg,#302332,#131d2b);
  text-align: left;
}
.wdl-hero h1, .lmu-hero h1 { margin: .3rem 0; padding: 0; font-size: clamp(3rem,6.6vw,6rem); line-height: .95; text-align: left; }
.wdl-hero h1 span { color: #ff928a; }
.wdl-hero img, .lmu-hero img { flex: 0 0 auto; width: clamp(130px,22vw,235px); height: 230px; object-fit: contain; }
body[data-theme='wdl'] main > .features, body[data-theme='lmu'] main > .features { max-width: 1240px; }
body[data-theme='wdl'] .features .feature-item { min-height: 110px; border-radius: 12px; border-bottom: 2px solid rgba(255,146,138,.55); }
body[data-theme='wdl'] .features .feature-item i { color: #ff928a; }
.wdl-contacts { width: min(1240px,calc(100% - 2rem)); margin: 4.5rem auto 3.5rem; }
.wdl-contacts h2 { margin: 0 0 1.3rem; font-size: clamp(2rem,4vw,3.2rem); }
.wdl-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.wdl-contact { display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem; border: 1px solid var(--stroke); border-radius: 14px; background: #1d2736; }
.wdl-contact img, .wdl-contact-monogram { width: 86px; height: 86px; flex: 0 0 86px; border-radius: 12px; object-fit: cover; }
.wdl-contact-monogram { display: grid; place-items: center; font: 800 2rem/1 'Inter',sans-serif; color: #21131b; background: #ff928a; }
.wdl-contact h3 { margin: .15rem 0; font-size: clamp(1.8rem,3.5vw,2.6rem); }
.wdl-contact .eyebrow { color: #ffaca7; }
.wdl-contacts > .text-link { display: inline-flex; margin-top: 1.3rem; }
.wdl-section-title, .lmu-section-title { font-size: clamp(2.4rem,5vw,4.5rem); margin-top: 4rem; }
body[data-theme='wdl'] .f1-driver-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; width: min(1240px,calc(100% - 2rem)); padding: 0; }
body[data-theme='wdl'] .f1-driver-grid .team-card { width: 100%; max-width: none; min-height: 220px; padding: 1.3rem; }
body[data-theme='wdl'] .f1-driver-grid .team-card a { text-decoration: none; color: inherit; }
body[data-theme='wdl'] .f1-driver-grid .team-card img { max-width: 150px; height: 100px; }
body[data-theme='wdl'] .f1-driver-grid .team-card:hover { transform: none; }
body[data-theme='wdl'] .f1-driver-grid .team-card .drivers > div { background: transparent; border: 0; padding: 0; }
body[data-theme='wdl'] .team-mapping-section { width: min(1100px,calc(100% - 2rem)); max-width: 1100px; margin: 2.3rem auto 3rem; padding: 1.3rem 0; }
body[data-theme='wdl'] .team-mapping-section h2 { margin: 0 0 1.25rem; font-size: clamp(2rem,4vw,3rem); }
body[data-theme='wdl'] .team-mapping-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
body[data-theme='wdl'] .mapping-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.15rem; gap: 1rem; border-radius: 9px; background: #1b2937; }
body[data-theme='wdl'] .mapping-item .league-name { flex: 1; color: #e9f3f8; font-weight: 750; font-size: .86rem; }
body[data-theme='wdl'] .mapping-item .team-name { color: #ffaaa2; font-weight: 800; font-size: .85rem; text-align: right; }
body[data-theme='wdl'] .mapping-item .team-name::before { content: '→'; margin-right: .6rem; }

.lmu-hero { border-color: rgba(250,104,116,.32); background: radial-gradient(circle at 90% 50%,rgba(250,104,116,.17),transparent 45%),linear-gradient(115deg,#341925,#161b2a); }
.lmu-hero h1 span { color: #fa6874; }
body[data-theme='lmu'] main > .features .feature-item { min-height: 112px; border-bottom: 2px solid #fa6874; background: #24202d; }
body[data-theme='lmu'] .f1-driver-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; width: min(1240px,calc(100% - 2rem)); padding: 0; }
body[data-theme='lmu'] .f1-driver-grid .team-card {
  max-width: none;
  width: 100%;
  min-height: 240px;
  padding: 1.4rem;
  background: linear-gradient(140deg,#2d2330,#161e2b);
  border: 1px solid rgba(250,104,116,.2);
  border-top: 4px solid #fa6874;
  text-align: left;
}
body[data-theme='lmu'] .f1-driver-grid .team-card:hover { transform: none; }
body[data-theme='lmu'] .f1-driver-grid .team-card > :is(h2,h3) { margin-bottom: 1rem; font-size: clamp(1.6rem,2.5vw,2.1rem); }
body[data-theme='lmu'] .f1-driver-grid .drivers { display: grid; gap: .3rem; counter-reset: lmu-driver; }
body[data-theme='lmu'] .f1-driver-grid .drivers > div { counter-increment: lmu-driver; display: flex; align-items: center; gap: .85rem; padding: .6rem .2rem; border: 0; border-top: 1px solid rgba(250,104,116,.18); border-radius: 0; background: none; }
body[data-theme='lmu'] .f1-driver-grid .drivers > div::before { content: counter(lmu-driver,decimal-leading-zero); color: #fa6874; font: 800 1.15rem/1 'Inter',sans-serif; }
body[data-theme='lmu'] .f1-driver-grid .drivers :is(h2,h3,h4) { font-size: 1.22rem; }

/* Points as a podium and a clean, easily comparable result ladder. */
body[data-theme='wdl'] .points-showcase, body[data-theme='lmu'] .points-showcase { width: min(1100px,calc(100% - 2rem)); max-width: 1100px; margin: 5rem auto; }
.points-showcase > .eyebrow { color: var(--accent); }
.points-showcase h2 { margin: .2rem 0 1.5rem; font-size: clamp(2.3rem,4vw,3.7rem); text-align: left; }
.points-showcase .punkte-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .7rem; }
.points-showcase .punkte-item {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 104px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #182736;
  text-align: left;
}
.points-showcase .punkte-item:nth-child(-n+3) { grid-column: span 4; min-height: 155px; padding: 1.5rem; background: linear-gradient(130deg,#2b3444,#172432); }
.points-showcase .punkte-item:nth-child(1) { border-top: 4px solid #ffd580; }
.points-showcase .punkte-item:nth-child(2) { border-top: 4px solid #bfcbd6; }
.points-showcase .punkte-item:nth-child(3) { border-top: 4px solid #c98d68; }
.points-showcase .punkte-platz { font-family: 'Inter',sans-serif; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: #bbcad5; }
.points-showcase .punkte-wert { font-family: 'Inter',sans-serif; font-size: clamp(1.65rem,2.7vw,2.4rem); font-weight: 800; line-height: 1; color: #fff; }
.points-showcase .punkte-item:nth-child(-n+3) .punkte-wert { font-size: clamp(2.4rem,4vw,3.2rem); }
.points-showcase .punkte-item.is-bonus { grid-column: span 6; border-color: rgba(250,104,116,.4); background: #302431; }

/* Legal page mirrors the shared design and no longer uses the legacy display font. */
body .legal-page {
  width: min(1050px,calc(100% - 2rem));
  margin: 3rem auto 5rem;
  padding: clamp(1.5rem,4vw,4rem);
  border-radius: 20px;
  background: linear-gradient(135deg,#182b3a,#101d2a);
  color: #e7f0f6;
  font-family: 'Inter',sans-serif;
}
.legal-page > .eyebrow { color: #67e5df; }
.legal-page h1 { margin: .4rem 0 2.5rem; padding: 0 0 1.4rem; border-bottom: 1px solid var(--stroke); text-align: left; font-size: clamp(3.5rem,8vw,6rem); }
.legal-page h1 span { color: var(--accent); }
.legal-page h2 { margin: 2.1rem 0 .8rem; font-size: clamp(1.5rem,3vw,2rem); color: #f4fbfe; }
.legal-page h3 { font-size: 1.45rem; color: #67e5df; }
.legal-page p { margin: .75rem 0; font-size: .94rem; line-height: 1.8; color: #c6d4df; }
.legal-page a { color: #7de7e2; text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: #fff; }

@media (max-width: 1050px) {
  body[data-theme='friday'] .f1-driver-grid, body[data-theme='sunday'] .f1-driver-grid,
  body[data-theme='wdl'] .f1-driver-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .homepage .people-section { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .homepage .people-section { grid-template-columns: 1fr; }
  .wdl-hero, .lmu-hero { min-height: 0; flex-direction: column-reverse; align-items: flex-start; padding: 1.7rem; }
  .wdl-hero img, .lmu-hero img { width: 126px; height: 120px; }
  .wdl-contact-grid { grid-template-columns: 1fr; }
  body[data-theme='wdl'] .team-mapping-list { grid-template-columns: 1fr; }
  body[data-theme='friday'] .f1-driver-grid, body[data-theme='sunday'] .f1-driver-grid,
  body[data-theme='wdl'] .f1-driver-grid, body[data-theme='lmu'] .f1-driver-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .points-showcase .punkte-item { grid-column: span 6; }
  .points-showcase .punkte-item:nth-child(-n+3) { grid-column: span 4; }
}
@media (max-width: 480px) {
  body[data-theme='friday'] .f1-driver-grid, body[data-theme='sunday'] .f1-driver-grid,
  body[data-theme='wdl'] .f1-driver-grid, body[data-theme='lmu'] .f1-driver-grid { grid-template-columns: 1fr; }
  .points-showcase .punkte-item:nth-child(-n+3) { grid-column: span 12; min-height: 105px; }
  .points-showcase .punkte-item { grid-column: span 6; min-height: 90px; }
  .points-showcase .punkte-wert { font-size: 1.6rem; }
  .icons-gallery .icon-profile-header { padding: 1rem; }
  .icons-gallery .blocktext { padding: .8rem 1rem 0; }
  .icons-gallery .blocktext:last-child { padding-bottom: 1.2rem; }
}

/* v4: one type family across legacy pages, including RDN labels. Icons keep
   their icon-font class and therefore are deliberately not targeted here. */
body, body :is(h1,h2,h3,h4,h5,h6,p,span,small,a,button,input,select,textarea,label,blockquote,li,figcaption,time,address,dt,dd),
body :is(.eyebrow,.role,.header,.section-title,.text-slide,.counter-number,.class-button,.year-button) {
  font-family: 'Inter', Arial, sans-serif !important;
}

/* Result panels match the scale of the compact standings graphics. Their
   heights are calculated from the active image rather than a forced ratio. */
.middle-carousel { width: min(100%, 520px); max-width: 520px; margin: 2.25rem auto 3rem; }
.middle-carousel .carousel,
.middle-carousel .carousel-track-container,
.middle-carousel .carousel-track img { width: min(88vw,520px); max-width: 100%; height: auto; aspect-ratio: auto; }
.middle-carousel .carousel-track-container { aspect-ratio: auto !important; background: transparent; }
.middle-carousel .carousel-track img { max-width: none; height: auto !important; aspect-ratio: auto !important; }
.middle-carousel > h2 { width: 100%; margin: 0 0 1rem; font-size: clamp(1.6rem,3.5vw,2.4rem); text-align: left; }
.carousel-track-container { touch-action: pan-y; }
.carousel-track img { height: auto !important; }
.carousel-btn[hidden] { display: none !important; }
.carousel-track-container:focus-visible { outline: 2px solid var(--accent); }

/* The user can reactivate scoring later without re-entering any data. */
body[data-theme='wdl'] .points-showcase,
body[data-theme='lmu'] .points-showcase { display: none !important; }

/* A working season rail and a separate championship presentation. */
.krl-history {
  width: min(1150px,calc(100% - 2rem));
  margin: 5rem auto 3rem;
  padding: clamp(1.2rem,3.5vw,3rem);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: radial-gradient(circle at 95% 4%,rgba(103,229,223,.09),transparent 40%),#101e2d;
}
.history-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.history-heading h2 { margin: 0; font-size: clamp(2.6rem,5vw,4.6rem); }
.history-heading > span { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.history-timeline {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem .2rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface-raised);
  scroll-snap-type: x proximity;
}
/* The connecting line belongs to the entire season row, including seasons
   outside the viewport. The outer element remains the native scroll area. */
.history-timeline-track {
  position: relative;
  display: flex;
  gap: .25rem;
  width: max-content;
  min-width: 100%;
}
.history-timeline-track::before { content: ''; position: absolute; left: 1rem; right: 1rem; top: .68rem; height: 2px; background: rgba(185,208,224,.25); }
.history-year {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 90px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  min-width: 90px;
  min-height: 95px;
  padding: 2.15rem .5rem .75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #b4c5d1;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background .2s ease, color .2s ease;
}
.history-year::before { content: ''; position: absolute; top: .26rem; left: calc(50% - 7px); width: 14px; height: 14px; border: 3px solid #6d889b; border-radius: 50%; background: #101e2d; }
.history-year:hover, .history-year:focus-visible { color: #fff; background: rgba(255,255,255,.05); }
.history-year.is-active { color: #fff; background: #213544; border-color: rgba(193,219,231,.17); }
.history-year.is-active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(103,229,223,.12); }
.history-detail {
  display: grid;
  grid-template-columns: minmax(120px,.35fr) minmax(0,1.65fr);
  align-items: stretch;
  gap: 1rem;
  min-height: 170px;
  padding: 1.15rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(115deg,#203343,#162532);
}
.history-detail.history-animate { animation: history-appear .25s ease both; }
@keyframes history-appear { from {opacity:.5;transform:translateY(5px)} to {opacity:1;transform:translateY(0)} }
.history-season { display: flex; flex-direction: column; justify-content: center; padding: .75rem 1.1rem; border-right: 1px solid var(--stroke); }
.history-season span { color: var(--muted); font-size: .68rem; letter-spacing: .13em; font-weight: 800; }
.history-season strong { font-size: clamp(2rem,4vw,3rem); line-height: 1.05; letter-spacing: -.035em; color: var(--accent); overflow-wrap: anywhere; }
.history-winners { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.history-champion { display: flex; flex-direction: column; justify-content: center; gap: .6rem; min-width: 0; padding: 1rem; }
.history-champion span { color: #aac0ce; font-size: .7rem; font-weight: 750; letter-spacing: .065em; }
.history-champion strong { color: #f2f8fb; font-size: clamp(1.18rem,2.5vw,1.8rem); line-height: 1.25; overflow-wrap: anywhere; }
body[data-theme='wdl'] .krl-history { background: radial-gradient(circle at 95% 4%,rgba(255,146,138,.1),transparent 45%),#171f2b; }

/* Live-grid inspired F1 line-up: team branding beside race seats. */
body[data-theme='friday'] .f1-driver-grid,
body[data-theme='sunday'] .f1-driver-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
body[data-theme='friday'] .f1-driver-grid .team-card,
body[data-theme='sunday'] .f1-driver-grid .team-card {
  --team-color: var(--accent);
  display: grid;
  grid-template-columns: minmax(90px,135px) minmax(0,1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: .2rem 1.3rem;
  min-height: 178px;
  padding: 1.3rem;
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--team-color);
  border-radius: 15px;
  background: linear-gradient(105deg,#192d3d,#111c29);
  text-align: left;
  transform: none;
  transition: none;
}
body[data-theme='friday'] .f1-driver-grid .team-card img,
body[data-theme='sunday'] .f1-driver-grid .team-card img {
  grid-column: 1;
  grid-row: 1/span 2;
  width: 100%;
  max-width: 135px;
  height: 100px;
  margin: 0;
  object-fit: contain;
}
.lineup-team-name { grid-column: 2; grid-row: 1; color: var(--team-color); font-size: .77rem; font-weight: 800; letter-spacing: .045em; }
body[data-theme='friday'] .f1-driver-grid .team-card .drivers,
body[data-theme='sunday'] .f1-driver-grid .team-card .drivers { grid-column: 2; grid-row: 2; margin: 0; }
body[data-theme='friday'] .f1-driver-grid .team-card .drivers > div,
body[data-theme='sunday'] .f1-driver-grid .team-card .drivers > div { padding: .6rem 0; }
body[data-theme='friday'] .f1-driver-grid .team-card .drivers > div::before,
body[data-theme='sunday'] .f1-driver-grid .team-card .drivers > div::before { color: var(--team-color); }
body[data-theme='friday'] .team-card.redbull, body[data-theme='sunday'] .team-card.redbull { --team-color: #4b95d8; }
body[data-theme='friday'] .team-card.mercedes, body[data-theme='sunday'] .team-card.mercedes { --team-color: #63d2ca; }
body[data-theme='friday'] .team-card.ferrari, body[data-theme='sunday'] .team-card.ferrari { --team-color: #ff5d67; }
body[data-theme='friday'] .team-card.mclaren, body[data-theme='sunday'] .team-card.mclaren { --team-color: #ffab55; }
body[data-theme='friday'] .team-card.alpine, body[data-theme='sunday'] .team-card.alpine { --team-color: #f49ad1; }
body[data-theme='friday'] .team-card.williams, body[data-theme='sunday'] .team-card.williams { --team-color: #94adff; }
body[data-theme='friday'] .team-card.audi, body[data-theme='sunday'] .team-card.audi { --team-color: #f0666c; }
body[data-theme='friday'] .team-card.haas, body[data-theme='sunday'] .team-card.haas { --team-color: #c0cad6; }
body[data-theme='friday'] .team-card.vcrb, body[data-theme='sunday'] .team-card.vcrb { --team-color: #83a6ff; }

/* WDL: league identity and assigned Formula 1 car in ONE card. */
body[data-theme='wdl'] .f1-driver-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
body[data-theme='wdl'] .f1-driver-grid .team-card { min-height: 205px; display: block; padding: 1.2rem; border-top: 3px solid var(--accent); }
body[data-theme='wdl'] .f1-driver-grid .team-card a {
  height: 100%;
  display: grid;
  grid-template-columns: 94px minmax(0,1fr);
  align-items: center;
  gap: .7rem 1rem;
  text-decoration: none;
}
body[data-theme='wdl'] .f1-driver-grid .team-card > a > img { grid-column: 1; grid-row: 1; width: 94px; height: 105px; max-width: 100%; margin: 0; object-fit: contain; }
body[data-theme='wdl'] .f1-driver-grid .team-card .drivers { grid-column: 2; grid-row: 1; width: 100%; }
body[data-theme='wdl'] .f1-driver-grid .team-card .drivers > div { padding: .15rem 0; }
body[data-theme='wdl'] .f1-driver-grid .team-card .drivers :is(h2,h3,h4) { font-size: clamp(1rem,1.7vw,1.26rem); line-height: 1.35; margin: 0 0 .8rem; text-align: left; }
.wdl-team-assignment { display: flex; align-items: center; gap: .65rem; padding-top: .75rem; border-top: 1px solid var(--stroke); }
body[data-theme='wdl'] .f1-driver-grid .team-card .wdl-team-assignment img { width: 62px; height: 48px; max-width: 62px; margin: 0; object-fit: contain; }
.wdl-team-assignment span { color: #ffb3ad; font-size: .85rem; font-weight: 800; text-align: left; }
.homepage .people-section .avatar.avatar-initials { display: grid; place-items: center; background: #ff928a; color: #21181e; font-size: 1.2rem; font-weight: 900; }
.homepage .counter-container { margin: 2rem auto 3.5rem; }
.homepage .home-lmu { margin-top: 1.2rem; }

@media (max-width: 1050px) {
  body[data-theme='wdl'] .f1-driver-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  body[data-theme='friday'] .f1-driver-grid, body[data-theme='sunday'] .f1-driver-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .history-heading { display: block; }
  .history-heading > span { display: inline-block; margin-top: .8rem; }
  .history-detail { grid-template-columns: 1fr; gap: .25rem; }
  .history-season { border-right: 0; border-bottom: 1px solid var(--stroke); flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; }
  .history-winners { grid-template-columns: 1fr; gap: .25rem; }
  .history-champion { padding: .7rem 1rem; }
  body[data-theme='wdl'] .f1-driver-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .history-detail.history-animate { animation: none; }
  .history-year { transition: none; }
}

/* v5: preserve the full original home-banner image (no cover crop). */
.homepage .landing_page {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.homepage .hero-intro { margin: 1.25rem auto 0; }

/* Each complete Endurance headline word (including its period) stays together. */
.endurance-page .e-hero { grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); }
.endurance-page .e-hero-copy { min-width: 0; }
.endurance-page .e-hero h1 {
  display: flex;
  flex-wrap: wrap;
  column-gap: .28em;
  row-gap: .05em;
  align-items: baseline;
  max-width: 100%;
  margin: .4rem 0 1.1rem;
  font-size: clamp(1.5rem, 5vw, 4.8rem);
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.endurance-page .e-hero h1 .e-title-word {
  display: inline-block;
  white-space: nowrap;
  color: #f2f8fb;
}
.endurance-page .e-hero h1 .e-title-highlight { color: #f5aa6a; }

/* LMU standings are larger than compact GP result galleries. */
body[data-theme='lmu'] .middle-carousel { width: min(100%,880px); max-width: 880px; }
body[data-theme='lmu'] .middle-carousel .carousel,
body[data-theme='lmu'] .middle-carousel .carousel-track-container,
body[data-theme='lmu'] .middle-carousel .carousel-track img {
  width: min(92vw,880px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* LMU entrants as a compact, quieter start list rather than tall feature cards. */
body[data-theme='lmu'] .f1-driver-grid {
  width: min(1190px,calc(100% - 2rem));
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .7rem;
}
body[data-theme='lmu'] .f1-driver-grid .team-card {
  display: block;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--stroke);
  border-left: 3px solid #fa6874;
  border-radius: 11px;
  background: #181f2d;
  box-shadow: none;
}
body[data-theme='lmu'] .f1-driver-grid .team-card > :is(h2,h3) {
  display: flex;
  align-items: center;
  min-height: 2.1rem;
  margin: 0 0 .6rem;
  font-size: clamp(1rem,1.5vw,1.24rem);
  line-height: 1.2;
}
body[data-theme='lmu'] .f1-driver-grid .drivers { gap: 0; }
body[data-theme='lmu'] .f1-driver-grid .drivers > div {
  padding: .37rem 0;
  gap: .55rem;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  background: transparent;
}
body[data-theme='lmu'] .f1-driver-grid .drivers > div::before { font-size: .76rem; opacity: .75; }
body[data-theme='lmu'] .f1-driver-grid .drivers :is(h2,h3,h4) { font-size: .83rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }

/* F1 driver line-ups use only the logos for team identity. */
body[data-theme='friday'] .f1-driver-grid .team-card,
body[data-theme='sunday'] .f1-driver-grid .team-card { grid-template-rows: 1fr; }
body[data-theme='friday'] .f1-driver-grid .team-card img,
body[data-theme='sunday'] .f1-driver-grid .team-card img { grid-row: 1; }
body[data-theme='friday'] .f1-driver-grid .team-card .drivers,
body[data-theme='sunday'] .f1-driver-grid .team-card .drivers { grid-column: 2; grid-row: 1; }
.lineup-team-name { display: none !important; }
body[data-theme='friday'] .team-card.cadillac,
body[data-theme='sunday'] .team-card.cadillac { --team-color: #dfc35b; }

/* The selected year is marked by the dot itself, not a rectangular button. */
.history-year.is-active, .history-year:hover, .history-year:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.history-year.is-active { color: var(--accent); }
.krl-history .history-detail {
  min-height: 0;
  margin-top: .55rem;
  padding: 1.2rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* WDL uses the vehicle crest, without a redundant F1 team-name label. */
.wdl-team-assignment { justify-content: flex-start; }
body[data-theme='wdl'] .f1-driver-grid .team-card .wdl-team-assignment img { width: 84px; height: 52px; max-width: 84px; }

/* No ending or blank half-screen in the continuous F1-logo marquee. */
.slider-track { animation: none; gap: 0; }
.slider-track.logo-marquee-ready {
  animation: krl-logo-loop var(--logo-duration,36s) linear infinite;
  will-change: transform;
}
.logo-marquee-segment {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}
.logo-marquee-segment img { flex: 0 0 85px; }
@keyframes krl-logo-loop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(0px - var(--logo-shift))); }
}
@media (max-width: 1040px) {
  body[data-theme='lmu'] .f1-driver-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .endurance-page .e-hero { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 720px) {
  body[data-theme='lmu'] .f1-driver-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .endurance-page .e-hero h1 { font-size: clamp(1.5rem,5.6vw,3rem); }
}
@media (max-width: 460px) {
  body[data-theme='lmu'] .f1-driver-grid { grid-template-columns: 1fr; }
  .endurance-page .e-hero h1 { font-size: clamp(1.32rem,6vw,1.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track.logo-marquee-ready { animation: none; }
}

/* v6: center every result carousel and heading as one unit. The track
   itself may be wider than the viewport, but the viewport never drifts. */
.carousel-section .middle-carousel {
  position: relative;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(100%,520px);
  max-width: 100%;
  margin: 2.75rem auto 3rem !important;
}
.carousel-section .middle-carousel > h2 {
  align-self: center;
  width: 100%;
  margin: 0 auto 1rem;
  padding: 0;
  text-align: center !important;
}
.carousel-section .middle-carousel > .carousel {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  max-width: 100%;
}
.carousel-section .middle-carousel .carousel-track-container {
  flex: 0 0 auto;
  margin: 0 auto !important;
  max-width: 100%;
}
body[data-theme='lmu'] .carousel-section .middle-carousel {
  width: min(100%,880px);
  max-width: 880px;
}

/* WDL's overview and league identities get more room than F1 GP results. */
body[data-theme='wdl'] .carousel-section .middle-carousel {
  width: min(100%,960px);
  max-width: 960px;
}
body[data-theme='wdl'] .middle-carousel .carousel,
body[data-theme='wdl'] .middle-carousel .carousel-track-container,
body[data-theme='wdl'] .middle-carousel .carousel-track img {
  width: min(90vw,960px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
}
body[data-theme='wdl'] .middle-carousel .carousel-track img { max-width: none; }
body[data-theme='wdl'] .wdl-section-title { margin: 4rem auto 1.5rem; font-size: clamp(3rem,6vw,5.25rem); }
body[data-theme='wdl'] .f1-driver-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: min(1240px,calc(100% - 2rem));
  gap: 1.2rem;
}
body[data-theme='wdl'] .f1-driver-grid .team-card {
  min-height: 240px;
  padding: clamp(1.2rem,2.2vw,2rem);
}
body[data-theme='wdl'] .f1-driver-grid .team-card a { grid-template-columns: 118px minmax(0,1fr); gap: 1.25rem; }
body[data-theme='wdl'] .f1-driver-grid .team-card > a > img { width: 118px; height: 126px; }
body[data-theme='wdl'] .f1-driver-grid .team-card .drivers :is(h2,h3,h4) { font-size: clamp(1.2rem,2.3vw,1.65rem); }
body[data-theme='wdl'] .f1-driver-grid .team-card .wdl-team-assignment img { width: 100px; height: 65px; max-width: 100px; }

/* Names only: no artificial 01/02/03 labels beside any driver. */
body[data-theme='friday'] .f1-driver-grid .drivers > div::before,
body[data-theme='sunday'] .f1-driver-grid .drivers > div::before,
body[data-theme='lmu'] .f1-driver-grid .drivers > div::before {
  display: none !important;
  content: none !important;
}
body[data-theme='friday'] .f1-driver-grid .drivers > div,
body[data-theme='sunday'] .f1-driver-grid .drivers > div,
body[data-theme='lmu'] .f1-driver-grid .drivers > div { gap: 0; }
@media (max-width: 750px) {
  body[data-theme='wdl'] .f1-driver-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  body[data-theme='wdl'] .f1-driver-grid .team-card a { grid-template-columns: 90px minmax(0,1fr); gap: .75rem; }
  body[data-theme='wdl'] .f1-driver-grid .team-card > a > img { width: 90px; height: 110px; }
  body[data-theme='wdl'] .f1-driver-grid .team-card .drivers :is(h2,h3,h4) { font-size: 1.1rem; }
  body[data-theme='wdl'] .f1-driver-grid .team-card { min-height: 175px; }
}

/* KRL Help: the formerly empty route is now a responsive resource hub. */
.help-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 5rem;
}
.help-hero { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.help-hero .eyebrow { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .16em; }
.help-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin: .5rem 0 0; padding: 0; }
.help-section + .help-section { margin-top: clamp(2rem, 4vw, 3.5rem); }
.help-section > h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1.25rem; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 195px;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  text-decoration: none;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(145deg, #182937, #111c29);
  transition: border-color .2s ease, background-color .2s ease;
}
.help-card:hover, .help-card:focus-visible { border-color: var(--accent); }
.help-card-label { color: var(--accent); font-weight: 800; font-size: .77rem; letter-spacing: .13em; }
.help-card h3 { margin: .85rem 0 1.4rem; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.25; overflow-wrap: anywhere; }
.help-card-action { margin-top: auto; color: #ccdce7; font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .help-grid { grid-template-columns: 1fr; } .help-card { min-height: 160px; } }
@media (prefers-reduced-motion: reduce) { .help-card { transition: none; } }


/* Audit refinements shared by normal and seasonal modes. */
[hidden] { display: none !important; }
.nav-links .dropdown > button { appearance: none; border: 0; background: transparent; }
.nav-links [aria-current='page'] { color: var(--accent); background: #67e5df14; text-decoration: underline; text-underline-offset: 5px; }
#progressBar { width: 100%; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.krl-icon { display: inline-block; width: 1.7em; height: 1.7em; color: var(--accent); vertical-align: middle; flex-shrink: 0; }
.feature-item .krl-icon, .feature-item .krl-social-icon { width: 34px; height: 34px; object-fit: contain; }
.social-link-grid .krl-social-icon { width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; }
.log .log-heading { list-style: none; }
.log p, .log li { overflow-wrap: anywhere; }
.regelwerk-nav { width: min(900px,calc(100% - 2rem)); }
.regelwerk-nav input { width: min(100%,520px); }
main > :is(section,article,div) { min-width: 0; }
body[data-theme='saturday'] { --accent: #c5a0ed; }
.advent-door-face::after { display: none; }
html.christmas-on .advent-door-face::after { display: block; }
@media (max-width: 1100px) {
  .nav-links .dropdown-content { display: none; }
  .nav-links .submenu-open > .dropdown-content { display: grid; }
  html:not(.js) .navbar { flex-wrap: wrap; }
  html:not(.js) .nav-links { position: static; opacity: 1; visibility: visible; pointer-events: auto; width: 100%; transform: none; }
  html:not(.js) .nav-links .dropdown-content { display: grid; }
  html:not(.js) .menu-toggle { display: none; }
}

.nav-links .dropdown:has(> .submenu-toggle) { display: flex; align-items: center; }
.nav-links .submenu-toggle { min-width: 32px; padding: .5rem; }
.nav-links .dropdown > .submenu-toggle { display: inline-flex; justify-content: center; align-items: center; }
.nav-links .dropdown > .submenu-toggle::after { margin: -3px 0 0; }
.nav-links .submenu-toggle > span[aria-hidden="true"] { display: none; }
.nav-links .dropdown-content { display: block; }
@media (max-width: 1100px) {
  .nav-links .dropdown:has(> .submenu-toggle) { flex-wrap: wrap; }
  .nav-links .dropdown:has(> .submenu-toggle) > a { width: calc(100% - 44px); }
  .nav-links .submenu-toggle { width: 44px; }
  .nav-links .dropdown-content { display: none; flex-basis: 100%; }
  .nav-links .submenu-open > .dropdown-content { display: grid; }
  html:not(.js) .nav-links .dropdown-content { display: grid; }
}

html:not(.christmas-on) [data-seasonal] { display: none !important; }
.nav-links > li:last-child > .dropdown-content { left: auto; right: 0; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
body[data-theme='lmu'] .team-card > :is(h2,h3) { color: #fa8790; }

html:not(.js) .fly-in { opacity: 1; transform: none; }
#rules-search-status { min-height: 1.6em; color: var(--muted); text-align: center; font-size: .85rem; }

/* Long German headings must fit the content column, including at 320 px. */
body :is(h1,h2,h3,h4) { overflow-wrap: anywhere; }
.wdl-hero > div, .lmu-hero > div, .wdl-contact > div { min-width: 0; max-width: 100%; }
.log a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .wdl-hero h1, .lmu-hero h1 { font-size: clamp(2rem,7vw,3rem); }
  .wdl-contacts h2, .e-section > h2, .e-section-top h2 { font-size: clamp(1.4rem,7vw,2rem); }
  body[data-theme='wdl'] .wdl-section-title { font-size: clamp(1.8rem,7vw,2.5rem); padding-inline: 1rem; }
  .wdl-contact { padding: 1rem; gap: .8rem; }
  .wdl-contact img, .wdl-contact-monogram { width: 64px; height: 64px; flex-basis: 64px; }
  .wdl-contact h3 { font-size: clamp(1.2rem,5.2vw,1.6rem); }
  .legal-page h1 { font-size: clamp(2rem,7.5vw,3.5rem); }
  .legal-page h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) { .e-join h2 { font-size: clamp(1.55rem,6.2vw,2.1rem); } }
