:root {
  --bg: #0b0c10;
  --panel: #14161d;
  --text: #f4f1ea;
  --muted: #a9a29a;
  --gold: #e4c24a;
  --line: rgba(255, 255, 255, 0.1);
  --a: #d62a30;
  --b: #48b052;
  --c: #ecc634;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(228, 194, 74, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(214, 42, 48, 0.12), transparent 50%),
    var(--bg);
}

a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.ghost-link {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.ghost-link:hover { color: var(--gold); }
.header-chip {
  display: inline-flex; align-items: center; margin-left: 0.75rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(228, 194, 74, 0.35); color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.rubric { margin: 1.75rem 0 1.25rem; }
.rubric-meta { display: flex; gap: 0.75rem; align-items: baseline; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.rubric-title { margin: 0.35rem 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; }
.rubric-lead { margin: 0; color: var(--muted); max-width: 42rem; }

.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2.5rem;
}
@media (max-width: 860px) {
  .year-grid { grid-template-columns: 1fr; }
}

.year-card {
  appearance: none; border: 1px solid var(--line); background: linear-gradient(180deg, #1a1d27, #12141b);
  border-radius: var(--radius); padding: 1.15rem 1.2rem 1.25rem; text-align: left;
  color: var(--text); cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.year-card:hover, .year-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(228, 194, 74, 0.55);
  outline: none;
}
.year-card .badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem;
}
.year-card h2 { margin: 0; font-size: 2rem; }
.year-card p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.95rem; }

.back-btn {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 999px; padding: 0.45rem 0.9rem;
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 1.25rem;
}
.back-btn:hover { color: var(--gold); border-color: rgba(228, 194, 74, 0.45); }

.liga-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 2.5rem;
}
@media (max-width: 900px) {
  .liga-grid { grid-template-columns: 1fr; }
}

.liga-card {
  display: flex; flex-direction: column; gap: 0.85rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.liga-card.is-a { border-top: 3px solid var(--a); }
.liga-card.is-b { border-top: 3px solid var(--b); }
.liga-card.is-c { border-top: 3px solid var(--c); }

.liga-cover {
  appearance: none; border: 0; padding: 0; background: #000; cursor: pointer;
  display: block; width: 100%;
}
.liga-cover img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}
.liga-card.is-wide-cover img { aspect-ratio: 16 / 10; object-fit: cover; }

.liga-body { padding: 0 1rem 1rem; display: grid; gap: 0.55rem; }
.liga-name {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.liga-card.is-a .liga-name { color: #ff8e8e; }
.liga-card.is-b .liga-name { color: #8dff9a; }
.liga-card.is-c .liga-name { color: #ffe58a; }
.liga-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.liga-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.liga-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  text-decoration: none; border-radius: 999px; padding: 0.45rem 0.85rem;
  font-weight: 700; font-size: 0.86rem; border: 1px solid var(--line);
  cursor: pointer; font-family: inherit; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold { background: rgba(228, 194, 74, 0.15); color: var(--gold); border-color: rgba(228, 194, 74, 0.4); }
.btn-gold:hover { background: rgba(228, 194, 74, 0.28); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* Visueller „Ansehen“-Button für Galerie/Lightbox */
.btn-view {
  color: #1a1408;
  border: 1px solid rgba(255, 220, 120, 0.55);
  background: linear-gradient(135deg, #f0d36a 0%, #e4c24a 45%, #c9a227 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 18px rgba(228, 194, 74, 0.28);
  letter-spacing: 0.02em;
}
.btn-view:hover,
.btn-view:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 12px 26px rgba(228, 194, 74, 0.4);
  outline: none;
}
.btn-view:active { transform: translateY(0); }
.btn-view svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.9rem;
}
.site-footer a { color: var(--gold); }

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.88);
  display: grid; place-items: center; padding: 1rem;
}
.lb-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4);
  color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lb-stage { margin: 0; width: min(920px, 100%); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: min(78vh, 820px);
  border-radius: 14px; box-shadow: var(--shadow);
}
.lb-stage figcaption {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 0.85rem; color: var(--muted);
}
.lb-dl { color: var(--gold); font-weight: 700; text-decoration: none; }

.view[hidden] { display: none !important; }
