/* ============================================================
   SVS93 – Seegrehna 93 e.V.
   Design-System: Rot/Weiß/Dark · Glowing Borders · Gradients
   ============================================================ */

/* ---- Fonts (selbst referenziert, kann via <link> in Header) ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Anton&display=swap');

/* ---------------- Theme-Variablen ---------------- */
:root {
  --red:        #e2122e;
  --red-bright: #ff2e4d;
  --red-deep:   #9b0d22;
  --grad: linear-gradient(135deg, #ff2e4d 0%, #e2122e 45%, #9b0d22 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,46,77,.18), rgba(155,13,34,.05));

  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 50px rgba(0,0,0,.18);
}

/* Dark (Standard) */
:root, [data-theme="dark"] {
  --bg:        #0c0d12;
  --bg-2:      #121420;
  --surface:   rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border:    rgba(255,255,255,.10);
  --text:      #f2f3f7;
  --muted:     #a4a8b8;
  --glow:      rgba(255,46,77,.55);
  --hero-overlay: linear-gradient(180deg, rgba(8,9,13,.30), rgba(8,9,13,.82));
}

/* Light */
[data-theme="light"] {
  --bg:        #f4f5f9;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #ffffff;
  --border:    rgba(15,18,30,.10);
  --text:      #161823;
  --muted:     #5a5f72;
  --glow:      rgba(226,18,46,.40);
  --hero-overlay: linear-gradient(180deg, rgba(20,8,12,.25), rgba(10,8,12,.70));
  --shadow: 0 18px 45px rgba(20,25,50,.12);
}

/* ---------------- Reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
section { position: relative; }

/* Ambient gradient blobs im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 640px at 12% -5%, rgba(255,46,77,.16), transparent 60%),
    radial-gradient(560px 560px at 96% 8%, rgba(155,13,34,.12), transparent 60%);
}

/* ---------------- Typo-Helfer ---------------- */
.display {
  font-family: 'Anton', sans-serif;
  font-weight: 400; letter-spacing: .5px; line-height: .98;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-bright);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .6rem 0 .5rem; }
.section-head p { color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -8px var(--glow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--red-bright); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand img { width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 4px 12px var(--glow)); }
.brand b { font-family: 'Anton', sans-serif; font-size: 1.25rem; letter-spacing: .5px; }
.brand span { font-size: .7rem; color: var(--muted); display: block; letter-spacing: .12em; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .55rem .85rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-tools { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: transform .4s var(--ease), border-color .3s;
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); border-color: var(--red-bright); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 1.3rem; }

/* ============================================================
   GLOW CARD (wiederverwendbar) – leuchtender Rand bei Hover
   ============================================================ */
