
:root {
  --bg: #080d15;
  --bg-soft: #0c131f;
  --panel: rgba(18, 26, 39, 0.78);
  --panel-solid: #111a28;
  --line: rgba(162, 181, 214, 0.16);
  --text: #f3f6fb;
  --muted: #9ca9bb;
  --accent: #7f9ff2;
  --accent-strong: #637de8;
  --cyan: #51d0ec;
  --green: #58dc8a;
  --red: #ff5f64;
  --orange: #ffad4d;
  --radius: 22px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 5%, rgba(89, 117, 214, 0.17), transparent 34%),
    radial-gradient(circle at 8% 38%, rgba(25, 155, 199, 0.08), transparent 26%),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(91, 121, 223, .12), transparent 66%);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 34px), var(--max));
  height: 76px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 26px;
  transform: translateX(-50%);
  border: 1px solid rgba(164, 183, 219, 0.14);
  border-radius: 18px;
  background: rgba(7, 12, 20, 0.66);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0,0,0,.23);
}

.brand img {
  width: 126px;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #c8d0de;
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  padding: 12px 18px;
  border: 1px solid rgba(130, 157, 237, .4);
  border-radius: 999px;
  color: #e9eeff;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(95, 120, 219, .12);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 160px max(7vw, 30px) 90px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 3vw;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 4;
}

.eyebrow {
  margin: 0 0 18px;
  color: #aebff9;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.7s infinite;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.5rem, 8.3vw, 9.3rem);
  line-height: .83;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(146, 170, 239, .86);
  text-shadow: 0 0 46px rgba(93, 122, 224, .22);
}

.hero-copy {
  max-width: 630px;
  margin: 30px 0 0;
  color: #b6c0cf;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.button {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 850;
  letter-spacing: .025em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #08101c;
  background: linear-gradient(135deg, #92adfa, #6f89ef);
  box-shadow: 0 18px 44px rgba(85, 111, 211, .25);
}

.button-ghost {
  border: 1px solid rgba(172, 190, 222, .22);
  color: #dfe5ef;
  background: rgba(255,255,255,.025);
}

.hero-visual {
  min-height: 640px;
  display: grid;
  place-items: center;
}

.hero-car-stage {
  position: relative;
  width: min(760px, 54vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(143, 164, 224, .22);
  border-radius: 28px;
  background: #0b111b;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .46),
    0 0 0 1px rgba(255,255,255,.025) inset;
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
}

.hero-car-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 -90px 120px rgba(5, 9, 16, .52);
}

.hero-car-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 55% 52%;
  transform: scale(1.015);
  transition: transform .8s cubic-bezier(.2,.75,.2,1);
}

.hero-car-stage:hover .hero-car-image {
  transform: scale(1.055);
}

.hero-car-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 17, .38), transparent 42%),
    linear-gradient(to top, rgba(6, 10, 17, .72), transparent 44%),
    radial-gradient(circle at 78% 30%, rgba(141, 77, 184, .16), transparent 36%);
}

.hero-car-brand {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 4;
  width: 118px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(7, 12, 20, .56);
  backdrop-filter: blur(10px);
}

.hero-car-brand img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.38));
}

.hero-car-caption {
  position: absolute;
  left: 26px;
  bottom: 22px;
  z-index: 4;
}

.hero-car-caption span,
.hero-car-caption strong {
  display: block;
}

.hero-car-caption span {
  color: #9ba9be;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-car-caption strong {
  margin-top: 4px;
  color: #f3f6fb;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -.02em;
  text-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(126, 153, 232, .14);
  pointer-events: none;
}

.orbit-one {
  width: 800px;
  height: 800px;
  right: -180px;
  top: 6%;
  animation: spin 24s linear infinite;
}

.orbit-two {
  width: 580px;
  height: 580px;
  right: -40px;
  top: 17%;
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}

.telemetry {
  position: absolute;
  z-index: 5;
  min-width: 126px;
  padding: 13px 15px;
  border: 1px solid rgba(148, 171, 232, .19);
  background: rgba(10, 16, 26, .83);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

.telemetry span {
  display: block;
  color: #77859a;
  font-size: .62rem;
  letter-spacing: .16em;
}

.telemetry strong {
  font-size: 1.18rem;
}

.telemetry-a {
  top: 15%;
  right: 8%;
}

.telemetry-b {
  left: 2%;
  top: 45%;
  bottom: auto;
}

.telemetry-c {
  right: 2%;
  bottom: 8%;
}

.speed-lines {
  position: absolute;
  inset: 14% -10% auto 43%;
  height: 420px;
  opacity: .28;
  transform: skewY(-8deg);
  background: repeating-linear-gradient(
    178deg,
    transparent 0 28px,
    rgba(129, 153, 227, .22) 29px 30px,
    transparent 31px 52px
  );
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}

.scroll-cue {
  position: absolute;
  left: max(7vw, 30px);
  bottom: 38px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #79879b;
  font-size: .68rem;
  letter-spacing: .18em;
}

.scroll-cue span {
  width: 42px;
  height: 1px;
  background: #77869c;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 120px 0;
}

.section-label {
  margin-bottom: 26px;
  color: #556277;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.section-heading {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.3vw, 5.7rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.section-side-copy {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10vw;
}

.intro-copy {
  color: #aeb8c7;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.manifesto {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto div {
  min-height: 150px;
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.manifesto div:last-child {
  border-right: 0;
}

.manifesto span {
  color: #5d6980;
  font-size: .72rem;
}

.manifesto strong {
  font-size: 1.25rem;
}

.stats-section {
  position: relative;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 45px -50vw;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(91, 116, 213, .07), transparent),
    rgba(11, 17, 27, .48);
  border-block: 1px solid rgba(145, 164, 204, .06);
}

.bot-status {
  min-width: 236px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 22, 34, .72);
}

.status-pulse {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(88, 220, 138, .68);
}

.bot-status small,
.bot-status strong {
  display: block;
}

.bot-status small {
  color: #7e8ca1;
}

.stats-overview {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 31, 47, .9), rgba(12, 19, 30, .8));
}

.stat-card-main {
  background:
    radial-gradient(circle at 90% 5%, rgba(99, 125, 232, .31), transparent 42%),
    linear-gradient(145deg, rgba(30, 42, 68, .96), rgba(14, 21, 34, .88));
}

.stat-card span {
  color: #96a3b7;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: clamp(2.9rem, 5vw, 5.3rem);
  line-height: 1;
}

.stat-card small {
  color: #778599;
}

