/* ============================================================
   Schalke-Tigers Lüdenscheid — Designsystem & Styles
   Statische Website · HTML/CSS/Vanilla-JS · kein Build
   ============================================================ */

/* ---------- Fonts (lokal selbst-gehostet, WOFF2) ---------- */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2"),
       url("../fonts/anton-latin-ext.woff2") format("woff2");
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/permanentmarker-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2"),
       url("../fonts/archivo-latin-ext.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --blue-900: #002a5c;
  --blue-800: #003a7a;
  --blue-700: #004a99;
  --blue-600: #0056b3;   /* Königsblau – Primär */
  --blue-500: #0a66cc;
  --blue-400: #2b82e8;
  --navy-950: #04101f;
  --navy-900: #061528;   /* Header/Footer dunkel */
  --navy-850: #08203c;
  --gold: #ffffff;       /* (ehemals Gold) -> Weiß: kein Gelb mehr auf der Seite */
  --gold-600: #ffffff;
  --white: #ffffff;
  --offwhite: #eaf1fb;   /* Text auf Blau */
  --ink: #0d1b2e;        /* Text auf Hell */
  --ink-soft: #43536b;
  --paper: #f4f7fc;      /* heller Sektions-Hintergrund */
  --red: #d81e2c;        /* sehr sparsam */
  --line: rgba(255, 255, 255, 0.16);

  /* Typo */
  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-brush: "Permanent Marker", "Comic Sans MS", cursive;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 78px;

  /* Spacing-Skala */
  --s-1: 0.5rem;
  --s-2: 0.85rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6.5rem;

  --shadow-md: 0 14px 40px -16px rgba(2, 14, 33, 0.55);
  --shadow-gold: 0 12px 30px -12px rgba(0, 86, 179, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.05; font-weight: 400; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-900);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }
.eyebrow {
  font-family: var(--f-body);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue-600);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--primary { --btn-bg: var(--blue-600); --btn-fg: var(--white); }
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.16); box-shadow: 0 12px 30px -14px rgba(0,0,0,0.6); }
.btn--solid { --btn-bg: var(--white); --btn-fg: var(--navy-900); }
.btn--solid:hover { box-shadow: 0 14px 34px -14px rgba(255,255,255,0.5); }

/* ---------- Ton-/Musik-Button ---------- */
.sound-toggle {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.8rem);
  bottom: clamp(1rem, 2.5vw, 1.8rem);
  z-index: 95;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 26px -8px rgba(2,14,33,0.6);
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease);
}
.sound-toggle:hover { transform: translateY(-2px); background: var(--blue-500); }
.sound-toggle svg { width: 24px; height: 24px; }
.sound-toggle .ic-on { display: none; }
.sound-toggle.is-playing .ic-on { display: block; }
.sound-toggle.is-playing .ic-off { display: none; }
/* sanfter Hinweis-Puls, solange nicht gestartet (reduced-motion: aus) */
.sound-toggle:not(.is-playing)::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--blue-400);
  animation: stPulse 2.4s var(--ease) infinite;
}
@keyframes stPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle:not(.is-playing)::after { animation: none; display: none; }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.topbar { height: 6px; background: var(--navy-950); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--navy-900);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Wappen-/Schild-Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
}
.brand__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.brand__name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--white);
  white-space: nowrap;
  text-transform: uppercase;
}
.brand__city {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--white);
  margin-top: 2px;
}
/* dekorative Goldlinien entfernt */
.brand__rule { display: none; }

