/* =========================================================
   SC Borussia 04 Fulda – Stylesheet
   Farben & Schriften zentral hier oben anpassen.
   ========================================================= */

/* Schriften liegen lokal in /fonts (kein Google-Server → DSGVO-freundlich) */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --red:       #d90528;  /* Rot aus dem Wappen */
  --red-dark:  #b0041f;
  --black:     #111111;
  --ink:       #1c1c1c;  /* Fließtext */
  --muted:     #6d6d6d;
  --line:      #e3e3e0;
  --light:     #f3f2ef;
  --white:     #ffffff;

  --font:      "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --max-width: 1180px;
  --tint:      .22;      /* Stärke des Rotfilters auf Fotos (0 = aus) */
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }

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

/* Überschrift mit Linie nach rechts */
.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 3px;
  background: currentColor;
  opacity: .12;
}
.section-title-small { font-size: 1.6rem; margin-bottom: 24px; }

/* Leichter Rotfilter über Fotos */
.tint { position: relative; }
.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: multiply;
  opacity: var(--tint);
  pointer-events: none;
  transition: opacity .3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.5em;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s;
}
.btn:hover { background: var(--red-dark); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #cfcfcf;
  transition: color .15s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .15s;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min(86vh, 760px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
/* Abdunklung von oben links, damit Text lesbar bleibt (Mannschaft unten bleibt frei) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,17,17,.85) 0%, rgba(17,17,17,.35) 55%, rgba(17,17,17,.1) 100%),
    linear-gradient(90deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 65%);
}
/* Rotfilter */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--red);
  mix-blend-mode: multiply;
  opacity: var(--tint);
}
.hero-content { position: relative; z-index: 2; padding-block: 64px 200px; }
.hero-crest { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: .92;
  margin-bottom: 18px;
}
.hero-sub { margin: 0 0 32px; font-size: 1.5rem; font-weight: 500; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* ---------- Sektionen ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--black); color: var(--white); }

/* ---------- Mannschaften (Startseite) ---------- */
.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.team-card { display: flex; flex-direction: column; background: var(--black); color: var(--white); }
/* Format des 1. Mannschaftsfotos, damit dort niemand abgeschnitten wird.
   Beim 2. Foto wird nur oben (Bäume) und unten (Rasen) etwas weggeschnitten. */
.team-card > img { width: 100%; aspect-ratio: 2048 / 1069; object-fit: cover; object-position: center 60%; }
.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 24px;
  border-bottom: 4px solid var(--red);
}
.team-card-league {
  font-size: .75rem;
  font-weight: 600;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.team-card-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.team-card-more { margin-top: 6px; color: var(--red); font-weight: 600; transition: color .15s; }
.team-card:hover .team-card-more { color: var(--white); }

/* ---------- Mannschaftsseiten ---------- */
.page-head { margin-bottom: 32px; }
.page-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 0; }

/* ---------- Mannschaftsfoto mit Infoleiste ---------- */
.team-photo img { width: 100%; }
.team-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}
.team-photo b {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Spiele & Tabelle ---------- */
/* Nächstes Spiel und Tabelle untereinander */
.fixtures {
  display: grid;
  gap: 56px;
}
.fixtures h3 { padding-bottom: 12px; border-bottom: 3px solid var(--red); }
.more-link { display: inline-block; margin-top: 14px; color: var(--red); font-weight: 600; }
.more-link:hover { text-decoration: underline; }
.widget-fallback {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed #bdbdbd;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Verein ---------- */
.club {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.club-text p { max-width: 60ch; }
.club-fans {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}
.club-side { position: sticky; top: 96px; }
.club-photo img { width: 100%; }
.club-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.club-photo figcaption a { text-decoration: underline; }

.comeback-title { margin: 36px 0 0; padding-bottom: 12px; border-bottom: 3px solid var(--red); }
.comeback-title--first { margin-top: 0; }
.club-btn { margin-top: 8px; }
.comeback { list-style: none; margin: 0; padding: 0; }
.comeback li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.comeback span {
  flex: 0 0 3.2em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--red);
}
.comeback li:last-child { font-weight: 600; }

/* ---------- Bildstrecke (volle Breite) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 22vw;
  gap: 4px;
  background: var(--black);
}
.gallery .tint { overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tint:hover::after { opacity: 0; }
.gallery-big { grid-column: span 2; grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

/* ---------- Junioren ---------- */
.team-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.team-split > img { width: 100%; }
.youth-text p { margin-top: 0; max-width: 46ch; font-size: 1.1rem; color: #cfcfcf; }
.youth-text .btn { margin-top: 12px; }

.team-rows > * {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.team-rows > :first-child { border-top: 3px solid var(--red); }
.section-dark .more-link { margin-top: 18px; }
.section-dark .team-rows > * { border-bottom-color: #2c2c2c; }

/* ---------- Mitmachen ---------- */
.join { background: var(--red); color: var(--white); padding: 64px 0; }
.join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.join h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.join p { margin: 0; }

/* ---------- Partner ---------- */
.sponsors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.placeholder {
  display: grid;
  place-items: center;
  height: 88px;
  background: var(--light);
  color: #a5a5a5;
  font-size: .85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 4px solid var(--red);
  color: #a9a9a9;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 48px;
}
.footer-logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 1.1rem; font-weight: 600; letter-spacing: .05em; }
.site-footer p { margin: 0 0 1em; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid #2a2a2a;
  font-size: .85rem;
  color: #777;
}
.footer-bottom a + a { margin-left: 20px; }

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 32px; }
.legal h2 {
  margin: 40px 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.legal a { color: var(--red); text-decoration: underline; }
.legal ul { padding-left: 1.2em; }
.legal-date { color: var(--muted); }
/* ---------- Ansprechpartner ---------- */
.people-page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 20px; }
.people-intro { max-width: 60ch; font-size: 1.1rem; margin: 0 0 16px; }
.people-intro a { color: var(--red); text-decoration: underline; }
.people-group { margin-top: 48px; }
.people-group h2 {
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 20px;
}
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--light);
}
.person-role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.person-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1.1;
}
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* Platzhalter: noch auszufüllen */
.todo { background: #fff1a8; color: var(--ink); padding: 0 4px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .club { grid-template-columns: 1fr; gap: 40px; }
  .club-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sponsors { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--black);
    border-bottom: 3px solid var(--red);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid #262626; font-size: 1.2rem; }
  .main-nav a::after { display: none; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-title { gap: 16px; margin-bottom: 28px; }
  .hero { min-height: min(78vh, 620px); }
  .hero-img { object-position: 30% center; }
  .hero::before { background: linear-gradient(180deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.55) 60%, rgba(17,17,17,.15) 100%); }
  .hero-content { padding-block: 40px 180px; }
  .hero-crest { width: 64px; height: 64px; }
  .team-split { grid-template-columns: 1fr; gap: 28px; }
  .team-cards { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; }
  .gallery-big { grid-row: span 1; }
  .gallery-wide { grid-column: span 1; }
  .team-photo figcaption { gap: 12px 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
