/* BSC Biendorf — Abteilungsseite
   ===================================================================
   Baut auf start.css auf und benutzt ausschließlich dessen Mittel:
   --gruen, --sand, --radius, --ring, --heben, --schwebt, .kopfzeile,
   .abschnitt, .kennzahlen. Nichts hier führt eine neue Farbe ein —
   außer den drei Signalfarben für Sieg/Remis/Niederlage, die es auf
   der Startseite schlicht noch nicht gab.
   =================================================================== */

/* Seitenkopf, Infokarte (Trainingskarte), Sinnbilder, .unsichtbar:
   gemeinsame Bausteine in ui.css. */

/* Das Bild wird ganz gezeigt, nicht beschnitten (15.10.2026): Die Fotos
   sind meist Mannschaftsposter mit Schrift, Banner oder Sponsorenleiste,
   der Turnzwerge-Flyer ist hochkant — ein fester Ausschnitt (vorher 16:7)
   hat Köpfe und Text abgeschnitten. Höhe begrenzt auf den Bildschirm. */
.abt-bild {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 760px);
  margin: 30px auto 0;
  border-radius: var(--radius);
  box-shadow: var(--heben), var(--ring);
}

/* Der Spielblock folgt direkt — etwas weniger Luft darüber */
.abt .spielband-abschnitt { padding-top: clamp(40px, 5vw, 60px); }

/* ---------- Tabelle & Spiele ---------- */

.abt-liga { padding-top: 0; }

.liga-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.liga-spalte { display: grid; gap: 22px; }

.liga-karte {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--heben), var(--ring);
  padding: 8px 0 4px;
  overflow: hidden;
}
.karten-titel {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 12px 20px 4px;
}

/* Tabelle */
.liga-tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.liga-tabelle th {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grau);
  padding: 12px 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--rahmen);
}
.liga-tabelle abbr { text-decoration: none; cursor: help; }
.liga-tabelle td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid #EFEFEA;
  white-space: nowrap;
}
.liga-tabelle tr:last-child td { border-bottom: 0; }
.liga-tabelle .pl { width: 44px; padding-left: 18px; font-weight: 700; color: var(--grau); }
.liga-tabelle .team { text-align: left; width: 100%; }
/* Flex nur INNERHALB der Zelle — eine Tabellenzelle selbst auf flex zu
   setzen nimmt sie aus dem Tabellenraster, die Zeilen verrutschen. */
.liga-tabelle td.team { white-space: normal; line-height: 1.25; }
.liga-tabelle .team-inhalt { display: flex; align-items: center; gap: 10px; }
/* „SV Wolmirsleben/Unseburg/Tarthun" hat kein einziges Leerzeichen —
   ohne diese Zeile schiebt der Name die Punkte aus der Tabelle. */
.liga-tabelle .team-inhalt span { min-width: 0; overflow-wrap: anywhere; }
.liga-tabelle .pkt { padding-right: 18px; font-weight: 800; color: var(--text); }
.liga-tabelle tr.oben .pl { color: var(--gruen-hell); }
.liga-tabelle tr.unten .pl { color: var(--signal); }

.liga-tabelle tr.ist-wir td {
  background: #E9F4EE;
  font-weight: 700;
  color: var(--gruen);
  border-bottom-color: #d3e8dc;
}
.liga-tabelle tr.ist-wir .pl { box-shadow: inset 4px 0 0 var(--gruen); color: var(--gruen); }
.liga-tabelle tr.ist-wir .pkt { color: var(--gruen); }

.wappen {
  flex: none;
  width: 24px; height: 24px;
  object-fit: contain;
}
.wappen.leer {
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--grau);
  font-size: .72rem; font-weight: 700;
}

.liga-tabelle .quelle {
  margin: 0;
  padding: 10px 18px 8px;
  font-size: .76rem;
  color: var(--grau);
  border-top: 1px solid #EFEFEA;
}

