/* ==========================================================================
   1. FBC Griesheim – Stylesheet
   Farben angelehnt an das Vereinslogo (Grün, Gelb, Rot).
   ========================================================================== */

:root {
  --gruen-900: #0f2e1d;
  --gruen-800: #163f28;
  --gruen-700: #1f5636;
  --gruen-500: #2f7d4f;
  --gruen-100: #e6f1ea;
  --gelb: #f2c230;
  --gelb-hell: #fdf3d3;
  --rot: #c8102e;

  --text: #1d2621;
  --text-leise: #56635b;
  --flaeche: #ffffff;
  --hintergrund: #f6f7f4;
  --rand: #dfe4df;

  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgb(15 46 29 / 6%), 0 8px 24px rgb(15 46 29 / 8%);
  --breite: 1140px;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
}

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

a {
  color: var(--gruen-500);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gruen-700);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--gruen-900);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gelb);
  color: var(--gruen-900);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Kopfbereich -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rand);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gruen-900);
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--text-leise);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--gruen-900);
}

.nav-toggle svg {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover {
  background: var(--gruen-100);
  color: var(--gruen-800);
}

.site-nav a[aria-current="page"] {
  background: var(--gruen-700);
  color: #fff;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--flaeche);
    border-bottom: 1px solid var(--rand);
    box-shadow: var(--schatten);
    display: none;
  }

  .site-nav.offen {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav a {
    border-radius: var(--radius-klein);
    padding: 0.75rem 1rem;
  }
}

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

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgb(15 46 29 / 92%) 0%, rgb(15 46 29 / 70%) 45%, rgb(15 46 29 / 25%) 100%),
    url("../img/tag-der-vereine-1.jpg") center / cover no-repeat;
  padding: clamp(4rem, 12vw, 8rem) 0;
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
}

.hero .eyebrow {
  color: var(--gelb);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 52ch;
  color: rgb(255 255 255 / 90%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--gruen-900), var(--gruen-700));
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-hero p {
  color: rgb(255 255 255 / 85%);
  max-width: 60ch;
  margin: 0;
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gruen-500);
  margin-bottom: 0.75rem;
}

.page-hero .eyebrow {
  color: var(--gelb);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primaer {
  background: var(--gelb);
  color: var(--gruen-900);
}

.btn-primaer:hover {
  background: #ffd24d;
  color: var(--gruen-900);
}

.btn-sekundaer {
  border-color: rgb(255 255 255 / 70%);
  color: #fff;
}

.btn-sekundaer:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.btn-gruen {
  background: var(--gruen-700);
  color: #fff;
}

.btn-gruen:hover {
  background: var(--gruen-800);
  color: #fff;
}

/* --- Abschnitte --------------------------------------------------------- */

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-weiss {
  background: var(--flaeche);
}

section[id] {
  scroll-margin-top: 72px;
}

.section-kopf {
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.section-kopf p {
  color: var(--text-leise);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* --- Karten ------------------------------------------------------------- */

.card {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schatten);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.fakt {
  text-align: left;
}

.fakt-zahl {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gruen-700);
  line-height: 1.1;
}

.fakt-text {
  color: var(--text-leise);
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.news-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.news-card .inhalt {
  padding: 1.5rem;
}

.news-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-bottom: 0.35rem;
}

/* --- Trainingszeiten ---------------------------------------------------- */

.zeiten {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zeiten li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--rand);
}

.zeiten li:last-child {
  border-bottom: 0;
}

.zeiten .tag {
  font-weight: 600;
}

.zeiten .gruppe {
  color: var(--text-leise);
  text-align: right;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gelb-hell);
  color: #7a5b00;
  margin-bottom: 0.75rem;
}

.badge-gruen {
  background: var(--gruen-100);
  color: var(--gruen-800);
}

/* --- Personen ----------------------------------------------------------- */

.person {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.person img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  width: 100%;
  background: var(--gruen-100);
}

.person .platzhalter {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--gruen-100);
  color: var(--gruen-700);
  font-size: 3rem;
  font-weight: 800;
}

.person .inhalt {
  padding: 1.25rem 1rem 1.5rem;
}

.person .rolle {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gruen-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person h3 {
  margin: 0.25rem 0 0.75rem;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  word-break: break-all;
}

/* --- Dokumente ---------------------------------------------------------- */

.doku-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.doku-liste a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.15s ease;
}

.doku-liste a:hover {
  border-color: var(--gruen-500);
}

.doku-liste .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fde8eb;
  color: var(--rot);
  font-size: 0.7rem;
  font-weight: 800;
}

.doku-liste small {
  display: block;
  color: var(--text-leise);
  font-weight: 400;
}

/* --- Termine (Clubway) -------------------------------------------------- */

.termine-rahmen {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
}

.termine-rahmen iframe {
  display: block;
  width: 100%;
  border: 0;
}

.termine-link {
  margin-top: 1rem;
  text-align: right;
  font-size: 0.95rem;
}

.hinweis {
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--text-leise);
}

.hinweis strong {
  color: var(--text);
}

/* --- CTA ---------------------------------------------------------------- */

.cta {
  background: linear-gradient(135deg, var(--gruen-800), var(--gruen-500));
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta p {
  margin: 0;
  color: rgb(255 255 255 / 85%);
  max-width: 55ch;
}

/* --- Fließtext (Impressum, Datenschutz) --------------------------------- */

.prosa {
  max-width: 75ch;
}

.prosa h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.prosa h2:first-child {
  margin-top: 0;
}

.prosa h3 {
  margin-top: 1.6em;
}

.prosa address {
  font-style: normal;
}

.adresse {
  font-style: normal;
}

/* --- Fußbereich --------------------------------------------------------- */

.site-footer {
  background: var(--gruen-900);
  color: rgb(255 255 255 / 78%);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

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

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-unten {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-unten ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
