/* ==========================================================================
   MyScoreboard – ein Stylesheet, kein Framework, kein Build-Step.
   Mobile-first: Basis-Regeln gelten fuer schmale Screens, danach nur
   min-width-Media-Queries fuer breitere Screens ergaenzen.
   ========================================================================== */

:root {
  --color-accent: #2F6B4A;
  --color-accent-shade: #24543A;
  --color-accent-bright: #4FA57A;
  --color-accent-tint: rgba(47, 107, 74, 0.16);

  --color-bg: #12161C;
  --color-bg-alt: #0B0E12;
  --color-surface: #1A1F27;
  --color-surface-hover: #212833;
  --color-text: #E7EAEE;
  --color-text-muted: #9AA3AF;
  --color-border: #2A313D;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ---- Reset / Base -------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* ---- Typografie ------------------------------------------------------ */

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-1);
}

@media (min-width: 900px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

/* ---- Layout-Utilities -------------------------------------------------- */

.section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }

.text-center { text-align: center; }
.max-measure { max-width: 640px; margin-left: auto; margin-right: auto; }

.stack > * + * { margin-top: var(--space-3); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 600px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-shade); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent-bright); color: var(--color-accent-bright); text-decoration: none; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---- Header / Navigation ------------------------------------------------ */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header--minimal { border-bottom: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }

/* Burger-Toggle: reine CSS-Loesung, kein JavaScript. */

.nav-toggle-input { display: none; }

.nav-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-toggle-input:checked ~ .site-nav {
  max-height: 400px;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-2) 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { background: var(--color-surface-hover); text-decoration: none; }

.site-nav a.active {
  background: var(--color-accent-tint);
  color: var(--color-accent-bright);
}
.site-nav a.active:hover { background: var(--color-accent-tint); }

.nav-cta {
  display: block;
  margin: var(--space-2);
}

@media (min-width: 900px) {
  .nav-toggle-btn { display: none; }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .site-nav ul {
    flex-direction: row;
    gap: var(--space-1);
    padding: 0;
  }

  .nav-cta { margin: 0; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding: var(--space-5) 0;
  text-align: center;
}

.hero-logo { margin: 0 auto var(--space-3); }

.hero .cluster { justify-content: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; text-align: left; }
  .hero-grid .hero-logo { margin: 0 0 var(--space-3); }
  .hero-grid .cluster { justify-content: flex-start; }
  .hero-grid .max-measure { margin-left: 0; margin-right: 0; }
}

/* ---- Cards ----------------------------------------------------------------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-tint);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.card h3 { margin-bottom: var(--space-1); }
.card p:last-child { margin-bottom: 0; }

.card--flat {
  background: var(--color-surface);
  border: none;
  box-shadow: none;
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: background-color 0.2s ease;
}

.card--flat:hover { background: var(--color-surface-hover); }
.card--flat h3 { margin-bottom: var(--space-1); }
.card--flat p:last-child { margin-bottom: 0; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* ---- Callout / Hinweisbox -------------------------------------------------- */

.callout {
  border: 2px dashed var(--color-accent-bright);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--color-accent-tint);
}

/* ---- Club-Liste ------------------------------------------------------------ */

.club-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
}

.club-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.club-chip img {
  width: 3.4rem;
  height: 1.8rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
}

.club-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent-bright);
  color: var(--color-text);
}

/* ---- Placeholder-Visuals ---------------------------------------------------- */

.placeholder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-accent-tint), transparent);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-3);
}

.placeholder-visual svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-accent-bright);
  opacity: 0.8;
}

.placeholder-visual span {
  font-size: 0.9rem;
}

.placeholder-visual--wide { aspect-ratio: 16 / 10; }

.placeholder-visual--phone {
  aspect-ratio: 9 / 16;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 28px;
}

/* ---- Screenshots -------------------------------------------------------------- */

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.shot--tablet {
  display: block;
  padding: 12px 12px 18px;
  background: #1C1F24;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.shot--tablet::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3A3F47;
}

.shot--tablet > img,
.shot--tablet > .hero-crossfade {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.shot-felt {
  background: radial-gradient(120% 140% at 50% 15%, #123524 0%, #0A2318 55%, #04140C 100%);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.shot-felt img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-crossfade {
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-crossfade img:nth-child(1) { animation: shot-crossfade-a 9s ease-in-out infinite; }
.hero-crossfade img:nth-child(2) { animation: shot-crossfade-b 9s ease-in-out infinite; }

@keyframes shot-crossfade-a { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes shot-crossfade-b { 0%, 45% { opacity: 0; } 55%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-crossfade img { animation: none; }
  .hero-crossfade img:nth-child(1) { opacity: 1; }
  .hero-crossfade img:nth-child(2) { opacity: 0; }
}

/* App+Web-Bildpaar (z.B. auf /vereinslogin) */

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.pair > .shot--tablet { width: 280px; flex: 0 0 auto; }
.pair > .shot { width: 340px; max-width: 100%; flex: 0 0 auto; }

.pair-arrow {
  flex: 0 0 auto;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-accent-bright);
}

@media (max-width: 640px) {
  .pair { flex-direction: column; }
  .pair-arrow { transform: rotate(90deg); }
}

/* ---- Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
  margin-top: var(--space-5);
}

.site-footer--minimal { border-top: none; }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-links, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.footer-links a, .footer-legal a {
  color: var(--color-text-muted);
}
.footer-links a:hover, .footer-legal a:hover { color: var(--color-text); text-decoration: none; }

.footer-copy {
  font-size: 0.85rem;
  color: #6B7280;
  margin: 0;
}
.footer-copy a { color: #6B7280; }

/* ---- Rechtsseiten (Impressum/Datenschutz/Loeschung) --------------------------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-2);
}

.legal h2 { margin-top: var(--space-4); }
.legal h2:first-child { margin-top: 0; }

.legal address { font-style: normal; }

/* ---- Scroll-Reveal ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Hell/Dunkel-Override, nur fuer Seiten mit body.theme-auto (/vereinslogin) - */

@media (prefers-color-scheme: light) {
  body.theme-auto {
    --color-accent-shade: #1F4E35;
    --color-accent-bright: #1E7A4C;
    --color-accent-tint: rgba(47, 107, 74, 0.10);
    --color-bg: #F3F6F3;
    --color-bg-alt: #E9EEE9;
    --color-surface: #FFFFFF;
    --color-surface-hover: #EEF2EE;
    --color-text: #16211B;
    --color-text-muted: #59645D;
    --color-border: #DCE3DC;
  }
}
