/* ==========================================================================
   SV Ihme-Roloven – Gestaltung
   Mobil zuerst. Desktop ab 900 px als Erweiterung.
   ========================================================================== */

/* Schriften, lokal ausgeliefert ----------------------------------------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------ */

:root {
  --gruen: #427B39;
  --gruen-dunkel: #2E5628;
  --gruen-sehr-dunkel: #1F3A1B;
  --rot: #E74242;          /* nur Fläche, nie Text */
  --rot-text: #C62828;
  --sandweiss: #F4F7F3;
  --weiss: #FFFFFF;
  --text: #1A1A1A;
  --text-sekundaer: #4A4A4A;

  --rahmen: #E2E8E0;
  --rahmen-kraeftig: #D8E2D5;
  --linie-fein: #EDF1EB;
  --platzhalter-a: #DCE3DA;
  --platzhalter-b: #D2DBD0;

  /* Text auf Dunkelgrün (#1F3A1B): alle ≥ 5,9:1 */
  --auf-dunkel: #D5E3D1;
  --auf-dunkel-leise: #9FBA97;
  /* Text auf Wappen-Grün (#427B39): nur Weiß erreicht 4,5:1 */
  --auf-gruen: #FFFFFF;
  /* Text auf Bildverlauf */
  --auf-bild: #EDF2EB;
  --auf-bild-label: #CFE0CA;

  --verlauf-bild: linear-gradient(to top, rgba(18, 28, 16, .86) 0%, rgba(18, 28, 16, .45) 46%, rgba(18, 28, 16, 0) 78%);
  --verlauf-kachel: linear-gradient(to top, rgba(18, 28, 16, .88) 0%, rgba(18, 28, 16, .30) 52%, rgba(18, 28, 16, 0) 80%);

  --schrift-titel: "Archivo", system-ui, sans-serif;
  --schrift-text: "Source Sans 3", system-ui, sans-serif;

  --rand: 20px;
  --abstand-sektion: 32px;
  --radius-klein: 10px;
  --radius-karte: 14px;
  --radius-gross: 16px;
  --breite-max: 1280px;
  --tap: 48px;
}

@media (min-width: 900px) {
  :root {
    --rand: 40px;
    --abstand-sektion: 56px;
  }
}

/* Grundlagen -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 400 18px/1.6 var(--schrift-text);
}

@media (min-width: 900px) {
  body {
    font-size: 20px;
    line-height: 1.65;
  }
}

/* Gilt auch für SVG, das das hidden-Attribut sonst ignoriert */
[hidden] {
  display: none !important;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  color: var(--gruen-sehr-dunkel);
  text-wrap: balance;
}

h2 {
  font-size: 25px;
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

@media (min-width: 900px) {
  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 24px;
  }
}

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

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

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

:focus-visible {
  outline: 3px solid var(--gruen-sehr-dunkel);
  outline-offset: 3px;
}

/* Auf dunklen Flächen und Bildern braucht der Fokus Weiß */
.site-header :focus-visible,
.site-footer :focus-visible,
.buehne :focus-visible,
.kachel:focus-visible,
.einstieg--primaer:focus-visible {
  outline-color: var(--weiss);
  box-shadow: 0 0 0 6px var(--gruen-sehr-dunkel);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--weiss);
  color: var(--gruen-sehr-dunkel);
  font-weight: 700;
  border-radius: var(--radius-klein);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--breite-max);
  margin: 0 auto;
  padding-left: var(--rand);
  padding-right: var(--rand);
}

.sektion {
  padding-top: var(--abstand-sektion);
}

.sektion > h2,
.sektion__kopf {
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .sektion > h2,
  .sektion__kopf {
    margin-bottom: 20px;
  }
}

.hinweis {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-sekundaer);
}

.overline {
  font: 600 13px/1.3 var(--schrift-text);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .overline {
    font-size: 14px;
    letter-spacing: .1em;
  }
}

/* Bildflächen: festes Format, Platzhalter wenn Bild fehlt ----------------- */

.bildflaeche {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--platzhalter-a) 0 12px, var(--platzhalter-b) 12px 24px);
}

