
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* Flutlicht: tiefes Rasengruen statt neutralem Schwarz, Kreidewei, Vereinstuerkis als einziger Akzent. */
:root {
  --swh-black: #06100d;
  --swh-ink: #0a1713;
  --swh-panel: #0f1f19;
  --swh-line: rgba(226, 240, 232, 0.16);
  --swh-white: #f3f8f2;
  --swh-soft: #dbe6df;
  --swh-muted: #9fb2a8;
  --swh-accent: #4ecac2;
  --swh-grass: #2f6b4f;
  --swh-paper: #eef3ec;
  --swh-paper-ink: #10201a;
  --content: min(1200px, calc(100vw - 40px));
  --font-body: "Figtree", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head-full: 78px;
  --header-h: 78px;
  --chamfer: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--swh-black);
  color: var(--swh-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--swh-accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.2s; }
a:hover { color: var(--swh-white); }
img, iframe, video { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--swh-accent); outline-offset: 3px; }
::selection { background: var(--swh-accent); color: var(--swh-black); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 80;
  background: var(--swh-accent);
  color: var(--swh-black);
  padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

/* Kopfzeile: liegt auf der Startseite ueber dem Stadionbild und wird beim Scrollen schlank und milchig. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  isolation: isolate;
  transition: height 0.3s var(--ease);
}
/* Der Milchglas-Effekt liegt auf einer eigenen Ebene: auf der Kopfzeile selbst wuerde er das mobile Menue auf Kopfhoehe begrenzen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 16, 13, 0.74);
  border-bottom: 1px solid var(--swh-line);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: background 0.3s, border-color 0.3s;
}
.is-scrolled .site-header { --header-h: 62px; }
.is-scrolled .site-header::before { background: rgba(6, 16, 13, 0.88); }
.is-home:not(.is-scrolled):not(.menu-open) .site-header::before {
  background: linear-gradient(180deg, rgba(6, 16, 13, 0.6), transparent);
  border-color: transparent;
  backdrop-filter: none;
}
.header-inner {
  width: var(--content);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--swh-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand img { width: 52px; height: 52px; flex: none; object-fit: contain; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.is-scrolled .brand img { width: 42px; height: 42px; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--swh-line);
  background: rgba(15, 31, 25, 0.8);
  color: var(--swh-white);
  padding: 9px 12px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bars span { display: block; width: 20px; height: 2px; background: var(--swh-white); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  padding: 18px 0 56px;
  overflow-y: auto;
  background: var(--swh-black);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s 0.45s;
}
.site-nav.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
.main-menu, .submenu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.main-menu { width: var(--content); margin: 0 auto; }
.main-menu a {
  display: block;
  color: var(--swh-white);
  text-decoration: none;
  padding: 8px 0;
}
.main-menu > li > a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--swh-line);
}
.main-menu .submenu { padding: 6px 0 12px 16px; }
.main-menu .submenu a { color: var(--swh-soft); font-size: 1.05rem; padding: 6px 0; }
.main-menu a:hover, .main-menu a[aria-current="page"] { color: var(--swh-accent); }

/* Seitenaufbau */
.site-main {
  overflow-wrap: break-word;
  background:
    radial-gradient(900px 420px at 88% -6%, rgba(78, 202, 194, 0.1), transparent 65%),
    var(--swh-black);
}
.is-home .site-main { margin-top: calc(-1 * var(--head-full)); }
.content-page, .entry {
  width: var(--content);
  margin: 0 auto;
  padding: 56px 0 96px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px;
}
.content-page > *,
.entry > * { grid-column: 1 / -1; }

.page-title, .section-heading, .response-panel h1 {
  margin: 0 0 24px;
  color: var(--swh-white);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.page-title { font-size: clamp(2.8rem, 9vw, 6rem); margin-bottom: 36px; }
.page-title::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 220px;
  height: 3px;
  margin-top: 22px;
  background: var(--swh-accent);
}
.section-heading { font-size: clamp(2rem, 5vw, 3.2rem); }
h2.section-heading { display: flex; align-items: center; gap: 20px; }
h2.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--swh-line), transparent);
}
.entry-meta {
  margin: 0 0 6px;
  color: var(--swh-accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.content-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
  padding: 48px 0;
  border-top: 1px solid var(--swh-line);
}
.content-section > .section-heading,
.content-section > .content-block,
.content-section > .section-divider,
.content-section > .gallery-grid,
.content-section > .static-form,
.content-section > .section-subnav,
.content-section > .dept-grid,
.content-section > .video-embed { grid-column: 1 / -1; }
.content-column { grid-column: 1 / -1; min-width: 0; }
.content-block p, .entry > p { max-width: 72ch; }
.content-block > :first-child, .content-column > :first-child { margin-top: 0; }
.content-block > :last-child, .content-column > :last-child { margin-bottom: 0; }
.content-column .section-heading { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 14px; }
.content-column .media-block { aspect-ratio: 16 / 10; max-height: 260px; }
.content-column .media-block img { height: 100%; object-fit: cover; }

.media-block, .gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--swh-panel);
  border: 1px solid var(--swh-line);
}
.gallery-item {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
}
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-block img { display: block; width: 100%; height: auto; }
.featured-image { width: fit-content; max-width: 100%; margin-inline: auto; }
.featured-image img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; }
/* Beitragsseiten: Titelbild, Fotos und Listen stehen buendig auf der Kante und in der Breite des Fliesstextes (72ch). */
.entry .featured-image { margin-inline: 0; max-width: min(100%, 72ch); }
.content-block ul, .content-block ol { max-width: 72ch; }
.post-photo { margin: 28px 0; max-width: 72ch; }
.post-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: 50% 68%; border-radius: 6px; border: 1px solid var(--swh-line); }
figcaption { color: var(--swh-muted); padding: 8px 10px; font-size: 0.9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

/* Schaltflaechen: zwei abgeschnittene Ecken, wie die Spitzen im Vereinswappen. */
.button-row { margin: 22px 0 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  background: var(--swh-accent);
  color: var(--swh-black);
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  transition: background 0.2s, transform 0.25s var(--ease);
}
.button:hover { background: var(--swh-white); color: var(--swh-black); transform: translateY(-2px); }
.button--ghost { background: rgba(243, 248, 242, 0.14); color: var(--swh-white); }
.button--ghost:hover { background: var(--swh-white); }
.section-divider { border: 0; border-top: 1px solid var(--swh-line); margin: 20px 0; }
.icon-box { padding: 22px; border: 1px solid var(--swh-line); border-radius: 6px; background: var(--swh-panel); }
.icon-box h3 { margin-top: 0; color: var(--swh-white); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

h3, h4 { color: var(--swh-white); font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.7rem; }

.section-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.section-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.section-subnav a {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--swh-line);
  border-radius: 4px;
  color: var(--swh-white);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.section-subnav a:hover { border-color: var(--swh-accent); color: var(--swh-accent); }

.video-embed { aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--swh-line); border-radius: 6px; overflow: hidden; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }

/* Tabellen: auf schmalen Bildschirmen scrollen sie seitlich, statt die Seite zu verbreitern. */
table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.tabelle-container, .table-wrap { overflow-x: auto; }
th, td { border-bottom: 1px solid var(--swh-line); padding: 10px 12px; vertical-align: top; }
th { background: var(--swh-panel); color: var(--swh-accent); text-align: left; font-weight: 700; }
th select {
  display: block;
  width: 100%;
  min-width: 120px;
  max-width: 240px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--swh-line);
  border-radius: 4px;
  background: var(--swh-black);
  color: var(--swh-white);
  font: inherit;
  font-weight: 400;
}
tbody tr:nth-child(even) { background: rgba(243, 248, 242, 0.03); }
tr[hidden] { display: none; }

