/* ============================================================
   Panther Racing — Design System
   Fonts: Bebas Neue · Barlow Condensed · Barlow
   ============================================================ */

:root {
  --black:  #080808;
  --dark:   #0f0f0f;
  --card:   #131313;
  --card2:  #1a1a1a;
  --red:    #c00000;
  --red-b:  #ff0000;
  --white:  #ffffff;
  --gray:   #666666;
  --light:  #e8e8e8;
  --border: rgba(255,255,255,.06);
  --ff-d: 'Bebas Neue', sans-serif;
  --ff-c: 'Barlow Condensed', sans-serif;
  --ff-b: 'Barlow', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--ff-b); font-weight: 400; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container { width: min(100% - 40px, 1240px); margin-inline: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--ff-d); line-height: .95; text-transform: uppercase; }
.section-title { font-family: var(--ff-d); font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .9; text-transform: uppercase; margin-bottom: 48px; }
.section-title .accent { color: var(--red-b); }
.section-label {
  font-family: var(--ff-c); font-weight: 700; font-size: .8rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--red-b);
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-label::before { content: ''; display: block; width: 32px; height: 2px; background: var(--red-b); }
.lead { font-size: 1.1rem; color: #bbb; max-width: 640px; line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-c); font-weight: 700; font-size: 1rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 36px; background: var(--red-b); color: var(--white);
  border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  transition: background .2s, transform .15s;
}
.btn:hover { background: #e60000; transform: translateX(2px); }
.btn-outline {
  background: transparent; border: 2px solid var(--red-b); color: var(--red-b);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
}
.btn-outline:hover { background: var(--red-b); color: var(--white); }
.btn i { font-size: .85em; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: box-shadow .3s;
  background: var(--black);
}
.navbar.scrolled { box-shadow: 0 2px 40px rgba(0,0,0,.7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .3s; }
.navbar.scrolled .nav-inner { height: 64px; }
.logo img { height: 46px; width: auto; transition: height .3s; }
.navbar.scrolled .logo img { height: 38px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li { position: relative; }
.nav-link {
  font-family: var(--ff-c); font-weight: 700; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75); padding: 8px 14px; display: block;
  transition: color .2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--red-b);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px;
  background: rgba(10,10,10,.97); border: 1px solid var(--border);
  border-top: 2px solid var(--red-b); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a {
  display: block; font-family: var(--ff-c); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; color: #ccc; padding: 10px 20px;
  transition: color .15s, padding-left .15s;
}
.dropdown-menu a:hover { color: var(--red-b); padding-left: 26px; }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: none;
  border: 1px solid var(--border); cursor: pointer; padding: 8px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s, width .3s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 80px 0 0 0;
  background: rgba(8,8,8,.99); z-index: 999;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; padding: 40px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-d); font-size: 2.5rem; letter-spacing: .05em;
  color: rgba(255,255,255,.65); padding: 14px 0;
  border-bottom: 1px solid var(--border); width: 100%; text-align: center;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--red-b); }
.mobile-sub { display: none; flex-direction: column; align-items: center; width: 100%; }
.mobile-sub.open { display: flex; }
.mobile-sub a { font-size: 1.8rem; color: #777; border-bottom-color: rgba(255,255,255,.03); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-attachment: fixed; background-size: cover; background-position: center top;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.6) 55%, rgba(192,0,0,.15) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; max-width: 860px; }
.hero-eyebrow {
  font-family: var(--ff-c); font-weight: 700; font-size: .85rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red-b);
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px; opacity: 0;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 2px; background: var(--red-b); }
.hero h1 {
  font-size: clamp(4.5rem, 13vw, 11rem); line-height: .88; letter-spacing: .01em;
  color: var(--white); opacity: 0; transform: translateX(-60px);
}
.hero-tag {
  font-family: var(--ff-d); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .06em;
  color: var(--red-b); margin: 20px 0 24px; opacity: 0;
}
.hero-sub { font-size: 1.1rem; color: #aaa; max-width: 520px; line-height: 1.75; margin-bottom: 40px; opacity: 0; }
.hero-cta { opacity: 0; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--ff-c); font-size: .7rem; letter-spacing: .22em; color: #555;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4;transform:translateX(-50%) translateY(0)} 50%{opacity:1;transform:translateX(-50%) translateY(7px)} }

/* ── PAGE-HERO (Unterseiten) ── */
.page-hero {
  position: relative; min-height: 55vh; display: flex; align-items: flex-end;
  background-attachment: fixed; background-size: cover; background-position: center;
  padding-top: 80px;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,.5) 60%, rgba(8,8,8,.25) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 56px 0; }
.page-hero h1 { opacity: 0; transform: translateY(30px); }
.page-hero .hero-eyebrow { margin-bottom: 12px; }

/* ── PARALLAX BREAK ── */
.parallax-break {
  position: relative; min-height: 400px; display: flex; align-items: center;
  background-attachment: fixed; background-size: cover; background-position: center;
}
.parallax-overlay { position: absolute; inset: 0; background: rgba(8,8,8,.72); }
.parallax-content { position: relative; z-index: 2; width: 100%; padding: 80px 20px; text-align: center; }
.parallax-content blockquote {
  font-family: var(--ff-d); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1;
  color: var(--white); max-width: 900px; margin: 0 auto 24px;
}
.parallax-content blockquote .accent { color: var(--red-b); }