/* Desktop-Navigation */
.nav { display: flex; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.5rem);
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.1rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 3px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { right: 0; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h) - 6px);
  padding-top: calc(var(--header-h) + 6px);
  min-height: min(96vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
/* Hintergrund = Schalke-Arena-Foto */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: var(--blue-900);
  background-image: url("../img/hero-stadion.jpg");
  background-size: cover;
  background-position: center 28%;
}
.hero__bg::before { /* königsblaue Tönung */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 75% at 50% 22%, rgba(0,86,179,0.34), rgba(4,16,31,0.30));
  mix-blend-mode: multiply;
}
.hero__bg::after { /* Vignette für Textlesbarkeit */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,16,31,0.66) 0%, rgba(4,16,31,0.28) 30%, rgba(4,16,31,0.40) 64%, rgba(4,16,31,0.86) 100%);
}
/* Feines Korn (Daten-URI Noise) */
.hero__grain {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tiger-Flanken (echte Grafik, rechts gespiegelt) */
.hero__tiger {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: clamp(240px, 34vw, 600px);
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}
.hero__tiger--l { left: clamp(-3rem, -2.5vw, -0.5rem); }
.hero__tiger--r { right: clamp(-3rem, -2.5vw, -0.5rem); transform: translateY(-50%) scaleX(-1); }
.hero__tiger img { width: 100%; height: auto; }

.hero__inner {
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--s-5) var(--s-4);
}

/* S04-Wappen-Platzhalter (KEIN Logo-Nachbau) */
.crest {
  width: clamp(104px, 13vw, 150px);
  margin-bottom: var(--s-2);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}