/* Fussleiste */
.site-footer { position: relative; background: #030a08; border-top: 1px solid var(--swh-line); color: var(--swh-muted); }
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border: 1px solid var(--swh-line);
  border-radius: 50%;
  background: var(--swh-black);
}
.footer-inner { width: var(--content); margin: 0 auto; padding: 64px 0 44px; display: grid; gap: 28px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--swh-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-menu a { color: var(--swh-soft); text-decoration: none; }
.footer-menu a:hover { color: var(--swh-accent); }
.footer-copy { margin: 0; font-size: 0.95rem; }

/* Scroll-Hilfen */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 3px;
  background: var(--swh-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--swh-accent);
  color: var(--swh-black);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.3s var(--ease), background 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--swh-white); }

/* Weiche Uebergaenge zwischen den Seiten (Browser ohne Unterstuetzung blenden einfach um). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.18s ease both fade-out; }
::view-transition-new(root) { animation: 0.32s ease both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .brand { font-size: 1.3rem; }
  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    overflow: visible;
    background: none;
    transform: none;
    visibility: visible;
  }
  .main-menu { width: auto; display: flex; align-items: center; gap: 4px; }
  .main-menu > li { position: relative; }
  .main-menu > li > a {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-transform: none;
    line-height: 1.2;
    padding: 24px 14px;
    border: 0;
  }
  .main-menu > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    height: 2px;
    background: var(--swh-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--ease);
  }
  .main-menu > li:hover > a::after,
  .main-menu > li:focus-within > a::after,
  .main-menu > li > a[aria-current="page"]::after,
  .main-menu > li > a.is-ancestor::after { transform: scaleX(1); }
  .main-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 10px 18px 14px;
    background: rgba(6, 16, 13, 0.97);
    border: 1px solid var(--swh-line);
    border-top: 2px solid var(--swh-accent);
    border-radius: 0 0 6px 6px;
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .main-menu li:hover > .submenu,
  .main-menu li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-menu .submenu a { padding: 7px 0; font-size: 0.98rem; }
  .main-menu .submenu .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 4px 14px;
    background: none;
    border: 0;
    border-left: 1px solid var(--swh-line);
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-menu .submenu li:hover > .submenu,
  .main-menu .submenu li:focus-within > .submenu { display: block; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .footer-nav { justify-self: end; }
  .footer-copy { grid-column: 1; }
  .embed-consent-reset { justify-self: end; grid-column: 2; }
}

@media (min-width: 820px) {
  .column-full { grid-column: span 12; }
  .column-half { grid-column: span 6; }
  .column-third { grid-column: span 4; }
  .column-fourth { grid-column: span 3; }
  .column-fifth { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

.home-page { display: block; }
.home-block { padding: clamp(64px, 9vw, 120px) 0; }
.home-inner { width: var(--content); margin: 0 auto; }
.home-block .section-heading { margin-bottom: clamp(28px, 4vw, 48px); }

/* Einstieg: Stadionbild mit Flutlichtschimmer; die Kreidelinien werden beim Laden einmal gezeichnet. */
.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 920px);
  padding: calc(var(--head-full) + 72px) 0 clamp(56px, 9vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; background: var(--swh-black); }
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.1);
  animation: hero-settle 3.2s var(--ease) forwards;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 55% at 80% 8%, rgba(196, 255, 248, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(6, 16, 13, 0.66) 0%, rgba(6, 16, 13, 0.28) 34%, rgba(6, 16, 13, 0.86) 80%, var(--swh-black) 100%);
}
.hero-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: rgba(243, 248, 242, 0.5); pointer-events: none; }
.hero-lines .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2.6s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards; }
.hero-lines .hero-sport .ln { animation-duration: 1.8s; animation-delay: var(--d, 1.5s); }
/* Drei Abteilungen uebereinander: Fussballlinien (weiss, 50 %), Kegelbillard dunkelgrau, Gymnastik hell. */
.hero-lines .hero-billiard { color: rgba(116, 133, 125, 0.88); }
.hero-lines .hero-gym { color: rgba(255, 255, 255, 0.95); }
.hero-lines .hero-gym-art { opacity: 0.5; filter: brightness(0.8); clip-path: inset(0 100% 0 0); animation: art-reveal 2.6s cubic-bezier(0.6, 0, 0.2, 1) var(--d, 2.2s) forwards; }
@keyframes art-reveal { to { clip-path: inset(0); } }
/* Schmale Bildschirme: Die Figur steht im freien Bereich ueber dem Titel statt dahinter. */
@media (max-width: 700px) { .hero-lines .hero-gym { transform: translate(900px, 300px); } }
.hero-copy { width: var(--content); margin: 0 auto; }
.hero-title {
  margin: 0 0 30px;
  max-width: 14ch;
  color: var(--swh-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 12vw, 10rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.hero-word { display: inline-block; animation: word-rise 1s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 0.13s); }

/* Holo-/3D-Titel: Schriftfuellung als wandernder Hologramm-Verlauf mit Lichtreflex, Tiefe durch gestaffelte Schatten.
   Die Schatten liegen per filter auf dem h1 (nicht per text-shadow), damit das clip-path der Wort-Animation sie nicht abschneidet. */
.hero-title {
  filter:
    drop-shadow(1px 1px 0 #3a4541) drop-shadow(2px 2px 0 #2f3935) drop-shadow(3px 3px 0 #252d2a)
    drop-shadow(4px 4px 0 #1b2220) drop-shadow(5px 5px 0 #121715) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.12));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-word {
    color: transparent;
    background-image:
      linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%),
      linear-gradient(115deg, #ffffff 0%, #c9d1cd 22%, #f3f8f2 40%, #9aa6a1 58%, #e4eae6 76%, #b5bfba 88%, #ffffff 100%);
    background-size: 250% 100%, 200% 100%;
    background-position: 130% 0, 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: word-rise 1s var(--ease) both, holo 9s linear 1.6s infinite;
    animation-delay: calc(0.35s + var(--i) * 0.13s), 1.6s;
  }
}
/* Verlaufsebene wandert um genau eine Kachelbreite (200 %) -> nahtlose Schleife; Reflex streift im letzten Drittel durch. */
@keyframes holo {
  0% { background-position: 130% 0, 0% 0; }
  55% { background-position: 130% 0, 110% 0; }
  85% { background-position: -40% 0, 170% 0; }
  100% { background-position: -40% 0, 200% 0; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; animation: fade-in 0.8s ease 1.1s both; }
@keyframes word-rise {
  from { opacity: 0; transform: translateY(0.5em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes hero-settle { to { transform: scale(1); } }

/* Aktuelle Spiele: kompakter Ergebnis-/Vorschau-Teaser direkt unter dem Einstieg. */
.home-spiele {
  padding: clamp(44px, 6vw, 76px) 0;
  background:
    linear-gradient(180deg, rgba(243, 248, 242, 0.035), rgba(243, 248, 242, 0)),
    var(--swh-black);
  border-top: 1px solid rgba(243, 248, 242, 0.08);
  border-bottom: 1px solid rgba(243, 248, 242, 0.08);
}
.home-spiele .section-heading { margin-bottom: clamp(22px, 3vw, 34px); }
.spiele-board {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.spiele-group {
  min-width: 0;
}
.spiele-group.spiele-fixtures {
  border-left: 1px solid var(--swh-line);
  padding-left: 22px;
}
.spiele-group h3 {
  margin: 0 0 12px;
  color: var(--swh-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.spiele-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.spiel-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--swh-line);
  border-radius: 6px;
  background: var(--swh-panel);
}
.spiel-card--result {
  border-color: rgba(196, 255, 248, 0.22);
}
.spiel-card p, .spiel-card h4 {
  margin: 0;
}
.spiel-team {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(196, 255, 248, 0.25);
  border-radius: 999px;
  color: var(--swh-accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.spiel-meta, .spiel-note {
  color: var(--swh-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.spiel-score {
  color: var(--swh-white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
}
.spiel-card h4 {
  color: var(--swh-white);
  font-size: 1.02rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

/* Fussball-Abteilungsseite: volle Ergebnis-/Spielplan-Liste je Mannschaft (schmaler als die
   Startseiten-Kacheln, da hier die ganze Saison statt nur eines Ausschnitts steht). */
.spiele-board--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.spiele-board--wide .spiele-group.spiele-team-2 {
  border-left: 1px solid var(--swh-line);
  padding-left: 22px;
}
.spiele-list { display: grid; gap: 8px; margin-top: 10px; }
.spiel-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--swh-line);
  border-radius: 6px;
  background: var(--swh-panel);
}
.spiel-row--fixture { grid-template-columns: auto 1fr; }
.spiel-row-date { color: var(--swh-muted); font-size: 0.84rem; white-space: nowrap; }
.spiel-row-score {
  color: var(--swh-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.spiel-row-opponent { color: var(--swh-white); font-weight: 600; grid-column: 1 / -1; }
.spiel-row--result .spiel-row-opponent { grid-column: auto; }
.spiel-row-meta { grid-column: 1 / -1; color: var(--swh-muted); font-size: 0.82rem; }
@media (max-width: 700px) {
  .spiele-board--wide { grid-template-columns: 1fr; }
  .spiele-board--wide .spiele-group.spiele-team-2 { border-left: none; padding-left: 0; border-top: 1px solid var(--swh-line); padding-top: 22px; margin-top: 22px; }
  .spiel-row, .spiel-row--fixture { grid-template-columns: 1fr; }
  .spiel-row-opponent { grid-column: auto; }
}

/* News-Karten (Startseite und News-Seite): die erste Karte ist gross, die uebrigen stehen in drei Spalten. */
.news-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.news-card {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--swh-line);
  border-radius: 6px;
  background: var(--swh-panel);
  transition: border-color 0.25s;
}
.news-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  height: 100%;
  color: var(--swh-soft);
  text-decoration: none;
}
.news-card img, .news-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--swh-black);
  transition: transform 0.7s var(--ease);
}
.news-placeholder { background: var(--swh-black) url("/assets/uploads/2023/08/SV-Haasow-Logo.webp") center / auto 55% no-repeat; }
.news-card-body { position: relative; padding: 22px; min-width: 0; overflow-wrap: anywhere; background: var(--swh-panel); }
.news-card h2 {
  margin: 0 0 10px;
  color: var(--swh-white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.08;
  transition: color 0.2s;
}
.news-card p:last-child { margin: 0; color: var(--swh-muted); font-size: 0.98rem; }
.news-card:hover { border-color: var(--swh-accent); }
.news-card:hover img { transform: scale(1.05); }
.news-card:hover h2 { color: var(--swh-accent); }

/* Abteilungen: grosse Bildkacheln mit Titel und Schaltflaeche im Bild. */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.dept-grid .content-column {
  position: relative;
  grid-column: auto;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: clamp(380px, 46vw, 560px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  background: var(--swh-panel);
}
.dept-grid .media-block {
  grid-area: 1 / 1 / -1 / 2;
  z-index: -2;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.dept-grid .media-block img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.dept-grid .content-column::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 16, 13, 0) 18%, rgba(6, 16, 13, 0.6) 55%, rgba(6, 16, 13, 0.95) 100%);
}
.dept-grid .section-heading { grid-area: 2 / 1; align-self: end; margin: 0; padding: 0 26px; font-size: clamp(2.2rem, 3.4vw, 3rem); }
.dept-grid .button-row { grid-area: 3 / 1; margin: 14px 26px 26px; }
.dept-grid .content-column:hover img { transform: scale(1.06); }

/* Sponsoren: helles Band mit leicht schraeger Oberkante. */
.home-sponsors {
  --cut: clamp(20px, 3vw, 44px);
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(clamp(64px, 9vw, 120px) + var(--cut));
  background: var(--swh-paper);
  color: var(--swh-paper-ink);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.home-sponsors .section-heading { color: var(--swh-paper-ink); }
.home-sponsors h2.section-heading::after { background: linear-gradient(90deg, rgba(16, 32, 26, 0.28), transparent); }
.home-sponsors .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.home-sponsors .gallery-item { border: 1px solid rgba(16, 32, 26, 0.14); transition: translate 0.35s var(--ease), box-shadow 0.35s; }
.home-sponsors .gallery-item:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(16, 32, 26, 0.18); }

@media (max-width: 850px) {
  .spiele-board { grid-template-columns: 1fr; }
  .spiele-group.spiele-fixtures { border-left: none; padding-left: 0; border-top: 1px solid var(--swh-line); padding-top: 22px; }
}
@media (min-width: 700px) {
  .news-card { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .news-card { grid-column: span 4; }
}

/* Beim Scrollen blenden Karten und Kacheln einmal ein (nur in Browsern mit Scroll-Animationen). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .spiel-card, .news-card, .dept-grid .content-column, .home-sponsors .gallery-item {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(32px); }
      to { opacity: 1; transform: none; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-word, .hero-actions { animation: none; transform: none; }
  .hero-word { background-position: 130% 0, 0% 0; }
  .hero-lines .hero-gym-art { animation: none; clip-path: none; }
  .hero-lines .ln { animation: none; stroke-dashoffset: 0; }
}

/* Landingpages: Kopfband, mitlaufende Sprungleiste, abwechselnde Abschnittsbaender, aufklappbare Unterbloecke. */
.landing-page { display: block; }
.landing-inner { width: var(--content); margin: 0 auto; }
.landing-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(70% 130% at 88% 0%, rgba(78, 202, 194, 0.16), transparent 62%),
    linear-gradient(180deg, var(--swh-ink), var(--swh-black));
}
.landing-head-inner { width: var(--content); margin: 0 auto; }
.landing-head .page-title { margin-bottom: 0; }

.landing-nav {
  position: sticky;
  top: 62px;
  z-index: 30;
  background: rgba(6, 16, 13, 0.92);
  border-block: 1px solid var(--swh-line);
  backdrop-filter: blur(14px);
}
.landing-nav-inner { width: var(--content); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.landing-nav-inner::-webkit-scrollbar { display: none; }
.landing-nav a {
  flex: none;
  padding: 8px 18px;
  background: rgba(243, 248, 242, 0.08);
  color: var(--swh-soft);
  font-weight: 600;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s, color 0.2s;
}
.landing-nav a:hover { background: rgba(243, 248, 242, 0.18); color: var(--swh-white); }
.landing-nav a[aria-current="true"] { background: var(--swh-accent); color: var(--swh-black); }

.landing-intro { padding: clamp(40px, 6vw, 72px) 0 0; }
.landing-section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 130px; }
.landing-section:nth-of-type(even) { background: var(--swh-panel); }

.landing-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; }
.landing-body > :not(.content-column) { grid-column: 1 / -1; }
.landing-body .content-section { padding: 12px 0; border-top: 0; }
.landing-body .content-block p { max-width: 72ch; }
.landing-intro .dept-grid .content-column { min-height: clamp(260px, 30vw, 340px); }

.landing-sub { margin-top: 18px; border: 1px solid var(--swh-line); border-radius: 6px; background: rgba(6, 16, 13, 0.55); scroll-margin-top: 130px; }
.landing-section:nth-of-type(odd) .landing-sub { background: var(--swh-panel); }
.landing-sub > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  color: var(--swh-white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
}
.landing-sub > summary::-webkit-details-marker { display: none; }
.landing-sub > summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--swh-accent);
  border-bottom: 3px solid var(--swh-accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.landing-sub[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.landing-sub > summary:hover { color: var(--swh-accent); }
.landing-sub > .landing-body { padding: 4px 22px 26px; }

.landing-sub--top { margin-top: 0; border: none; border-radius: 0; background: transparent; }
.landing-section:nth-of-type(odd) .landing-sub--top { background: transparent; }
.landing-sub--top > summary { padding: 0 0 clamp(20px, 2.6vw, 32px); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.landing-sub--top > summary::after { width: 14px; height: 14px; border-width: 0 4px 4px 0; }
.landing-sub--top > .landing-body { padding: 0; }

.embed-consent {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(var(--embed-min-height, 260px), 70vh);
  padding: 20px;
  overflow-wrap: anywhere;
  border: 1px solid var(--swh-line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--swh-panel), #111);
}
.embed-consent__body { display: grid; gap: 12px; max-width: 780px; width: 100%; }
.embed-consent__body p { margin: 0; }
.embed-consent__note { color: var(--swh-white); font-weight: 700; }
.embed-consent--compact { min-height: 0; padding: 10px 16px; }
.embed-consent--compact .embed-consent__body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
.embed-consent--compact .embed-consent__body > p:not(.embed-consent__title),
.embed-consent--compact .embed-consent__remember,
.embed-consent--compact .embed-consent__open { display: none; }
.embed-consent--compact .embed-consent__title { font-size: 0.9rem; }
.embed-consent__title { color: var(--swh-white); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.embed-consent__links, .embed-consent__remember { color: var(--swh-muted); font-size: 0.95rem; }
.embed-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.embed-consent__load, .embed-consent-reset {
  border: 0;
  border-radius: 6px;
  background: var(--swh-accent);
  color: var(--swh-black);
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.embed-consent__load:hover { background: var(--swh-white); }
.embed-consent-reset {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--swh-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}
.embed-consent-reset:hover { color: var(--swh-white); background: none; }
.embed-consent__remember { display: inline-flex; align-items: center; gap: 6px; }
.embed-consent__remember input { width: 1.1rem; height: 1.1rem; accent-color: var(--swh-accent); }
.embed-consent > iframe, .embed-consent > video { width: 100%; max-width: 100%; border: 0; }
.embed-consent > iframe { aspect-ratio: 16 / 9; min-height: min(var(--embed-min-height, 360px), 70vh); }
/* Eingebettete volle fussball.de-Seiten (kein kompaktes Widget) sind hoch, nicht breit -- 16:9 wuerde nur
   einen Streifen zeigen. */
.embed-consent[data-provider="fussball-de"] > iframe { aspect-ratio: auto; height: min(var(--embed-min-height, 1200px), 80vh); }
.map-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--swh-line);
  border-radius: 8px;
  background: var(--swh-panel);
}
.map-figure a, .map-figure img { display: block; width: 100%; }
.map-figure img { height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

.static-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--swh-line);
  border-radius: 8px;
  background: var(--swh-panel);
}
.form-note { margin: 0; color: var(--swh-muted); }
.form-field { display: grid; gap: 6px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--swh-line);
  border-radius: 6px;
  background: var(--swh-black);
  color: var(--swh-white);
  padding: 8px 10px;
  font: inherit;
}
.form-field textarea { min-height: 130px; }
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.static-form button {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  background: var(--swh-accent);
  color: var(--swh-black);
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}
.static-form button:hover { background: var(--swh-white); }

.response-panel {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--swh-line);
  border-radius: 8px;
  background: var(--swh-panel);
}
.response-panel h1 {
  margin-top: 0;
  color: var(--swh-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.15;
}
.response-panel--error { border-color: #b85c5c; }

