/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #101010;
  --bg-darker: #09121F;
  --yellow: #ffd100;
  --gray: #565655;
  --white: #ffffff;
  --black: #000000;
  --font-obviously: 'obviously-wide', 'obviously', 'Racing Sans One', 'Barlow Condensed', sans-serif;
  --font-forma: 'forma-djr-micro', 'Poppins', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Offset anchor scroll so the fixed navbar doesn't cover the section title.
   Targets all elements with an id used as anchor (sections, form, etc.). */
section[id] { scroll-margin-top: 120px; }

/* reCAPTCHA v3 badge — lift it above the footer so it doesn't overlap. */
.grecaptcha-badge { bottom: 56px !important; }

body {
  font-family: var(--font-forma);
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Bootstrap container-xl override to keep 1440px max-width + custom padding */
.container-xl {
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

/* ========== TYPOGRAPHY HELPERS ========== */
.heading-obviously {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}

.heading-forma-bold-italic {
  font-family: var(--font-forma);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}

.poppins-extrabold-italic {
  font-family: var(--font-poppins);
  font-weight: 800;
  font-style: italic;
}

/* ========== SKEWED BUTTON SYSTEM ========== */
.btn-skew {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  font-family: var(--font-forma);
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s;
  background: none;
}
.btn-skew:hover { transform: scale(1.03); }
.btn-skew::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: skewX(-12deg);
}
.btn-skew span { position: relative; z-index: 1; }
.btn-skew[data-bs-dismiss="modal"] { text-transform: none; }

.btn-skew--yellow { color: var(--black); }
.btn-skew--yellow::before { background: var(--yellow); }

.btn-skew--dark { color: var(--white); }
.btn-skew--dark::before { background: var(--black); }

.btn-skew--outline { color: var(--white); }
.btn-skew--outline::before { border: 2px solid var(--yellow); background: transparent; }

.btn-skew--white { color: var(--black); }
.btn-skew--white::before { background: var(--white); }

.btn-skew--small { padding: 12px 32px; font-size: 14px; }

/* ========== NAV (Bootstrap navbar + custom skewed links) ========== */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 12px 40px;
  transition: background 0.3s;
}

.main-nav--sticky {
  background: var(--bg-dark);
}

.nav-logo img { height: 100px; width: auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px !important;
  font-family: var(--font-forma);
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14px;
  color: var(--white) !important;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  transform: skewX(-12deg);
  transition: background 0.2s;
}
.nav-link:hover { color: var(--black) !important; }
.nav-link:hover::before { background: var(--yellow); border-color: var(--yellow); }
.nav-link span { position: relative; z-index: 1; }

.nav-link--active { color: var(--black) !important; }
.nav-link--active::before { background: var(--yellow); border-color: var(--yellow); }
.nav-link--active:hover::before { background: #e6bc00; }

/* Navbar toggler custom styling */
.navbar-toggler {
  border-color: var(--yellow);
  padding: 6px 10px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffd100' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .main-nav {
    background: var(--bg-dark);
    padding: 8px 16px;
  }

  .nav-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    margin-top: 12px;
    border-radius: 4px;
    /* Full width below logo+toggler row */
    flex-basis: 100%;
  }

  .navbar-nav {
    gap: 8px !important;
    align-items: stretch;
  }

  .navbar-nav .nav-link {
    justify-content: center;
  }
}

/* ========== HERO ========== */
.hero-swiper {
  width: 100%;
  min-height: 100vh;
}

.hero-swiper .swiper-wrapper {
  align-items: stretch;
}

.hero-swiper-pagination {
  position: absolute;
  bottom: 56px !important;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
}

/* Skewed parallelogram bullets matching .btn-skew */
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 8px;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  margin: 0 !important;
  position: relative;
  transition: width 0.3s ease;
}
.hero-swiper-pagination .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  transform: skewX(-12deg);
  transition: background 0.3s ease;
}
.hero-swiper-pagination .swiper-pagination-bullet:hover::before {
  background: rgba(255, 255, 255, 0.75);
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 56px;
}
.hero-swiper-pagination .swiper-pagination-bullet-active::before {
  background: var(--yellow);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg video,
.hero-bg img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* YouTube iframes don't support `object-fit: cover`. The trick: scale the
   iframe to be at least as wide as the container AND at least as tall, while
   keeping 16:9. Whichever dimension wins depends on the viewport ratio.
   `pointer-events: none` keeps the swiper / hero CTAs clickable through it. */
.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;          /* 16:9 — 100vw * 9/16 */
  min-height: 100%;
  min-width: 177.78vh;      /* 16:9 — 100vh * 16/9 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 20px 120px;
}

.hero-tour-label {
  font-family: var(--font-forma);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-legends-text {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-legends-text .line1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

/* Generic yellow-text utility — applies anywhere. Useful in CKEditor
   content via `<span class="yellow">word</span>`, but also in templates
   or plain HTML. */
.yellow { color: var(--yellow); }

.hero-legends-text .line2 {
  font-size: 88px;
  line-height: 1;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-family: var(--font-forma);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--white);
  max-width: 769px;
  margin: 24px auto 40px;
}

/* Racing flags decoration */
.hero-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-flags svg { width: 28px; height: 22px; fill: var(--yellow); }

/* ========== RACING STRIPES (diagonal lines separator) ========== */
.racing-stripes {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.racing-stripes--overlap-top { margin-top: -100px; }
.racing-stripes--overlap-bottom { margin-bottom: -100px; }

.racing-stripes svg {
  width: 100%;
  height: 100%;
}

/* ========== SECTION: ABOUT (Yellow) ========== */
.section-about {
  background: var(--yellow);
  padding: 70px 0px 0px;
  position: relative;
  overflow: hidden;
}

.about-left { position: relative; }

.about-left h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 34px;
  line-height: 1.18;
  color: var(--black);
  /* No text-transform: uppercase — it would expand the German ß to SS,
     which mangles words like "größer". The seeded copy is already in
     the casing the design expects. */
  max-width: 802px;
}

.about-left h2 strong {
  font-family: var(--font-obviously);
  font-weight: 400;
}

.about-car {
  margin-top: 40px;
  width: 100%;
  max-width: 752px;
  position: relative;
  z-index: 2;
  /* Car image height dropped from 582px to 390px — add vertical padding
     on desktop to keep the section visually balanced. Mobile keeps 0. */
  padding: 96px 0;
}
.participate-hero-image {
  padding: 10px 0;
}