.category-board {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-tile {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(11, 18, 29, .7);
}

.category-tile h3 {
  margin: 0 0 22px;
  color: #afc0f8;
  font-size: .94rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-values span {
  color: #748197;
  font-size: .66rem;
  text-transform: uppercase;
}

.category-values strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.stats-updated {
  margin: 16px 4px 0;
  color: #657389;
  font-size: .8rem;
}


.driver-stats-heading {
  margin-top: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.driver-stats-heading .eyebrow {
  margin-bottom: 8px;
}

.driver-stats-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.driver-stats-heading > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8e9caf;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(12, 19, 30, .7);
}

.driver-stats-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-driver-card {
  min-height: 188px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(95, 121, 220, .15), transparent 42%),
    rgba(11, 18, 29, .76);
}

.live-driver-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.live-driver-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #08101c;
  font-weight: 950;
  letter-spacing: -.03em;
  background: linear-gradient(145deg, #9ab3ff, #667fe7);
  box-shadow: 0 12px 30px rgba(78, 101, 194, .2);
}

.live-driver-head h4 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

.live-driver-head span {
  color: #7c899d;
  font-size: .76rem;
}

.live-driver-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.live-driver-values div {
  min-width: 0;
}

.live-driver-values span {
  display: block;
  color: #748197;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-driver-values strong {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.driver-stats-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: #7f8da1;
  text-align: center;
  background: rgba(11, 18, 29, .42);
}


.live-driver-splits {
  padding-top: 14px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(162, 181, 214, .11);
}

.live-driver-splits > span {
  color: #748197;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-driver-splits > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.live-driver-splits b {
  padding: 5px 9px;
  border: 1px solid rgba(127, 159, 242, .24);
  border-radius: 999px;
  color: #b9c9fb;
  font-size: .7rem;
  line-height: 1;
  background: rgba(99, 125, 232, .09);
}

.live-driver-splits em {
  color: #657389;
  font-size: .72rem;
  font-style: normal;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.discipline-card {
  position: relative;
  min-height: 440px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to top, rgba(7,12,20,.98), rgba(14,22,35,.4)),
    radial-gradient(circle at 60% 10%, rgba(104, 132, 231, .25), transparent 48%);
  transition: transform .3s ease, border-color .3s ease;
}

.discipline-card:hover {
  transform: translateY(-8px);
  border-color: rgba(128, 154, 238, .42);
}

.discipline-card::before {
  content: "";
  position: absolute;
  inset: 15% -40% auto 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  box-shadow: 0 28px currentColor, 0 56px currentColor, 0 84px currentColor;
  opacity: .13;
  transform: rotate(-17deg);
}

.discipline-number {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #68758a;
  font-size: .7rem;
}

.discipline-icon {
  position: absolute;
  top: 80px;
  right: 34px;
  color: rgba(152, 176, 246, .15);
  font-size: 7rem;
  font-weight: 950;
}

.discipline-card h3 {
  position: relative;
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: -.04em;
}

.discipline-card p {
  position: relative;
  max-width: 330px;
  color: #a7b2c2;
}

.discipline-meta {
  position: relative;
  margin-top: 23px;
  color: #718198;
  font-size: .77rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.driver-card {
  position: relative;
  min-height: 460px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(92, 117, 217, .22), transparent 38%),
    var(--panel);
}

.driver-card::after {
  content: attr(data-initials);
  position: absolute;
  right: 16px;
  bottom: -54px;
  color: rgba(138, 159, 224, .07);
  font-size: 13rem;
  font-weight: 950;
  line-height: 1;
}

.driver-top,
.driver-bottom {
  position: relative;
  z-index: 2;
}

.driver-index {
  color: #5c6980;
  font-size: .7rem;
}

.driver-card h3 {
  margin: 22px 0 2px;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  letter-spacing: -.04em;
}

.driver-role {
  color: #9aace1;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.driver-quote {
  max-width: 480px;
  margin: 0 0 20px;
  color: #aab4c4;
  font-size: 1.05rem;
}


.team-live-ratings {
  position: relative;
  z-index: 2;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.team-live-row {
  min-height: 56px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(145, 166, 222, .15);
  border-radius: 12px;
  background: rgba(7, 13, 22, .48);
}

.team-live-row > strong {
  color: #a9b7cb;
  font-size: .72rem;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.team-license-values {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.license-badge {
  min-width: 82px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16);
}

.license-a {
  background: #0759c7;
}

.license-b {
  background: #0b9d13;
}

.license-c {
  color: #111;
  background: #f1df00;
}

.license-d {
  color: #111;
  background: #ff8b16;
}

.license-r {
  background: #b51d27;
}

.license-p {
  background: #222;
}

.team-irating {
  color: #eef3ff;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.team-live-pending {
  justify-self: end;
  color: #68768b;
  font-size: .75rem;
}

.driver-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(145, 166, 222, .18);
  border-radius: 999px;
  color: #97a5b9;
  font-size: .7rem;
  text-transform: uppercase;
}

.calendar-list {
  border-top: 1px solid var(--line);
}

.calendar-item {
  min-height: 132px;
  padding: 23px 8px;
  display: grid;
  grid-template-columns: 170px 1.15fr 1.4fr 1fr 120px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding .25s ease;
}

.calendar-item:hover {
  padding-inline: 18px;
  background: rgba(101, 127, 219, .055);
}

.calendar-date {
  color: #8d9aaf;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-item strong {
  font-size: 1.1rem;
}

.calendar-track,
.calendar-car {
  color: #a4afbf;
}

.calendar-status {
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dfe7ff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(103, 130, 226, .15);
}

.feature-panel {
  padding: clamp(34px, 6vw, 78px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 8vw;
  align-items: center;
  border: 1px solid rgba(145, 168, 226, .2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(87, 113, 220, .25), transparent 38%),
    linear-gradient(135deg, #111b2c, #0d1522);
  box-shadow: 0 40px 100px rgba(0,0,0,.26);
}

.feature-copy p:not(.eyebrow) {
  max-width: 520px;
  color: #a8b3c4;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 22px;
  color: #a8bbfa;
  font-weight: 850;
}

.feature-dashboard {
  padding: 22px;
  border: 1px solid rgba(162, 181, 222, .16);
  border-radius: 20px;
  background: rgba(7, 12, 20, .72);
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  color: #77859a;
  font-size: .7rem;
  letter-spacing: .13em;
}

.dash-top b {
  color: var(--green);
}

.dash-driver {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.dash-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #08101b;
  font-weight: 950;
  background: linear-gradient(145deg, #94adfa, #637de8);
}

.dash-driver small,
.dash-driver strong {
  display: block;
}

.dash-driver small {
  color: #75839a;
}

.dash-bars {
  margin-top: 31px;
  display: grid;
  gap: 18px;
}

.dash-bars div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
  color: #8e9bad;
  font-size: .75rem;
}

.dash-bars i {
  height: 9px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, #6f89ef 0 var(--value), rgba(255,255,255,.07) var(--value));
}

.contact-panel {
  min-height: 420px;
  padding: clamp(35px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(104, 132, 232, .97), rgba(73, 94, 190, .92));
  color: #07101d;
}

.contact-panel .eyebrow {
  color: rgba(6, 16, 30, .68);
}

.contact-panel h2 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-actions .button-primary {
  color: #eef3ff;
  background: #0b1421;
  box-shadow: 0 20px 50px rgba(14, 23, 38, .28);
}

.contact-actions p {
  max-width: 350px;
  color: rgba(8, 17, 30, .72);
  font-size: .85rem;
}

.contact-actions code {
  font-weight: 800;
}

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 42px 0 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 130px;
}

.footer-brand p,
.copyright {
  color: #657287;
  font-size: .75rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #8e9caf;
  font-size: .8rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

@keyframes pulse {
  50% { transform: scale(1.35); opacity: .65; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 150px 1fr auto;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-car-stage {
    width: min(760px, 88vw);
  }

  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 790px) {
  .site-header {
    height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 112px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
  }

  .nav-toggle span {
    width: 25px;
    height: 2px;
    background: #dbe2ee;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 13, 21, .97);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding-inline: 24px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 6.3rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-car-stage {
    width: min(100%, 92vw);
    border-radius: 20px;
    transform: none;
  }

  .hero-car-brand {
    width: 96px;
    top: 14px;
    left: 14px;
  }

  .hero-car-caption {
    left: 16px;
    bottom: 14px;
  }

  .telemetry {
    display: none;
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 88px 0;
  }

  .intro-grid,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .manifesto {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifesto div:nth-child(2) {
    border-right: 0;
  }

  .manifesto div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .stats-overview,
  .discipline-grid,
  .team-grid,
  .driver-stats-grid {
    grid-template-columns: 1fr;
  }

  .driver-stats-heading {
    align-items: start;
    flex-direction: column;
  }


  .team-live-row {
    grid-template-columns: 1fr;
  }

  .team-license-values,
  .team-live-pending {
    justify-self: start;
    justify-content: flex-start;
  }

  .live-driver-splits {
    grid-template-columns: 1fr;
  }

  .live-driver-splits > div {
    justify-content: flex-start;
  }

  .category-board {
    grid-template-columns: 1fr;
  }

  .calendar-item {
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
  }

  .calendar-track {
    grid-column: 1 / -1;
  }

  .calendar-status {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================
   Rennhistorie v8
   ========================================================== */

.stats-history-action {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.stats-history-action .button {
  min-height: 46px;
  padding-inline: 18px;
  font-size: .84rem;
}

.history-page {
  min-height: 100vh;
}

.history-page .site-header {
  position: absolute;
}

.history-main {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 150px 0 100px;
}

.history-hero {
  position: relative;
  min-height: 430px;
  padding: clamp(32px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, .72fr);
  align-items: end;
  gap: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, .98) 0 42%, rgba(7, 12, 20, .34) 78%),
    linear-gradient(to top, rgba(7, 12, 20, .86), transparent 56%),
    url("assets/mercedes-amg-gt3.webp") center 56% / cover no-repeat;
  box-shadow: 0 38px 100px rgba(0,0,0,.34);
}

.history-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 84% 15%, rgba(119, 146, 236, .16), transparent 34%);
}

.history-hero-copy,
.history-live-box {
  position: relative;
  z-index: 2;
}

.history-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 8.2rem);
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.history-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: #b8c2d1;
  font-size: 1.08rem;
}

.history-live-box {
  justify-self: end;
  min-width: 245px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(176, 192, 225, .2);
  border-radius: 16px;
  background: rgba(7, 12, 20, .72);
  backdrop-filter: blur(14px);
}

.history-live-box small,
.history-live-box strong {
  display: block;
}

.history-live-box small {
  color: #8290a5;
}

.history-controls {
  margin-top: 26px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(220px, 1.35fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 19, 30, .74);
}

.history-field {
  display: grid;
  gap: 7px;
}

.history-field label {
  color: #77859a;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.history-field select,
.history-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(154, 174, 216, .17);
  border-radius: 10px;
  outline: none;
  color: #eaf0fa;
  background: #0b1320;
  font: inherit;
}

.history-field select:focus,
.history-field input:focus {
  border-color: rgba(127, 159, 242, .62);
  box-shadow: 0 0 0 3px rgba(127, 159, 242, .09);
}

.history-reset {
  align-self: end;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(154, 174, 216, .18);
  border-radius: 10px;
  color: #b9c4d5;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-weight: 800;
}

.history-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 12px;
}

.history-summary-card {
  min-height: 125px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 31, 47, .86), rgba(12, 19, 30, .76));
}

