/* ============================================================
   EIFEL-KURIER – motorsport.css
   Motorsport-Welt: Hero-Banner, Sponsoring, Fahrerportrait
   Bewusst aufwendiger animiert als der Rest der Seite
   ============================================================ */

/* ─── Wrapper ───────────────────────────────────────────────── */
.ms-world {
  background: #0d0d0d;
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  /* Damit der fixierte Header den Anfang beim Ankersprung nicht verdeckt */
  scroll-margin-top: 76px;
}

/* Diagonale Rennstreifen im Hintergrund */
.ms-world::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(106,191,75,0.035) 60px,
    rgba(106,191,75,0.035) 120px
  );
  pointer-events: none;
}

.ms-world .container { position: relative; z-index: 1; }

/* ─── Cinematic Hero mit Ken-Burns-Zoom ─────────────────────── */
.ms-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0d0d;
}

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

.ms-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoomt sanft heraus, sobald die Sektion sichtbar wird */
.ms-hero.visible .ms-hero-media img {
  transform: scale(1);
}

/* Abdunkelung für Lesbarkeit */
.ms-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 42%,
    rgba(0,0,0,0.25) 100%
  );
}

.ms-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 0 56px;
}

.ms-hero h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}

.ms-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.ms-hero .ms-badge {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}

.ms-hero.visible h2,
.ms-hero.visible p,
.ms-hero.visible .ms-badge {
  opacity: 1;
  transform: none;
}

/* ─── Badge mit pulsierendem Punkt ──────────────────────────── */
.ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(106,191,75,0.16);
  border: 1px solid rgba(106,191,75,0.45);
  color: var(--color-light-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.ms-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-light-green);
  animation: ms-pulse 2s ease-in-out infinite;
}

@keyframes ms-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   box-shadow: 0 0 0 0 rgba(106,191,75,0.6); }
  50%      { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 0 7px rgba(106,191,75,0); }
}

/* ─── Split: Text + Sponsoring-Beweisbild ───────────────────── */
.ms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 84px 0;
}

.ms-split-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.ms-split-text p {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 16px;
}

.ms-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-light-green);
  margin-bottom: 12px;
}

/* Bildrahmen mit Glow beim Hover */
.ms-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #151515;
}

.ms-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-frame:hover img { transform: scale(1.04); }

/* Grüner Rahmen-Akzent, der beim Hover aufleuchtet */
.ms-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
  pointer-events: none;
}

.ms-frame:hover::after {
  border-color: rgba(106,191,75,0.55);
  box-shadow: inset 0 0 40px rgba(106,191,75,0.12);
}

/* Kleine Bildunterschrift auf dem Bild */
.ms-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: rgba(255,255,255,0.9);
  font-size: 0.84rem;
  font-weight: 500;
  z-index: 1;
}

/* ─── Fakten-Reihe ──────────────────────────────────────────── */
.ms-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.ms-fact {
  padding: 20px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid var(--color-light-green);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.ms-fact:hover {
  background: rgba(106,191,75,0.09);
  transform: translateY(-3px);
}

.ms-fact-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.ms-fact-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ─── Fahrer-Portrait ───────────────────────────────────────── */
.ms-driver {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ms-driver-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.ms-driver-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-driver-photo:hover img { transform: scale(1.05); }

/* Grüner Eckakzent */
.ms-driver-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--color-light-green);
  z-index: 2;
}

.ms-driver-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 64px;
  background: var(--color-light-green);
  z-index: 2;
}

.ms-driver-name {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 6px;
}

.ms-driver-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-light-green);
  margin-bottom: 20px;
}

.ms-driver-text p {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Erfolgs-Chips */
.ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 14px;
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition);
}

.ms-chip:hover {
  background: rgba(106,191,75,0.14);
  border-color: rgba(106,191,75,0.4);
}

.ms-chip svg { color: var(--color-light-green); flex-shrink: 0; }

/* ─── Impressionen-Galerie ──────────────────────────────────── */
.ms-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 84px;
}

.ms-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #151515;
  position: relative;
}

.ms-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition);
  filter: saturate(0.9);
}

.ms-gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.ms-gallery-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 30px 26px;
  background: linear-gradient(140deg, #1f4019 0%, #0f0f0f 100%);
  border: 1px solid rgba(106,191,75,0.22);
}

.ms-gallery-cta svg { color: var(--color-light-green); margin-bottom: 2px; }

.ms-gallery-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.ms-gallery-cta-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 6px;
}

.ms-gallery-cta .btn { padding: 10px 20px; font-size: 0.86rem; }

/* ─── Startseiten-Teaser ────────────────────────────────────── */
.ms-teaser {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.ms-teaser-media {
  position: absolute;
  inset: 0;
}

.ms-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.1);
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-teaser.visible .ms-teaser-media img { transform: scale(1.01); }

.ms-teaser-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.94) 0%,
    rgba(0,0,0,0.8) 38%,
    rgba(0,0,0,0.35) 68%,
    rgba(0,0,0,0.15) 100%
  );
}

.ms-teaser-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 72px 0;
}

.ms-teaser h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ms-teaser p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Betonte Marken-Zeile */
.ms-teaser-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.ms-teaser-brands span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ms-teaser-brands span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-light-green);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ms-split { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .ms-driver { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .ms-gallery { grid-template-columns: 1fr 1fr; }
  .ms-driver-photo { max-width: 330px; margin: 0 auto; }
  .ms-hero { min-height: 420px; }
  .ms-teaser { min-height: 400px; }
  .ms-teaser-media::after {
    background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.45) 100%);
  }
}

@media (max-width: 600px) {
  .ms-facts { grid-template-columns: 1fr; gap: 12px; }
  .ms-hero-inner { padding: 48px 0 40px; }
  .ms-teaser-inner { padding: 56px 0; }
  .ms-gallery { grid-template-columns: 1fr; padding-bottom: 60px; }
  .ms-gallery-cta { aspect-ratio: auto; }
}

/* Animationen respektieren die Systemeinstellung */
@media (prefers-reduced-motion: reduce) {
  .ms-hero-media img,
  .ms-teaser-media img,
  .photo-banner-media img { transform: none !important; transition: none !important; }
  .ms-hero h2, .ms-hero p, .ms-hero .ms-badge {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .ms-badge::before { animation: none; }
}
