/* ============================================================
   Squash-Freunde Nord e.V. — style.css
   ============================================================ */

:root {
  --acc: #CDF344;
  --accT: #5F7A00;
  --bg: #E0E2DC;
  --bg2: #FFFFFF;
  --card: #EFF1EA;
  --foot: #D9DBD4;
  --hdr: rgba(226, 228, 222, .9);
  --line: rgba(0, 0, 0, .16);
  --ink: #24282D;
  --ink2: #111417;
  --mut: #5C636B;
  --mut2: #3E444B;
  --tint: rgba(0, 0, 0, .05);
  --ov1: rgba(230, 232, 226, .86);
  --ov2: rgba(230, 232, 226, .78);
}

html[data-theme="dunkel"] {
  --bg: #101214;
  --bg2: #16191D;
  --card: #1C2025;
  --foot: #0C0E10;
  --hdr: rgba(16, 18, 20, .88);
  --line: rgba(255, 255, 255, .14);
  --ink: #E6E8E4;
  --ink2: #F4F6F1;
  --mut: #9AA2AB;
  --mut2: #B9BFC7;
  --tint: rgba(255, 255, 255, .04);
  --ov1: rgba(14, 16, 18, .9);
  --ov2: rgba(14, 16, 18, .84);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  transition: background .3s, color .3s;
}

a { color: var(--accT); }
a:hover { color: var(--ink2); }

@keyframes sfnMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sfnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(205, 243, 68, .35); }
  50% { box-shadow: 0 0 0 12px rgba(205, 243, 68, 0); }
}

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kicker {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accT);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}
.site-header .bar {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 24px);
  display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px);
  min-height: 76px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand img {
  height: clamp(84px, 24vw, 192px); width: auto; display: block; opacity: .9;
  transition: height .35s cubic-bezier(.2, .7, .2, 1);
}
html.scrolled .brand img { height: clamp(46px, 12vw, 68px); }
.logo-dark { display: none !important; }
html[data-theme="dunkel"] .logo-light { display: none !important; }
html[data-theme="dunkel"] .logo-dark { display: block !important; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  text-decoration: none; padding: 8px clamp(8px, 1.5vw, 14px); border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  color: var(--mut2); background: transparent; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink2); }
.main-nav a.active { color: var(--accT); background: rgba(0, 0, 0, .05); }
html[data-theme="dunkel"] .main-nav a.active { background: rgba(255, 255, 255, .08); }

.theme-toggle {
  cursor: pointer; margin-left: 6px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 17px; display: grid; place-items: center; transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--accT); }

