/* ============================================================
   SV Eilsdorf von 1958 e.V. — gemeinsames Stylesheet
   Eine Datei für alle Seiten. Farben und Maße stehen oben
   in :root — dort ändern, nicht weiter unten im Dokument.
   ============================================================ */

/* ---------- Lokal gehostete Schriften ---------- */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-v13-latin/barlow-v13-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-v13-latin/barlow-v13-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-v13-latin/barlow-v13-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin/barlow-condensed-v13-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin/barlow-condensed-v13-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-v20-latin/ibm-plex-mono-v20-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-v20-latin/ibm-plex-mono-v20-latin-500.woff2") format("woff2");
}

:root {
  --rot:        #790000;   /* Primär: Buttons, Links, Streifen */
  --rot-hover:  #A11414;   /* nur Hover von Primär */
  --rot-hell:   #DE5151;   /* Akzent NUR auf dunklem Grund */
  --dunkel:     #171414;   /* Hero-Overlay, Sponsorenband */
  --dunkler:    #0F0D0D;   /* Fußzeile */
  --text:       #313131;
  --text-grau:  #6B6664;
  --grau:       #706A68;
  --hell:       #F5F1EE;   /* Abschnittstrennung */
  --linie:      #EAE5E2;
  --rand:       #D8D2CF;
  --weiss:      #FDFCFB;

  --breite:     1200px;    /* Inhaltsbreite */
  --luft:       40px;      /* seitlicher Rand */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-hover); }

h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Wiederkehrende Bausteine ---------- */

.wrap {                      /* zentrierter Inhaltsbereich */
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--luft);
}

.kicker {                    /* kleine Auszeichnungszeile */
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rot);
  margin: 0;
}
.kicker--hell { color: var(--rot-hell); }
.kicker--grau { color: var(--grau); }

.btn {                       /* roter Button */
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--rot);
  color: #fff;
  padding: 13px 20px;
  border: 1.5px solid var(--rot);
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--rot-hover); border-color: var(--rot-hover); color: #fff; }

.btn--linie {                /* umrandeter Button */
  background: transparent;
  color: var(--text);
  border-color: var(--rand);
  font-weight: 600;
}
.btn--linie:hover { background: transparent; border-color: var(--rot); color: var(--rot); }

.abschnitt { padding: 64px 0; }
.abschnitt--hell   { background: var(--hell); }
.abschnitt--dunkel { background: var(--dunkel); color: #fff; }
.abschnitt--dunkel h2 { color: #fff; }

.kopfzeile {                 /* h2 mit Unterlinie und Link rechts */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--dunkel);
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.kopfzeile h2 { font-size: 32px; }
.kopfzeile a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.abschnitt--dunkel .kopfzeile { border-bottom-color: rgba(255,255,255,0.28); }
.abschnitt--dunkel .kopfzeile a { color: var(--rot-hell); }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--dunkel);
  color: #CFC9C7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: #CFC9C7; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 20px; }

/* ---------- Kopfzeile / Navigation ---------- */

.header {
  background: #fff;
  border-bottom: 1px solid #E6E1DE;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.header__logo { display: block; flex: none; }
.header__logo img { height: 58px; width: auto; }

.nav {
  display: flex;
  flex-wrap: nowrap;          /* darf nie umbrechen — sonst wächst die Kopfzeile */
  gap: 8px 18px;
  flex: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav a { color: var(--text); border-bottom: 3px solid transparent; padding-bottom: 2px; }
.nav a:hover { color: var(--rot); }
.nav a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }

.header__aktionen { display: flex; gap: 10px; flex: none; }
.header__aktionen .btn { font-size: 17px; padding: 10px 18px; }

/* Menü-Umschalter, nur mobil sichtbar */
.nav-schalter {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--rand);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

/* ---------- Hero: nächstes Spiel ---------- */

.hero {
  position: relative;
  background: var(--dunkel) center top/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {              /* Verlauf: links dunkel, rechts Bild sichtbar */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dunkel) 0%, rgba(23,20,20,0.55) 55%, rgba(23,20,20,0) 92%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  min-height: 440px;
  padding-top: 44px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: end;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); line-height: 0.94; max-width: 660px; }
.hero h1 .vs { color: var(--rot-hell); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  margin-top: 16px;
}
.hero__text > .kicker { color: var(--rot-hell); margin-bottom: 16px; }

.karte {                     /* weiße Karte im Hero */
  background: #fff;
  color: var(--text);
  padding: 24px 26px;
}
.karte .kicker { margin-bottom: 14px; }
.uhr {
  display: flex;
  gap: 20px;
  align-items: baseline;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  margin-bottom: 18px;
}
.uhr span { font-size: 17px; color: var(--grau); margin-left: 3px; }
.karte__aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Ergebnis-Streifen ---------- */

.streifen { background: var(--rot); color: #fff; }
.streifen .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 0;
}
.streifen__feld {
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.streifen__feld:first-child { padding-left: 0; }
.streifen__feld:last-child  { padding-right: 0; border-right: none; }
.streifen__feld .kicker { color: rgba(255,255,255,0.66); margin-bottom: 5px; }
.streifen__wert {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 27px;
  text-transform: uppercase;
  line-height: 1.05;
}
.streifen__wert--form { letter-spacing: 0.14em; }

/* ---------- Zweispalter ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}
.duo--55 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.duo--3070 { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.duo--bild { align-items: center; }
@media (min-width: 768px) {
  .verein-bild { max-height: 460px; }
}

/* ---------- Tabelle ---------- */

.tabelle { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tabelle th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grau);
  text-align: right;
  padding: 0 6px 8px;
}
.tabelle th:nth-child(1), .tabelle th:nth-child(2) { text-align: left; }
.tabelle td {
  padding: 11px 6px;
  border-top: 1px solid var(--linie);
  text-align: right;
  color: var(--text-grau);
}
.tabelle td:nth-child(2) { text-align: left; color: var(--text); font-weight: 500; }
.tabelle td:first-child {
  text-align: left;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--grau);
  width: 34px;
}
.tabelle td:last-child { font-weight: 700; color: var(--text); }
.tabelle tr.eigen { background: var(--hell); }
.tabelle tr.eigen td:nth-child(2) { color: var(--rot); font-weight: 700; }

