:root {
  --bg: #081321;
  --bg-soft: rgba(18, 31, 54, 0.68);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text: #f6f9ff;
  --text-soft: rgba(246, 249, 255, 0.74);
  --accent: #8ec5ff;
  --accent-strong: #ffd792;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --radius-sm: 20px;
  --content-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(142, 197, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 215, 146, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1628 0%, #09111d 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(9, 18, 32, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 16, 30, 0.52);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 197, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: -0.04em;
}

.lead {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #c5e6ff);
  color: #09111d;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--panel-border);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fact-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.fact-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.fact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: auto 22px -24px 22px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.42), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.section,
.page-intro,
.story-card,
.featured,
.archive-panel {
  margin-top: 28px;
}

.story-card,
.page-intro,
.archive-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.story-card p,
.page-intro p {
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--text-soft);
  line-height: 1.8;
}

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

.section-head h2,
.archive-panel h2,
.story-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.section-head p,
.archive-panel p,
.meta-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--panel-border);
  color: var(--text-soft);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  grid-column: span 4;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
}


.featured .gallery-card {
  grid-column: span 3;
}

.archive-layout .gallery-card {
  grid-column: span 6;
}


.gallery-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-card__thumb::after {
  content: "Groß ansehen";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-card:hover .gallery-card__thumb::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card__content {
  display: block;
  padding: 14px 4px 0;
}

.gallery-card__content strong {
  display: block;
  font-size: 1.06rem;
}

.gallery-card__content small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.archive-note {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-soft);
  line-height: 1.7;
}

.archive-note strong {
  display: block;
  color: var(--text);
  margin-bottom: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(14px);
  border: 0;
}

.lightbox__dialog {
  position: relative;
  width: min(1120px, calc(100vw - 24px));
  border-radius: 30px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 16, 30, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a1424;
}

.lightbox__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 24px;
}

.lightbox__meta h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.lightbox__meta p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 70ch;
}

.lightbox__counter {
  white-space: nowrap;
  color: var(--text-soft);
  font-weight: 700;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  transform: scale(1.04);
}

.lightbox__close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.55rem;
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.footer {
  margin-top: 28px;
  padding: 22px 18px;
  color: var(--text-soft);
  text-align: center;
}

.footer strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .gallery-card {
    grid-column: span 6;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 12px;
  }

  .topbar {
    position: static;
    border-radius: 26px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    grid-column: 1 / -1;
  }

  .lightbox {
    padding: 8px;
  }

  .lightbox__dialog {
    width: calc(100vw - 16px);
    border-radius: 22px;
  }

  .lightbox__meta {
    flex-direction: column;
  }

  .lightbox__nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox__nav:hover {
    transform: scale(1.04);
  }

  .lightbox__nav--prev {
    left: 18px;
  }

  .lightbox__nav--next {
    right: 18px;
  }
}