.bildflaeche > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--gruen);
  border-radius: var(--radius-klein);
  background: var(--gruen);
  color: var(--weiss);
  font: 600 17px/1.2 var(--schrift-text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.button:hover {
  background: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
  color: var(--weiss);
}

.button--rahmen {
  background: var(--weiss);
  color: var(--gruen-dunkel);
}

.button--rahmen:hover {
  background: var(--sandweiss);
  color: var(--gruen-sehr-dunkel);
}

.button--hell {
  background: var(--weiss);
  border-color: var(--weiss);
  color: var(--gruen-sehr-dunkel);
  font-weight: 700;
}

.button--hell:hover {
  background: var(--sandweiss);
  border-color: var(--sandweiss);
  color: var(--gruen-sehr-dunkel);
}

.button--breit {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--gruen);
  color: var(--weiss);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  padding-right: 12px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: var(--weiss);
  text-decoration: none;
}

.marke:hover {
  color: var(--weiss);
}

.marke__wappen {
  width: 36px;
  height: auto;
  flex: none;
}

.marke__name {
  display: block;
  font: 700 16px/1.1 var(--schrift-titel);
}

.marke__zusatz {
  display: block;
  font: 500 13px/1.3 var(--schrift-text);
  color: var(--auf-gruen);
  letter-spacing: .04em;
}

.hauptnav {
  display: none;
}

.header-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  color: var(--weiss);
  font: 600 16px var(--schrift-text);
  text-decoration: none;
}

.header-link:hover {
  color: var(--weiss);
  text-decoration: underline;
}

.menue-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-klein);
  background: rgba(255, 255, 255, .12);
  color: var(--weiss);
  font: 600 16px var(--schrift-text);
  cursor: pointer;
}

.menue-knopf__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menue-knopf__icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menue-knopf__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.header-cta {
  display: none;
}

/* Ausklappmenü mit dem vollständigen Baum (zwei Ebenen) */
.menue {
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: var(--gruen-sehr-dunkel);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.menue[hidden] {
  display: none;
}

.menue__inner {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.menue__gruppe h2 {
  margin-bottom: 6px;
  color: var(--auf-dunkel-leise);
  font: 600 14px var(--schrift-text);
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.menue a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--weiss);
  font: 600 18px var(--schrift-text);
  text-decoration: none;
}

.menue a:hover {
  color: var(--weiss);
  text-decoration: underline;
}

.menue ul ul a {
  min-height: 40px;
  padding-left: 18px;
  color: var(--auf-dunkel);
  font-weight: 400;
  font-size: 17px;
}

.menue a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
  .site-header__inner {
    gap: 24px;
    min-height: 76px;
    padding-left: var(--rand);
    padding-right: var(--rand);
  }

  .marke {
    flex: none;
    gap: 14px;
  }

  .marke__wappen {
    width: 42px;
  }

  .marke__name {
    font-size: 20px;
  }

  .hauptnav {
    display: flex;
    flex: 1;
    gap: 4px;
  }

  .hauptnav a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 14px;
    border-radius: 8px;
    color: var(--weiss);
    font: 600 17px var(--schrift-text);
    text-decoration: none;
  }

  .hauptnav a:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--weiss);
  }

  /* Aktiver Punkt: Fläche plus Unterstrich, nicht nur Farbe */
  .hauptnav a[aria-current] {
    background: rgba(255, 255, 255, .16);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .header-link--mobil {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    min-height: var(--tap);
    padding: 0 20px;
  }

  .menue-knopf__text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .menue__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
  }

  .menue__sparten ul {
    columns: 2;
    column-gap: 32px;
  }

  .menue__sparten li {
    break-inside: avoid;
  }
}

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

.site-footer {
  margin-top: 40px;
  background: var(--gruen-sehr-dunkel);
  color: var(--auf-dunkel);
  font-size: 16px;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 32px;
}

.site-footer__marke {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 15px/1.4 var(--schrift-text);
}

.site-footer__marke img {
  width: 36px;
  flex: none;
}

.site-footer__adresse {
  line-height: 1.6;
}

.site-footer h2 {
  margin-bottom: 4px;
  color: var(--auf-dunkel-leise);
  font: 600 14px var(--schrift-text);
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--weiss);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--weiss);
  text-decoration-thickness: 2px;
}

.site-footer__spalte--nav {
  display: none;
}