/* ── STATS BAR ── */
.stats-bar { background: var(--card); border-top: 3px solid var(--red-b); border-bottom: 1px solid var(--border); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 20px 16px; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--border); }
.stat-num { font-family: var(--ff-d); font-size: clamp(3.5rem, 8vw, 6rem); color: var(--red-b); line-height: 1; display: block; }
.stat-label { font-family: var(--ff-c); font-weight: 600; font-size: .95rem; letter-spacing: .15em; text-transform: uppercase; color: #666; margin-top: 6px; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-dark { background: var(--dark); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(25%); transition: filter .4s, transform .6s; }
.split-media:hover img { filter: grayscale(0); transform: scale(1.03); }
.split-media::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--red-b); transform: translate(10px, 10px); z-index: -1; transition: transform .3s;
}
.split-media:hover::before { transform: translate(5px, 5px); }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--card); border-left: 3px solid var(--red-b); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(200,0,0,.18); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(30%); transition: filter .4s, transform .5s; }
.card:hover img { filter: grayscale(0); transform: scale(1.04); }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { font-family: var(--ff-d); font-size: 1.7rem; letter-spacing: .04em; margin-bottom: 6px; }
.date {
  font-family: var(--ff-c); font-weight: 700; font-size: .9rem; letter-spacing: .15em;
  color: var(--red-b); text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.date::before { content: ''; display: block; width: 20px; height: 1px; background: var(--red-b); }
.info-card .card-body p { color: #888; font-size: .95rem; margin-top: 6px; line-height: 1.65; }

/* Event card price + snippets */
.card-price {
  font-family: var(--ff-d); font-size: 1.6rem; color: var(--red-b);
  letter-spacing: .04em; margin-bottom: 12px; display: block;
}
.card-snippets {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-snippet {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-c); font-weight: 600; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: #777;
}
.card-snippet i { color: var(--red-b); font-size: .7rem; width: 12px; flex-shrink: 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Equal height event cards */
.grid-3, .grid-4 { align-items: stretch; }
.card-wrap { position: relative; display: flex; flex-direction: column; height: 100%; }
.card-wrap .card { flex: 1; display: flex; flex-direction: column; }
.card-wrap .card-body { flex: 1; display: flex; flex-direction: column; }
.card-wrap .card-body .btn,
.card-wrap .card-body .btn-outline { margin-top: auto; align-self: flex-start; }

/* Past events */
.card-past { opacity: .75; filter: grayscale(60%); border-left-color: #333; pointer-events: none; }
.card-past:hover { transform: none; box-shadow: none; }
.card-past img { filter: grayscale(80%); }
.card-past h3 { color: #aaa; }
.card-past .date { color: #777; }
.card-past .muted { color: #555; }
.event-badge {
  position: absolute; top: 12px; left: 0; z-index: 2;
  font-family: var(--ff-c); font-weight: 700; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  background: rgba(20,20,20,.88); color: #aaa;
  padding: 5px 14px;
  pointer-events: none;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 16px;
}
.team-card {
  background: var(--card);
  border-left: none;
  border-top: none;
  border-bottom: 3px solid transparent;
  text-align: center;
  padding: 36px 24px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.team-card:hover {
  border-bottom-color: var(--red-b);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  transition: border-color .3s;
}
.team-card:hover .avatar-wrap { border-color: var(--red-b); }
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(40%);
  transition: filter .4s, transform .4s;
}
.team-card:hover .avatar { filter: grayscale(0); transform: scale(1.06); }
.initials {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--card2); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-size: 2.2rem; color: var(--red-b);
  margin: 0 auto 20px;
}
.team-card h3 { font-size: 1.25rem; letter-spacing: .06em; margin-bottom: 6px; }
.team-card .role {
  font-family: var(--ff-c); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-b);
}
.team-quote {
  font-family: var(--ff-d); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.1;
  color: #bbb; border-left: 4px solid var(--red-b); padding-left: 28px; margin-bottom: 64px;
}

/* ── MARQUEE ── */
.marquee {
  padding: 44px 0; background: var(--dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 72px;
  width: max-content; animation: marquee 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; opacity: .45; filter: brightness(0) invert(1); transition: opacity .3s; }
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── DRIVINGSCHOOL ── */
.feature-stack { display: flex; flex-direction: column; gap: 80px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature:nth-child(even) { direction: rtl; }
.feature:nth-child(even) > * { direction: ltr; }
.feature-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── FOOTER ── */
.footer { background: #050505; border-top: 3px solid var(--red-b); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer h4 { font-family: var(--ff-c); font-weight: 700; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--red-b); margin-bottom: 20px; }
.footer p, .footer a { font-size: .95rem; color: #aaa; line-height: 2; }
.footer a:hover { color: var(--white); }
.footer .footer-logo { margin-bottom: 20px; }
.footer .footer-logo img { height: 40px; opacity: .7; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-family: var(--ff-c); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #666; }
.powered-by { display: flex; align-items: center; gap: 8px; color: #666; transition: color .2s; }
.powered-by:hover { color: #aaa; }
.powered-by img { height: 23px; width: auto; opacity: .55; filter: brightness(0) invert(1); transition: opacity .2s; }
.powered-by:hover img { opacity: .85; }

/* ── ANIMATION PLACEHOLDERS ── */
.fade-up    { opacity: 0; transform: translateY(50px); }
.fade-in    { opacity: 0; }
.slide-left { opacity: 0; transform: translateX(-50px); }
.slide-right{ opacity: 0; transform: translateX(50px); }

/* ── MISC ── */
.muted { color: #666; }
.merch-coming { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.merch-coming h2 { font-size: clamp(3rem, 8vw, 6rem); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) { direction: ltr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .burger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero { background-attachment: scroll; }
  .page-hero { background-attachment: scroll; }
  .parallax-break { background-attachment: scroll; }
  .section { padding: 64px 0; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 480px) {
  .btn { padding: 12px 28px; font-size: .9rem; }
  .hero-content { padding-top: 100px; }
}