.history-summary-card span {
  color: #8491a5;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-summary-card strong {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1;
}

.history-results {
  margin-top: 28px;
}

.history-results-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.history-results-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.045em;
}

.history-results-head p {
  margin: 0;
  color: #77859a;
}

.race-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 16, 26, .72);
}

.race-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.race-table th {
  padding: 15px 13px;
  color: #78869b;
  font-size: .65rem;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  background: rgba(20, 28, 42, .92);
}

.race-table td {
  padding: 17px 13px;
  border-top: 1px solid rgba(162, 181, 214, .10);
  color: #dbe2ed;
  font-size: .84rem;
  vertical-align: middle;
}

.race-table tbody tr.race-row {
  cursor: pointer;
  transition: background .2s ease;
}

.race-table tbody tr.race-row:hover {
  background: rgba(101, 127, 219, .065);
}

.race-table .race-driver {
  font-weight: 850;
}

.race-table .race-event {
  max-width: 310px;
  color: #aeb9c9;
}

.race-table .race-car {
  max-width: 220px;
}

.race-table .race-detail-row {
  display: none;
}

.race-table .race-detail-row.is-open {
  display: table-row;
}

.race-table .race-detail-row td {
  padding: 0;
  background: rgba(8, 14, 23, .82);
}

.race-detail-grid {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.race-detail-grid div {
  padding: 12px;
  border: 1px solid rgba(162, 181, 214, .10);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}

.race-detail-grid span {
  display: block;
  color: #728096;
  font-size: .62rem;
  text-transform: uppercase;
}

.race-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: #e7edf6;
  font-size: .87rem;
}

.race-category-badge,
.race-split-badge {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(127, 159, 242, .22);
  border-radius: 999px;
  color: #b8c8fa;
  font-size: .66rem;
  font-weight: 850;
  white-space: nowrap;
  background: rgba(99, 125, 232, .08);
}

.race-position-gain {
  color: var(--green);
}

.race-position-loss {
  color: var(--red);
}

.race-mobile-list {
  display: none;
}

.race-empty {
  padding: 45px 25px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: #7e8ca1;
  text-align: center;
  background: rgba(11, 18, 29, .48);
}

.history-footer-note {
  margin-top: 16px;
  color: #657389;
  font-size: .76rem;
}

@media (max-width: 1080px) {
  .history-hero {
    grid-template-columns: 1fr;
  }

  .history-live-box {
    justify-self: start;
  }

  .history-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-reset {
    width: 100%;
  }

  .history-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .race-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 790px) {
  .history-main {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 118px;
  }

  .history-hero {
    min-height: 520px;
    padding: 28px 22px;
    align-items: end;
    background:
      linear-gradient(to top, rgba(7, 12, 20, .98) 0 45%, rgba(7, 12, 20, .3) 80%),
      url("assets/mercedes-amg-gt3.webp") 60% center / cover no-repeat;
  }

  .history-hero h1 {
    font-size: clamp(3.3rem, 17vw, 5.6rem);
  }

  .history-controls,
  .history-summary {
    grid-template-columns: 1fr;
  }

  .race-table-wrap {
    display: none;
  }

  .race-mobile-list {
    display: grid;
    gap: 12px;
  }

  .race-mobile-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(12, 19, 30, .76);
  }

  .race-mobile-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
  }

  .race-mobile-top h3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .race-mobile-date {
    color: #748197;
    font-size: .7rem;
    white-space: nowrap;
  }

  .race-mobile-event {
    margin: 13px 0 4px;
    color: #c3ccda;
    font-weight: 800;
  }

  .race-mobile-car {
    margin: 0;
    color: #8592a6;
    font-size: .8rem;
  }

  .race-mobile-values {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }

  .race-mobile-values div {
    padding: 10px;
    border: 1px solid rgba(162, 181, 214, .10);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
  }

  .race-mobile-values span {
    display: block;
    color: #718096;
    font-size: .58rem;
    text-transform: uppercase;
  }

  .race-mobile-values strong {
    display: block;
    margin-top: 4px;
    font-size: .88rem;
  }

  .race-mobile-details {
    margin-top: 13px;
    padding-top: 13px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    border-top: 1px solid rgba(162, 181, 214, .10);
    color: #8e9caf;
    font-size: .74rem;
  }
}


/* ==========================================================
   Website v10 – kompakte Teamkarten und Fahrerprofile
   ========================================================== */

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.driver-card {
  min-height: 350px;
  padding: 20px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.driver-card:hover {
  transform: translateY(-5px);
  border-color: rgba(128, 158, 239, .42);
}

.driver-card::after {
  right: 10px;
  bottom: -30px;
  font-size: 8.5rem;
}

.driver-number {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(127, 159, 242, .32);
  border-radius: 8px;
  color: #dce5ff;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .04em;
  background: rgba(72, 99, 198, .16);
}

.driver-card h3 {
  margin: 14px 52px 2px 0;
  font-size: clamp(1.42rem, 1.85vw, 2.25rem);
  line-height: .98;
}

.driver-role {
  font-size: .69rem;
}

.driver-quote {
  margin-bottom: 13px;
  font-size: .86rem;
  line-height: 1.42;
}

.team-live-ratings {
  margin: 16px 0;
  gap: 8px;
}

.team-live-row {
  min-height: 48px;
  padding: 8px 9px;
  grid-template-columns: minmax(72px, .72fr) minmax(0, 1.28fr);
  gap: 8px;
  border-radius: 10px;
}

.team-live-row > strong {
  font-size: .62rem;
}

.team-license-values {
  gap: 6px;
}

.license-badge {
  min-width: 72px;
  padding: 4px 7px;
  font-size: .68rem;
}

.team-irating {
  font-size: .72rem;
}

.driver-tags {
  gap: 5px;
}

.driver-tags span {
  padding: 5px 7px;
  font-size: .59rem;
}

.driver-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.driver-profile-link {
  flex: 0 0 auto;
  color: #a9baf1;
  font-size: .67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-driver-head h4 a,
.race-driver-link {
  color: inherit;
  text-decoration: none;
}

.live-driver-head h4 a:hover,
.race-driver-link:hover {
  color: #a9bbfa;
}

.driver-profile-page {
  min-height: 100vh;
}

.driver-profile-main {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 140px 0 100px;
}

.driver-profile-hero {
  position: relative;
  min-height: 390px;
  padding: clamp(30px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 45px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, .98) 0 48%, rgba(7, 12, 20, .35) 82%),
    linear-gradient(to top, rgba(7, 12, 20, .84), transparent 55%),
    url("assets/mercedes-amg-gt3.webp") center 56% / cover no-repeat;
  box-shadow: 0 38px 100px rgba(0,0,0,.34);
}

.driver-profile-hero::after {
  content: attr(data-initials);
  position: absolute;
  right: 2vw;
  bottom: -4vw;
  color: rgba(151, 174, 240, .09);
  font-size: clamp(10rem, 22vw, 23rem);
  font-weight: 950;
  line-height: .8;
}

.driver-profile-copy,
.driver-profile-current {
  position: relative;
  z-index: 2;
}

.driver-number-large {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(127, 159, 242, .4);
  border-radius: 9px;
  color: #dce5ff;
  font-weight: 950;
  background: rgba(73, 99, 198, .18);
}

.driver-profile-copy h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.3rem, 7.5vw, 8.8rem);
  line-height: .84;
  letter-spacing: -.065em;
}

.driver-profile-role {
  margin-top: 18px;
  color: #a8b9ee;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.driver-profile-quote {
  max-width: 650px;
  margin: 22px 0 0;
  color: #b5c0d1;
  font-size: 1rem;
}

.driver-profile-current {
  display: grid;
  gap: 10px;
}

.profile-rating-card {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(166, 184, 224, .18);
  border-radius: 14px;
  background: rgba(7, 12, 20, .72);
  backdrop-filter: blur(12px);
}

.profile-rating-card > span {
  color: #9aa9bd;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-rating-values {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section {
  margin-top: 28px;
}

.profile-toolbar {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 19, 30, .74);
}

.profile-tabs,
.profile-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-filter-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(154, 174, 216, .17);
  border-radius: 999px;
  color: #9daabc;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
}

.profile-filter-button.is-active {
  color: #eef3ff;
  border-color: rgba(127, 159, 242, .55);
  background: rgba(96, 124, 224, .17);
}

.profile-summary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.profile-summary-card {
  min-height: 115px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(21, 31, 47, .86), rgba(12, 19, 30, .76));
}