.site-footer__rechtliches ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

@media (min-width: 900px) {
  .site-footer {
    margin-top: 64px;
    font-size: 17px;
  }

  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-top: 44px;
    padding-bottom: 36px;
  }

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

  .site-footer__marke img {
    width: 42px;
  }

  .site-footer a {
    min-height: 36px;
    font-weight: 400;
    text-decoration: none;
  }

  .site-footer a:hover {
    text-decoration: underline;
  }

  .site-footer__rechtliches ul {
    display: block;
  }
}

/* Titelbild mit Name (Sparten- und Gruppenseite) -------------------------- */

.titelbild {
  height: 280px;
}

.titelbild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--verlauf-bild);
}

.titelbild__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}

/* Dachzeile nur bei Untergruppen: Link zur übergeordneten Sparte */
.titelbild__pfad {
  color: var(--auf-bild-label);
}

.titelbild__pfad a {
  color: inherit;
  text-decoration: none;
}

.titelbild__pfad a:hover {
  color: var(--weiss);
  text-decoration: underline;
}

.titelbild h1 {
  color: var(--weiss);
  font-size: 40px;
  line-height: 1.02;
  hyphens: auto;
  overflow-wrap: break-word;
}

.titelbild__unterzeile {
  color: var(--auf-bild);
  font-size: 17px;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .titelbild {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 900px) {
  .titelbild {
    aspect-ratio: auto;
    height: 480px;
  }

  .titelbild__text {
    max-width: calc(720px + 2 * var(--rand));
    padding: 0 var(--rand) 42px;
    gap: 12px;
  }

  .titelbild h1 {
    font-size: 76px;
    line-height: .98;
  }

  .titelbild__unterzeile {
    font-size: 24px;
  }
}

@media (min-width: 1360px) {
  .titelbild__text {
    left: calc((100vw - var(--breite-max)) / 2);
  }
}

/* Info-Chips */
.chips {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--sandweiss);
  border-bottom: 1px solid var(--rahmen);
}

.chips__chip {
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--rahmen-kraeftig);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--gruen-dunkel);
  font: 600 15px/1.2 var(--schrift-text);
}

@media (min-width: 900px) {
  .chips {
    display: none;
  }
}

/* Spartenseite: Aufbau ---------------------------------------------------- */

.sparte__raster {
  display: flex;
  flex-direction: column;
}

.sparte__haupt,
.sparte__seite {
  display: contents;
}

/* Mobil: Reihenfolge aus dem Design */
.sparte__wer        { order: 1; }
.sparte__zeiten     { order: 2; }
.sparte__kontakt    { order: 3; }
.sparte__gruppen    { order: 4; }
.sparte__galerie    { order: 5; }
.sparte__links      { order: 6; }
.sparte__meldungen  { order: 7; }
.sparte__ort        { order: 8; }

@media (min-width: 900px) {
  .sparte__raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 56px;
    align-items: start;
  }

  .sparte__haupt,
  .sparte__seite {
    display: flex;
    flex-direction: column;
  }

  .sparte__seite {
    position: sticky;
    top: 100px;
    gap: 24px;
    padding-top: var(--abstand-sektion);
  }

  .sparte__seite > * {
    padding-top: 0;
  }
}

.fliesstext {
  max-width: 60ch;
}

.fliesstext > * + * {
  margin-top: 1em;
}

.fliesstext h2 {
  margin-top: 1.4em;
}

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

.fliesstext ul,
.fliesstext ol {
  padding-left: 1.3em;
}

.fliesstext li + li {
  margin-top: .3em;
}

.fliesstext figure {
  margin: 1.4em 0;
}

.fliesstext figure img {
  border-radius: 12px;
}

.fliesstext figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-sekundaer);
}

.fliesstext .tabelle-scroll {
  overflow-x: auto;
  border: 1px solid var(--rahmen);
  border-radius: 12px;
}

.fliesstext table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.fliesstext th,
.fliesstext td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--linie-fein);
  text-align: left;
  vertical-align: top;
}

.fliesstext th {
  background: var(--sandweiss);
  font-weight: 600;
}

.fliesstext tr:last-child td {
  border-bottom: 0;
}