/* ---------- Spielliste ---------- */

.spiel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--linie);
}
.spiel__datum {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  line-height: 1.1;
}
.spiel__zeit { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--grau); }
.spiel__gegner { font-weight: 600; }
.spiel__wettbewerb { font-size: 13.5px; color: var(--grau); }
.spiel__ort {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: #F2EDEA;
  color: var(--text-grau);
  white-space: nowrap;
}
.spiel__ergebnis {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 21px;
  white-space: nowrap;
}

/* ---------- Karten-Raster (News, Kader) ---------- */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.raster--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.beitrag { background: #fff; display: flex; flex-direction: column; }
.beitrag__bild { aspect-ratio: 3 / 2; background: var(--linie); object-fit: cover; width: 100%; }
.beitrag__inhalt { padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.beitrag h3 { font-size: 25px; line-height: 1.08; }
.beitrag p { font-size: 14.5px; line-height: 1.55; color: var(--text-grau); }

/* ---------- Sponsoren ---------- */

.sponsoren {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.sponsoren a, .sponsoren .bild-vergroessern {
  background: #fff;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  filter: grayscale(100%);
  transition: filter 0.2s;
}
.sponsoren a:hover, .sponsoren .bild-vergroessern:hover { filter: grayscale(0); }
.sponsoren .bild-vergroessern.offen { height: auto; filter: none; }

/* ---------- Sponsoren-Karten (mit Adresse/Kontakt) ---------- */

.sponsor-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.sponsor-karte { background: #fff; display: flex; flex-direction: column; }
.sponsor-karte__logo {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--linie);
}
.sponsor-karte__logo img { max-width: 100%; max-height: 70px; object-fit: contain; }
.sponsor-karte__inhalt { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.sponsor-karte__inhalt h3 { font-size: 20px; margin: 0 0 6px; }
.sponsor-karte__inhalt p { font-size: 14.5px; line-height: 1.6; color: var(--text-grau); margin: 0; }
.sponsor-karte__inhalt .btn { margin-top: 14px; align-self: flex-start; }

.sponsor-karte__logo .bild-vergroessern { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sponsor-karte__logo .bild-vergroessern img { max-height: 70px; width: auto; object-fit: contain; }
.sponsor-karte__logo .bild-vergroessern.offen img { max-height: 92vh; max-width: 92vw; width: auto; height: auto; object-fit: contain; }
.sponsoren img { max-height: 100%; width: auto; object-fit: contain; }

.sportpark-bild .bild-vergroessern { width: 100%; height: 100%; display: block; }
.sportpark-bild .bild-vergroessern img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sportpark-bild .bild-vergroessern.offen img { width: auto; height: auto; max-width: 92vw; max-height: 92vh; object-fit: contain; }

/* ---------- Platzhalter für fehlende Bilder ---------- */

.platzhalter {
  background: repeating-linear-gradient(135deg, #E9E3E0 0 8px, #DED6D2 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: #7D7573;
  min-height: 160px;
}

/* ---------- Fußzeile ---------- */

.footer {
  background: var(--dunkler);
  color: #B8B2B0;
  font-size: 14.5px;
  line-height: 1.9;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer a { color: #B8B2B0; }
.footer a:hover { color: #fff; }
.footer h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--rot-hell);
  margin-bottom: 6px;
}
.footer__logo img { height: 44px; width: auto; margin-bottom: 10px; }

.nach-oben {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  background: rgba(23, 20, 20, 0.45);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 500;
}
.nach-oben:active { background: rgba(23, 20, 20, 0.65); }
@media (max-width: 767px) {
  .nach-oben { display: flex; }
}
.footer__klein { color: #8E8987; font-size: 13.5px; }

/* ---------- Innere Seiten ---------- */

.seitenkopf {
  background: var(--dunkel);
  color: #fff;
  padding: 56px 0 48px;
}
.seitenkopf h1 { font-size: clamp(38px, 5vw, 62px); }
.seitenkopf .kicker { color: var(--rot-hell); margin-bottom: 14px; }
.seitenkopf p { color: rgba(255,255,255,0.82); max-width: 640px; margin-top: 16px; }

.prosa { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prosa h2 { font-size: 30px; margin-top: 18px; }
.prosa h3 { font-size: 22px; margin-top: 12px; }
.prosa ul { margin: 0; padding-left: 22px; color: var(--text-grau); }
.prosa li { margin-bottom: 6px; }
.prosa a { text-decoration: underline; }

/* ---------- Kontaktformular ---------- */

.formular { max-width: 640px; background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.formular__feld { display: flex; flex-direction: column; }
.formular label { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-grau); margin-bottom: 8px; }
.formular input, .formular textarea {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--weiss);
  border: 1.5px solid var(--rand);
  border-radius: 0;
  box-shadow: none;
  padding: 13px 14px;
}
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--rot); }
.formular textarea { resize: vertical; min-height: 220px; line-height: 1.5; }
.formular__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formular__ehre { position: absolute; left: -9999px; top: -9999px; } /* Honeypot-Feld gegen Spam-Bots */

.hinweis {                  /* gelb markierter Redaktionshinweis */
  background: #FFF8E1;
  border-left: 3px solid #C9A227;
  padding: 14px 16px;
  font-size: 14.5px;
  color: #5C4B12;
}

.einbettung {               /* Rahmen für FuPa-Iframes */
  background: #fff;
  border: 1px solid var(--linie);
  min-height: 200px;
}
.einbettung iframe { width: 100%; border: 0; display: block; }

/* ---------- Kader ---------- */

.spieler {
  border-top: 1px solid var(--linie);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.spieler__name { font-weight: 600; }
.spieler__pos { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }

/* ============================================================
   Mobil
   ============================================================ */

@media (max-width: 1024px) {
  :root { --luft: 24px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; }
  .karte { max-width: 460px; }
  .duo--55 { grid-template-columns: minmax(0, 1fr); }
  .duo--3070 { grid-template-columns: minmax(0, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}

/* Klappmenü: greift, sobald die Kopfzeile in einer Reihe nicht mehr passt.
   Die Desktop-Reihe braucht rund 950 px — mit Sicherheitsabstand darunter Burger. */
@media (max-width: 1080px) {
  .header .wrap { flex-wrap: wrap; gap: 14px; }
  .nav-schalter { display: block; }
  .nav {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 21px;
    text-align: right;
    border-top: 1px solid var(--linie);
    padding-top: 12px;
  }
  .nav a { padding: 10px 0; border-bottom: none; }
  .header__aktionen { display: none; width: 100%; flex-direction: column; }
  /* aufgeklappt: das <body> bekommt per Knopfdruck die Klasse .menu-offen */
  body.menu-offen .nav,
  body.menu-offen .header__aktionen { display: flex; }
  body.menu-offen .header__aktionen .btn { width: 100%; }
}

@media (max-width: 767px) {
  .topbar { display: none; }

  .streifen .wrap { grid-template-columns: 1fr 1fr; }
  .streifen__feld { border-right: none; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .streifen__feld:nth-child(1), .streifen__feld:nth-child(2) { border-top: none; }
  .streifen__feld:nth-child(odd) { padding-right: 16px; }

  .abschnitt { padding: 44px 0; }
  .duo { gap: 32px; }
  .formular__zeile { grid-template-columns: 1fr; }
  .karte__aktionen { grid-template-columns: 1fr; }

  /* Tabelle auf drei Spalten kürzen */
  .tabelle th:nth-child(3), .tabelle td:nth-child(3),
  .tabelle th:nth-child(4), .tabelle td:nth-child(4) { display: none; }

  .spiel { grid-template-columns: 72px minmax(0, 1fr); }
  .spiel__ort, .spiel__ergebnis { grid-column: 2; justify-self: start; }
}

/* ============================================================
   Druck
   ============================================================ */

@media print {
  .topbar, .header, .footer, .hero::after { display: none; }
  body { background: #fff; }
  .abschnitt { padding: 24px 0; }
}

/* ---------- Bild zum Vergrößern (Klick zum Öffnen/Schließen) ---------- */

.bild-vergroessern { cursor: zoom-in; }
.bild-vergroessern img { display: block; width: 100%; height: auto; }
.bild-vergroessern.offen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 16, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.bild-vergroessern.offen img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}