.about-car img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  top: -40px;
}

/* Checkered pattern behind car */
.about-checkered {
  position: absolute;
  left: -60px;
  top: 41%;
  max-width: 700px;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 1200px)   { .about-checkered { max-width: 550px; } }
@media (max-width: 991.98px) { .about-checkered { max-width: 420px; left: -40px; } }
@media (max-width: 767.98px) { .about-checkered { max-width: 340px; left: -10px; } }
@media (max-width: 575.98px) { .about-checkered { max-width: 340px; left: -10px; } }

.about-checkered img {
  width: 100%;
  height: auto;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--black);
}

.about-right .text-bold {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.42;
}

.about-right .text-regular {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
}

.about-right .text-medium {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

/* Checkered pattern decoration */
.checkered-deco {
  position: absolute;
  bottom: 0;
  left: -1078px;
  width: 2038px;
  height: 264px;
  pointer-events: none;
  opacity: 0.15;
}

/* ========== SECTION: WIN ========== */
.section-win {
  background: var(--yellow);
  padding: 40px 0;
}

.section-win h2 {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.win-intro {
  font-size: 20px;
  color: var(--black);
  margin-bottom: 50px;
}

.win-card {
  position: relative;
  padding: 50px 45px;
  min-height: 349px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.win-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: skewX(-12deg);
  z-index: 0;
}

.win-card > * { position: relative; z-index: 1; }

.win-card-icon {
  width: 108px;
  height: 108px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.win-card-icon i {
  font-size: 48px;
  color: var(--black);
}

.win-card h3 {
  font-family: var(--font-obviously);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.win-card p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

/* ========== SECTION: PARTICIPATE ========== */
.section-participate {
  background: var(--bg-dark);
  padding: 0 0 40px;
}

.participate-hero-image img {
  width: 100%;
  border-radius: 8px;
}

.participate-hero-text h2 {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  line-height: 1.25;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Steps as Bootstrap nav-pills with custom styling */
.steps-nav .nav-link {
  font-family: var(--font-forma);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5) !important;
  letter-spacing: 0.2px;
  padding: 6px 0 !important;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.steps-nav .nav-link::before { display: none; }

.steps-nav .nav-link.active {
  color: var(--yellow) !important;
  background: transparent;
}

/* Step detail card */
.step-detail {
  position: relative;
  padding: 50px 60px;
  min-height: 389px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: skewX(-12deg);
  z-index: 0;
}

.step-detail > * { position: relative; z-index: 1; }

.step-detail .step-number {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 56px;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.step-detail h3 {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}

.step-detail p {
  font-size: 20px;
  line-height: 1.4;
  color: var(--black);
  max-width: 460px;
  margin-bottom: 24px;
}

/* ========== SECTION: WHAT ARE WE LOOKING FOR ========== */
.section-looking {
  background: var(--bg-dark);
  padding: 40px 0;
}

.section-looking h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 60px;
}

.looking-card {
  position: relative;
  padding: 40px 50px;
}

.looking-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  transform: skewX(-12deg);
  z-index: 0;
}

.looking-card > * { position: relative; z-index: 1; }

.looking-card-icon {
  width: 108px;
  height: 108px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.looking-card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.looking-card h3 {
  font-family: var(--font-obviously);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.looking-card p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
  color: rgba(255,255,255,0.85);
}

/* ========== SECTION: FORM ========== */
.section-form {
  background: var(--yellow);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.form-left h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}

.form-left p {
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
}

.form-section-label {
  font-family: var(--font-forma);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  margin-top: 32px;
}

.form-section-label:first-child { margin-top: 0; }

.form-input {
  width: 100%;
  padding: 16px;
  background: var(--white);
  border: none;
  border-radius: 0;
  font-family: var(--font-forma);
  font-size: 16px;
  color: var(--gray);
  outline: none;
}

.form-input:focus { box-shadow: 0 0 0 3px rgba(0,0,0,0.15); }

.form-input--label {
  display: block;
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.form-input--placeholder {
  color: var(--gray);
  font-weight: 400;
}

.input-box {
  background: var(--white);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 94px;
}

.input-box label {
  font-family: var(--font-forma);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--black);
}

.input-box input,
.input-box textarea {
  border: none;
  font-family: var(--font-forma);
  font-size: 16px;
  color: var(--gray);
  outline: none;
  background: transparent;
  width: 100%;
}

.input-box textarea {
  min-height: 80px;
  resize: vertical;
}

.input-box--upload {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 94px;
}

.input-box--upload .upload-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-box--upload .upload-info span {
  font-size: 12px;
  color: var(--gray);
}

.input-box--upload i {
  font-size: 24px;
  color: var(--black);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--gray);
}
.form-checkbox a { text-decoration: underline; }

.form-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--yellow);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Form success/error messages */
.form-message {
  padding: 24px 32px;
  margin-bottom: 16px;
  font-family: var(--font-forma);
}

.form-message h3 {
  font-family: var(--font-obviously);
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-message p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
}

.form-message--success {
  background: var(--yellow);
  color: var(--black);
}

.form-message--success h3 { color: var(--black); }

.form-message--error {
  background: var(--bg-dark);
  color: var(--white);
}

.form-message--error h3 { color: var(--white); }

.form-agree {
  font-size: 14px;
  color: var(--gray);
  margin-top: 16px;
}

/* ========== SECTION: VOTE ========== */
.section-vote {
  background: var(--bg-dark);
  padding: 120px 0;
}

.vote-title {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: var(--white);
  text-transform: uppercase;
}

.vote-subtitle {
  font-family: var(--font-forma);
  font-weight: 500;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.vote-card {
  position: relative;
}

.vote-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 524 / 254;
  overflow: hidden;
  transform: skewX(-16deg);
  margin-bottom: 16px;
  border: 2px solid var(--yellow);
}

.vote-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(16deg) scale(1.25);
}

.vote-card h3 {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.vote-card p {
  font-family: var(--font-forma);
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

/* ========== SECTION: WINNER REVEAL ========== */
.vote-card--winner .vote-card-image {
  border: 4px solid var(--yellow);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.6), 0 12px 40px rgba(255,209,0,0.25);
}

.vote-card--winner h3 {
  font-size: 28px;
}

.winner-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-obviously);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 8px 22px;
  margin-bottom: 16px;
  transform: skewX(-12deg);
}

.winner-badge > * { display: inline-block; transform: skewX(12deg); }

/* ========== SECTION: PROGRAMME ========== */
.section-programme {
  background: var(--bg-dark);
  padding: 40px 0;
  overflow: hidden;
}

.programme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

.programme-header h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  color: var(--white);
  text-transform: uppercase;
}