.glow {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.glow:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -20px var(--glow); }
.glow:hover::before { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 92vh; display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -12% 0; z-index: -2; }
.hero-bg img { width: 100%; height: 124%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2rem; align-items: center; padding: 4rem 0; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: 1rem 0 1.1rem; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-badge {
  justify-self: center; width: clamp(180px, 26vw, 300px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero-badge img { width: 100%; filter: drop-shadow(0 20px 50px var(--glow)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }

.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Anton', sans-serif; font-size: 2.4rem; }
.hero-stats .lbl { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* Scroll-Hinweis */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.scroll-cue span { width: 1px; height: 34px; background: var(--grad); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.3); opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ============================================================
   PARALLAX FEATURE (Burgstalllauf)
   ============================================================ */
.feature { padding: 6rem 0; }
.feature-card {
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 460px;
  border-radius: 26px; overflow: hidden;
}
.feature-media { position: relative; overflow: hidden; }
.feature-media img { position: absolute; inset: -14% 0; width: 100%; height: 128%; object-fit: cover; }
.feature-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent)); }
.feature-body { padding: clamp(1.8rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .7rem 0 1rem; }
.feature-body p { color: var(--muted); margin-bottom: 1rem; }
.feature-years { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }
.feature-years a { padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 999px;
  font-size: .85rem; font-weight: 600; transition: .25s; }
.feature-years a:hover { border-color: var(--red-bright); color: var(--red-bright); transform: translateY(-2px); }

/* ============================================================
   NEWS GRID
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-card { display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.07); }
.news-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-meta { font-size: .78rem; color: var(--muted); letter-spacing: .03em; display: flex; gap: .6rem; align-items: center; }
.tag { background: var(--grad-soft); color: var(--red-bright); border: 1px solid var(--border);
  padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.news-card h3 { font-size: 1.22rem; line-height: 1.25; }
.news-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.read-more { color: var(--red-bright); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; }
.read-more::after { content: "→"; transition: transform .25s; }
.news-card:hover .read-more::after { transform: translateX(4px); }

/* ============================================================
   ABTEILUNGEN / FEATURES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.icon-card { padding: 1.8rem; }
.icon-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); font-size: 1.5rem; margin-bottom: 1rem; }
.icon-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.icon-card p { color: var(--muted); font-size: .94rem; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { padding: 4rem 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat .num { font-family: 'Anton', sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.stat .lbl { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }

/* ============================================================
   SPONSOREN MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 1.4rem 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.4rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 56px; width: auto; object-fit: contain;
  filter: grayscale(1) brightness(1.6) contrast(.8); opacity: .65; transition: .3s; }
[data-theme="light"] .marquee-track img { filter: grayscale(1); opacity: .75; }
.marquee-track img:hover { filter: none; opacity: 1; transform: scale(1.05); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SHOP STRIP
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.shop-item { padding: 1rem; text-align: center; }
.shop-item img { aspect-ratio: 3/4; object-fit: contain; margin: 0 auto .6rem; }
.shop-item span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { margin: 5rem 0; }
.cta-inner { padding: clamp(2.4rem, 6vw, 4.5rem); text-align: center; background: var(--grad-soft); }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; color: var(--muted); }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .92rem; display: block; padding: .2rem 0; transition: color .2s; }
.footer-grid a:hover { color: var(--red-bright); }
.footer-brand b { font-family: 'Anton', sans-serif; font-size: 1.4rem; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero { padding: 5rem 0 3rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: .8rem 0 .8rem; }
.page-hero p { color: var(--muted); max-width: 58ch; margin: 0 auto; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.8rem; padding-bottom: 4rem; }
.blog-empty { text-align: center; color: var(--muted); padding: 4rem 0; }

/* Einzelbeitrag */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 2rem 0 4rem; }
.post-hero-img { border-radius: var(--radius); overflow: hidden; margin: 1.4rem 0 2rem; border: 1px solid var(--border); }
.post-hero-img img { width: 100%; max-height: 460px; object-fit: cover; }
.post-back { color: var(--muted); font-size: .9rem; display: inline-flex; gap: .4rem; }
.post-back:hover { color: var(--red-bright); }
.article { font-size: 1.08rem; }
.article h1, .article h2, .article h3 { line-height: 1.2; margin: 2rem 0 .8rem; }
.article h1 { font-size: 2rem; } .article h2 { font-size: 1.6rem; } .article h3 { font-size: 1.3rem; }
.article p { margin: 1rem 0; }
.article img { border-radius: 14px; margin: 1.6rem 0; border: 1px solid var(--border); }
.article a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.article ul, .article ol { margin: 1rem 0 1rem 1.4rem; }
.article li { margin: .4rem 0; }
.article blockquote { border-left: 3px solid var(--red); padding: .4rem 0 .4rem 1.2rem; margin: 1.4rem 0;
  color: var(--muted); font-style: italic; }
.article code { background: var(--surface-2); padding: .15rem .45rem; border-radius: 6px; font-size: .9em; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; padding-bottom: 3rem; }
.contact-card { padding: 2rem; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-row { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic { font-size: 1.2rem; }
.contact-row b { display: block; font-size: .95rem; }
.contact-row span { color: var(--muted); font-size: .9rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.3); }

/* ============================================================
   KADER / MANNSCHAFT
   ============================================================ */
.kader-section { margin-bottom: 3.2rem; }
.kader-section > h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .8rem; }
.kader-section > h2::before { content: ""; width: 32px; height: 3px; background: var(--grad); border-radius: 3px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1.2rem; }
.player-card { overflow: hidden; }
.player-photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.player-card:hover .player-photo img { transform: scale(1.07); }
.player-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 78%, transparent)); }
.player-num { position: absolute; top: .55rem; left: .55rem; z-index: 2;
  background: var(--grad); color: #fff; font-family: 'Anton', sans-serif; font-size: .95rem;
  min-width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  padding: 0 .35rem; box-shadow: 0 5px 14px var(--glow); }
.player-info { padding: .85rem .9rem 1.05rem; text-align: center; }
.player-info b { display: block; font-size: 1.02rem; line-height: 1.2; }
.player-info span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   BURGSTALLLAUF-SEITE
   ============================================================ */
.lauf-hero { min-height: 70vh; display: grid; align-items: end; overflow: hidden; }
.lauf-hero .hero-bg img { height: 130%; }
.lauf-hero-inner { padding: 4rem 0 4.5rem; max-width: 720px; }
.lauf-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: .8rem 0 1rem; }
.lauf-hero p { font-size: 1.15rem; color: var(--muted); }

.lauf-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.year-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .3rem; }
.year-card .yr { font-family: 'Anton', sans-serif; font-size: 2.4rem; line-height: 1; }
.year-card .st { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.year-card .read-more { margin-top: auto; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badge { order: -1; }
  .hero-cta, .hero-stats, .eyebrow { justify-content: center; }
  .hero-stats { justify-content: center; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-media { min-height: 280px; }
  .feature-media img { position: static; inset: auto; height: 280px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 64px 4% auto 4%; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: .8rem;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-burger { display: grid; place-items: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
