/* =============================================================
   TSV Sindelfingen – Stylesheet
   Light Edition · Mobile First · Systemfonts · Ohne Frameworks
   ============================================================= */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Markenfarben (aus dem Vereinslogo abgeleitet) */
  --bg:            #ffffff;   /* Seitenhintergrund */
  --bg-surface:    #fff3f4;   /* Karten / Panels – leichter Rotstich statt Grau */
  --bg-surface-2:  #ffffff;   /* Karten-Fläche */
  --line:          rgba(20, 10, 10, 0.09);
  --line-strong:   rgba(20, 10, 10, 0.2);

  --fg:            #1a1414;   /* Haupttext */
  --fg-muted:      #5b5150;   /* gedämpfter Text */
  --fg-faint:      #8a807e;

  --red:           #a40614;
  --red-bright:    #e21326;
  --white:         #ffffff;
  --black:         #0d0d0d;
  --black-surface: #171717;
  --line-on-black: rgba(255, 255, 255, 0.14);

  --gradient-red:   linear-gradient(135deg, var(--red-bright) 0%, var(--red) 55%, #7a0410 100%);
  --gradient-dark:  linear-gradient(150deg, var(--red-bright) 0%, var(--red) 65%, #6e040e 100%);

  /* Typografie (Systemfonts, keine externen Ressourcen) */
  --font-display: -apple-system, "Segoe UI Semibold", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  /* Sonstiges */
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 30px 60px -25px rgba(0, 0, 0, 0.65);
  --shadow-soft-sm: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(226, 19, 38, 0.35), 0 20px 45px -20px rgba(226, 19, 38, 0.35);
  --max-width: 1160px;
  --transition-fast: 180ms ease;
  --transition-medium: 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg);
}

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

/* Sichtbarer Fokus für Tastaturnutzung (Barrierefreiheit) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Layout-Hilfen ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-bright);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-bright);
  display: inline-block;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 2px solid var(--red-bright);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-logo {
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--line-on-black);
  padding: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--white);
  border-color: var(--red-bright);
}

.nav-cta {
  color: var(--red-bright) !important;
}

.nav-cta:hover {
  color: var(--white) !important;
}

/* ----- Mobiler Menü-Button (Hamburger) ----- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-on-black);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-burger {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ----- Vereinfachte Nav auf Unterseiten (Impressum / Datenschutz) ----- */
.main-nav--simple .nav-home {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.main-nav--simple .nav-home:hover {
  color: var(--red-bright);
}

/* Auf kleinen Bildschirmen: Vereinsname ausblenden, Navigation als Icon/Burger-Menü */
@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  #main-nav.main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--black);
    border-bottom: 2px solid var(--red-bright);
    box-shadow: var(--shadow-soft-sm);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--transition-medium), visibility 0s linear 480ms;
  }

  #main-nav.main-nav.is-open {
    max-height: 400px;
    visibility: visible;
    transition: max-height var(--transition-medium), visibility 0s linear 0s;
  }

  #main-nav.main-nav a {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--line-on-black);
    border-left: 2px solid transparent;
  }

  #main-nav.main-nav a:hover {
    border-bottom-color: var(--line-on-black);
    border-left-color: var(--red-bright);
    background: var(--black-surface);
  }

  /* Icon-only Nav auf den Rechtsseiten – kein Burger nötig, nur ein Link */
  .main-nav--simple {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    display: flex;
  }

  .main-nav--simple .nav-home {
    padding: 0.5rem;
    border: 1px solid var(--line-on-black);
    border-radius: 10px;
  }

  .main-nav--simple .nav-home-text {
    display: none;
  }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-5);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 70% at 88% -10%, rgba(226, 19, 38, 0.28) 0%, transparent 62%),
    radial-gradient(55% 55% at -5% 105%, rgba(226, 19, 38, 0.14) 0%, transparent 60%),
    var(--bg);
  z-index: -2;
}

.hero-inner {
  display: grid;
  gap: var(--space-4);
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  margin-top: var(--space-2);
  animation: rise-in var(--transition-medium) both;
  animation-delay: 100ms;
}