.swatches { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.swatch {
  cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: none; padding: 0;
  box-shadow: 0 0 0 2px transparent; transition: transform .15s, box-shadow .2s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { box-shadow: 0 0 0 2px #0B0D10; }
html[data-theme="dunkel"] .swatch.active { box-shadow: 0 0 0 2px #FFFFFF; }

.burger {
  cursor: pointer; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 22px; display: none; place-items: center;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 18px 20px; border-top: 1px solid var(--line);
}
.mobile-nav a {
  text-decoration: none; padding: 14px 12px; border-radius: 12px;
  font-weight: 600; font-size: 18px; letter-spacing: .02em; color: var(--mut2);
}
.mobile-nav a.active { color: var(--accT); background: rgba(0, 0, 0, .05); }
html[data-theme="dunkel"] .mobile-nav a.active { background: rgba(255, 255, 255, .08); }
.mobile-nav .controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 0 4px; }
.mobile-nav .theme-toggle { width: 44px; height: 44px; font-size: 18px; margin-left: 0; }
.mobile-nav .swatch { width: 26px; height: 26px; }

@media (max-width: 899px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  html.menu-open .mobile-nav { display: flex; }
}

/* ============ BUTTONS ============ */
.btn-acc {
  cursor: pointer; display: inline-block; border: none; border-radius: 999px;
  padding: 16px 30px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 17px;
  background: var(--acc); color: #0B0D10; text-decoration: none;
}
.btn-acc:hover { filter: brightness(1.1); color: #0B0D10; }
.btn-acc.pulse { animation: sfnPulse 2.6s infinite; }
.btn-ghost {
  cursor: pointer; display: inline-block; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px; padding: 16px 30px; font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 17px; background: transparent; color: #FFFFFF; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 11, 14, .8), rgba(9, 11, 14, .5) 55%, rgba(9, 11, 14, .8)),
    url('../img/hero.jpg') center / cover no-repeat;
}
.hero .inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 80px);
  box-sizing: border-box; min-height: min(88vh, 860px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero .kicker { color: var(--acc); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero .kicker::before { content: ''; width: 34px; height: 2px; background: var(--acc); display: inline-block; }
.hero h1 {
  margin: 0 0 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(44px, 10vw, 150px); line-height: .95; letter-spacing: .01em;
  text-transform: uppercase; color: #FFFFFF;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--acc); }
.hero .lead {
  margin: 0 0 14px; font-size: clamp(19px, 2vw, 23px); font-weight: 600;
  line-height: 1.4; color: #FFFFFF; max-width: 560px;
}
.hero .sub { margin: 0 0 32px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
.section { border-bottom: 2px solid var(--line); }
.section > .wrap { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.section.on-bg2 { background: var(--bg2); }
.section h2 {
  margin: 0 0 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(60px, 8vw, 124px); line-height: 1; text-transform: uppercase;
}
.section h2 .dot { color: var(--accT); }
.section .sec-sub { margin: 0; color: var(--mut); font-size: 18px; }
.sec-head { margin-bottom: 44px; }

/* STATS */
.stats-section { border-bottom: 2px solid var(--line); background: var(--bg2); }
.stats-section .wrap { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.stats-section .kicker { margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.stat { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stat .value {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(56px, 6vw, 84px); line-height: 1; color: var(--accT);
}
.stat .label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: .12em; text-transform: uppercase;
}
.stat .sub { font-size: 14px; color: var(--mut); }

/* ÜBER UNS */
.about {
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, var(--ov1), var(--ov2)), url('../img/ueber-uns.jpeg') center / cover no-repeat;
}
.about .wrap {
  padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px);
  display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap;
}
.about .head { flex: 0 1 380px; min-width: 280px; }
.about .head h2 {
  margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(56px, 7vw, 110px); line-height: 1; text-transform: uppercase;
}
.about .body { flex: 1 1 480px; min-width: 300px; display: flex; flex-direction: column; gap: 20px; color: var(--mut2); }
.about .body p { margin: 0; }
.about .body .lead { font-size: 19px; font-weight: 600; color: var(--ink2); }

/* SQUASH CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accT); }
.card .img-frame { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.card .img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 {
  margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 36px; letter-spacing: .06em; text-transform: uppercase; color: var(--accT);
}
.card p { margin: 0; color: var(--mut2); font-size: 16px; }

/* AUSRÜSTUNG */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gear {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--tint), transparent);
}
.gear:hover { border-color: var(--accT); }
.gear .num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px;
  color: #0B0D10; background: var(--acc); width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center;
}
.gear h3 {
  margin: 6px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 36px; letter-spacing: .04em; text-transform: uppercase;
}
.gear p { margin: 0; color: var(--mut2); font-size: 16px; }

/* KONTAKT */
.kontakt .wrap {
  display: flex; gap: clamp(28px, 4vw, 48px); flex-wrap: wrap; align-items: flex-start;
}
.kontakt .head { flex: 1 1 380px; min-width: 280px; }
.kontakt .head h2 { margin-bottom: 18px; }
.kontakt .head p { margin: 0 0 26px; color: var(--mut); max-width: 460px; }
.kontakt .rows { flex: 1 1 420px; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.kontakt .row {
  display: flex; gap: 8px 16px; align-items: baseline; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; overflow-wrap: anywhere;
}
.kontakt .row .label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accT); min-width: 110px;
}
.kontakt .row .value { color: var(--ink); }

/* ============ UNTERSEITEN ============ */
.page-main { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 24px; }
.page-main h1 {
  margin: 0 0 32px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(60px, 8vw, 124px); line-height: 1; text-transform: uppercase;
}
.page-main h1 .dot { color: var(--accT); }
.text-main { max-width: 860px; }
.text-main .content { display: flex; flex-direction: column; gap: 26px; color: var(--mut2); }
.text-main h2 {
  margin: 12px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 34px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
}
.text-main h3, .text-main .content > div > h2.small {
  margin: 0 0 6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 24px; text-transform: uppercase; letter-spacing: .06em; color: var(--accT);
}
.text-main p { margin: 0 0 12px; }
.text-main p:last-child { margin-bottom: 0; }
.text-main strong { color: var(--ink); }
.text-main ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.text-main .src { margin: 0; font-size: 14px; color: var(--mut); }

/* AKTUELLES */
.news-article { margin-bottom: clamp(48px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 56px); border-bottom: 2px solid var(--line); }
.news-article:last-of-type { margin-bottom: 0; border-bottom: none; }
.news-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.news-head.spaced { margin-bottom: 42px; }
.news-badge {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px;
  color: #0B0D10; background: var(--acc); border-radius: 8px; padding: 4px 12px;
}
.news-head h1 {
  margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 72px); line-height: .82; text-transform: uppercase;
}
.news-body { display: flex; gap: clamp(24px, 3.5vw, 44px); align-items: flex-start; flex-wrap: wrap; }
.news-body img {
  flex: 0 1 380px; min-width: 260px; max-width: min(100%, 380px); height: auto;
  align-self: flex-start; display: block; border-radius: 14px;
  border: 1px solid var(--line); cursor: zoom-in; box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.news-text { flex: 1 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.news-text h2 {
  margin: 0 0 4px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 26px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em;
}
.news-text p { margin: 0; color: var(--mut2); font-size: 18px; }
.news-lead { margin: 0; color: var(--mut2); max-width: 720px; font-size: 18px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .82);
  display: none; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* TRAINING */
.training-main {
  background: linear-gradient(180deg, rgba(9, 11, 14, .88), rgba(9, 11, 14, .68) 55%, rgba(9, 11, 14, .88)),
    url('../img/training.jpeg') center / cover no-repeat;
}
.training-main .inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 24px;
  box-sizing: border-box; min-height: min(82vh, 840px);
  display: flex; flex-direction: column; justify-content: center;
}
.training-main .kicker { color: var(--acc); }
.training-main h1 {
  margin: 0 0 28px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(60px, 8vw, 124px); line-height: 1; text-transform: uppercase; color: #FFFFFF;
}
.training-main h1 .dot { color: var(--acc); }
.training-rows { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.training-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  background: rgba(13, 16, 20, .62); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
}
.training-row:hover { border-color: var(--acc); }
.training-row .day {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px;
  letter-spacing: .06em; text-transform: uppercase; color: #FFFFFF;
}
.training-row .time { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 24px; color: var(--acc); }
.training-info {
  max-width: 720px; box-sizing: border-box; background: rgba(13, 16, 20, .62); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.training-info .label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.training-info a { color: var(--acc); font-weight: 700; font-size: 19px; text-decoration: none; }
.training-info a:hover { text-decoration: underline; color: var(--acc); }
.training-info .addr { color: rgba(255, 255, 255, .7); font-size: 15px; }

/* ============ TO TOP ============ */
.to-top {
  position: fixed; bottom: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); z-index: 60;
  width: 52px; height: 52px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--acc); color: #0B0D10; font-size: 22px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s;
}
.to-top:hover { transform: translateY(-3px); }
html.scrolled .to-top { opacity: 1; pointer-events: auto; }

/* ============ FOOTER ============ */
.site-footer { background: var(--foot); }
.marquee {
  overflow: hidden; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  padding: 16px 0; white-space: nowrap;
}
.marquee .track { display: inline-flex; gap: 48px; animation: sfnMarquee 22s linear infinite; will-change: transform; }
.marquee span {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .25);
}
.marquee span:nth-child(odd) { color: var(--accT); }
html[data-theme="dunkel"] .marquee span { color: rgba(255, 255, 255, .22); }
html[data-theme="dunkel"] .marquee span:nth-child(odd) { color: var(--accT); }
.site-footer .bottom {
  max-width: 1240px; margin: 0 auto; padding: 36px 24px;
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.site-footer .bottom img { height: clamp(56px, 16vw, 88px); width: auto; display: block; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--mut); font-size: 15px; }
.footer-nav a:hover { color: var(--accT); }
.copyright { color: var(--mut); font-size: 14px; }

/* ============ SCROLL REVEAL ============ */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js [data-reveal].revealed { opacity: 1; transform: none; }
html.js [data-imgreveal] { opacity: 0; transform: scale(1.15); filter: blur(6px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s ease; }
html.js [data-imgreveal].revealed { opacity: 1; transform: scale(1); filter: none; }