/* Spielliste */
.spielliste { list-style: none; margin: 0; padding: 0 0 6px; }
.spielliste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  border-top: 1px solid #EFEFEA;
}
.spielliste li:first-child { border-top: 0; }
.spielliste .datum {
  width: 46px;
  text-align: center;
  background: var(--sand);
  border-radius: 8px;
  padding: 5px 0 4px;
  line-height: 1.05;
}
.spielliste .datum b { display: block; font-size: 1.12rem; color: var(--gruen); }
.spielliste .datum span {
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--grau);
}
.spielliste .gegner {
  display: block;
  font-weight: 600;
  line-height: 1.3;
  hyphens: auto;
  overflow-wrap: break-word;
}
.spielliste .wo { display: block; font-size: .8rem; color: var(--grau); }
.spielliste .stand { display: flex; align-items: center; gap: 8px; }
.spielliste .tore,
.spielliste .zeit {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.spielliste .zeit { color: var(--gruen); font-weight: 700; }

.ausgang {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  font-size: .74rem; font-weight: 800;
  color: #fff;
}
.ausgang-s { background: var(--gruen-hell); }
.ausgang-u { background: #9A9A93; }
.ausgang-n { background: var(--signal); }

/* ---------- Torschützen & Vorlagengeber ---------- */

.bestenlisten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.bestenliste {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--heben), var(--ring);
  padding: 22px 22px 12px;
}
.bestenliste h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 10px;
}
.bestenliste ol { list-style: none; margin: 0; padding: 0; }
.bestenliste li {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #EFEFEA;
}
.bestenliste li:first-child { border-top: 0; }
.bestenliste .rang { font-weight: 800; color: var(--grau); text-align: center; }
.bestenliste .name b { display: block; line-height: 1.25; }
.bestenliste .name small { color: var(--grau); font-size: .8rem; }
.bestenliste .wert { text-align: right; line-height: 1; }
.bestenliste .wert b {
  display: block;
  font-size: 1.5rem; font-weight: 800;
  color: var(--gruen);
  font-variant-numeric: tabular-nums;
}
.bestenliste .wert small {
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--grau);
}

/* Platz eins bekommt die Bühne */
.bestenliste li.erster {
  background: linear-gradient(to right, #E9F4EE, #fff);
  margin: 0 -22px;
  padding: 14px 22px;
  border-radius: 8px;
}
.bestenliste li.erster .rang { color: var(--gruen); font-size: 1.1rem; }
.bestenliste li.erster .name b { font-size: 1.08rem; color: var(--gruen); }
.bestenliste li.erster .wert b { font-size: 2.1rem; }

/* Porträts: klein rund in Listen, groß im Kader */
.portrait {
  display: block;
  object-fit: cover;
  object-position: center 20%;
  background: var(--sand);
}
.portrait.klein { width: 40px; height: 40px; border-radius: 50%; }
.portrait.gross { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gruen); }
.portrait.leer {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0A7A3D, #004824);
  color: rgba(255, 255, 255, .85);
  font-weight: 700;
  letter-spacing: .04em;
}
.portrait.klein.leer, .portrait.gross.leer { font-size: .85rem; }

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

.kader-gruppe + .kader-gruppe { margin-top: clamp(28px, 3.5vw, 40px); }
.kader-gruppe h3 {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.15rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gruen);
}
.kader-gruppe h3 small {
  font-size: .8rem; font-weight: 700; color: var(--grau);
}

.kader-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}

.spielerkarte {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--heben), var(--ring);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.spielerkarte:hover { transform: translateY(-3px); box-shadow: var(--schwebt), var(--ring); }

.portrait.karte {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
}
.portrait.karte.leer { font-size: 2rem; }