.profile-summary-card span {
  color: #8491a5;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-summary-card strong {
  font-size: clamp(1.6rem, 2.7vw, 2.8rem);
}

.profile-chart-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-chart-card {
  min-height: 355px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 27, .76);
}

.profile-chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.profile-chart-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.profile-chart-head span {
  color: #77859a;
  font-size: .7rem;
}

.profile-chart {
  margin-top: 15px;
  min-height: 260px;
}

.profile-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(154, 174, 216, .12);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #6f7e93;
  font-size: 11px;
}

.chart-line-irating {
  fill: none;
  stroke: #809af5;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line-safety {
  fill: none;
  stroke: #65d99c;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-point-irating { fill: #a5b7f8; }
.chart-point-safety { fill: #88e7b5; }

.chart-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  color: #6f7d91;
  text-align: center;
}

.profile-races-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 27, .74);
}

.profile-race-row {
  min-height: 78px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 110px 1.5fr 1fr 90px 90px 70px;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(162, 181, 214, .10);
}

.profile-race-row:first-child { border-top: 0; }
.profile-race-row small { color: #75839a; }
.profile-race-row strong { font-size: .86rem; }
.profile-race-event { color: #b9c4d4; }

.profile-back-link {
  display: inline-flex;
  margin-top: 22px;
  color: #a8bbfa;
  font-weight: 850;
}

@media (max-width: 1320px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .driver-profile-hero { grid-template-columns: 1fr; }
  .driver-profile-current { max-width: 580px; }
  .profile-chart-grid { grid-template-columns: 1fr; }
  .profile-race-row { grid-template-columns: 90px 1fr 1fr 75px 75px; }
  .profile-race-row .profile-race-incidents { display: none; }
}

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
  .driver-card { min-height: 325px; }
  .driver-profile-main { width: min(calc(100% - 28px), var(--max)); padding-top: 116px; }
  .driver-profile-hero { min-height: 500px; padding: 28px 22px; }
  .driver-profile-copy h1 { font-size: clamp(3.1rem, 16vw, 5.5rem); }
  .profile-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-race-row {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
  }
  .profile-race-row > * { display: block; }
  .profile-race-event { grid-column: 1 / -1; }
}


/* ==========================================================
   Website v10.2 – Strecke und Konfiguration getrennt
   ========================================================== */

.event-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.22;
}

.event-track {
  display: block;
  color: #d4dce8;
  font-weight: 720;
}

.event-config {
  display: block;
  color: #8492a7;
  font-size: .76rem;
  font-weight: 560;
  letter-spacing: .012em;
}

.race-table .race-event .event-track {
  color: #c5cfdd;
}

.race-mobile-event.event-lines {
  margin: 13px 0 4px;
}

.race-mobile-event .event-track {
  color: #cbd5e2;
  font-size: 1rem;
}

.race-mobile-event .event-config {
  font-size: .78rem;
}

.profile-race-event.event-lines {
  color: #b9c4d4;
}

.profile-race-event .event-track {
  color: #c7d1df;
  font-size: .86rem;
}

.profile-race-event .event-config {
  font-size: .73rem;
}



/* ==========================================================
   Website v11 – Driver Performance Center
   ========================================================== */

.driver-profile-v11 .driver-profile-main {
  width: min(calc(100% - 42px), 1680px);
}

.driver-profile-hero-v11 {
  min-height: 500px;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .62fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, .99) 0 42%, rgba(7, 12, 20, .55) 70%, rgba(7, 12, 20, .28) 100%),
    linear-gradient(to top, rgba(7, 12, 20, .9), transparent 58%),
    url("assets/mercedes-amg-gt3.webp") center 56% / cover no-repeat;
}

.driver-identity-line,
.driver-live-pill,
.driver-hero-meta,
.driver-current-head,
.profile-section-title,
.profile-period-delta,
.profile-context-line,
.profile-card-head,
.profile-form-footer,
.profile-records > div {
  display: flex;
  align-items: center;
}