/* Erster Absatz kräftig, weitere leiser – wie im Design */
.sparte__wer .fliesstext > p:not(:first-of-type) {
  color: var(--text-sekundaer);
}

/* Trainingszeiten: eine Tabelle, mobil als Karten ------------------------- */

.zeiten {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.zeiten thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.zeiten tbody {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zeiten tr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 14px 16px;
  border: 1px solid var(--rahmen);
  border-left: 4px solid var(--gruen);
  border-radius: 12px;
  background: var(--weiss);
}

.zeiten td,
.zeiten th[scope="row"] {
  display: block;
  padding: 0;
  text-align: left;
}

.zeiten__tag {
  font: 700 19px/1.3 var(--schrift-titel);
  color: var(--gruen-sehr-dunkel);
}

.zeiten__zeit {
  font: 600 18px/1.3 var(--schrift-text);
  justify-self: end;
  white-space: nowrap;
}

.zeiten__gruppe {
  grid-column: 1 / -1;
  font: 600 17px/1.4 var(--schrift-text);
}

.zeiten__ort {
  grid-column: 1 / -1;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-sekundaer);
}

.zeiten__hinweis {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-style: italic;
}

.zeiten__gruppe:empty {
  display: none;
}

@media (min-width: 900px) {
  .zeiten {
    border: 1px solid var(--rahmen);
    border-radius: 14px;
    overflow: hidden;
  }

  .zeiten thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    display: table-header-group;
  }

  .zeiten thead th {
    padding: 14px 20px;
    background: var(--sandweiss);
    border-bottom: 1px solid var(--rahmen);
    font: 600 15px var(--schrift-text);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-sekundaer);
    text-align: left;
  }

  .zeiten tbody {
    display: table-row-group;
  }

  .zeiten tr {
    display: table-row;
    border: 0;
    padding: 0;
    background: none;
  }

  .zeiten td,
  .zeiten th[scope="row"] {
    display: table-cell;
    padding: 18px 20px;
    border-bottom: 1px solid var(--linie-fein);
    vertical-align: baseline;
  }

  .zeiten tbody tr:last-child > * {
    border-bottom: 0;
  }

  .zeiten__tag {
    width: 180px;
    font-size: 20px;
  }

  .zeiten__zeit {
    width: 200px;
    font-size: 20px;
  }

  .zeiten__gruppe {
    font-size: 19px;
    font-weight: 400;
  }

  .zeiten__gruppe:empty {
    display: table-cell;
  }

  .zeiten__ort {
    font-size: 19px;
  }
}

/* Ansprechpartner --------------------------------------------------------- */

.kontakte {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-karte);
  background: var(--sandweiss);
}

.kontakt__kopf {
  display: flex;
  gap: 14px;
  align-items: center;
}

.kontakt__foto {
  width: 76px;
  height: 76px;
  flex: none;
  border: 2px solid var(--weiss);
  border-radius: 999px;
  object-fit: cover;
}

.kontakt__initialen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gruen);
  color: var(--weiss);
  font: 700 24px var(--schrift-titel);
}

.kontakt__name {
  font: 700 20px/1.2 var(--schrift-titel);
  color: var(--gruen-sehr-dunkel);
}

.kontakt__funktion {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-sekundaer);
}

.kontakt__wege {
  display: flex;
  gap: 10px;
}

.kontakt__wege .button {
  flex: 1;
}

.kontakt__daten {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-sekundaer);
  overflow-wrap: anywhere;
}

/* In der Seitenspalte (Desktop) als eine Karte mit Überschrift */
.kasten {
  padding: 0;
}

@media (min-width: 900px) {
  .sparte__kontakt {
    padding: 24px;
    border-radius: var(--radius-gross);
    background: var(--sandweiss);
  }

  .sparte__kontakt > h2 {
    font: 600 14px var(--schrift-text);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-sekundaer);
    margin-bottom: 18px;
  }

  .sparte__kontakt .kontakte {
    gap: 22px;
  }

  .sparte__kontakt .kontakt {
    padding: 0;
    background: none;
  }

  .kontakt__foto {
    width: 84px;
    height: 84px;
    border-width: 3px;
  }

  .kontakt__name {
    font-size: 22px;
  }

  .kontakt__funktion {
    font-size: 17px;
  }
}