.spielerkarte .text { padding: 11px 13px 12px; }
.spielerkarte .vorname,
.spielerkarte .rolle {
  display: block;
  font-size: .8rem;
  color: var(--grau);
  line-height: 1.25;
}
.spielerkarte .rolle {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gruen-hell);
  margin-bottom: 2px;
}
.spielerkarte b {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--gruen);
  overflow-wrap: anywhere;
}
.spielerkarte .werte {
  display: flex; gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #EFEFEA;
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.spielerkarte .werte i {
  font-style: normal; font-weight: 600;
  color: var(--grau); font-size: .72rem;
}

.spielerkarte .binde,
.spielerkarte .nummer {
  position: absolute;
  top: 10px;
  display: grid; place-items: center;
  min-width: 30px; height: 30px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: .78rem; font-weight: 800;
}
.spielerkarte .binde { left: 10px; background: var(--gruen); color: #fff; box-shadow: 0 0 0 2px #fff; }
.spielerkarte .nummer { right: 10px; background: rgba(255, 255, 255, .92); color: var(--gruen); }

/* ---------- Beiträge ---------- */

.abt-leer { color: var(--grau); margin: 0; }
.abt-leer a { font-weight: 700; text-decoration: none; }

/* ---------- Mannschaftsfotos: Einstieg ---------- */

.fotos-band {
  background: linear-gradient(to bottom, #00552d, #003b1d);
  color: #fff;
  padding: clamp(46px, 6vw, 72px) 0;
}
.fotos-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.fotos-band .eyebrow {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #8ee0ad;
  margin-bottom: 8px;
}
.fotos-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0 0 10px; }
.fotos-band p { color: rgba(255, 255, 255, .75); margin: 0 0 22px; }
.fotos-band .btn.hell { border-color: #fff; }
.fotos-band .btn.hell:hover { background: var(--sand); }

.fotos-band-bilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fotos-band-bilder img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.fotos-band-bilder:hover img { opacity: 1; }
.fotos-band-bilder img:nth-child(odd) { transform: translateY(-8px); }

/* ---------- Kleinere Bildschirme ---------- */

/* Unter 1100 px hat die Tabelle neben den Spielen keinen Platz mehr für
   alle neun Spalten — dann untereinander, die Spiele zweispaltig. */
@media (max-width: 1100px) {
  .liga-raster { grid-template-columns: 1fr; }
  .liga-spalte { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .liga-spalte { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bestenlisten { grid-template-columns: 1fr; }
  .fotos-band .wrap { grid-template-columns: 1fr; }
  .liga-tabelle .breit { display: none; }
  .kader-raster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .liga-tabelle { font-size: .9rem; }
  .liga-tabelle .pl { padding-left: 12px; width: 34px; }
  .liga-tabelle .pkt { padding-right: 12px; }
  .spielliste li { padding: 10px 14px; gap: 10px; }
  .kader-raster { grid-template-columns: 1fr 1fr; }
}

/* ===================================================================
   Mannschaftsfotos — /abteilungen/<abteilung>/fotos
   =================================================================== */


.saison-sprung {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 22px;
}
.saison-sprung a {
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background .18s ease, border-color .18s ease;
}
.saison-sprung a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.galerie { padding: clamp(28px, 4vw, 44px) 0 clamp(50px, 6vw, 80px); }
.galerie .zurueck { margin: 0 0 10px; }
.galerie .zurueck a { font-weight: 700; text-decoration: none; }

.saison { padding-top: clamp(26px, 3.5vw, 40px); scroll-margin-top: 90px; }
.saison h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gruen);
}
.saison h2 small { font-size: .8rem; font-weight: 700; color: var(--grau); letter-spacing: 0; }

.saison-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
/* Ein einzelnes Foto nicht auf Drittelbreite verloren stehen lassen */
.saison-raster.einzeln { grid-template-columns: minmax(0, 760px); }

.foto {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--heben), var(--ring);
  transition: box-shadow .22s ease, transform .22s ease;
}
.foto:hover { transform: translateY(-3px); box-shadow: var(--schwebt), var(--ring); }
/* Ungeschnitten: Auf vielen Fotos steht unten ein Banner mit Saison und
   Sponsor — ein fester Bildausschnitt würde genau das abschneiden. */
.foto img { width: 100%; height: auto; }
.saison-raster { align-items: start; }

/* Großansicht */
.grossansicht {
  border: 0; padding: 0; margin: auto;
  max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
  background: transparent;
}
.grossansicht::backdrop { background: rgba(0, 20, 10, .92); }
.grossansicht figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 70px 28px;
  pointer-events: none;
}
.grossansicht img {
  max-width: 100%; max-height: calc(100vh - 130px);
  width: auto; height: auto;
  border-radius: 8px;
  pointer-events: auto;
}
.grossansicht figcaption { color: rgba(255, 255, 255, .75); margin-top: 14px; font-size: .9rem; }
.grossansicht .gz {
  position: fixed;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}
.grossansicht .gz:hover { background: var(--gruen-hell); border-color: var(--gruen-hell); }
.grossansicht .schliessen { top: 16px; right: 16px; }
.grossansicht .zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.grossansicht .vor { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .saison-raster { grid-template-columns: 1fr; }
  .grossansicht figure { padding: 60px 10px 20px; }
  .grossansicht .zurueck, .grossansicht .vor { top: auto; bottom: 16px; transform: none; }
}


/* Rückweg zur Übersicht aller Abteilungen, im grünen Kopf */
.sk-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.sk-zurueck:hover { background: rgba(255, 255, 255, .22); }