.programme-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.programme-nav button {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s, border-color 0.2s;
  opacity: 0.7;
}
.programme-nav button:hover { opacity: 1; border-color: var(--yellow); }
.programme-nav button svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== TIMELINE ==========
   Desktop: horizontal scroll — competition cards (white) above the line,
   external cards (yellow) below the line, dots on the centre line.
   CSS Grid with 3 rows: [top cards | dots | bottom cards].
   Each unique date = one grid column.

   Mobile: vertical stack — single column, no line/dots, cards flow
   naturally in document order. */

/* Scroll wrapper */
.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.tl-scroll::-webkit-scrollbar { height: 6px; }
.tl-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 3px; }
.tl-scroll::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 3px; }

.tl {
  display: grid;
  grid-template-rows: 1fr 40px 1fr;
  /* grid-template-columns is set inline by the template via
     timeline_grid_columns — start-date columns get 180px,
     end-only columns get 40px to compress multi-day spans. */
  min-width: max-content;
  position: relative;
  padding: 4px 0;
  gap: 0;
}

/* Horizontal centre line — spans all columns. */
.tl-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
  z-index: 0;
}

/* Dot on the centre line. */
.tl-dot {
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 0%;
  rotate: 45deg;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 2;
  grid-row: 2;
}

/* Shared card styling. Cards stretch to fill their grid-column span. */
.tl-card {
  position: relative;
  padding: 24px 24px;
  margin: 6px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 120px;
}
.tl-card > * { position: relative; z-index: 1; }

.tl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Competition cards (above line): white rectangle. */
.tl-card--competition {
  grid-row: 1;
  align-self: end;  /* stick to the bottom of the top row (near the line) */
}
.tl-card--competition::before {
  background: var(--white);
}
.tl-card--competition .tl-card-date {
  font-family: var(--font-forma);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
}
.tl-card--competition .tl-card-title {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}

/* External cards (below line): yellow parallelogram. */
.tl-card--external {
  grid-row: 3;
  align-self: start;  /* stick to the top of the bottom row (near the line) */
}
.tl-card--external::before {
  background: var(--yellow);
  transform: skewX(-12deg);
}
.tl-card--external .tl-card-title {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 4px;
}
.tl-card--external .tl-card-date {
  font-family: var(--font-forma);
  font-size: 12px;
  color: var(--black);
}

/* Mobile: keep horizontal scroll, just shrink cards. */
@media (max-width: 767.98px) {
  /* Mobile grid-template-columns is set inline by the template
     via timeline_grid_columns_mobile — no override needed here. */
  .tl-card {
    padding: 18px 24px;
    min-width: 140px;
  }
  .tl-card--competition .tl-card-title { font-size: 13px; }
  .tl-card--competition .tl-card-date { font-size: 11px; }
  .tl-card--external .tl-card-title { font-size: 12px; }
  .tl-card--external .tl-card-date { font-size: 11px; }
  .tl-card--external::before { transform: skewX(-8deg); }
}

/* ========== SECTION: JURY ========== */
.section-jury {
  background: var(--bg-dark);
  padding: 120px 0 100px;
}

.jury-header {
  margin-bottom: 50px;
}

.jury-header h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.jury-header p {
  font-family: var(--font-obviously);
  font-size: 26px;
  color: var(--white);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 400;
}

.jury-card {}

.jury-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 694 / 356;
  overflow: hidden;
  transform: skewX(-16deg);
  border: 2px solid var(--yellow);
}

.jury-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(16deg) scale(1.25);
}

.jury-card h3 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 8px;
}

.jury-card p {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

/* ========== SECTION: PARTNERS ========== */
.section-partners {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.partners-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.partners-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.partners-content {
  position: relative;
  z-index: 2;
}

.partners-content h2 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  color: var(--white);
  line-height: 1.25;
  max-width: 695px;
  margin-bottom: 24px;
}

.partners-content p {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  max-width: 536px;
}

/* Smyths partner card */
.partner-card {
  position: relative;
  min-height: 356px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: skewX(-12deg);
}

.partner-card > * { position: relative; z-index: 1; }

.partner-card .partner-logo {
  height: 100px;
  width: auto;
  margin-bottom: 24px;
}

.partner-card h3 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.partner-card p {
  font-size: 18px;
  color: var(--black);
  margin-bottom: 20px;
}

/* ========== SECTION: MERCH BANNERS ========== */
/* ========== MERCH BANNER ==========
   Full-width image always visible, semi-transparent dark overlay card
   on the right with title + CTA. Similar pattern to section-partners. */
.section-merch {
  padding: 0;
}

.merch-banner {
  position: relative;
  overflow: hidden;
}

.merch-banner-image {
  display: block;
  width: 100%;
  height: auto;
}
.merch-banner-image--mobile { display: none; }

@media (max-width: 767.98px) {
  .merch-banner-image--desktop { display: none; }
  .merch-banner-image--mobile { display: block; }
}

.merch-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.merch-info {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.merch-info h3 {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  text-transform: none;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.merch-info p {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 24px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/v3/hotwheelslegendsgermany_footer_pattern.png') top left repeat;
  mix-blend-mode: color-burn;
  pointer-events: none;
  z-index: 0;
}

.footer-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Checkered racing flag pattern behind the car */
.footer-checkered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 100%;
  max-width: 1920px;
  height: 281px;
  z-index: 1;
  pointer-events: none;
}

.footer-checkered img {
  width: 100%;
  height: 100%;
}

.footer-car {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.footer-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px 40px;
}

.footer-hashtag {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 14px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  /* Explicit dimensions — `height: 100%` falls back to the SVG's intrinsic
     size in Firefox (huge), and the nav logo uses the same `height + auto`
     pattern. */
  height: 160px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 30px;
}

@media (max-width: 767.98px) {
  .footer-logo img { height: 110px; }
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  color: var(--white);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--yellow); }

.footer-social i { font-size: 24px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 48px;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}

.footer-copyright {
  font-family: var(--font-poppins);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  gap: 32px;
}

.footer-legal a {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--yellow); }

/* ========== RACING STRIPES ========== */
/* 4 lines, spacing increases top-bottom, first 2 thicker/brighter */
.stripes {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}

.stripes i {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  font-style: normal;
}

