/* ============================================================
   showcase – MERIDIAN · Observatorium für Nachthimmel-Fotografie
   Referenzseite nach Awwwards-Kriterien.
   HTML/CSS/JS strikt getrennt. Keine externen Ressourcen / kein CDN.
   ============================================================ */

/* ---- DESIGN (40 %): Farbsystem als CSS-Variablen ------------
   Kernpalette: 3 Töne + 1 Akzent. Bewusst reduziert. */
:root {
  --night:   #05070f;   /* Grundfläche (Nachthimmel) */
  --panel:   #0c1120;   /* Flächen/Karten */
  --line:    #1e2740;   /* Rahmen/Trennlinien */
  --text:    #eef2fb;   /* Fließtext, hoher Kontrast */
  --muted:   #aeb9d2;   /* Sekundärtext (AA auf --night) */
  --gold:    #f5c76b;   /* Akzent: Sternenlicht */
  --gold-dk: #1c1608;

  /* Typografische Skala (modular, Faktor ~1.28) */
  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.28rem, 1.2rem + .4vw, 1.5rem);
  --step-2:  clamp(1.7rem, 1.5rem + .9vw, 2.3rem);
  --step-3:  clamp(2.4rem, 1.9rem + 2.4vw, 4rem);
  --step-4:  clamp(3.2rem, 2.2rem + 5vw, 6.5rem);

  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2 * clamp(20px, 5vw, 64px), var(--wrap)); margin-inline: auto; }

a { color: inherit; }

/* Sichtbarer Fokus für Tastaturbedienung (Usability/A11y) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-dk);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Kopfzeile / Navigation (Usability: Mobile-tauglich) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .22em;
  font-size: var(--step-0);
}
.logo__mark { color: var(--gold); font-size: 1.3em; line-height: 1; }

.nav__links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 12px 14px;          /* Touch-Target >= 44px */
  text-decoration: none;
  color: var(--muted);
  border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: var(--step-0);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--gold-dk); }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--gold); }

/* ============================================================
   HERO mit Signature-Interaktion (Objektiv)
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  cursor: none;                /* eigenes Objektiv ersetzt den Cursor */
  touch-action: pan-y;         /* vertikales Scrollen bleibt möglich */
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 14vh, 160px);
  pointer-events: none;        /* Objektiv-Interaktion nicht blockieren */
}
.hero__inner a, .hero__inner button { pointer-events: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: var(--step-4);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  max-width: 16ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero__lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--step-1);
  margin: 0 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__lenshint {
  margin-top: 28px;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---- Abschnitte ---- */
section { padding-block: clamp(64px, 10vw, 128px); }

.sec-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.sec-head p { color: var(--muted); font-size: var(--step-1); margin: 0; }

/* ---- Programm-Karten (Content) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__kicker { color: var(--gold); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.card h3 { font-size: var(--step-2); margin: 0 0 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card__meta { display: flex; gap: 16px; font-size: var(--step--1); color: var(--text); border-top: 1px solid var(--line); padding-top: 14px; }
.card__meta b { color: var(--gold); }

/* ---- Ausrüstung: Split-Layout ---- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.specs { list-style: none; margin: 0; padding: 0; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 700; }

.diagram {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, #0f1830, var(--panel) 70%);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.diagram svg { width: 100%; height: auto; }

/* ---- Galerie (thematische SVG-Platzhalter) ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.plate {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(5, 7, 15, .9));
  font-size: var(--step--1);
}
.plate figcaption b { display: block; font-size: var(--step-0); }
.plate figcaption span { color: var(--muted); }

/* ---- Manifest ---- */
.manifest { text-align: center; }
.manifest blockquote {
  max-width: 24ch;
  margin: 0 auto;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.manifest blockquote .glow { color: var(--gold); }
.manifest cite { display: block; margin-top: 24px; color: var(--muted); font-style: normal; letter-spacing: .1em; text-transform: uppercase; font-size: var(--step--1); }

/* ---- Fußzeile ---- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 56px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot h4 { font-size: var(--step-0); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot__lead { color: var(--muted); max-width: 34ch; margin: .2em 0 0; }
.foot__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ============================================================
   Responsiv (Usability: Mobile-Navigation)
   ============================================================ */
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 8px 5vw 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 16px 8px; border-radius: 0; }
  .split { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
