/* Groundlight Studio — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0c;
  --bg-card: #15151a;
  --bg-panel: #1a1a20;
  --border: #2a2a32;
  --text: #e0e0e0;
  --muted: #8888a0;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.12);
  --cyan: #22d3ee;
  --green: #4caf50;
  --font-display: 'Tektur', 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'JetBrains Mono', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* Header image band */
.hero {
  height: 42vh;
  min-height: 300px;
  background-size: cover;
  background-position: center 30%;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.15) 0%, rgba(10,10,12,0.95) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 0 2rem 2.2rem;
}
.hero h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.hero p { color: var(--accent); font-size: 0.9rem; margin-top: 0.3rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Fixed background image behind the content (parallax-lite) */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Logo-Bild + Abdunklung in EINEM Layer via blend — Reihenfolge: Overlay UNTER Bild liegt, Bild wirkt gedimmt */
  background-color: #0a0a0c;
  background-image: linear-gradient(rgba(10,10,12,0.93), rgba(10,10,12,0.93)), url('/assets/logo.png');
  background-size: cover, 55vh;
  background-position: center, center center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, normal;
  opacity: 1;
}

/* Content sections with embedded image bands */
.image-band {
  height: 46vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  margin: 0.4rem 0 1.4rem;
  position: relative;
  overflow: hidden;
}
.image-band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0) 55%, rgba(10,10,12,0.75) 100%);
}
.image-band .caption {
  position: absolute; bottom: 0.9rem; left: 1.2rem; right: 1.2rem;
  z-index: 2; color: #ddd; font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.image-band .caption strong { color: var(--accent); }

/* Navigation */
nav.main {
  background: #0d0d10;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0 2rem;
  overflow-x: auto;
}
.nav-logo {
  color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1rem 0.85rem 0;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
nav.main a.nav-link {
  color: var(--muted); text-decoration: none;
  font-size: 0.82rem; padding: 0.85rem 0.8rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main a.nav-link:hover { color: #fff; }
nav.main a.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }


/* Page heroes (subpages) — wechselndes Bild pro Menüpunkt */
.page-hero {
  height: 38vh;
  min-height: 260px;
  background-attachment: fixed; /* Parallax auf Desktop */
}

/* Sanfter Fade-in beim Seitenaufruf (Effekt auf allen Seiten) */
@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}
.hero {
  animation: heroFade 0.9s ease-out;
}

/* Cards fade-in sanft beim Laden */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
main > * {
  animation: cardIn 0.6s ease-out backwards;
}
main > *:nth-child(1) { animation-delay: 0.05s; }
main > *:nth-child(2) { animation-delay: 0.12s; }
main > *:nth-child(3) { animation-delay: 0.19s; }
main > *:nth-child(4) { animation-delay: 0.26s; }
main > *:nth-child(5) { animation-delay: 0.33s; }
main > *:nth-child(6) { animation-delay: 0.40s; }

/* ============ MOBILE ANPASSUNG für Hero-Wechsel ============ */
@media (max-width: 768px) {
  .page-hero {
    height: 30vh;
    min-height: 200px;
    background-attachment: scroll; /* kein fixed-Parallax auf iOS */
  }
  /* bg-layer bleibt absolut am Seitenanfang — unter dem Hero nicht störend */
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  /* Hero kompakter */
  .hero { height: 34vh; min-height: 220px; }
  .hero h1 { font-size: 1.35rem; }
  .hero p { font-size: 0.72rem; }
  .hero-content { padding: 0 1.2rem 1.4rem; }

  /* Parallax fix: auf Mobil kein position:fixed-Hintergrund (iOS-Problem) —
     stattdessen absolute Ebene am Seitenanfang mit dem Bild sichtbar über der ersten Card */
  
  /* Bildband unter der Nav bleibt sichtbar, kompakter */
  .image-band {
    height: 32vh;
    min-height: 220px;
    margin: 0.6rem 0 1.1rem;
  }
  .image-band .caption { font-size: 0.68rem; left: 0.9rem; bottom: 0.7rem; }

  /* Navigation horizontal scrollbar */
  .nav-inner { padding: 0 1rem; }
  .nav-logo { font-size: 0.82rem; padding-right: 0.6rem; }
  nav.main a.nav-link { font-size: 0.76rem; padding: 0.8rem 0.6rem; }

  main { padding: 1.6rem 1.2rem 2.4rem; }
  .card { padding: 1.15rem; }
  h2.section { font-size: 1rem; }
  table { font-size: 0.78rem; }
  td, th { padding: 0.45rem 0.4rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Nav logo image */
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
}
.nav-logo img.logo-img {
  width: 30px; height: 38px;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
  transition: transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 6px rgba(212,160,23,0.3));
}
.nav-logo:hover img.logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(212,160,23,0.55));
}

/* FLY-OVER LOGO — schwebt fix OBEN RECHTS über der Seite */
.hero-badge {
  position: fixed;
  top: 0.6rem; right: 0.8rem;
  width: 54px; height: 70px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.hero-badge:hover {
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  /* Hintergrund-Logo auf Mobile: größer relativ, dunkler */
  .bg-layer {
    background-size: 75vw;
  }
  
  .nav-logo img.logo-img { width: 28px; height: 28px; }
}

/* Layout */
main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 3rem; }
.card {
  background: rgba(21, 21, 26, 0.94);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
h2.section {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--accent);
  margin-bottom: 1rem; font-weight: 600;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.5rem;
}
h2.section::before {
  content: ''; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
h3.sub { font-size: 0.95rem; color: #fff; margin: 1.1rem 0 0.5rem; }
p.lead { font-size: 1.02rem; color: #ccc; margin-bottom: 1rem; }
p.body { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
ul.list { list-style: none; }
ul.list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative; color: #ccc; font-size: 0.9rem;
  border-bottom: 1px solid rgba(42,42,50,0.5);
}
ul.list li:last-child { border-bottom: none; }
ul.list li::before {
  content: '▸'; position: absolute; left: 0.2rem;
  color: var(--accent); font-size: 0.8rem;
}
ul.list li strong { color: #fff; }
ul.list li .note { color: var(--muted); font-size: 0.8rem; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 0.5rem 0 1.6rem; }
.stat { background: rgba(21, 21, 26, 0.94); border: 1px solid var(--border); border-radius: 0.7rem; padding: 1rem; text-align: center; }
.stat .num { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.stat .label { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; color: var(--accent); font-weight: 600; padding: 0.55rem 0.6rem; border-bottom: 2px solid var(--border); background: rgba(212,160,23,0.05); }
td { padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(42,42,50,0.6); color: #ccc; vertical-align: top; }
td.cat { color: #fff; font-weight: 600; white-space: nowrap; }
td .muted { color: var(--muted); }

/* Two-column grid */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.grid2 .card { margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem; padding: 1.6rem 2rem;
  text-align: center; color: #555566; font-size: 0.78rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Badge */
.badge {
  display: inline-block; background: var(--accent-soft);
  color: var(--accent); border: 1px solid rgba(212,160,23,0.35);
  border-radius: 4px; padding: 0.1rem 0.5rem;
  font-size: 0.7rem; font-weight: 600;
}