/* Yellow lines on dark bg */
.stripes--yellow-on-dark i:nth-child(1) { top: 0; height: 3px; background: var(--yellow); }
.stripes--yellow-on-dark i:nth-child(2) { top: 45px; height: 2px; background: var(--yellow); opacity: 0.7; }
.stripes--yellow-on-dark i:nth-child(3) { top: 90px; height: 1px; background: var(--yellow); opacity: 0.4; }
.stripes--yellow-on-dark i:nth-child(4) { top: 135px; height: 1px; background: var(--yellow); opacity: 0.25; }

/* Reverse variant — stripes grow from thin (top) to thick (bottom). Useful
   when anchored to the bottom of a section so the thickest line sits right
   at the edge. */
.stripes--yellow-on-dark-reverse i:nth-child(1) { top: 0;   height: 1px; background: var(--yellow); opacity: 0.25; }
.stripes--yellow-on-dark-reverse i:nth-child(2) { top: 45px; height: 1px; background: var(--yellow); opacity: 0.4; }
.stripes--yellow-on-dark-reverse i:nth-child(3) { top: 90px; height: 2px; background: var(--yellow); opacity: 0.7; }
.stripes--yellow-on-dark-reverse i:nth-child(4) { top: 135px; height: 3px; background: var(--yellow); }

/* Dark lines on yellow bg */
.stripes--dark-on-yellow i:nth-child(1) { top: 0; height: 3px; background: var(--bg-dark); }
.stripes--dark-on-yellow i:nth-child(2) { top: 45px; height: 2px; background: var(--bg-dark); opacity: 0.7; }
.stripes--dark-on-yellow i:nth-child(3) { top: 90px; height: 1px; background: var(--bg-dark); opacity: 0.4; }
.stripes--dark-on-yellow i:nth-child(4) { top: 135px; height: 1px; background: var(--bg-dark); opacity: 0.25; }

/* Mobile: compress stripes vertically — smaller parent + tighter spacing. */
@media (max-width: 767.98px) {
  .stripes { height: 62px; }
  .stripes--yellow-on-dark i:nth-child(2),
  .stripes--yellow-on-dark-reverse i:nth-child(2),
  .stripes--dark-on-yellow i:nth-child(2) { top: 20px; }
  .stripes--yellow-on-dark i:nth-child(3),
  .stripes--yellow-on-dark-reverse i:nth-child(3),
  .stripes--dark-on-yellow i:nth-child(3) { top: 40px; }
  .stripes--yellow-on-dark i:nth-child(4),
  .stripes--yellow-on-dark-reverse i:nth-child(4),
  .stripes--dark-on-yellow i:nth-child(4) { top: 60px; }
}

/* Top 50 hero variant — 5 yellow lines, thin → thick top to bottom.
   The 5th (thickest) stripe lands on the dark background at the bottom edge. */
.stripes--top50 {
  height: 220px;
}
.stripes--top50 i:nth-child(1) { top: 0;    height: 1px; background: var(--yellow); opacity: 0.25; }
.stripes--top50 i:nth-child(2) { top: 35px; height: 1px; background: var(--yellow); opacity: 0.45; }
.stripes--top50 i:nth-child(3) { top: 80px; height: 2px; background: var(--yellow); opacity: 0.7; }
.stripes--top50 i:nth-child(4) { top: 135px; height: 3px; background: var(--yellow); }
.stripes--top50 i:nth-child(5) { top: 210px; height: 6px; background: var(--yellow); }

/* ========== INLINE STYLE REPLACEMENTS ========== */
/* Partners section background - replaces inline style="background: url('assets/partners-bg.jpg')..." */
.section-partners--bg {
  background: url('../images/v3/hotwheelslegendsgermany-partner-banner-smyths.jpg') center/cover no-repeat;
  padding-top: 0;
}

/* Mobile: overlay goes full-width below the image. */
@media (max-width: 767.98px) {
  .footer-car {
    width: 80%;
  }
  .merch-overlay {
    position: relative;
    width: 100%;
    height: auto;
    padding: 32px 24px;
    background: rgba(0, 0, 0, 0.85);
  }
  .merch-info {
    max-width: 100%;
    text-align: center;
  }
  .merch-info h3 {
    font-size: 18px;
    line-height: 1.25;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .container-xl { padding-left: 40px; padding-right: 40px; }
  .hero-legends-text .line1 { font-size: 36px; }
  .hero-legends-text .line2 { font-size: 72px; }
}

@media (max-width: 992px) {
  .container-xl { padding-left: 24px; padding-right: 24px; }
  .hero-legends-text .line1 { font-size: 30px; }
  .hero-legends-text .line2 { font-size: 52px; }
  .phase-tabs { flex-direction: row; gap: 8px; }
}

@media (max-width: 767.98px) {
  .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
  .section-programme,
  .section-jury,
  .section-looking,
  .section-about,
  .section-win,
  .section-form { padding: 20px 0; }
  .section-participate {padding: 0 0 30px;}
  .section-partners { padding: 20px 0;}
  .about-left h2 { font-size: 24px; }
  .about-car { padding: 0; }
  .participate-hero-image { padding: 0; }
  .section-win h2 { font-size: 38px; }
  .participate-hero-text h2 { font-size: 24px; }
  .section-looking h2 { font-size: 34px; }
  .vote-title { font-size: 28px; }
  .programme-header { gap: 16px; flex-wrap: wrap; }
  .programme-header h2 { font-size: 28px; }
  .jury-header h2 { font-size: 28px; }
  .jury-header p { font-size: 20px; }
  .partners-content h2 { font-size: 24px; }
  .footer-hero {min-height: 300px; }
  /* Reduce skew angle on mobile so parallelogram corners don't clip outside
     the viewport. Desktop uses -12deg; mobile uses -6deg. Also tighten
     padding so the content sits further from the angled edges. */
  .win-card::before,
  .step-detail::before,
  .looking-card::before,
  .partner-card::before {
    transform: skewX(-6deg);
  }
  .partner-card .partner-logo {
    margin-bottom: 10px;
  }
  .partner-card p {
    margin-bottom: 10px;
  }
  .win-card,
  .looking-card { padding: 36px 32px; }
  .step-detail { padding: 40px 36px; }
  .step-detail .step-number { font-size: 40px; margin-bottom: 10px; }
  .step-detail h3 { font-size: 18px; }
  .partner-card { padding: 32px 28px; }

  .footer-bottom .row {
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

/* ========== VOTE CARD LINK ========== */
.vote-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.vote-card-link:hover {
  transform: translateY(-4px);
}
.vote-card-link:hover .vote-card-image {
  border-color: var(--white);
}

/* ========== CAR LIST PAGE ========== */
.carlist-hero {
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('../images/v3/hotwheelslegendsgermany-top50cars.jpg') center / cover no-repeat,
    var(--bg-dark);
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
/* Reuse the home page .stripes component, anchored to the bottom of the hero. */
.carlist-hero-stripes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}
.carlist-hero-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 4;    /* above the stripes (z-index: 3) */
  display: flex;
  justify-content: flex-start; /* box aligned to container's left edge */
}
.carlist-hero-box {
  background: var(--yellow);
  transform: skewX(-12deg);
  padding: 32px 140px 32px 110px;
  display: inline-block;
  max-width: 864px;
  width: 100%;
}
.carlist-hero-box-inner {
  transform: skewX(12deg);
  text-align: left;
}
.carlist-breadcrumb {
  font-family: var(--font-forma);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 12px;
}
.carlist-breadcrumb a {
  color: rgba(0,0,0,0.55);
  text-decoration: underline;
}
.carlist-breadcrumb a:hover {
  color: var(--black);
}
.carlist-breadcrumb .active {
  color: var(--black);
}
.carlist-title {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}
.carlist-subtitle {
  font-family: var(--font-forma);
  font-weight: 500;
  font-size: 16px;
  color: rgba(0,0,0,0.85);
  margin: 0;
}
.carlist-description {
  background: var(--bg-dark);
  padding: 40px 0 0;
}
.carlist-description p {
  font-family: var(--font-forma);
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.section-vote--list {
  padding-top: 60px;
}

/* ========== CAR DETAIL PAGE ========== */
.cardetail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg-dark);
}
.cardetail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cardetail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}
.cardetail-hero-stripes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}
.cardetail-hero-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 4;
  display: flex;
  justify-content: flex-start;
}
.cardetail-hero-box {
  background: var(--yellow);
  transform: skewX(-12deg);
  padding: 32px 140px 32px 110px;
  display: inline-block;
  max-width: 864px;
  width: 100%;
}
.cardetail-hero-box-inner {
  transform: skewX(12deg);
  text-align: left;
}
.cardetail-breadcrumb {
  font-family: var(--font-forma);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 12px;
}
.cardetail-breadcrumb a {
  color: rgba(0,0,0,0.55);
  text-decoration: underline;
}
.cardetail-breadcrumb a:hover {
  color: var(--black);
}
.cardetail-breadcrumb .active {
  color: var(--black);
}
.cardetail-car-name {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 34px;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
  margin: 0;
}