.crest img { width: 100%; height: auto; }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(4.2rem, 17vw, 13rem);
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
  margin-top: 0.4rem;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
  /* Grunge-Textur via Maske über dem Text */
  position: relative;
  color: var(--white);
}
.hero__title span {
  background-image:
    radial-gradient(circle, #fff 60%, transparent 61%);
}
.hero__subtitle {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 4.6vw, 2.9rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4em;
  color: rgba(255,255,255,0.96);
}
.hero__subtitle mark {
  background: transparent;
  color: var(--white);
  padding: 0;
  box-shadow: none;
}
.hero__tagline {
  font-family: var(--f-brush);
  font-size: clamp(1.05rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--white);
  max-width: 30ch;
  margin: var(--s-3) auto 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: var(--s-4);
}

/* ---------- Info-Leiste ---------- */
.infobar {
  position: relative;
  z-index: 1;
  background: rgba(4, 16, 31, 0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.infobar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.info {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: var(--s-4) clamp(1rem, 2.4vw, 2rem);
  color: var(--offwhite);
}
.info + .info { border-left: 1px solid var(--line); }
.info__icon {
  flex: none;
  width: 42px; height: 42px;
  color: var(--gold);
}
.info__icon svg { width: 100%; height: 100%; }
.info__title {
  font-family: var(--f-display);
  font-size: 1.04rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.info__title .accent { color: var(--white); }
.info__text { font-size: 0.9rem; line-height: 1.5; color: rgba(234,241,251,0.82); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(234, 241, 251, 0.8);
  padding-block: var(--s-6) var(--s-4);
  border-top: 4px solid var(--blue-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-5);
}
.site-footer h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s-2);
}
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.footer-glueckauf {
  font-family: var(--f-brush);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1.2;
}
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(234,241,251,0.6);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.placeholder-note {
  display: inline-block;
  background: rgba(0,86,179,0.12);
  border: 1px dashed rgba(0,86,179,0.5);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  border-radius: 5px;
}

/* ============================================================
   Scroll-Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav__list { gap: 0.6rem; }
  .nav__link { font-size: 0.72rem; letter-spacing: 0.05em; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--navy-900);
    padding: calc(var(--header-h) + 1.5rem) 1.8rem 2rem;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.7);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0.3rem; width: 100%; }
  .nav__link { font-size: 1rem; padding: 0.7rem 0; width: 100%; }
  .nav__link::after { bottom: 2px; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(4,16,31,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }

  .infobar__grid { grid-template-columns: repeat(2, 1fr); }
  .info:nth-child(odd) { border-left: none; }
  .info:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-bottom: var(--s-4); }
  .hero__tiger { opacity: 0.32; width: 150px; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__cta .btn { justify-content: center; }
  .infobar__grid { grid-template-columns: 1fr; }
  .info + .info { border-left: none; border-top: 1px solid var(--line); }
  .info:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   UNTERSEITEN — gemeinsame Komponenten
   ============================================================ */

/* Seiten-Banner (Hero light) */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h) - 6px);
  padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-5);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(110% 130% at 50% 0%, var(--blue-500), var(--blue-800) 55%, var(--navy-900));
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% -10%, rgba(255,255,255,0.18), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 26px);
}
.page-hero .eyebrow { color: var(--gold); margin-bottom: 0.5rem; }
.page-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.page-hero__lead {
  max-width: 60ch;
  margin: var(--s-3) auto 0;
  color: rgba(234,241,251,0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

/* Seiten-Banner als Vollbild-Bild (z. B. Über uns) */
.page-hero--media {
  margin-top: calc(-1 * var(--header-h) - 6px);
  padding: 0;
  line-height: 0;
  background: var(--navy-900);
}
.page-hero__img {
  width: 100%;
  height: auto;
  display: block;
}
/* Variante: ganzes (hohes) Bild zeigen, Seitenränder mit unscharfer Bildkopie füllen */
.page-hero--media-low { position: relative; overflow: hidden; }
.page-hero--media-low::before {
  content: "";
  position: absolute; inset: -40px;
  background: url("../img/spieltage-banner.jpg") center/cover no-repeat;
  filter: blur(30px) brightness(0.5);
  z-index: 0;
}
.page-hero--media-low .page-hero__img { position: relative; z-index: 1; }
/* Tiger flankieren das Banner in den Seitenrändern (nach innen blickend) */
.hero-tiger-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 19vw, 340px);
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55));
  display: none;
}
.hero-tiger-side--l { left: clamp(-1.5rem, 0.5vw, 1rem); }
.hero-tiger-side--r { right: clamp(-1.5rem, 0.5vw, 1rem); transform: translateY(-50%) scaleX(-1); }
@media (min-width: 760px) { .hero-tiger-side { display: block; } }
/* Ab Tablet/Desktop: Banner-Höhe begrenzen (Titel bleibt mittig sichtbar) */
@media (min-width: 760px) {
  .page-hero__img {
    height: clamp(300px, 34vw, 460px);
    object-fit: cover;
    object-position: center 48%;
  }
  /* hohes Bild komplett zeigen (contain), Höhe kontrolliert */
  .page-hero--media-low .page-hero__img {
    height: clamp(420px, 52vw, 740px);
    object-fit: contain;
    object-position: center;
  }
  /* breites Banner: komplett zeigen (kein Zuschnitt) */
  .page-hero--media-wide .page-hero__img {
    height: auto;
  }
}

/* Sektionen */
.section { padding-block: var(--s-6); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: var(--offwhite); }
.section__head { max-width: 64ch; margin-bottom: var(--s-4); }
.section--center .section__head { margin-inline: auto; text-align: center; }
.section__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.section--navy .section__title { color: var(--white); }
.section__title .accent { color: var(--blue-600); }
.section--navy .section__title .accent { color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* Grids */
.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid rgba(13, 27, 46, 0.08);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: 0 1px 2px rgba(13,27,46,0.04);
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__kicker { color: var(--blue-600); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card__title { font-family: var(--f-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em; margin: 0.35rem 0 0.5rem; color: var(--ink); }
.card__role { color: var(--ink-soft); font-size: 0.92rem; }
.card .icon-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,86,179,0.1); color: var(--blue-600); margin-bottom: var(--s-2); }
.card .icon-badge svg { width: 26px; height: 26px; }

/* Feature-Liste mit Haken */
.checklist { display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--blue-600); margin-top: 2px; }