/* Gruppen ----------------------------------------------------------------- */

.gruppen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gruppe {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-karte);
  background: var(--weiss);
  text-decoration: none;
  color: var(--text);
}

.gruppe:hover {
  border-color: var(--gruen);
  color: var(--text);
}

.gruppe__bild {
  width: 84px;
  height: 64px;
  flex: none;
  border-radius: 9px;
}

.gruppe__text {
  flex: 1;
  min-width: 0;
}

.gruppe__name {
  display: block;
  font: 700 19px/1.25 var(--schrift-titel);
  color: var(--gruen-sehr-dunkel);
}

.gruppe:hover .gruppe__name {
  text-decoration: underline;
}

.gruppe__info {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-sekundaer);
}

.gruppe__pfeil {
  padding-right: 6px;
  font: 700 22px var(--schrift-text);
  color: var(--gruen);
}

@media (min-width: 900px) {
  .gruppen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gruppe {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .gruppe__bild {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .gruppe__text {
    padding: 16px 18px 20px;
  }

  .gruppe__name {
    font-size: 22px;
  }

  .gruppe__info {
    margin-top: 6px;
    font-size: 17px;
  }

  .gruppe__pfeil {
    display: none;
  }
}

/* Ort-Kasten (Desktop-Seitenspalte, mobil am Ende) */
.ort-kasten {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--abstand-sektion);
  padding: 22px;
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-gross);
}

.ort-kasten h2 {
  font: 600 14px var(--schrift-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sekundaer);
}

.ort-kasten__adresse {
  font-weight: 600;
  line-height: 1.5;
}

.ort-kasten__adresse + .ort-kasten__adresse {
  margin-top: 6px;
}

.ort-kasten a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .ort-kasten {
    margin-top: 0;
  }
}

/* Galerie ----------------------------------------------------------------- */

.galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.galerie a {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
}

@media (min-width: 900px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .galerie a {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
}

/* Linklisten -------------------------------------------------------------- */

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

.linkliste a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Startseite: Sparten-Bühne ----------------------------------------------- */

.buehne {
  position: relative;
  background: var(--gruen-sehr-dunkel);
}

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

.buehne__slide {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  width: 100%;
}

.buehne__slide[hidden] {
  display: none;
}

.buehne__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 28, 16, .9) 0%, rgba(18, 28, 16, .4) 45%, rgba(18, 28, 16, 0) 75%);
}

.buehne__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 84px;
}

.buehne__name {
  color: var(--weiss);
  font: 700 36px/1.05 var(--schrift-titel);
  hyphens: auto;
  overflow-wrap: break-word;
}

.buehne__zeile {
  color: var(--auf-bild);
  font-size: 18px;
  line-height: 1.4;
}

.buehne__text .button {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 50px;
}

.buehne__steuerung {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.buehne__knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-klein);
  background: rgba(18, 28, 16, .45);
  color: var(--weiss);
  cursor: pointer;
}

.buehne__knopf:hover {
  background: rgba(18, 28, 16, .7);
}

.buehne__knopf svg {
  width: 20px;
  height: 20px;
}

.buehne__punkte {
  display: none;
}

.buehne__fortschritt {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 4px;
  width: 0;
  background: var(--weiss);
}

/* Ohne JavaScript: alle Slides untereinander wäre zu lang – nur die erste zeigen */
.no-js .buehne__slide:not(:first-child) {
  display: none;
}

.no-js .buehne__steuerung,
.no-js .buehne__fortschritt {
  display: none;
}

