/* =========================================
   GRUNDFARBEN / DESIGN-VARIABLEN
========================================= */
:root {
  --bg: #08111c;
  --bg-soft: #0f1a2c;
  --panel: rgba(14, 23, 38, 0.9);
  --panel-strong: rgba(9, 16, 28, 0.97);
  --line: rgba(130, 157, 196, 0.18);
  --text: #eef4ff;
  --muted: #a9b6cb;
  --accent: #75a7ff;
  --accent-2: #5cc06d;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1220px;
}

/* =========================================
   GLOBAL
========================================= */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(117, 167, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(92, 192, 109, 0.10), transparent 26%),
    linear-gradient(180deg, #08111c 0%, #0d1625 100%);
}

body {
  min-height: 100vh;
}

/* =========================================
   SEITENLAYOUT
   Links Sidebar, rechts Inhalt
========================================= */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

/* =========================================
   SIDEBAR
========================================= */
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.96) 0%, rgba(8, 15, 26, 0.94) 100%);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.brand {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand img {
  width: 100%;
  max-width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =========================================
   NAVIGATION
========================================= */
nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  transition: 0.25s ease;
}

nav a:hover,
nav a.active {
  background: rgba(117, 167, 255, 0.12);
  border-color: rgba(117, 167, 255, 0.24);
  transform: translateX(4px);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex-shrink: 0;
}

/* =========================================
   HAUPTBEREICH
========================================= */
main {
  padding: 34px;
}

/* Standard-Container für Hero und alle Kartenbereiche */
.hero,
.section-card {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* =========================================
   HERO-BEREICH
   Idee:
   - Text zuerst oben sichtbar
   - Bild darunter
   - Bild bleibt sticky sobald man es erreicht
   - wenn Hero-Bereich endet, scrollt Bild normal weiter
========================================= */
.hero {
  position: relative;
  padding: 34px;
  overflow: visible;
}

.hero-stage {
  position: relative;
  min-height: 165vh;
}

.hero-media-sticky {
  position: sticky;
  top: 34px;
  z-index: 1;
}

.hero-media-sticky img {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 520px;
  max-height: 78vh;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  margin-top: -62vh;
  padding: 32px 40px 72vh;
  display: flex;
  align-items: flex-start;
}

.hero-copy {
  width: min(1020px, 82%);
  padding: 28px;
  margin-left: 50px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 15, 26, 0.86), rgba(8, 15, 26, 0.62));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hero h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.15;
  max-width: 900px;
}

.hero p {
  margin: 18px 0 0;
  max-width: 900px;
  color: #d6e2f6;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 12px;
  margin-top: 24px;
}

/* =========================================
   GRID-SYSTEME
========================================= */
.hero-grid,
.grid-2,
.grid-3,
.gallery-grid,
.team-grid,
.rank-grid,
.vehicle-grid {
  display: grid;
  gap: 18px;
}

/* Stats unter dem Hero */
.hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 12px;
}

/* 2-spaltige Bereiche */
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 3-spaltige Bereiche */
.grid-3,
.rank-grid,
.vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Galerie */
.gallery-grid {
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
}

/* Team-Bereich */
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================
   KARTEN / PANELS
========================================= */
.stat,
.card,
.team-card,
.rank-card,
.vehicle-card,
.gallery-card,
.submit-box {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat {
  padding: 20px;
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  line-height: 1.55;
}

.section-card {
  padding: 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head p,
.card p,
.card li,
.rank-card p,
.vehicle-card p,
.team-card p,
.submit-box p {
  color: var(--muted);
  line-height: 1.75;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 760px;
}

.card,
.rank-card,
.vehicle-card,
.gallery-card {
  padding: 22px;
}

.card h4,
.team-card h4,
.rank-card h4,
.vehicle-card h4,
.gallery-card h4,
.submit-box h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

/* =========================================
   TEAM / BILDER
========================================= */
.team-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card img,
.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.team-card img {
  aspect-ratio: 4 / 5;
}

.gallery-card img {
  aspect-ratio: 16 / 10;
}

.team-card .content {
  padding: 20px;
}

.role {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(92, 192, 109, 0.12);
  color: #9ad2a7;
  border: 1px solid rgba(92, 192, 109, 0.2);
  font-size: 0.83rem;
  font-weight: 700;
}

/* =========================================
   LISTEN
========================================= */
ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.clean li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #aac5ff);
  box-shadow: 0 0 0 5px rgba(117, 167, 255, 0.08);
}

/* =========================================
   KOSTENZEILEN
========================================= */
.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.cost-line strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.cost-line.total {
  border-bottom: none;
  padding-top: 18px;
  font-size: 1.04rem;
}

/* Letzten Absatz unten bündig halten */
.gallery-card p:last-child,
.card p:last-child,
.rank-card p:last-child,
.vehicle-card p:last-child,
.team-card p:last-child {
  margin-bottom: 0;
}

.tag {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: inline-block;
}

/* =========================================
   KONTAKTBOX
========================================= */
.submit-box {
  padding: 26px;
  background: linear-gradient(180deg, rgba(117, 167, 255, 0.13), rgba(117, 167, 255, 0.05));
}

.submit-box a {
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 700;
}

/* =========================================
   FOOTER
========================================= */
footer {
  width: 100%;
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 12px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE
========================================= */

/* Mittlere Displays:
   Hero-Stats und 3er-Grids werden 2-spaltig */
@media (max-width: 1180px) {
  .hero-grid,
  .grid-3,
  .rank-grid,
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet und kleiner:
   Sidebar oben, Inhalte untereinander */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    position: relative;
    top: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-note {
    position: static;
    margin-top: 22px;
  }

  main {
    padding: 20px;
  }

  .gallery-grid,
  .grid-2,
  .team-grid,
  .hero-grid,
  .grid-3,
  .rank-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-card {
    padding: 24px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-media-sticky {
    position: relative;
    top: 0;
  }

  .hero-media-sticky img {
    min-height: auto;
    max-height: none;
  }

  .hero-overlay {
    margin-top: 24px;
    padding: 0;
    padding-bottom: 0;
  }

/* Kleine Smartphones */
@media (max-width: 640px) {
  .hero,
  .section-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 18px;
  }

  .brand h1 {
    font-size: 1.7rem;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .cost-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .cost-line strong {
    white-space: normal;
  }
}