.accent-text {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  color: var(--fg-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: var(--space-2);
  animation: rise-in var(--transition-medium) both;
  animation-delay: 200ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  animation: rise-in var(--transition-medium) both;
  animation-delay: 280ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: var(--shadow-soft-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* Diagonales Band – Signatur-Element, greift den Halbmond-Schwung des Logos auf */
.sash {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -4%;
  height: 1px;
  background: var(--line-strong);
  transform: rotate(-1.4deg);
  z-index: -1;
}

.sash::after {
  content: "";
  position: absolute;
  inset: 0;
  top: -2px;
  height: 2px;
  background: var(--gradient-red);
  width: 34%;
}

/* ---------- 6. Info-Section ---------- */
.info-section {
  padding-block: var(--space-5);
}

.info-inner {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 780px) {
  .info-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.info-section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  max-width: 14ch;
}

.section-lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ---------- 7. Karten / Angebote ---------- */
.cards-section {
  background: var(--black);
  padding-block: var(--space-5) var(--space-6);
  border-top: 2px solid var(--red-bright);
  border-bottom: 2px solid var(--red-bright);
}

.cards-section .section-head {
  text-align: center;
  margin-bottom: var(--space-4);
}

.cards-section .section-head .eyebrow {
  justify-content: center;
}

.cards-section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--white);
}

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

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

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

.card {
  background: var(--black-surface);
  border: 1px solid var(--line-on-black);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--red-bright);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* Scroll-Reveal-Zustand (wird per JS aktiviert, ohne JS bleibt Inhalt sichtbar) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

/* ---------- 8. Kontakt ---------- */
.contact-section {
  padding-block: var(--space-6);
  background: var(--gradient-dark);
  color: var(--white);
}

.contact-inner {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 780px) {
  .contact-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.contact-section .eyebrow,
.contact-section .eyebrow::before {
  color: var(--white);
  background: var(--white);
}

.contact-text h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--white);
}

.contact-text p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}

.contact-card {
  font-style: normal;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.contact-card p {
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-club {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.contact-card a {
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color var(--transition-fast);
}

.contact-card a:hover {
  border-color: var(--white);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  padding-block: var(--space-3);
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  border-top: 2px solid var(--red-bright);
}

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

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  gap: var(--space-3);
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--white);
}

/* ---------- 10. Einfache Unterseiten (Impressum / Datenschutz) ---------- */
.legal-page {
  padding-block: var(--space-5);
}

.legal-page .container {
  max-width: 780px;
}

.legal-page h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: var(--space-4);
  color: var(--fg);
}

.legal-page p,
.legal-page li {
  color: var(--fg-muted);
}

.legal-page a {
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

.legal-page a:hover {
  border-color: var(--red-bright);
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: var(--space-2);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-weight: 600;
  color: var(--red-bright);
  text-decoration: none;
  border-bottom: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- 11. Cursor & Mikro-Interaktionen ---------- */

/* Nativen Cursor nur ausblenden, wenn die JS-Kugel läuft (Maus vorhanden,
   Bewegung gewünscht) – body bekommt die Klasse per Skript. */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn,
body.has-custom-cursor input,
body.has-custom-cursor textarea {
  cursor: none;
}

.cursor-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
  transition: opacity 240ms ease,
              width 280ms cubic-bezier(0.22, 1, 0.36, 1),
              height 280ms cubic-bezier(0.22, 1, 0.36, 1),
              margin 280ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 280ms ease;
}

.cursor-ball.is-visible {
  opacity: 1;
}

.cursor-ball.is-active {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  filter: drop-shadow(0 0 22px rgba(226, 19, 38, 0.55)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.cursor-ball.is-down {
  filter: drop-shadow(0 0 12px rgba(226, 19, 38, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.cursor-ball img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Karten: Spotlight folgt der Maus, dezentes 3D-Tilt */
.card {
  position: relative;
  overflow: hidden;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 19, 38, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card > * {
  position: relative;
}

/* Buttons: leichter Magnet-Effekt per Inline-Transform (JS), Grundübergang hier */
.btn {
  will-change: transform;
}