.cardetail-owner {
  background: var(--bg-dark);
  padding: 28px 0;
  /* Thin yellow stripe at the top of the bar — matches Figma */
  border-top: 2px solid var(--yellow);
}
.cardetail-owner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cardetail-owner-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cardetail-owner-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.cardetail-owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cardetail-owner-details h3 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-style: normal;
  font-size: 24px;
  text-transform: none;
  color: var(--white);
  margin-bottom: 0;
  line-height: 1.2;
}
.cardetail-owner-details p {
  font-family: var(--font-forma);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.cardetail-owner-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cardetail-social-links {
  display: flex;
  gap: 12px;
}
.cardetail-social-links a {
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.cardetail-social-links a:hover {
  color: var(--yellow);
}

.cardetail-main-photo {
  background: var(--bg-dark);
  padding: 60px 0;
}
.cardetail-main-image-wrapper {
  position: relative;
  border: 4px solid var(--yellow);
  overflow: hidden;
}
.cardetail-main-image {
  width: 100%;
  height: auto;
  display: block;
}
.cardetail-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.cardetail-play-overlay:hover {
  background: rgba(0,0,0,0.5);
}
.cardetail-play-overlay i {
  font-size: 80px;
  color: var(--white);
  opacity: 0.9;
}
.cardetail-fullscreen-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.cardetail-fullscreen-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.cardetail-motivation {
  background: var(--bg-dark);
  padding: 80px 0;
}
.cardetail-section-title {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.cardetail-motivation-text {
  font-family: var(--font-forma);
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.cardetail-motivation-image {
  border-radius: 4px;
  overflow: hidden;
}
.cardetail-motivation-image img {
  width: 100%;
  height: auto;
}

/* ---------- Owner bar: SHARE ON SOCIAL block + scroll-down arrow ---------- */
.cardetail-share {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.cardetail-share-label {
  font-family: var(--font-forma);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
/* ShareThis injects buttons with brand colors and inline `!important` styles.
   We override them to match the Figma look: small yellow circles with the
   icon glyph in black. Filter `brightness(0)` flattens any colored SVG to
   pure black, regardless of the original brand color. */
.cardetail-share .sharethis-inline-share-buttons {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.cardetail-share .sharethis-inline-share-buttons .st-btn {
  background: var(--yellow) !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  transition: transform 0.2s, background 0.2s !important;
}
.cardetail-share .sharethis-inline-share-buttons .st-btn:hover {
  background: var(--white) !important;
  transform: translateY(-2px) !important;
  top: 0 !important;
}
.cardetail-share .sharethis-inline-share-buttons .st-btn > img,
.cardetail-share .sharethis-inline-share-buttons .st-btn > svg {
  /* Bigger than the previous 14px so the glyph fills the yellow circle.
     ShareThis SVGs have ~25% padding inside their 40x40 viewBox, so
     rendering at 20px in a 28px circle gives the ~70% icon-to-circle
     ratio that the Figma uses. */
  width: 20px !important;
  height: 20px !important;
  /* ShareThis ships its own stylesheet that sets a non-zero `top` on the
     img to vertically nudge the glyph; with our smaller circle that
     misaligns it. Force 0 so the glyph stays centred. */
  top: 0 !important;
  /* brightness(0) flattens any colored SVG to black; saturate(100) crushes
     any leftover mid-grey from anti-aliased edges to pure black. */
  filter: brightness(0) saturate(100%) !important;
}
/* Hide the share-count label when ShareThis adds it next to icons */
.cardetail-share .sharethis-inline-share-buttons .st-btn > span {
  display: none !important;
}

/* Scroll-down arrow — thin, no border, far right of the bar */
.cardetail-scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  margin-left: 12px;
  transition: color 0.2s, transform 0.2s;
}
.cardetail-scroll-down:hover {
  color: var(--yellow);
  transform: translateY(2px);
}

/* ---------- "Follow the builder" block under motivation ---------- */
.cardetail-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.cardetail-follow-label {
  font-family: var(--font-forma);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: 0.05em;
}
.cardetail-follow a {
  font-family: var(--font-forma);
  font-size: 15px;
  color: var(--white);
  text-decoration: underline;
  text-transform: uppercase;
  transition: color 0.2s;
}
.cardetail-follow a:hover {
  color: var(--yellow);
}

/* ---------- Yellow CTA bar with subtext ---------- */
.cardetail-cta {
  background: var(--bg-dark);
  padding: 60px 0;
}
.cardetail-cta-button {
  font-size: 18px;
  padding: 22px 48px;
}
.cardetail-cta-note {
  margin-top: 18px;
  font-family: var(--font-forma);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Back to all cars ---------- */
.cardetail-back {
  background: var(--bg-dark);
  padding: 0 0 60px;
}
.cardetail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-obviously);
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: lowercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.cardetail-back-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.cardetail-gallery {
  background: var(--bg-dark);
  padding: 80px 0;
}
.cardetail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cardetail-gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cardetail-gallery-thumb:hover {
  border-color: var(--yellow);
}
.cardetail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== RESPONSIVE: CAR LIST & DETAIL ========== */
@media (max-width: 992px) {
  .carlist-hero {
    min-height: 500px;
  }
  .carlist-hero-box {
    padding: 28px 64px;
  }
  .carlist-title {
    font-size: 42px;
  }
  .cardetail-hero {
    min-height: 500px;
  }
  .cardetail-hero-box {
    padding: 28px 100px 28px 80px;
  }
  .cardetail-car-name {
    font-size: 36px;
  }
  .cardetail-section-title {
    font-size: 28px;
  }
  .cardetail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cardetail-share {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cardetail-cta-button {
    font-size: 15px;
    padding: 18px 28px;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .carlist-hero {
    min-height: 420px;
  }
  .carlist-hero-box {
    padding: 22px 40px;
  }
  .carlist-title {
    font-size: 32px;
  }
  .cardetail-hero {
    min-height: 420px;
  }
  .cardetail-hero-box {
    padding: 22px 70px 22px 56px;
  }
  .cardetail-car-name {
    font-size: 26px;
  }
  .cardetail-owner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cardetail-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cardetail-cta-inner h3 {
    font-size: 20px;
  }
  .cardetail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide ShareThis sticky widgets while any Bootstrap modal is open.
   ShareThis injects sticky sidebars with z-index up to 2147483647 (int32
   max) which would otherwise float ABOVE the modal. Bootstrap adds
   `modal-open` to <body> when a modal opens, so we piggyback on that.
   The inline `.sharethis-inline-share-buttons` block inside the page
   itself is NOT affected — only the floating widgets are. */
body.modal-open .st-sticky-share-buttons,
body.modal-open .st-left,
body.modal-open .st-right,
body.modal-open [id^="st-"][class*="sticky"],
body.modal-open [class*="st-sticky"] {
  display: none !important;
}

/* ========== VOTE MODAL ==========
   Matches Figma node 503:2356. Four steps live inside a single
   .modal-content box (confirm → success → raffle-thanks → error); the JS
   toggles [hidden] on [data-vote-step] children. The two corner racing-flag
   PNGs are absolutely positioned siblings of the step content and anchored
   to the modal corners (overflow:hidden on the content clips the bleed). */
.vote-modal .modal-dialog {
  max-width: 1100px;
}
.vote-modal .modal-content {
  background: #231F20;
  color: var(--white);
  border: none;
  border-radius: 16px;
  overflow-x: hidden;        /* clip horizontal stripe bleed */
  overflow-y: auto;          /* allow vertical scroll when content overflows */
  max-height: 100vh;
  padding: 64px 64px 48px;
}
.vote-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-forma);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 4;
}
.vote-modal-close:hover { opacity: 0.7; }

/* Corner decorations — racing-flag stripes exported from Figma. They bleed
   out of the modal bounds and are clipped by overflow:hidden on
   .modal-content. Sizes scale with modal width. */
.vote-modal-stripe {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.vote-modal-stripe--left {
  top: 0px;
  left: -40px;
  width: 420px;
  max-width: 40%;
  height: auto;
}
.vote-modal-stripe--right {
  bottom: 0px;
  right: -40px;
  width: 520px;
  max-width: 40%;
  height: auto;
}

.vote-modal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.vote-modal-badge {
  display: block;
  max-width: 380px;
  height: auto;
}

.vote-modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}
.vote-modal-step[hidden] { display: none; }

.vote-modal-title {
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.vote-modal-description {
  font-family: var(--font-forma);
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
  max-width: 820px;
}
.vote-modal-description a { color: var(--yellow); }
.vote-modal-car-name {
  display: inline-block;
  margin-top: 8px;
  font-family: obviously-wide, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--yellow);
}
.vote-modal-hint {
  font-family: var(--font-forma);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0;
}
.vote-modal-hint a { color: var(--yellow); }

.vote-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.vote-modal-actions--single { margin-top: 8px; }
.vote-modal-cancel {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-forma);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}
.vote-modal-cancel:hover { color: var(--white); }

/* Yellow success message (raffle entered successfully). */
.vote-modal-yellow-message {
  font-family: var(--font-forma);
  font-size: 22px;
  line-height: 1.5;
  color: var(--yellow);
  margin: 0;
}
/* Red error message (vote or raffle failed). */
.vote-modal-error-message {
  font-family: var(--font-forma);
  font-size: 22px;
  line-height: 1.5;
  color: #ff2e2e;
  margin: 0;
}

.vote-modal-footer {
  font-family: var(--font-forma);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
  max-width: 680px;
}

/* ===== Raffle form ===== */
.vote-raffle-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 620px;
  margin-top: 4px;
}
.vote-raffle-row {
  display: flex;
  gap: 12px;
  width: 100%;
}
.vote-raffle-field {
  flex: 1;
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.vote-raffle-field--full { width: 100%; }
.vote-raffle-field label {
  font-family: var(--font-forma);
  font-weight: 800;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.vote-raffle-field input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: var(--font-forma);
  font-size: 15px;
  color: var(--black);
}
.vote-raffle-field input::placeholder { color: #565655; }

.vote-raffle-check {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 0;
  font-family: var(--font-forma);
  font-size: 14px;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.vote-raffle-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--white);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.vote-raffle-check input[type="checkbox"]:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}
.vote-raffle-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vote-raffle-check a { color: var(--yellow); text-decoration: underline; }

/* Mobile: stack inputs and shrink fonts, keep the stripes but smaller. */
@media (max-width: 767.98px) {
  .vote-modal .modal-content {
    padding: 56px 24px 32px;
    border-radius: 12px;
  }
  .vote-modal-close { top: 12px; right: 16px; font-size: 24px; }
  .vote-modal-stripe--left {
    top: -12px; left: -20px; width: 220px;
  }
  .vote-modal-stripe--right {
    bottom: -6px; right: -20px; width: 280px;
  }
  .vote-modal-inner { gap: 24px; }
  .vote-modal-badge { max-width: 260px; }
  .vote-modal-title { font-size: 22px; }
  .vote-modal-description { font-size: 16px; }
  .vote-modal-yellow-message,
  .vote-modal-error-message { font-size: 18px; }
  .vote-modal-footer { font-size: 14px; }
  .vote-raffle-row { flex-direction: column; gap: 8px; }
}

/* ========== APPLICATION FORM SUBMIT OVERLAY ========== */
/* Full-page lock shown after the user clicks Submit on the application form
   so they don't refresh / close while the photos upload. */
.form-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.form-submit-overlay-card {
  background: var(--bg-dark, #1a1a1a);
  border: 2px solid var(--yellow);
  padding: 48px 56px;
  max-width: 480px;
  text-align: center;
  color: var(--white);
}
.form-submit-overlay-card i {
  font-size: 56px;
  color: var(--yellow);
  display: block;
  margin-bottom: 20px;
}
.form-submit-overlay-card h3 {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.form-submit-overlay-card p {
  font-family: var(--font-forma);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* Spinner used in both the inline submit button and the overlay icon. */
.ri-spin {
  display: inline-block;
  animation: hwlt-spin 1s linear infinite;
}
@keyframes hwlt-spin {
  to { transform: rotate(360deg); }
}

/* ========== PHASE CLOSED CARD (applications closed / voting closed) ========== */
/* Yellow band with the section title + body on the left and a checkered race
   flag stripe anchored to the right edge of the viewport (same trick the
   footer uses for its racing flag — `.footer-checkered` is absolutely
   positioned and escapes the container to reach the screen edge). */
.section-phase-closed {
  background: var(--yellow);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.phase-closed-card {
  position: relative;
  z-index: 2;
}
.phase-closed-text {
  color: var(--black);
  max-width: 580px;
}
.phase-closed-title {
  font-family: var(--font-obviously);
  font-weight: 800;
  font-style: italic;
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}
.phase-closed-body {
  font-family: var(--font-forma);
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
}
.phase-closed-body p { margin-bottom: 0; }
.phase-closed-body p + p { margin-top: 14px; }
.phase-closed-body strong { font-weight: 800; }
.phase-closed-body a { color: var(--black); text-decoration: underline; }
/* Checker stripe — absolutely positioned so it escapes the .container-xl
   constraints and bleeds all the way to the right edge of the viewport. */
.phase-closed-checker {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-40%);
  width: 40%;
  max-width: 1100px;
  z-index: 1;
  pointer-events: none;
}
.phase-closed-checker img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .section-phase-closed { padding: 64px 0; }
  .phase-closed-title { font-size: 40px; }
  .phase-closed-checker {
    /* On tablet the checker drops below the text instead of overlapping. */
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: calc(100% + 24px);
    margin: 32px -24px 0 0;
  }
}
@media (max-width: 575.98px) {
  .phase-closed-title { font-size: 30px; }
  .phase-closed-body { font-size: 16px; }
}

/* ========== BANNER CARDS — Top 3 horizontal layout & Winner reveal hero ========== */
/* Each card is a full-width horizontal banner: parallelogram image on the left,
   trophy badge + content on the right, link button at the end. Two variants:
     .banner-card-horizontal           dark background, used for the 3 Top 3 banners
     .banner-card-horizontal--winner   yellow background, used for the Gewinner Deutschland hero
*/
.banner-card-horizontal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: var(--bg-dark-2, #1a1a1a);
  border: 2px solid var(--yellow);
  padding: 28px 36px 28px 28px;
  margin-bottom: 28px;
  overflow: hidden;
}

.banner-card-horizontal--winner {
  background: var(--yellow);
  border-color: var(--black);
  margin-bottom: 40px;
}

.banner-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transform: skewX(-16deg);
  border: 2px solid var(--yellow);
}

.banner-card-horizontal--winner .banner-card-image {
  border-color: var(--black);
  aspect-ratio: 21 / 9;
}

.banner-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(16deg) scale(1.25);
}

.banner-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.banner-card-trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-obviously);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  transform: skewX(-12deg);
}

.banner-card-trophy-badge > * { display: inline-block; transform: skewX(12deg); }

.banner-card-horizontal--winner .banner-card-trophy-badge {
  background: var(--black);
  color: var(--yellow);
}

.banner-card-trophy-badge i {
  font-size: 16px;
  line-height: 1;
}

.banner-card-title {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}

.banner-card-horizontal--winner .banner-card-title {
  color: var(--black);
  font-size: 36px;
}

.banner-card-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-forma);
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.banner-card-horizontal--winner .banner-card-owner {
  color: var(--black);
  font-size: 18px;
}

.banner-card-owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.banner-card-horizontal--winner .banner-card-owner-avatar {
  border-color: var(--black);
}

.banner-card-actions {
  margin-top: 6px;
}

@media (max-width: 991.98px) {
  .banner-card-horizontal,
  .banner-card-horizontal--winner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
  .banner-card-image,
  .banner-card-horizontal--winner .banner-card-image {
    aspect-ratio: 16 / 9;
  }
  .banner-card-title { font-size: 22px; }
  .banner-card-horizontal--winner .banner-card-title { font-size: 28px; }
}

/* ========== TOP 3 SECTION (yellow background, dark cards) ========== */
/* Used by _voting_top3.html during VOTING_TOP3_OPEN and WINNER_REVEAL phases.
   Yellow section with 3 dark cards stacked vertically: parallelogram image
   on the left, title + description + owner + button on the right, and a
   circular yellow trophy badge anchored to the top-right of each card with
   the German selection_type label inside. */
.section-top3 {
  background: var(--yellow);
  padding: 120px 0 100px;
  scroll-margin-top: 80px;
}
.section-top3-title {
  font-family: var(--font-obviously);
  font-weight: 800;
  font-style: italic;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 8px;
  line-height: 1;
}
.section-top3-subtitle {
  font-family: var(--font-forma);
  font-size: 18px;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 48px;
  max-width: 640px;
}

.top3-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  margin-bottom: 56px;
  min-height: 280px;
  /* No background and no overflow:hidden — the parallelogram corners of the
     image deliberately bleed outside the card so the slant is visible against
     the yellow section background. */
}

.top3-card-image {
  position: relative;
  overflow: hidden;
  /* Container is skewed into a parallelogram; the img inside counter-skews
     so the photo content stays upright. scale(1.25) hides the corners that
     the skew would otherwise expose. */
  transform: skewX(-12deg);
  z-index: 2;
}
.top3-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: skewX(12deg) scale(1.25);
}

.top3-card-body {
  background: #101010;
  position: relative;
  padding: 36px 48px 36px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Skewed parallelogram background, matching the image's slant. The
     direct children below counter-skew so text + trophy stay upright. */
  transform: skewX(-12deg);
  z-index: 1;
}
.top3-card-body > * {
  transform: skewX(12deg);
}

/* Trophy badge — pre-baked yellow circle PNG (publikumpreis /
   preis_der_jury / preis_der_fruheren_gewinner). Just positioning + size. */
.top3-card-trophy {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 110px;
  height: 110px;
  z-index: 3;
  display: block;
}

/* ========== WINNER REVEAL HERO ========== */
/* Dark section with the winner's photo as a big skewed parallelogram and
   a yellow skewed parallelogram card overlapping its bottom half. A black
   circular trophy badge bridges the visual junction between the two. */
.section-winner-reveal {
  background: var(--bg-dark);
  padding: 100px 0 120px;
}
.winner-reveal-title {
  font-family: var(--font-obviously);
  font-weight: 800;
  font-style: italic;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 56px;
  text-align: center;
  letter-spacing: 0.02em;
}

.winner-reveal-stage {
  position: relative;
  /* Tall enough so the image + the overlapping yellow card both fit
     without the card pushing past the section padding. */
  min-height: 640px;
}

.winner-reveal-image {
  position: relative;
  width: 92%;
  height: 540px;
  margin: 0 auto;
  overflow: hidden;
  transform: skewX(-12deg);
  z-index: 1;
}
.winner-reveal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Counter-skew so the photo content stays upright; scale hides the
     corners that the skew would otherwise expose. */
  transform: skewX(12deg) scale(1.15);
}