@media (min-width: 600px) {
  .buehne__slide {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 900px) {
  .buehne__slide {
    aspect-ratio: auto;
    height: 520px;
    max-height: none;
  }

  .buehne__slide::after {
    background: linear-gradient(to top, rgba(18, 28, 16, .88) 0%, rgba(18, 28, 16, .35) 50%, rgba(18, 28, 16, 0) 80%);
  }

  .buehne__text {
    max-width: var(--breite-max);
    margin: 0 auto;
    padding: 32px 360px 36px var(--rand);
    gap: 10px;
  }

  .buehne__name {
    font-size: 60px;
    line-height: 1;
  }

  .buehne__zeile {
    font-size: 22px;
  }

  .buehne__text .button {
    min-height: 52px;
    padding: 0 22px;
    font-size: 18px;
  }

  .buehne__steuerung {
    right: max(var(--rand), calc((100vw - var(--breite-max)) / 2 + var(--rand)));
    bottom: 36px;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
  }

  .buehne__knoepfe {
    display: flex;
    gap: 8px;
  }

  .buehne__knopf {
    width: 52px;
    height: 52px;
  }

  .buehne__punkte {
    display: flex;
    gap: 2px;
  }

  .buehne__punkt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .buehne__punkt span {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--weiss);
    border-radius: 999px;
  }

  /* Aktiv: gefüllt und größer – nicht nur Farbe */
  .buehne__punkt[aria-current="true"] span {
    width: 14px;
    height: 14px;
    background: var(--weiss);
  }

  .buehne__fortschritt {
    height: 5px;
  }
}

.buehne__knoepfe {
  display: flex;
  gap: 8px;
}

/* Startseite: Einleitung und Kacheln -------------------------------------- */

.intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.intro h1 {
  font-size: 34px;
  line-height: 1.08;
}

.intro p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-sekundaer);
}

.intro .button {
  display: none;
}

@media (min-width: 900px) {
  .intro {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-top: 52px;
    padding-bottom: 36px;
  }

  .intro__text {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .intro h1 {
    font-size: 60px;
    line-height: 1.02;
  }

  .intro p {
    font-size: 23px;
  }

  .intro .button {
    display: inline-flex;
    flex: none;
    min-height: 56px;
    padding: 0 22px;
    font-size: 18px;
  }
}

.kacheln {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kachel {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-karte);
  text-decoration: none;
}

.kachel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--verlauf-kachel);
}

.kachel__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
}

.kachel__name {
  color: var(--weiss);
  font: 700 19px/1.12 var(--schrift-titel);
  hyphens: auto;
  overflow-wrap: break-word;
}

.kachel:hover .kachel__name {
  text-decoration: underline;
}

.kachel__zeile {
  color: var(--auf-bild);
  font-size: 14px;
  line-height: 1.35;
}

.kacheln__alle {
  margin-top: 14px;
}

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

@media (min-width: 900px) {
  .kacheln {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  .kachel {
    border-radius: var(--radius-gross);
  }

  .kachel__text {
    gap: 5px;
    padding: 18px;
  }

  .kachel__name {
    font-size: 24px;
    line-height: 1.1;
  }

  .kachel__zeile {
    font-size: 16px;
  }

  .kacheln__alle {
    display: none;
  }
}

/* Direkteinstiege */
.einstiege {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
}

.einstieg {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-karte);
  background: var(--sandweiss);
  text-decoration: none;
  color: var(--text-sekundaer);
}

.einstieg:hover {
  border-color: var(--gruen);
  color: var(--text-sekundaer);
}

.einstieg__text {
  flex: 1;
}

.einstieg__titel {
  display: block;
  font: 700 22px var(--schrift-titel);
  color: var(--gruen-sehr-dunkel);
}

.einstieg:hover .einstieg__titel {
  text-decoration: underline;
}

.einstieg__zeile {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.45;
}

.einstieg__pfeil {
  font: 700 24px var(--schrift-text);
  color: var(--gruen);
}

.einstieg--primaer {
  border-color: var(--gruen);
  background: var(--gruen);
  color: var(--auf-gruen);
}

.einstieg--primaer:hover {
  background: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
  color: var(--auf-gruen);
}

.einstieg--primaer .einstieg__titel,
.einstieg--primaer .einstieg__pfeil {
  color: var(--weiss);
}

@media (min-width: 900px) {
  .einstiege {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 44px;
  }

  .einstieg {
    min-height: 132px;
    padding: 28px;
    align-items: flex-start;
    border-radius: var(--radius-gross);
  }

  .einstieg__titel {
    font-size: 27px;
  }

  .einstieg__zeile {
    margin-top: 8px;
    font-size: 18px;
  }

  .einstieg__pfeil {
    display: none;
  }
}

/* Aktuelles */
.aktuelles {
  margin-top: var(--abstand-sektion);
  padding: 32px 0;
  background: var(--sandweiss);
}