/* Callout / Hinweis / Platzhalter */
.callout {
  border: 1px solid rgba(0,86,179,0.22);
  background: rgba(0,86,179,0.06);
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  font-size: 0.96rem;
}
.callout--warn { border-color: rgba(0,86,179,0.35); background: rgba(0,86,179,0.07); }
.callout strong { color: var(--ink); }
.ph {
  display: inline-block;
  background: rgba(0,86,179,0.12);
  border: 1px dashed rgba(0,86,179,0.6);
  color: var(--blue-700);
  font-size: 0.85em; font-weight: 600;
  padding: 0.02em 0.45em; border-radius: 5px;
}

/* Timeline (Chronik) */
.timeline { position: relative; margin-top: var(--s-4); }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px;
  width: 3px; background: linear-gradient(var(--blue-600), rgba(0,86,179,0.15));
  border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 var(--s-4) 46px; }
.tl-item::before {
  content: ""; position: absolute; left: 6px; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}
.tl-year { font-family: var(--f-display); font-size: 1.3rem; color: var(--blue-700); letter-spacing: 0.03em; }
.tl-body { color: var(--ink-soft); margin-top: 0.15rem; }

/* Schedule / Termine (responsive Karten) */
.schedule { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.match {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(13,27,46,0.12);
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
}
.match__date { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--blue-700); white-space: nowrap; }
.match__teams { font-weight: 700; color: var(--ink); }
.match__meta { font-size: 0.88rem; color: var(--ink-soft); }
.status {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.status--open { background: rgba(0,86,179,0.12); color: var(--blue-700); }
.status--full { background: rgba(216,30,44,0.12); color: var(--red); }
.status--tbd { background: rgba(13,27,46,0.08); color: var(--ink-soft); }
@media (max-width: 620px) {
  .match { grid-template-columns: 1fr; gap: 0.5rem; }
  .match__teams { overflow-wrap: anywhere; }
  .status { justify-self: start; }
}

/* Formulare */
.form { display: grid; gap: var(--s-3); max-width: 640px; }
.form__row { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid rgba(13,27,46,0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 3px rgba(0,86,179,0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* Kontakt-/Info-Karten dunkel */
.factlist { display: grid; gap: 0.9rem; }
.factlist li { display: flex; gap: 0.85rem; align-items: flex-start; }
.factlist svg { flex: none; width: 24px; height: 24px; color: var(--blue-600); margin-top: 2px; }
.factlist b { display: block; color: var(--ink); }

/* Gästebuch */
.guest { background: var(--white); border: 1px solid rgba(13,27,46,0.1); border-radius: var(--radius); padding: var(--s-4); position: relative; }
.guest__quote { font-size: 1.05rem; color: var(--ink); }
.guest__quote::before { content: "\201E"; font-family: var(--f-display); color: var(--blue-400); font-size: 2.2rem; line-height: 0; vertical-align: -0.35em; margin-right: 0.15rem; }
.guest__meta { margin-top: var(--s-2); font-size: 0.86rem; color: var(--ink-soft); }
.guest__meta b { color: var(--blue-700); }
.demo-tag { position: absolute; top: var(--s-3); right: var(--s-3); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: rgba(13,27,46,0.07); padding: 0.2rem 0.5rem; border-radius: 6px; }

/* CTA-Band */
.cta-band { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: var(--white); text-align: center; }
.cta-band .section__title { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.88); }
.cta-band__actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-top: var(--s-4); }
.cta-band .btn--primary { --btn-bg: var(--white); --btn-fg: var(--blue-700); }

/* Foto-Slot Platzhalter */
.photo-slot {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600), var(--navy-850));
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(255,255,255,0.12);
}
.photo-slot[data-ratio="3-2"] { aspect-ratio: 3 / 2; }
.photo-slot[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.photo-slot::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 24px);
}
.photo-slot span {
  position: relative; z-index: 1;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.4rem 0.9rem;
  background: rgba(4,16,31,0.35);
}

/* Echtes Foto im Foto-Slot-Format */
.photo-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(13,27,46,0.12);
  box-shadow: var(--shadow-md);
  display: block;
}