.winner-reveal-card {
  position: absolute;
  /* Anchored to the bottom of the stage, overlapping the lower portion
     of the image. */
  bottom: 0;
  left: 50%;
  width: 78%;
  background: var(--yellow);
  padding: 50px 60px 44px;
  transform: translateX(-50%) skewX(-12deg);
  z-index: 3;
}
.winner-reveal-card > * {
  /* Counter-skew the children so the title + description + footer
     render upright on top of the slanted yellow background. */
  transform: skewX(12deg);
}

.winner-reveal-card-title {
  font-family: var(--font-obviously);
  font-weight: 800;
  font-style: italic;
  font-size: 38px;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
  margin: 0 0 16px;
  /* Reserve space on the right for the trophy badge. */
  padding-right: 200px;
}

.winner-reveal-card-description {
  font-family: var(--font-forma);
  font-size: 14px;
  color: var(--black);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px;
  padding-right: 200px;
  /* Cap at 3 lines so the layout stays predictable. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.winner-reveal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.winner-reveal-card-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-forma);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  min-width: 0;
}
.winner-reveal-card-owner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winner-reveal-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--black);
  flex-shrink: 0;
}

/* Trophy badge — pre-baked black-circle PNG (gewinner_deutschland.png).
   Sits on the top edge of the yellow card, anchored 200px from the right,
   so half the circle is on the image and half on the card. */
.winner-reveal-trophy {
  position: absolute;
  bottom: 215px;
  right: 200px;
  width: 150px;
  height: 150px;
  z-index: 4;
  display: block;
}

/* The Know More button inside the winner-reveal yellow card uses dark
   background with YELLOW text (per Figma), unlike the default
   btn-skew--dark which uses white text. */
.winner-reveal-card-footer .btn-skew--dark {
  color: var(--yellow);
}

@media (max-width: 991.98px) {
  .section-winner-reveal { padding: 64px 0 80px; }
  .winner-reveal-title { font-size: 30px; margin-bottom: 36px; }
  .winner-reveal-stage { min-height: auto; }
  .winner-reveal-image {
    width: 100%;
    height: 320px;
    transform: none;
  }
  .winner-reveal-image img { transform: none; }
  .winner-reveal-card {
    position: relative;
    width: calc(100% - 24px);
    margin: -40px auto 0;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 80px 28px 32px;
  }
  .winner-reveal-card > * { transform: none; }
  .winner-reveal-card-title { font-size: 26px; }
  .winner-reveal-card-footer { flex-wrap: wrap; gap: 16px; }
  .winner-reveal-trophy {
    position: absolute;
    bottom: auto;
    top: 280px;
    width: 110px;
    height: 110px;
    font-size: 11px;
    padding: 12px;
  }
  .winner-reveal-trophy i { font-size: 24px; }
}

.top3-card-title {
  font-family: var(--font-obviously);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  /* Reserve space on the right for the trophy badge so the title never
     ends up underneath it. */
  padding-right: 140px;
  margin: 0 0 14px;
}

.top3-card-description {
  font-family: var(--font-forma);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  padding-right: 140px;
  margin: 0 0 28px;
  /* Hard cap at ~3 lines so all 3 cards keep the same vertical rhythm. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top3-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
}
.top3-card-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-forma);
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  min-width: 0;
}
.top3-card-owner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top3-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .section-top3 { padding: 64px 0 80px; }
  .section-top3-title { font-size: 36px; }
  .top3-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .top3-card-image {
    margin: 0;
    transform: none;
    aspect-ratio: 16 / 9;
  }
  .top3-card-image img {
    transform: none;
  }
  .top3-card-body {
    padding: 32px 24px;
  }
  .top3-card-title {
    font-size: 26px;
    padding-right: 110px;
  }
  .top3-card-description {
    padding-right: 0;
  }
  .top3-card-trophy {
    top: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
    font-size: 10px;
  }
  .top3-card-trophy i { font-size: 18px; }
  .top3-card-footer {
    flex-wrap: wrap;
    gap: 16px;
  }
}