.aktuelles__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.aktuelles__titel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aktuelles__titel::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: var(--rot);
}

.meldungen {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meldung-karte {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-karte);
  background: var(--weiss);
  text-decoration: none;
  color: var(--text-sekundaer);
}

.meldung-karte:hover {
  color: var(--text-sekundaer);
}

.meldung-karte__bild {
  height: 150px;
}

.meldung-karte__text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 20px;
  font-size: 17px;
  line-height: 1.5;
}

.meldung-karte__datum {
  color: var(--text-sekundaer);
}

.meldung-karte__titel {
  font: 700 21px/1.2 var(--schrift-titel);
  color: var(--gruen-sehr-dunkel);
  text-wrap: pretty;
}

.meldung-karte:hover .meldung-karte__titel {
  text-decoration: underline;
}

.sektion .meldung-karte {
  border: 1px solid var(--rahmen);
}

@media (min-width: 900px) {
  .aktuelles {
    padding: 56px 0;
  }

  .aktuelles__kopf {
    margin-bottom: 24px;
  }

  .aktuelles__titel::before {
    width: 12px;
    height: 12px;
  }

  .meldungen {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .meldung-karte {
    border-radius: var(--radius-gross);
  }

  .meldung-karte__bild {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .meldung-karte__text {
    gap: 8px;
    padding: 20px 22px 26px;
    font-size: 18px;
  }

  .meldung-karte__titel {
    font-size: 24px;
  }
}

/* Verein in Kürze */
.kurz {
  display: grid;
  gap: 18px;
}

.kurz__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.kennzahl {
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--sandweiss);
  text-align: center;
}

.kennzahl dd {
  margin: 0;
  font: 700 30px/1 var(--schrift-titel);
  color: var(--gruen);
}

.kennzahl dt {
  margin-top: 6px;
  font: 500 15px var(--schrift-text);
  color: var(--text-sekundaer);
}

.kennzahl {
  display: flex;
  flex-direction: column-reverse;
}

@media (min-width: 900px) {
  .kurz {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .kennzahlen {
    gap: 14px;
  }

  .kennzahl {
    padding: 26px 14px;
    border-radius: var(--radius-karte);
  }

  .kennzahl dd {
    font-size: 42px;
  }

  .kennzahl dt {
    margin-top: 8px;
    font-size: 16px;
  }
}

/* Sponsoren */
.sponsoren {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 10px 14px;
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-klein);
  background: var(--weiss);
  color: var(--text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

a.sponsor:hover {
  border-color: var(--gruen);
}

.sponsor img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

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

@media (min-width: 900px) {
  .sponsoren {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  .sponsor {
    height: 92px;
    border-radius: 12px;
  }
}

/* Inhaltsseiten ----------------------------------------------------------- */

.seitenkopf {
  padding-top: 28px;
}

.seitenkopf h1 {
  font-size: 34px;
  line-height: 1.08;
}

.seitenkopf__pfad {
  margin-bottom: 8px;
  color: var(--text-sekundaer);
}

.seitenkopf__pfad a {
  color: inherit;
}

.seitenkopf__einleitung {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 19px;
  color: var(--text-sekundaer);
}

@media (min-width: 900px) {
  .seitenkopf {
    padding-top: 56px;
  }

  .seitenkopf h1 {
    font-size: 60px;
    line-height: 1.02;
  }

  .seitenkopf__einleitung {
    font-size: 22px;
  }
}

.anhaenge {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anhaenge a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--rahmen);
  border-radius: 12px;
  font-weight: 600;
}

.anhaenge small {
  margin-left: auto;
  color: var(--text-sekundaer);
  font-weight: 400;
  font-size: 15px;
  white-space: nowrap;
}

.personenraster {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* Übersicht Trainingszeiten */
.wochentag + .wochentag {
  margin-top: var(--abstand-sektion);
}

.wochentag h2 {
  margin-bottom: 14px;
}

.zeiten__sparte a {
  font-weight: 700;
}

/* Alle Sparten */
.spartenliste {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spartenliste__gruppen {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.spartenliste__gruppen a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 900px) {
  .spartenliste {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
  }
}

/* Bewegung reduzieren ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.tagesnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.meldung__bild {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-gross);
}