/* News leerer Zustand */
.empty-state { text-align: center; padding: var(--s-5) var(--s-3); border: 1.5px dashed rgba(13,27,46,0.2); border-radius: var(--radius); color: var(--ink-soft); }
.empty-state svg { width: 46px; height: 46px; color: var(--blue-400); margin-bottom: var(--s-2); }

/* 404 */
.error-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--f-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 0.85; color: var(--blue-600); }

/* Anker-Offset für Sticky-Header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ============================================================
   INTRO-SEQUENZ (Startseite)
   Standard: display:none -> ohne JS unsichtbar. JS schaltet .is-on.
   ============================================================ */
.intro { display: none; }
body.intro-lock { overflow: hidden; }
.intro.is-on {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}
.intro::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero-stadion.jpg") center/cover no-repeat;
  opacity: 0.45;
}
.intro::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0,86,179,0.45), rgba(4,16,31,0.92) 75%);
}

.intro__stage {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease);
}
.intro__stage.is-active { opacity: 1; visibility: visible; }
.intro__stage.is-past { opacity: 0; visibility: hidden; }

/* Stage 1 */
.intro__eyebrow {
  font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: clamp(0.66rem, 1.6vw, 0.85rem); color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}
.intro__welcome {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  line-height: 1.02; text-transform: uppercase;
  max-width: 16ch; text-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.intro__welcome em { display: block; font-style: normal; color: var(--white); margin-top: 0.15em; }
.intro__stage--1.is-active .intro__eyebrow { animation: introFade 0.7s var(--ease) 0.1s both; }
.intro__stage--1.is-active .intro__welcome { animation: introUp 1s var(--ease) 0.2s both; }

/* Stage 2 */
.intro__tiger {
  position: absolute; top: 50%; z-index: 1;
  width: clamp(220px, 33vw, 560px);
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.5));
}
.intro__tiger--l { left: 0; transform: translateY(-50%) translateX(-70%); }
.intro__tiger--r { right: 0; transform: translateY(-50%) translateX(70%) scaleX(-1); }
.intro__stage--2.is-active .intro__tiger--l { animation: introTigerL 0.9s var(--ease) 0.05s both; }
.intro__stage--2.is-active .intro__tiger--r { animation: introTigerR 0.9s var(--ease) 0.4s both; }
.intro__center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.intro__crest { width: clamp(86px, 11vw, 148px); margin-bottom: 1.1rem; opacity: 0; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.intro__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 9vw, 6.4rem);
  line-height: 0.86; text-transform: uppercase; letter-spacing: 0.01em;
  text-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
.intro__title span { display: block; font-size: 0.42em; letter-spacing: 0.42em; text-indent: 0.42em; margin-top: 0.15em; color: rgba(255,255,255,0.95); }
.intro__stage--2.is-active .intro__center { animation: introZoom 1.1s var(--ease) 0.75s both; }
.intro__stage--2.is-active .intro__crest { animation: introFade 0.8s var(--ease) 0.95s both; }

/* Skip + Hinweis */
.intro__skip {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 6;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35);
  color: var(--white); padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.intro__skip:hover { background: rgba(255,255,255,0.2); }
.intro__hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 6;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  animation: introPulse 2s ease-in-out infinite;
}

/* Verlassen */
.intro.is-leaving { animation: introOut 0.7s var(--ease) both; }

@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introUp { from { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introTigerL { from { opacity: 0; transform: translateY(-50%) translateX(-70%); } to { opacity: 0.96; transform: translateY(-50%) translateX(0); } }
@keyframes introTigerR { from { opacity: 0; transform: translateY(-50%) translateX(70%) scaleX(-1); } to { opacity: 0.96; transform: translateY(-50%) translateX(0) scaleX(-1); } }
@keyframes introZoom { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }
@keyframes introPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }
@keyframes introOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .intro.is-on { display: none; }
}