.driver-identity-line { gap: 10px; margin-bottom: 14px; }
.driver-number-large { margin: 0; }
.driver-live-pill {
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(87, 230, 152, .26);
  border-radius: 999px;
  color: #a8eec8;
  background: rgba(32, 143, 87, .12);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.driver-live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #58e69a; box-shadow: 0 0 16px #58e69a; }

.driver-profile-v11 .driver-profile-copy h1 { font-size: clamp(3.6rem, 6.4vw, 8rem); }
.driver-hero-meta { flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.driver-hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(163, 182, 220, .14);
  border-radius: 999px;
  color: #a6b3c5;
  background: rgba(9, 15, 24, .58);
  font-size: .69rem;
  font-weight: 750;
}

.driver-profile-current {
  padding: 14px;
  border: 1px solid rgba(167, 186, 224, .18);
  border-radius: 22px;
  background: rgba(7, 12, 20, .76);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.driver-current-head { justify-content: space-between; padding: 2px 4px 10px; color: #8f9caf; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.driver-current-head small { color: #66758a; text-transform: none; letter-spacing: 0; }
.driver-profile-current #driver-current-ratings { display: grid; gap: 10px; }
.profile-rating-card.is-selected { border-color: rgba(127, 159, 242, .55); background: linear-gradient(135deg, rgba(72, 99, 199, .25), rgba(7,12,20,.76)); }

.profile-control-deck { position: relative; z-index: 5; }
.profile-toolbar > div { min-width: 260px; }
.profile-toolbar-label { display: block; margin: 0 0 8px 4px; color: #69778b; font-size: .61rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.profile-context-line {
  justify-content: space-between;
  gap: 15px;
  margin-top: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(154, 174, 216, .1);
  border-radius: 13px;
  background: rgba(8, 14, 23, .52);
}
.profile-context-line > div { display: flex; gap: 9px; align-items: baseline; }
.profile-context-line span { color: #65748a; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-context-line strong { color: #cbd5e4; font-size: .75rem; }

.profile-section-title { justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.profile-section-title h2 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.5rem); letter-spacing: -.035em; }
.profile-section-note { color: #6d7b90; font-size: .72rem; }
.profile-period-delta { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.profile-period-delta span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #7d8ca1; font-size: .7rem; background: rgba(255,255,255,.025); }
.profile-period-delta b { margin-left: 5px; color: #dce5f2; }

.profile-summary-grid-v11 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.profile-summary-grid-v11 .profile-summary-card { min-height: 122px; padding: 16px; }
.profile-summary-card small { color: #65748a; font-size: .64rem; }
.profile-summary-grid-v11 .profile-summary-card strong { font-size: clamp(1.55rem, 2.2vw, 2.55rem); }

.profile-insight-grid { display: grid; grid-template-columns: 1.15fr .9fr 1.1fr; gap: 14px; }
.profile-insight-card {
  min-width: 0;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(19, 29, 45, .82), rgba(9, 15, 25, .82));
  overflow: hidden;
}
.profile-card-head { justify-content: space-between; gap: 15px; }
.profile-card-head h2 { margin: 0; font-size: 1.38rem; }
.profile-card-head > span { color: #69788e; font-size: .69rem; }

.profile-form-strip { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 8px; margin-top: 26px; }
.form-race { position: relative; min-height: 142px; padding: 13px 10px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(158, 177, 217, .12); border-radius: 13px; background: rgba(5, 10, 18, .56); }
.form-race::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; background: #617fe8; opacity: .35; }
.form-race.is-podium::before { background: #e3be58; opacity: .9; }
.form-race small { color: #65758b; }
.form-race strong { font-size: 1.55rem; }
.form-race span { font-size: .78rem; font-weight: 900; }
.form-race em { color: #74839a; font-size: .65rem; font-style: normal; }
.profile-form-footer { justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(160, 179, 216, .11); color: #74839a; font-size: .69rem; }
.profile-form-footer b { color: #d3deed; }

.profile-fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.profile-fact { min-height: 94px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(160, 179, 216, .1); border-radius: 12px; background: rgba(4, 9, 17, .48); }
.profile-fact span { color: #6e7d92; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; }
.profile-fact strong { margin-top: 8px; color: #d5dfed; font-size: .88rem; line-height: 1.2; }
.profile-fact small { margin-top: 6px; color: #627086; font-size: .62rem; }

.profile-rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.profile-rank { min-height: 92px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(160, 179, 216, .11); border-radius: 12px; background: rgba(5,10,18,.55); }
.profile-rank span { color: #69788d; font-size: .59rem; text-transform: uppercase; letter-spacing: .07em; }
.profile-rank strong { color: #9eb2fa; font-size: 1.55rem; }
.profile-rank small { color: #b8c3d4; }
.profile-records { margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(160, 179, 216, .11); }
.record-label { color: #65748a; font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-records > div { flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.profile-records b { padding: 7px 9px; border: 1px solid rgba(224, 189, 88, .25); border-radius: 999px; color: #e4c86f; background: rgba(153, 118, 22, .1); font-size: .65rem; }
.profile-records p { margin: 10px 0 0; color: #6c7a8e; font-size: .72rem; line-height: 1.5; }

.profile-chart-card { min-height: 390px; background: linear-gradient(145deg, rgba(16, 25, 40, .82), rgba(7, 13, 22, .78)); }
.profile-chart-head { align-items: center; }
.profile-chart-head > div span { color: #68778c; font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-chart-head strong { color: #e4eaf4; font-size: 1.55rem; }
.chart-area-irating stop { stop-color: #809af5; }
.chart-area-safety stop { stop-color: #65d99c; }
.chart-area-irating { fill: rgba(128,154,245,.12); }
.chart-area-safety { fill: rgba(101,217,156,.12); }

.profile-races-card-v11 { overflow: hidden; }
.profile-race-header, .profile-race-row-v11 { display: grid; grid-template-columns: 90px 1.5fr 1.1fr 115px 120px 100px 48px; gap: 14px; align-items: center; }
.profile-race-header { min-height: 42px; padding: 0 18px; border-bottom: 1px solid rgba(160,179,216,.12); color: #5f6e83; background: rgba(255,255,255,.018); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-race-row-v11 { min-height: 92px; padding: 14px 18px; }
.profile-race-session, .profile-race-result, .profile-race-deltas { display: flex; flex-direction: column; gap: 4px; }
.profile-race-session b, .profile-race-result b, .profile-race-deltas b { color: #c8d2df; font-size: .72rem; }
.profile-race-session small, .profile-race-result small, .profile-race-deltas small { color: #69788e; font-size: .64rem; }
.profile-race-incidents { justify-self: end; min-width: 38px; padding: 7px 8px; text-align: center; border-radius: 9px; color: #f0b4b4; background: rgba(190,55,55,.1); font-weight: 900; }
.profile-race-incidents.is-clean { color: #91e9b9; background: rgba(48,167,100,.1); }
.profile-empty-mini { grid-column: 1 / -1; min-height: 130px; display: grid; place-items: center; color: #68778c; text-align: center; }

@media (max-width: 1450px) {
  .profile-summary-grid-v11 { grid-template-columns: repeat(4, 1fr); }
  .profile-insight-grid { grid-template-columns: 1fr 1fr; }
  .profile-team-comparison { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .driver-profile-hero-v11 { grid-template-columns: 1fr; }
  .driver-profile-current { max-width: 650px; }
  .profile-form-strip { grid-template-columns: repeat(3, 1fr); }
  .profile-race-header { display: none; }
  .profile-race-row-v11 { grid-template-columns: 86px 1.35fr 1fr 105px 100px 45px; }
  .profile-race-car { display: none; }
}

@media (max-width: 760px) {
  .driver-profile-v11 .driver-profile-main { width: min(calc(100% - 24px), var(--max)); }
  .driver-profile-hero-v11 { min-height: 590px; padding: 28px 20px; }
  .driver-profile-v11 .driver-profile-copy h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .profile-toolbar > div { width: 100%; min-width: 0; }
  .profile-context-line { align-items: flex-start; flex-direction: column; }
  .profile-section-title { align-items: flex-start; flex-direction: column; }
  .profile-period-delta { justify-content: flex-start; }
  .profile-summary-grid-v11 { grid-template-columns: repeat(2, 1fr); }
  .profile-insight-grid { grid-template-columns: 1fr; }
  .profile-team-comparison { grid-column: auto; }
  .profile-form-strip { grid-template-columns: repeat(2, 1fr); }
  .profile-fact-list, .profile-rank-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-race-row-v11 { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 16px; }
  .profile-race-row-v11 > small:first-child { grid-column: 1; }
  .profile-race-event { grid-column: 1 / -1; }
  .profile-race-session, .profile-race-result, .profile-race-deltas { display: flex !important; }
  .profile-race-incidents { grid-column: 2; grid-row: 1; }
}


/* ==========================================================
   Website v12 – Teamwertung & Rekorde
   ========================================================== */

.team-ranking-link {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

.team-ranking-page {
  min-height: 100vh;
}

.team-ranking-page .site-header {
  position: absolute;
}

.team-ranking-main {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 150px 0 100px;
}

.team-ranking-hero {
  position: relative;
  min-height: 540px;
  padding: clamp(34px, 6vw, 78px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: clamp(36px, 7vw, 90px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 18%, rgba(116, 145, 232, .18), transparent 30%),
    linear-gradient(120deg, rgba(7, 12, 20, .99), rgba(11, 19, 31, .88));
  box-shadow: 0 38px 100px rgba(0,0,0,.34);
}

.team-ranking-hero::before {
  content: "SMe";
  position: absolute;
  right: -1.5%;
  top: -10%;
  color: rgba(255,255,255,.025);
  font-size: clamp(13rem, 28vw, 31rem);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: 1;
}

.team-ranking-hero-copy,
.team-ranking-hero-board {
  position: relative;
  z-index: 2;
}

.team-ranking-hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 8vw, 8.6rem);
  line-height: .84;
  letter-spacing: -.066em;
  text-transform: uppercase;
}

.team-ranking-hero h1 span {
  color: #8fa9ff;
}

.team-ranking-hero-copy > p:not(.eyebrow) {
  max-width: 710px;
  margin: 27px 0 0;
  color: #aeb9c9;
  font-size: 1.06rem;
}

.team-ranking-live {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(162,181,214,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.team-ranking-live small,
.team-ranking-live strong {
  display: block;
}

.team-ranking-live small {
  color: #748197;
  font-size: .68rem;
}

.team-ranking-live strong {
  margin-top: 2px;
  font-size: .82rem;
}

.team-ranking-hero-board {
  min-height: 390px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(166, 184, 219, .18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(20, 30, 46, .86), rgba(7, 12, 20, .72));
  backdrop-filter: blur(15px);
  box-shadow: 0 28px 70px rgba(0,0,0,.27);
}

.ranking-board-head,
.ranking-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ranking-board-head span,
.ranking-board-foot span {
  color: #7d8ba0;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ranking-board-head b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #a9ffca;
  background: rgba(61, 206, 120, .10);
  font-size: .65rem;
}

.ranking-board-foot strong {
  color: #c8d4e5;
  font-size: .78rem;
}

.ranking-board-podium {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
}

.ranking-preview-place {
  min-width: 0;
  padding: 17px 9px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  border: 1px solid rgba(155,176,217,.14);
  border-radius: 14px 14px 5px 5px;
  text-align: center;
  background: rgba(255,255,255,.025);
}

.ranking-preview-place span {
  color: #8fa9ff;
  font-size: 1.7rem;
  font-weight: 900;
}

.ranking-preview-place strong {
  overflow: hidden;
  color: #d8e0ec;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-preview-first {
  min-height: 220px;
  background: linear-gradient(to top, rgba(119, 149, 242, .16), rgba(255,255,255,.025));
}

.ranking-preview-second {
  min-height: 165px;
}

.ranking-preview-third {
  min-height: 130px;
}

.team-ranking-controls {
  margin-top: 24px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1.35fr minmax(210px, .7fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 19, 30, .76);
}

.team-control-label,
.team-ranking-select-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #748197;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-control-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(157,177,216,.15);
  border-radius: 9px;
  color: #9aa7ba;
  background: rgba(255,255,255,.018);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 780;
}

.team-control-button:hover,
.team-control-button.is-active {
  border-color: rgba(126,158,242,.5);
  color: #eef3fb;
  background: rgba(94,122,218,.11);
}

.team-ranking-select-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(157,177,216,.15);
  border-radius: 9px;
  outline: none;
  color: #e9eff8;
  background: #0a1320;
  font: inherit;
  font-size: .8rem;
}

.team-ranking-summary {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}

.team-ranking-summary article {
  min-height: 112px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(20, 30, 46, .82), rgba(10, 17, 27, .72));
}

.team-ranking-summary span {
  color: #7a889d;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.team-ranking-summary strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.team-ranking-section,
.team-records-section,
.team-form-section {
  margin-top: 82px;
}

.team-section-head {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.team-section-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  letter-spacing: -.055em;
}

.team-section-head > p,
.team-section-head > a {
  margin: 0 0 7px;
  color: #748197;
}

.team-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.team-podium-card {
  position: relative;
  min-height: 230px;
  padding: 23px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(21, 31, 48, .88), rgba(10, 17, 28, .77));
  transition: transform .2s ease, border-color .2s ease;
}

.team-podium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125,156,239,.42);
}

.team-podium-card.place-1 {
  border-color: rgba(153, 177, 247, .34);
  background:
    radial-gradient(circle at 90% 5%, rgba(122,150,234,.18), transparent 38%),
    linear-gradient(145deg, rgba(25, 37, 58, .92), rgba(10, 17, 28, .78));
}

.team-podium-place {
  position: absolute;
  right: 15px;
  top: 10px;
  color: rgba(255,255,255,.07);
  font-size: 6rem;
  font-weight: 950;
  line-height: 1;
}

.team-podium-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,171,219,.2);
  border-radius: 50%;
  color: #9fb4ff;
  background: rgba(88,117,211,.09);
  font-size: 1.15rem;
  font-weight: 900;
}

.team-podium-card small,
.team-podium-card span:last-child {
  color: #78869a;
  font-size: .68rem;
}

.team-podium-card h3 {
  margin: 5px 0 17px;
  font-size: 1.3rem;
}

.team-podium-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 2.25rem;
  line-height: 1;
}

.team-ranking-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 15, 24, .73);
}

.team-ranking-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.team-ranking-table th {
  padding: 14px 12px;
  color: #748197;
  background: rgba(20,28,42,.92);
  font-size: .62rem;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.team-ranking-table td {
  padding: 15px 12px;
  border-top: 1px solid rgba(160,180,215,.09);
  color: #cbd4e1;
  font-size: .8rem;
}

.rank-number {
  min-width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143,167,219,.18);
  border-radius: 8px;
  color: #94aafb;
  background: rgba(95,125,219,.07);
  font-weight: 900;
}

.rank-driver {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.rank-driver span:last-child strong,
.rank-driver span:last-child small {
  display: block;
}

.rank-driver small {
  margin-top: 2px;
  color: #718096;
  font-size: .63rem;
}

.rank-avatar {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143,167,219,.17);
  border-radius: 50%;
  color: #9eb2f9;
  background: rgba(94,123,216,.07);
  font-size: .65rem;
  font-weight: 900;
}

.rank-value {
  font-size: 1rem;
}

.team-ranking-mobile {
  display: none;
}

.team-record-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team-record-card {
  min-height: 205px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(20,30,47,.84), rgba(9,16,26,.73));
}

.team-record-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140,166,221,.2);
  border-radius: 10px;
  color: #9eb3ff;
  background: rgba(91,122,219,.08);
  font-size: .75rem;
  font-weight: 900;
}

.team-record-card small {
  margin-top: 21px;
  color: #758298;
  font-size: .63rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.team-record-card h3 {
  margin: 6px 0 12px;
  font-size: 1rem;
}

.team-record-card strong {
  margin-top: auto;
  font-size: 2.15rem;
  line-height: 1;
}

.team-record-card p {
  min-height: 34px;
  margin: 9px 0 0;
  color: #758298;
  font-size: .7rem;
}

.team-form-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(9,15,24,.72);
}

.team-form-row {
  min-height: 86px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 70px minmax(170px, .8fr) minmax(230px, 1.4fr) 125px 105px 45px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(160,180,215,.09);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease;
}

.team-form-row:first-child {
  border-top: 0;
}

.team-form-row:hover {
  background: rgba(94,123,216,.05);
}

.team-form-date span,
.team-form-date small,
.team-form-result strong,
.team-form-result span,
.team-form-deltas strong,
.team-form-deltas span {
  display: block;
}

.team-form-date span {
  color: #cbd4e1;
  font-weight: 850;
}

.team-form-date small,
.team-form-result span {
  margin-top: 3px;
  color: #708096;
  font-size: .64rem;
}

.team-form-driver {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-form-driver strong {
  font-size: .8rem;
}

.team-form-event {
  min-width: 0;
}

.team-form-event .event-track {
  color: #bdc8d7;
  font-size: .8rem;
}

.team-form-event .event-config {
  font-size: .68rem;
}

.team-form-result strong,
.team-form-deltas strong {
  font-size: .78rem;
}

.team-form-deltas span {
  margin-top: 3px;
  font-size: .68rem;
}

.team-form-incidents {
  text-align: right;
  font-weight: 850;
}

.team-ranking-empty {
  padding: 40px 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: #758298;
  text-align: center;
  background: rgba(255,255,255,.015);
}

@media (max-width: 1120px) {
  .team-ranking-hero {
    grid-template-columns: 1fr;
  }

  .team-ranking-hero-board {
    width: min(100%, 600px);
  }

  .team-ranking-controls {
    grid-template-columns: 1fr 1fr;
  }

  .team-ranking-select-wrap {
    grid-column: 1 / -1;
  }

  .team-ranking-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-record-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-form-row {
    grid-template-columns: 60px 1fr 1.4fr 110px 90px;
  }

  .team-form-incidents {
    display: none;
  }
}

@media (max-width: 790px) {
  .team-ranking-main {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 118px;
  }

  .team-ranking-hero {
    min-height: auto;
    padding: 30px 21px;
  }

  .team-ranking-hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.7rem);
  }

  .team-ranking-hero-board {
    min-height: 320px;
    padding: 17px;
  }

  .ranking-board-podium {
    min-height: 200px;
  }

  .ranking-preview-first {
    min-height: 180px;
  }

  .ranking-preview-second {
    min-height: 135px;
  }

  .ranking-preview-third {
    min-height: 108px;
  }

  .team-ranking-controls,
  .team-ranking-summary {
    grid-template-columns: 1fr;
  }

  .team-ranking-select-wrap {
    grid-column: auto;
  }

  .team-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .team-podium {
    grid-template-columns: 1fr;
  }

  .team-podium-card {
    min-height: 170px;
  }

  .team-ranking-table-wrap {
    display: none;
  }

  .team-ranking-mobile {
    display: grid;
    gap: 9px;
  }

  .team-rank-mobile-card {
    padding: 14px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: rgba(12,19,30,.75);
  }

  .team-rank-mobile-copy {
    min-width: 0;
  }

  .team-rank-mobile-copy small,
  .team-rank-mobile-copy strong,
  .team-rank-mobile-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .team-rank-mobile-copy small,
  .team-rank-mobile-copy span {
    color: #748197;
    font-size: .65rem;
  }

  .team-rank-mobile-copy strong {
    margin: 3px 0;
    font-size: .86rem;
  }

  .team-rank-mobile-card > b {
    color: #dbe4f1;
    font-size: .92rem;
  }

  .team-record-grid {
    grid-template-columns: 1fr;
  }

  .team-form-list {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .team-form-row {
    min-height: auto;
    padding: 15px;
    grid-template-columns: 55px 1fr auto;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10,17,28,.73);
  }

  .team-form-row:first-child {
    border-top: 1px solid var(--line);
  }

  .team-form-event {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid rgba(160,180,215,.09);
  }

  .team-form-result {
    grid-column: 1 / 3;
  }

  .team-form-deltas {
    text-align: right;
  }

  .team-form-incidents {
    display: none;
  }
}


/* ==========================================================
   Website v13 – Rennkalender & Discord-Anmeldung
   ========================================================== */

.calendar-full-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.calendar-live-item {
  min-height: 260px;
}

.calendar-item-top,
.calendar-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-item-top {
  margin-bottom: 18px;
}

.calendar-item-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #9eabbc;
}

.calendar-item-bottom b {
  color: #fff;
}

.calendar-series,
.calendar-config {
  display: block;
  color: #8693a7;
  font-size: .78rem;
}

.calendar-config {
  margin-top: 3px;
}

.calendar-empty-card {
  grid-column: 1 / -1;
  min-height: 210px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(135deg, rgba(85, 81, 191, .16), rgba(10, 15, 24, .86));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.calendar-empty-card a {
  width: fit-content;
  margin-top: 12px;
  color: #b7c5ff;
  font-weight: 800;
}

.calendar-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #dce3ee;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-anmeldung-offen {
  border-color: rgba(91, 215, 158, .38);
  background: rgba(91, 215, 158, .11);
  color: #75e5b3;
}

.status-bestaetigt {
  border-color: rgba(111, 139, 255, .45);
  background: rgba(111, 139, 255, .13);
  color: #b2c0ff;
}

.status-laeuft {
  border-color: rgba(255, 181, 71, .42);
  background: rgba(255, 181, 71, .12);
  color: #ffd18a;
}

.status-beendet,
.status-abgesagt {
  opacity: .72;
}

.calendar-page-main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 90px;
}

.calendar-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 54px 0 46px;
}

.calendar-page-hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: .85;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.calendar-page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 26px 0 0;
  color: #a4afbf;
  font-size: 1.08rem;
  line-height: 1.7;
}

.calendar-sync-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 18, 28, .72);
}

.calendar-sync-state small,
.calendar-sync-state strong {
  display: block;
}

.calendar-sync-state small {
  color: #8290a5;
  margin-bottom: 4px;
}

.next-event-shell {
  margin: 22px 0 38px;
}

.next-event-card,
.next-event-empty {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(132, 150, 255, .26);
  background:
    radial-gradient(circle at 82% 10%, rgba(85, 81, 191, .25), transparent 32%),
    linear-gradient(135deg, rgba(20, 28, 42, .97), rgba(8, 12, 20, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.next-event-accent {
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #9fb2ff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .17em;
}

.next-event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr) minmax(260px, .62fr);
}

.next-event-main,
.next-event-countdown,
.next-event-drivers {
  padding: clamp(28px, 4vw, 54px);
}

.next-event-countdown,
.next-event-drivers {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.next-event-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  color: #aeb9c8;
}

.next-event-main h2 {
  margin: 5px 0 24px;
  max-width: 720px;
  font-size: clamp(2.4rem, 4.3vw, 5.2rem);
  line-height: .93;
  letter-spacing: -.055em;
}

.next-event-track {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.next-event-car {
  color: #9aa7ba;
}

.next-event-notes,
.calendar-event-notes {
  margin: 24px 0 0;
  color: #929fb2;
  line-height: 1.65;
}

.next-event-countdown > span {
  color: #909caf;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.next-event-countdown > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 22px 0;
}

.next-event-countdown strong {
  padding: 16px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.next-event-countdown small {
  display: block;
  margin-top: 7px;
  color: #7f8b9e;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.next-event-countdown p {
  color: #808da0;
}

.next-event-drivers > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.next-event-drivers span {
  color: #8794a7;
}

.calendar-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-participants span,
.calendar-participants b {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  color: #dbe2ec;
  font-size: .74rem;
  font-weight: 750;
}

.calendar-no-drivers {
  color: #7e8a9d !important;
  font-style: italic;
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.calendar-links a {
  padding: 9px 12px;
  border: 1px solid rgba(122, 144, 255, .26);
  color: #b7c3ff;
  font-size: .76rem;
  font-weight: 800;
}

.next-event-empty {
  padding: 60px;
}

.next-event-empty span {
  color: #9fb2ff;
  font-weight: 900;
  letter-spacing: .15em;
}

.next-event-empty h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.next-event-empty p {
  color: #95a1b3;
}

.calendar-controls-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 42px 0 24px;
}

.calendar-filter-tabs {
  display: inline-flex;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(8, 13, 21, .82);
}

.calendar-filter-tabs button {
  border: 0;
  padding: 10px 17px;
  background: transparent;
  color: #8e9aad;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-filter-tabs button.is-active {
  background: #5551bf;
  color: #fff;
}

.calendar-summary {
  color: #8996a9;
}

.calendar-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calendar-event-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(150deg, rgba(19, 26, 39, .92), rgba(8, 12, 19, .96));
}

.calendar-event-card.is-past {
  opacity: .62;
}

.calendar-event-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.calendar-event-head strong,
.calendar-event-id {
  display: block;
}

.calendar-event-id {
  margin-bottom: 6px;
  color: #7f90d9;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.calendar-event-series {
  margin: 32px 0 8px;
  color: #8ea1ff;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.calendar-event-card h3 {
  margin: 0 0 24px;
  font-size: 1.72rem;
  line-height: 1.08;
}

.calendar-event-location {
  margin-bottom: 10px;
}

.calendar-event-car {
  color: #929eb0;
}

.calendar-event-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 25px 0 20px;
}

.calendar-event-stats > div {
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .025);
}

.calendar-event-stats span,
.calendar-event-stats strong {
  display: block;
}

.calendar-event-stats span {
  margin-bottom: 5px;
  color: #758196;
  font-size: .66rem;
  text-transform: uppercase;
}

.calendar-event-stats strong {
  font-size: .78rem;
}

.calendar-grid-empty {
  grid-column: 1 / -1;
  padding: 45px;
  border: 1px dashed rgba(255, 255, 255, .13);
  color: #8490a2;
  text-align: center;
}

.calendar-discord-help {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  margin-top: 58px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(17, 24, 36, .78);
}

.calendar-discord-help h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.05em;
}

.calendar-discord-help p:not(.eyebrow) {
  color: #929fb0;
  line-height: 1.65;
}

.calendar-command-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.calendar-command-list code {
  padding: 14px 16px;
  border: 1px solid rgba(112, 136, 255, .22);
  background: rgba(5, 9, 16, .72);
  color: #bdc8ff;
}

@media (max-width: 1100px) {
  .next-event-grid {
    grid-template-columns: 1fr 1fr;
  }

  .next-event-main {
    grid-column: 1 / -1;
  }

  .next-event-countdown {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .next-event-drivers {
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .calendar-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .calendar-page-main {
    width: min(100% - 28px, 1480px);
    padding-top: 112px;
  }

  .calendar-page-hero,
  .calendar-controls-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-page-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .calendar-sync-state {
    width: 100%;
  }

  .next-event-grid,
  .calendar-event-grid,
  .calendar-discord-help {
    grid-template-columns: 1fr;
  }

  .next-event-main,
  .next-event-countdown,
  .next-event-drivers {
    padding: 26px 20px;
  }

  .next-event-countdown,
  .next-event-drivers {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .calendar-filter-tabs {
    width: 100%;
  }

  .calendar-filter-tabs button {
    flex: 1;
  }

  .calendar-event-stats {
    grid-template-columns: 1fr;
  }

  .calendar-discord-help {
    padding: 28px 22px;
  }
}


/* v13.1 – Website-Terminkalender / Teamleitung */
.calendar-hero-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:flex-end; }
.calendar-hero-actions .button { min-height:46px; }
@media (max-width: 760px) { .calendar-hero-actions { justify-content:flex-start; width:100%; } }


/* ==========================================================
   Website v13.2 – Discord-Embed & Anmeldeschluss
   ========================================================== */
.status-anmeldung-geschlossen {
  border-color: rgba(255, 159, 67, .5) !important;
  background: rgba(255, 159, 67, .12) !important;
  color: #ffbd7d !important;
}

.calendar-registration-state {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(57, 169, 255, .25);
  border-radius: 12px;
  background: rgba(7, 13, 22, .72);
}

.calendar-registration-state span,
.calendar-registration-state small {
  color: #8f9caf;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.calendar-registration-state strong {
  color: #edf4ff;
  font-size: .92rem;
}

.calendar-registration-state a {
  color: #42d392;
  font-weight: 800;
  text-decoration: none;
}

.calendar-registration-state.is-closed {
  border-color: rgba(255, 159, 67, .35);
}

.calendar-deadline-note {
  margin-top: 15px !important;
  padding: 12px 14px;
  border-left: 3px solid #ff9f43;
  background: rgba(255, 159, 67, .08);
  color: #cbd6e5 !important;
}

.calendar-signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.calendar-item-signup {
  display: inline-flex;
  margin-top: 12px;
  color: #42d392;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.calendar-command-list small {
  max-width: 320px;
  color: #8f9caf;
  line-height: 1.45;
}


/* v14: vom geschützten Admin Center steuerbare Bereiche */
[hidden]{display:none!important}


/* ==========================================================
   Website v14.1 – Termin-Aktionen und Nach-oben-Fix
   ========================================================== */
.calendar-signup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.calendar-signup-buttons a,
.calendar-signup-buttons > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(145, 166, 205, .22);
  border-radius: 10px;
  color: #e9f1ff;
  background: rgba(17, 27, 43, .86);
  font-size: .76rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.calendar-signup-buttons a:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 153, 244, .62);
}
.calendar-signup-buttons .signup-yes { background: rgba(39, 155, 101, .17); border-color: rgba(65, 210, 139, .34); }
.calendar-signup-buttons .signup-maybe { background: rgba(61, 99, 190, .17); border-color: rgba(105, 139, 232, .35); }
.calendar-signup-buttons .signup-no { background: rgba(182, 62, 74, .14); border-color: rgba(233, 90, 105, .30); }
.calendar-signup-buttons small {
  flex-basis: 100%;
  color: #738198;
  font-size: .67rem;
  line-height: 1.35;
}
.calendar-signup-buttons.is-compact a {
  min-height: 34px;
  padding: 7px 9px;
  font-size: .69rem;
}
.calendar-signup-buttons.is-disabled > span {
  color: #8995a7;
  background: rgba(22, 29, 40, .65);
  cursor: not-allowed;
}
.back-to-top { cursor: pointer; }
@media (max-width: 650px) {
  .calendar-signup-buttons a { flex: 1 1 calc(50% - 8px); }
  .calendar-signup-buttons .signup-no { flex-basis: 100%; }
}
\n\n/* ==========================================================\n   Website v14.5 – Rennbilder\n   ========================================================== */\n.calendar-item-image,\n.calendar-event-image,\n.next-event-image {\n  position: relative;\n  overflow: hidden;\n  background: #080d15;\n}\n.calendar-item-image img,\n.calendar-event-image img,\n.next-event-image img {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}\n.calendar-item-image {\n  grid-column: 1 / -1;\n  height: 210px;\n  margin: -23px -8px 18px;\n  border-bottom: 1px solid rgba(255,255,255,.08);\n}\n.calendar-item:hover .calendar-item-image {\n  margin-inline: -18px;\n}\n.next-event-image {\n  height: clamp(250px, 34vw, 520px);\n  border-bottom: 1px solid rgba(255,255,255,.08);\n}\n.next-event-image::after,\n.calendar-event-image::after,\n.calendar-item-image::after {\n  content: \"\";\n  position: absolute;\n  inset: auto 0 0;\n  height: 42%;\n  background: linear-gradient(transparent, rgba(5,9,15,.72));\n  pointer-events: none;\n}\n.calendar-event-image {\n  height: 185px;\n  margin: -26px -26px 22px;\n  border-bottom: 1px solid rgba(255,255,255,.08);\n}\n@media (max-width: 760px) {\n  .calendar-item-image { height: 175px; }\n  .calendar-event-image { height: 170px; }\n  .next-event-image { height: 230px; }\n}\n

/* ==========================================================
   Website v14.6 – Teamwertung-Vorschau breiter und lesbarer
   ========================================================== */
.team-ranking-hero {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(390px, 440px);
  gap: clamp(34px, 4vw, 68px);
  align-items: stretch;
}

.team-ranking-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-ranking-hero h1 {
  font-size: clamp(3.9rem, 7.1vw, 7.8rem);
}

.team-ranking-hero-board {
  width: 100%;
  min-width: 0;
  min-height: 420px;
  padding: 28px;
  align-self: stretch;
}

.ranking-board-podium {
  min-height: 270px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ranking-preview-place {
  min-width: 0;
  padding: 18px 11px;
}

.ranking-preview-place strong {
  min-height: 2.7em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  color: #e4eaf4;
  font-size: .82rem;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-preview-place span {
  font-size: 1.9rem;
}

.ranking-board-foot {
  align-items: flex-end;
}

.ranking-board-foot span,
.ranking-board-foot strong {
  max-width: 48%;
  line-height: 1.35;
}

.ranking-board-foot strong {
  text-align: right;
}

/* Bei mittleren Fensterbreiten unter die Überschrift verschieben. */
@media (max-width: 1380px) {
  .team-ranking-hero {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .team-ranking-hero-board {
    width: 100%;
    min-height: 330px;
  }

  .ranking-board-podium {
    min-height: 210px;
  }

  .ranking-preview-first {
    min-height: 185px;
  }

  .ranking-preview-second {
    min-height: 145px;
  }

  .ranking-preview-third {
    min-height: 115px;
  }

  .ranking-preview-place strong {
    font-size: .9rem;
  }
}

@media (max-width: 790px) {
  .team-ranking-hero-board {
    min-height: 315px;
    padding: 18px;
  }

  .ranking-board-podium {
    gap: 9px;
  }

  .ranking-preview-place {
    padding-inline: 7px;
  }

  .ranking-preview-place strong {
    min-height: 3.6em;
    font-size: .73rem;
  }

  .ranking-board-foot {
    gap: 10px;
  }
}


/* ==========================================================
   Website v14.7 – Titel und LIVE-Vorschau ohne Überlappung
   ========================================================== */
.team-ranking-hero {
  grid-template-columns:
    minmax(0, 1fr)
    clamp(430px, 31vw, 520px);
  gap: clamp(34px, 3.2vw, 56px);
}

.team-ranking-hero-copy {
  min-width: 0;
  overflow: visible;
}

.team-ranking-hero h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3.7rem, 5.25vw, 6.25rem);
  line-height: .88;
  letter-spacing: -.055em;
  overflow: visible;
}

.team-ranking-hero h1 span {
  display: block;
  white-space: nowrap;
}

.team-ranking-hero-board {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

/* Unterhalb dieser Breite bekommt die Vorschau eine eigene Zeile. */
@media (max-width: 1380px) {
  .team-ranking-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-ranking-hero h1 {
    font-size: clamp(3.7rem, 9vw, 6.5rem);
  }

  .team-ranking-hero-board {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 790px) {
  .team-ranking-hero h1 {
    font-size: clamp(3rem, 14vw, 5.3rem);
    line-height: .9;
  }

  .team-ranking-hero h1 span {
    white-space: normal;
  }
}


/* ==========================================================
   Website v14.8 – Teamwertung mit voller Titelbreite
   ========================================================== */
.team-ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.team-ranking-hero-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: visible;
}

.team-ranking-hero h1 {
  width: 100%;
  max-width: none;
  margin-right: 0;
  font-size: clamp(4rem, 7.2vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.055em;
  overflow: visible;
}

.team-ranking-hero h1 span {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.team-ranking-hero-copy > p {
  max-width: 1050px;
}

.team-ranking-hero-board {
  width: 100%;
  max-width: none;
  min-height: 360px;
  margin: 0;
  padding: 28px 34px;
  justify-self: stretch;
  align-self: stretch;
}

.ranking-board-podium {
  min-height: 220px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ranking-preview-place {
  min-height: 150px;
  padding: 22px 18px;
}

.ranking-preview-first {
  min-height: 215px;
}

.ranking-preview-second {
  min-height: 175px;
}

.ranking-preview-third {
  min-height: 145px;
}

.ranking-preview-place strong {
  min-height: 2.6em;
  font-size: 1rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-preview-place span {
  font-size: 2.25rem;
}

.ranking-board-foot {
  margin-top: 22px;
}

@media (max-width: 1000px) {
  .team-ranking-hero h1 {
    font-size: clamp(3.6rem, 10vw, 6.2rem);
  }

  .team-ranking-hero-board {
    min-height: 330px;
    padding: 24px;
  }

  .ranking-board-podium {
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .team-ranking-hero h1 {
    font-size: clamp(3rem, 13vw, 5rem);
    line-height: .9;
  }

  .team-ranking-hero h1 span {
    white-space: normal;
  }

  .team-ranking-hero-board {
    padding: 18px;
  }

  .ranking-board-podium {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ranking-preview-first,
  .ranking-preview-second,
  .ranking-preview-third {
    min-height: 110px;
  }
}


/* ==========================================================
   Website v15.2 – direkter, weiterhin geschützter Adminzugang
   ========================================================== */
.site-nav .nav-admin {
  color: #9eb1ff;
  border: 1px solid rgba(126, 151, 255, .34);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(58, 77, 135, .13);
}

.site-nav .nav-admin::after {
  display: none;
}

.site-nav .nav-admin:hover {
  color: #fff;
  border-color: rgba(126, 151, 255, .72);
  background: rgba(73, 95, 168, .25);
}

.footer-admin {
  color: #9eb1ff !important;
}


/* Website v15.3 – Warteliste und Rückmeldungsstatus */
.calendar-response-lists{display:grid;gap:8px;margin-top:10px}.calendar-response-list{display:grid;gap:3px;padding:9px 11px;border:1px solid rgba(126,151,255,.22);border-radius:10px;background:rgba(15,25,40,.62);font-size:.82rem}.calendar-response-list strong{color:#d8e2f5}.calendar-response-list span{color:#98a8bf;line-height:1.45}.calendar-response-list.is-waitlist{border-color:rgba(255,179,71,.35);background:rgba(91,60,18,.15)}.calendar-response-list.is-waitlist strong{color:#ffc46d}.calendar-response-list.is-maybe strong{color:#a8b8ff}.signup-yes.is-waitlist{background:#a66a16!important;color:#fff!important}

/* BEGIN SMe Header-Footer R12.4 */
@media (min-width: 1180px) {
  header a.sme-admin-access,
  .site-header a.sme-admin-access,
  .topbar a.sme-admin-access,
  .main-header a.sme-admin-access {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 112px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 46px !important;
    height: 46px !important;
    aspect-ratio: auto !important;
    flex: 0 0 auto !important;
    padding: 9px 15px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-align: center !important;
    border-radius: 999px !important;
  }

  header a.sme-join-grid,
  .site-header a.sme-join-grid,
  .topbar a.sme-join-grid,
  .main-header a.sme-join-grid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 146px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 46px !important;
    height: 46px !important;
    aspect-ratio: auto !important;
    flex: 0 0 auto !important;
    padding: 9px 16px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-align: center !important;
    border-radius: 999px !important;
  }

  .sme-admin-access *,
  .sme-join-grid * {
    display: inline !important;
    white-space: nowrap !important;
  }

  header a.sme-garage-nav-link,
  .site-header a.sme-garage-nav-link,
  .topbar a.sme-garage-nav-link,
  .main-header a.sme-garage-nav-link {
    width: 88px !important;
    max-width: 88px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }
}

@media (min-width: 1180px) and (max-width: 1740px) {
  header nav,
  .site-header nav,
  .topbar nav,
  .main-header nav {
    column-gap: clamp(9px, 0.8vw, 16px) !important;
  }
}
/* END SMe Header-Footer R12.4 */
