/*
Theme Name: HCW
Description: Natives WordPress-Theme für den HC Winnenden ("Social Editorial"-Design).
Author: HC Winnenden
Version: 0.4.20
Text Domain: hcw-theme
Requires PHP: 7.4
*/

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Magnesium";
  src: url("fonts/Magnesium MVB Regular.otf");
  font-weight: 400;
  font-display: swap;
}

/* Oswald + Barlow lokal gehostet (OFL-Lizenz), kein Abruf bei Google – DSGVO-konform. Nur Latin/Latin-Ext. */
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Barlow";
  src: url("fonts/barlow-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Barlow";
  src: url("fonts/barlow-latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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: "Barlow";
  src: url("fonts/barlow-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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: "Barlow";
  src: url("fonts/barlow-latin-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Barlow";
  src: url("fonts/barlow-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Oswald";
  src: url("fonts/oswald-latin-ext-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  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: "Oswald";
  src: url("fonts/oswald-latin-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --hcw: #144a84;
  --navy: #1b3f7b;
  --navy-deep: #081f3d;
  --blue: #12488c;
  --blue-mid: #1b56a3;
  --ink: #0b2a4f;
  --bg: #f4f6fa;
  --line: #dfe6ee;
  --paper: #ffffff;
  --muted: #5c7089;
  --font-display: "Magnesium", Impact, "Arial Narrow", sans-serif;
  --font-label: "Oswald", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --column-w: url("assets/graphics/column-white.png");
  --column-n: url("assets/graphics/column-navy.png");
  --akt-right-w: url("assets/graphics/akt-right-white.png");
  --akt-right-n: url("assets/graphics/akt-right-navy.png");
  --termine-right-w: url("assets/graphics/termine-right-white.png");
  --termine-right-n: url("assets/graphics/termine-right-navy.png");
  --weitere-left-w: url("assets/graphics/weitere-left-white.png");
  --weitere-left-n: url("assets/graphics/weitere-left-navy.png");
  --footer-left-w: url("assets/graphics/footer-left-white.png");
  --footer-left-n: url("assets/graphics/footer-left-navy.png");
  --footer-right-w: url("assets/graphics/footer-right-white.png");
  --footer-right-n: url("assets/graphics/footer-right-navy.png");
}

/* ---------- Graphic accents (organic fragments cropped from design reference / sprite, fade baked in) ---------- */

/* full-height dense stripe column, e.g. Aktuelles left edge (fades toward content on its own) */
.edge-column {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  background-repeat: repeat-y;
  background-size: 70px auto;
  pointer-events: none;
}
.edge-column.white {
  background-image: var(--column-w);
}
.edge-column.navy {
  background-image: var(--column-n);
}
.edge-column.right {
  left: auto;
  right: 0;
}

/* single corner fragment, fade already baked into the asset - just position it */
.gfx {
  position: absolute;
  width: 300px;
  height: 300px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.gfx.tl {
  top: 0;
  left: 0;
}
.gfx.tr {
  top: 0;
  right: 0;
}
.gfx.small {
  width: 200px;
  height: 200px;
}
.gfx.akt-right.navy {
  background-image: var(--akt-right-n);
}
.gfx.termine-right.navy {
  background-image: var(--termine-right-n);
}
.gfx.weitere-left.navy {
  background-image: var(--weitere-left-n);
}
.gfx.footer-left.white {
  background-image: var(--footer-left-w);
}
.gfx.footer-right.white {
  background-image: var(--footer-right-w);
}
.gfx.termine-right.white {
  background-image: var(--termine-right-w);
}
.gfx.weitere-left.white {
  background-image: var(--weitere-left-w);
}

/* Layered display headline: outlined echo behind a solid line, poster-style */
.stack-title {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.stack-title {
  --stroke-color: var(--navy);
}
.stack-title:before {
  content: attr(data-text);
  position: absolute;
  left: -0.1em;
  top: -0.4em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke-color);
  text-stroke: 1.5px var(--stroke-color);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
}

.c {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  /* position: sticky; */
  position:relative;
  top: 0;
  z-index: 20;
  background: var(--paper);
  /* border-bottom: 1px solid var(--line); */
}
.site-header:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-dark);
  pointer-events: none;
}
.site-header .gfx {
  width: 130px;
  height: 130px;
}
/* Sorgt dafür, dass der schräge Anschnitt der jeweils ersten Section einer
   Seite (Hero, Team-Hero, .section__band, …) immer gegen Weiß steht, egal
   ob dahinter eigentlich der graue --bg-Seitenhintergrund läge. Liegt als
   eigenes Element zwischen Header und erster Section statt als :before/:after
   auf den einzelnen Sections, da die dort teils schon für Verlauf/Noise
   belegt sind. */
.header-fill {
  height: 20px;
  background: #fff;
  margin-bottom: -20px;
}
.nav {
  position: relative;
  z-index: 1;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  position:relative;
}
.crest {
  height: 119px;
  width: auto;
  top: 20px;
  position: relative;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-left: 10px;  
}
.brand-text strong {
  font: 700 20px/1.1 var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy);
}
.brand-text small {
  font: 500 11px var(--font-body);
  color: var(--muted);
  letter-spacing: 0.2px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li {
  position: relative;
}
.menu a {
  display: block;
  font: 600 13px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu > li > a:hover {
  border-color: var(--blue-mid);
}
.menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.menu .menu-item-has-children > a:after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

/* Desktop: Flyout-Dropdowns bei Hover/Focus */
.menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 24px -8px rgba(6, 33, 62, 0.18);
}
.menu .sub-menu .sub-menu {
  top: -9px;
  left: 100%;
  margin: 0;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  display: block;
}
.menu .sub-menu a {
  padding: 10px 12px;
  border-bottom: none;
  border-radius: 5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.menu .sub-menu a:hover {
  background: var(--bg);
  color: var(--navy);
}
.menu .sub-menu .menu-item-has-children > a:after {
  margin-left: auto;
  transform: rotate(-45deg);
}
.nav-actions {
  display: flex;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.menu-btn {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  background: var(--paper);
  overflow: hidden;
  color: #fff;
}
.hero-media {
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.7;
  pointer-events: none;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(
      100deg,
      #06213ef2 0%,
      #06213ec2 34%,
      #06213e55 62%,
      transparent 82%
    ),
    linear-gradient(0deg, #04162bcc 0%, transparent 30%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 64px 0 190px;
}
.hero-copy {
  max-width: 640px;
  transform: skewY(-5deg);
  transform-origin: left bottom;
}
.kicker {
  font: 700 26px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 0 0 14px;
  color: #fff;
}
.hero h1 {
  font: 400 clamp(52px, 7.4vw, 108px)/0.86 var(--font-display);
  text-transform: uppercase;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.hero .stack-title {
  --stroke-color: #fff;
}
.hero__ghost {
  position: absolute;
  right: -0.05em;
  bottom: -0.16em;
  font: 400 min(32vw, 340px)/1 var(--font-display);
  color: #ffffff14;
  white-space: nowrap;
  pointer-events: none;
}
.brush {
  display: block;
  height: 9px;
  width: 290px;
  background: #fff;
  border-radius: 2px;
  transform: skewX(-22deg);
}
.match-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 340px;
  padding: 26px 26px 24px;
  background: #0a2c53f5;
  border: 1px solid #ffffff26;
  border-radius: 8px;
}
.eyebrow {
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9fbde3;
  margin: 0 0 6px;
}
.match-card h3 {
  font: 400 26px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.team span {
  font: 700 .8em var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: grid;
  place-items: center;
  font: 700 1em var(--font-label);
  color: #fff;
}
.vs {
  font: 600 1em var(--font-label);
  text-transform: uppercase;
  color: #9fbde3;
}
.datetime {
  margin: 18px 0 2px;
  font: 600 1.2em var(--font-body);
}
.venue {
  margin: 0 0 18px;
  font: 400 1em var(--font-body);
  color: #a9c1de;
}
.btn {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font: 700 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 4px;
}
.match-card .btn {
  display: block;
  text-align: center;
}
.btn.ghost-btn {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}
.head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.title {
  font: 400 clamp(28px, 8vw, 42px)/0.9 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 14px;
  overflow-wrap: break-word;
  margin-bottom:1em;
}
.title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--blue-mid);
}
.link-more {
  font: 600 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-mid);
  white-space: nowrap;
}

/* Aktuelles */
.aktuelles {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.aktuelles .c {
  position: relative;
  z-index: 1;
}
.heimspiele-card {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  border-radius: 10px;
  margin-bottom: 32px;
  flex-direction: row;
  padding:20px;
}

.heimspiele-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/graphics/heimspiele.jpg");

  pointer-events: none;
}
.heimspiele-card__title {
  flex: 0 0 50%;
  width: 50%;
  color: white;
  font: 400 clamp(28px, 8vw, 42px)/0.9 var(--font-display);
  text-transform: uppercase;
  position: relative;
  overflow-wrap: break-word;
    --stroke-color:#fff;
  /* color: transparent;

  -webkit-text-stroke: 1.5px var(--stroke-color);
  text-stroke: 1.5px var(--stroke-color); */
  padding:10px;
  bottom: -8px;

}
.heimspiele-card__title::before {
  content: 'Heimspieltage';
  position: absolute;
  left: 0.1em;
  top: -0.2em;
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke-color);
  text-stroke: 1.5px var(--stroke-color);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}

.heimspiele-card__body {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 36px;
  padding: 0 32px;
}
/* .heimspiele-card__day + .heimspiele-card__day {
  padding-top: 36px;
  border-top: 1px solid #ffffff2e;
} */
.heimspiele-card__date {
  margin: 0;
  color: #fff;
  font: 700 32px var(--font-label);
}
.heimspiele-card__venue {
  margin: 2px 0 0;
  color: #cfdcee;
  font: 400 14px var(--font-body);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.story {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.story__link {
  display: block;
  color: inherit;
}
.story-media {
  position: relative;
  height: 340px;
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.story__link:hover .story-media img {
  transform: scale(1.04);
}
.story-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #06213ea6 0%, transparent 45%);
}
.pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 999px;
}
.story-media .result-line {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  color: #fff;
}
.story-copy {
  padding: 22px 24px 26px;
}
.story-copy h3 {
  font: 400 27px/1.08 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}
.story-copy .meta {
  color: var(--muted);
}
.meta {
  font: 500 11px var(--font-body);
  color: #c3d3e7;
  letter-spacing: 0.2px;
}

.spielbericht__result {
  padding: 3em 0;
  color: #fff;  
}

/* Ergebnis-Zeile in Spielbericht-Teasern (.story / .mini) – nutzt dieselben
   .logo/.badge-Bausteine wie Hero-Matchcard & Termine-Reihe, damit spätere
   echte Gegner-Logos (hcw-club-data) hier einfach nur den <img>-src ersetzen. */
.result-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.result-line .logo,
.result-line .badge {
  width: 36px;
  height: 36px;
  flex: none;
}
.result-line .badge {
  font-size: 11px;
}
.result-line__score {
  font: 400 40px var(--font-display);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.mini-media .result-line {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  justify-content: center;
  color: #fff;
}
.mini-media .result-line .logo,
.mini-media .result-line .badge {
  width: 34px;
  height: 34px;
}
.mini-media .result-line .badge {
  font-size: 10px;
}
.mini-media .result-line__score {
  font-size: 36px;
  text-shadow: 0 2px 8px rgba(6, 33, 62, 0.7);
}

/* Nächste Termine */
.grain {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-color:transparent !important;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
    top: 0px;
    left: 0px;
  background-image: var(--noise-dark);
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: 100% auto;
  background-position: 35% 61%;
  background-image: url('assets/graphics/bg-top.jpg');
  background-repeat: repeat;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #fff;
}
.fixture-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.fixture {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 46px 18px 20px;
}
.fixture .teams {
  margin: 18px 0 16px;
}
.fixture .logo {
  width: 38px;
  height: 38px;
}
.fixture .badge {
  width: 38px;
  height: 38px;
  font-size: 9px;
}
.fixture .team span {
  font-size: 9px;
}
.fixture .datetime {
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.fixture .venue {
  font: 400 10.5px var(--font-body);
  color: var(--muted);
  margin: 4px 0 0;
}
.arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--blue-mid);
  font-size: 14px;
  border: 1px solid var(--line);
}
.mobile-only {
  display: none;
}



/* Weitere News */
.weitere {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.weitere .c {
  position: relative;
  z-index: 1;
}
.news4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mini {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.mini__link {
  display: block;
  color: inherit;
}
.mini-media {
  position: relative;
  height: 200px;
}
.mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.mini__link:hover .mini-media img {
  transform: scale(1.04);
}
.mini-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #06213e33;
}
.mini-media .pill {
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 9px;
}
.mini-copy {
  padding: 14px 16px 16px;
}
.mini-copy h4 {
  font: 400 18px/1.15 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 4px;
}
.mini-copy .meta {
  color: var(--muted);
}

/* Teaser (Vereinskleidung / Mitglied werden) */

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.teaser-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.teaser-card.mitglied {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--navy-deep) 100%);
}
.teaser-card.kleidung,
.teaser-card.jugend,
.teaser-card.aktive {
  /* Blauer Verlauf über dem Foto, damit der Text lesbar bleibt (alles in EINEM background-image, sonst überschreibt das Foto den Verlauf) */
  background-image: linear-gradient(100deg, var(--navy-deep) 0%, rgba(27, 63, 123, 0.92) 32%, rgba(27, 63, 123, 0.6) 55%, rgba(27, 63, 123, 0.15) 85%), var(--teaser-photo);
  background-repeat: no-repeat;
  background-position: center, right bottom;
  background-size: 100% 100%, cover;
  background-color: #1d407a;
}
.teaser-card.kleidung {
  --teaser-photo: url("assets/images/wot.jpg");
}
.teaser-card.jugend {
  --teaser-photo: url("assets/images/jugend.jpg");
}
.teaser-card.aktive {
  --teaser-photo: url("assets/images/aktive.jpg");
}
.teaser-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
/* Foto-Karten: Grain deutlich stärker, sonst geht er auf dem Bild unter */
.teaser-card.kleidung:before,
.teaser-card.jugend:before,
.teaser-card.aktive:before {
  background-image: var(--noise-light), var(--noise-light), var(--noise-dark), var(--noise-dark);
  mix-blend-mode: normal;
  opacity: 1;
}
/* Variante: nur Überschrift, teaser-bg.jpg, groß und mittig */
.teaser-card--title {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy) url("assets/images/teaser-bg.jpg") right top / cover no-repeat;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
/* Erste Kachel: Hintergrundbild um 180° gedreht (Streifen unten links) */
.teaser-card--title:nth-child(1) {
  background-image: url("assets/images/teaser-bg-gedreht.jpg");
  background-position: left bottom;
}
.teaser-card.teaser-card--title h3 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
}
.teaser-card.teaser-card--title .stack-title {
  --stroke-color: #fff;
}
.teaser-card--title .stack-title:before {
  transition: left 0.35s ease, top 0.35s ease, opacity 0.35s ease;
}
/* Hover/Fokus: Kachel hebt sich, das Outline-Echo rückt heraus (Farbe bleibt gleich) */
.teaser-card--title:hover,
.teaser-card--title:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(4, 14, 30, 0.35);
}
.teaser-card--title:hover .stack-title:before,
.teaser-card--title:focus-visible .stack-title:before {
  left: -0.18em;
  top: -0.55em;
  opacity: 0.9;
}
.teaser-card--title:focus-visible {
  outline: 3px solid #9fbde3;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .teaser-card--title,
  .teaser-card--title .stack-title:before {
    transition: none;
  }
  .teaser-card--title:hover,
  .teaser-card--title:focus-visible {
    transform: none;
  }
}
.teaser-card * {
  position: relative;
  z-index: 1;
}
.teaser-card .gfx {
  position: absolute;
  z-index: 0;
  opacity: 0.55;
}
.teaser-card .btn {
  align-self: flex-start;
}
.teaser-card .eyebrow {
  color: #9fbde3;
  margin: 0 0 8px;
}
.teaser-card h3 {
  font: 400 clamp(30px, 3.4vw, 44px)/0.95 var(--font-display);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.teaser-card p {
  margin: 0 0 22px;
  color: #cbd9ec;
  max-width: 360px;
  font-size: 14px;
}
.teaser-card.kleidung p {
  max-width: 230px;
}
.teaser-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.teaser-photo {
  position: absolute;
  z-index: 0;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(4, 14, 30, 0.45);
  object-fit: cover;
}
.teaser-photo--wide {
  top: 24px;
  right: -24px;
  bottom: 24px;
  width: 56%;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100%);
}
.teaser-photo--accent {
  z-index: 1;
  right: 8%;
  bottom: 20px;
  width: 27%;
  height: 46%;
  transform: rotate(-6deg);
  border: 4px solid rgba(255, 255, 255, 0.92);
}

/* Sponsoren */
.sponsoren {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}
.sponsoren:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.sponsoren .c {
  position: relative;
  z-index: 1;
}
.sponsoren .title {
  color: #fff;
}
.sponsoren .link-more {
  color: #9fbde3;
}
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  max-width: 250px;
}
.sponsor-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Platzhalter-Logos sind mehrfarbige SVGs; der Filter macht sie einheitlich
     weiß. Funktioniert zuverlässig für einfarbige/kontrastreiche Logos (SVG
     oder PNG mit transparentem Hintergrund). Bei komplexen Mehrfarb-Logos
     ggf. eine vorgefertigte Weiß-Variante hochladen und den Filter im
     WordPress-Theme pro Sponsor deaktivierbar machen. */
  filter: brightness(0) invert(1);
}
.sponsor-logo:hover {
  opacity: 1;
}

/* ---------- Team-Seite (single-mannschaft) ---------- */
/* "Digitaler Mannschafts-Post": großer Hero, Dashboard, Matchday, redaktioneller
   Bericht, großes TEAM-Element, Trainerkarten, grafische Trainingszeiten. */
.team-content {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--ink);
  line-height: 1.6;
}

.team-breadcrumb a {
  color: var(--navy);
}
.team-breadcrumb span {
  margin: 0 8px;
}
.team-breadcrumb span:last-child {
  color: var(--ink);
  margin-right: 0;
}

/* --- Hero --- */
.team-hero {
  background: var(--paper);
}
.team-hero__band {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
  overflow: hidden;
  color: #fff;
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
}
.team-hero__band:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.team-hero__ghost {
  position: absolute;
  right: -0.05em;
  bottom: -0.16em;
  font: 400 min(38vw, 300px)/1 var(--font-display);
  color: #ffffff12;
  white-space: nowrap;
  pointer-events: none;
  transform: skewX(-6deg);
}
.team-hero .gfx {
  opacity: 0.6;
}
.team-hero__inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 36px;
}
.team-hero__band .title {
  color: #fff;
  margin-bottom: 10px;
}
.team-hero__meta {
  margin: 0;
  font: 700 14px var(--font-label);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fbde3;
}
.team-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.team-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-hero__media:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.7;
  pointer-events: none;
}

/* --- Dashboard --- */
.team-dashboard {
  background: var(--navy-deep);
  color: #fff;
  padding-top: 40px;
}
.team-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: #ffffff26;
  border-radius: 8px;
  overflow: hidden;
}
.dash-card {
  background: var(--navy-deep);
  color: #fff;
  padding: 26px 24px;
}
.dash-card__icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: #9fbde3;
}
.dash-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-card__label {
  font: 700 1em var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9fbde3;
  margin: 0 0 12px;
}
.dash-card__game {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-card__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-mid);
  font: 700 10px var(--font-label);
}
.dash-card__game b {
  font: 600 10px var(--font-label);
  color: #9fbde3;
}
.dash-card__line {
  margin: 0 0 4px;
  font: 600 1.3em var(--font-body);
}
.dash-card__line--tight {
  margin-bottom: 2px;
}
.dash-card__sub {
  margin: 0;
  font: 400 1em var(--font-body);
  color: #a9c1de;
}
.dash-card__link {
  display: inline-block;
  margin-top: 14px;
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
}

/* --- Matchday (Nächstes Spiel groß + Spielplan/Tabelle) --- */
.team-matchday {
  background: var(--bg);
  padding: 56px 0 ;

}
.team-matchday__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.match-card--standalone {
  position: static;
  width: auto;
  padding: 28px;
  margin-bottom: 24px;
  color: #fff;
}

.match-card--dashboard {
  margin-top: 24px;
  max-width: 80%;
}
.fixture-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}
.fixture-list__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.fixture-list__head h3 {
  font: 400 19px var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.fixture-list__head a {
  font: 600 11px var(--font-label);
  text-transform: uppercase;
  color: var(--blue-mid);
}
.fixture-list__row {
  display: grid;
  grid-template-columns: 1fr 1fr 56px 1fr;
  grid-template-areas: "when home center away";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.fixture-list__row--heimspiel {
  grid-template-columns: 130px 1fr;
  grid-template-areas: "when home";
}
.fixture-list__when {
  grid-area: when;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
  line-height: 1.3;
}
.fixture-list__when .fixture-list__loc {
  flex-basis: 100%;
}
.fixture-list__date {
  font-weight: 700;
  color: var(--navy);
}
.fixture-list__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
}
.fixture-list__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fixture-list__team--home {
  grid-area: home;
  justify-content: flex-end;
  text-align: right;
}
.fixture-list__team--away {
  grid-area: away;
  justify-content: flex-start;
  text-align: left;
}
.fixture-list__team .is-own {
  color: var(--hcw);
  font-weight: 700;
}
.fixture-list__team .logo,
.fixture-list__team .badge {
  width: 22px;
  height: 22px;
  flex: none;
}
.fixture-list__team .badge {
  font-size: 8px;
}
.fixture-list__center {
  grid-area: center;
  text-align: center;
}
.fixture-list__match {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
}
.fixture-list__match .is-own {
  color: var(--hcw);
  font-weight: 700;
}
.fixture-list__match b {
  font-size: 10px;
  color: var(--muted);
}
.fixture-list__result {
  font-size: 17px;
  font-weight: 700;
  color: var(--hcw);
}
.fixture-list__vs {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.fixture-list__time {
  font-weight: 700;
  color: var(--navy);
}
.fixture-list__match .logo,
.fixture-list__match .badge {
  width: 22px;
  height: 22px;
  flex: none;
}
.fixture-list__match .badge {
  font-size: 8px;
}
.fixture-list__staffel {
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--blue-mid);
}
.fixture-list__ical {
  margin-left: auto;
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--blue-mid);
}
.team-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}
.team-table__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.team-table__head h3 {
  font: 400 19px var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.team-table__head a {
  font: 600 11px var(--font-label);
  text-transform: uppercase;
  color: var(--blue-mid);
}
.team-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.team-table th {
  text-align: left;
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.team-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.team-table tr.is-own td {
  color: var(--navy);
  font-weight: 700;
}
.team-table th:nth-child(3),
.team-table th:nth-child(4),
.team-table td:nth-child(3),
.team-table td:nth-child(4) {
  text-align: right;
}
.team-table__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 0 16px;
  color: var(--muted);
  text-align: center;
}
.team-table__placeholder svg {
  opacity: 0.5;
}
.team-table__placeholder p {
  font: 600 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
}
.team-table__updated {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.team-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-sponsors {
  background: var(--navy);
  border: none;
  padding: 22px 24px;
}
.team-sponsors .team-sponsors__head h3 {
  color: #fff;
}
.team-sponsors__wrapper {
  display: flex; 
  gap: 10px;
  justify-content: space-evenly;
}
.team-sponsors .sponsor-tile {
  padding: 12px 8px;
  background: #fff;
  border: none;
}
.team-sponsors .sponsor-tile__logo {
  height: 40px;
}
.team-sponsors .sponsor-tile__logo--placeholder {
  color: var(--muted);
}
.dash-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid #ffffff55;
  border-radius: 4px;
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
}
.dash-card__btn:hover {
  background: #fff;
  color: var(--navy-deep);
}

/* --- Über die Mannschaft --- */
.team-about {
  padding: 64px 0;
  background: var(--bg);
}
.team-about__layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 28px;
}
.team-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-stats__item b {
  display: block;
  font: 400 44px/1 var(--font-display);
  color: var(--navy);
}
.team-stats__item span {
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.team-about__text {
  color: var(--ink);
  line-height: 1.7;
}
.team-about__text p {
  margin: 0 0 16px;
}
.team-quote {
  margin: 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blue-mid);
  background: var(--bg);
  font: 400 22px/1.35 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
}

/* --- Großes TEAM-Element --- */
.team-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.team-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.team-banner__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 400 min(38vw, 420px)/1 var(--font-display);
  color: #ffffff0d;
  white-space: nowrap;
  pointer-events: none;
}
.team-banner .gfx {
  opacity: 0.5;
}
.team-banner__inner {
  position: relative;
  z-index: 1;
}
.team-banner__inner p {
  margin: 0;
  font: 700 14px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #9fbde3;
}
.team-banner__inner h2 {
  font: 400 clamp(34px, 6vw, 72px)/1 var(--font-display);
  text-transform: uppercase;
  margin: 8px 0 18px;
}
.team-banner__rule {
  display: inline-block;
  width: 70px;
  height: 3px;
  background: var(--blue-mid);
}
.team-banner__club {
  margin: 18px 0 0;
  font: 600 13px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd9ec;
}

/* --- Trainerteam --- */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.trainer-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 20px;
  text-align: center;
}
.trainer-card__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 400 22px var(--font-display);
}
.trainer-card__name {
  margin: 0;
  font: 600 13px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink);
}

/* --- Training (grafische Zeitleiste) --- */
.team-training {
  background: var(--bg);
}
.team-training__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr);
  gap: 32px;
  align-items: center;
}
.training-timeline__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.training-timeline__row:last-child {
  border-bottom: 1px solid var(--line);
}
.training-timeline__day {
  font: 400 28px var(--font-display);
  color: var(--navy);
  grid-row: span 2;
}
.training-timeline__bar {
  font: 700 16px var(--font-label);
  color: var(--ink);
  align-self: end;
}
.training-timeline__loc {
  font: 400 12px var(--font-body);
  color: var(--muted);
}
.team-training__image {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
}

@media (max-width: 900px) {
  .team-matchday__grid,
  .team-about__layout,
  .team-training__layout {
    grid-template-columns: 1fr;
  }
  .team-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 20px;
  }
  .team-training__image {
    display: none;
  }
  .fixture-list__head h3,
  .team-table__head h3 {
    font-size: 18px;
  }
  .fixture-list__row {
    font-size: 13px;
    grid-template-columns: 1fr 44px 1fr;
    grid-template-areas:
      "when when when"
      "home center away";
    row-gap: 6px;
  }
  .fixture-list__row--heimspiel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "when"
      "home";
  }
  .fixture-list__result {
    font-size: 15px;
  }
  .team-table table {
    font-size: 13px;
  }
  .team-table th {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .team-hero__band {
    min-height: 200px;
  }
  .team-hero__media {
    aspect-ratio: 4 / 3;
  }
  .team-dashboard__grid {
    grid-template-columns: 1fr;
  }
  .team-banner {
    padding: 52px 0;
  }
  .section__band {
    min-height: 160px;
  }
}

/* ---------- Seiten mit Titel-Band ----------
   Ein Layout-Baustein (.section__band/.section__image), von mehreren
   inhaltlich verschiedenen Seitentypen genutzt – jede bekommt ihren eigenen
   BEM-Modifier (.section--…) statt sich fälschlich eine generische
   "basic-page"-Klasse zu teilen (z. B. war ein Spielbericht vorher als
   "section basic-page" ausgezeichnet, was semantisch falsch ist). */
.section--basic-page,
.section--spielbericht,
.section--spielplan,
.section--trainingszeiten,
.section--sponsoren,
.section--ansprechpartner,
.section--news {
  padding-top: 0;
  padding-bottom: 56px;
}
.section__band {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
  overflow: hidden;
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  margin-bottom: 40px;
}
.section--news .section__band {
  background: var(--navy-deep) url("assets/images/news-bg-small.jpg") top / cover no-repeat;
}
.section--news .section__band:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy-deep) 10%, transparent 58%);
  pointer-events: none;
}
.section__band:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.section__band .c {
  position: relative;
  z-index: 1;
  padding: 48px 0 36px;
}
.section__band .title {
  color: #fff;
  margin-bottom: 10px;
}
.section__band .title:last-child {
  margin-bottom: 0;
}
.result-line--band {
  margin-bottom: 8px;
}
.spielbericht__team-pill {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 40px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.spielbericht__team-pill:hover {
  background: #9fbde3;
}
.section__image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.section__image img {
  display: block;
  width: 100%;
  height: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
}
.contact-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 16px;
}
.contact-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card__name {
  font: 400 20px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--ink);
}
.contact-card__desc {
  font: 400 14px var(--font-body);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.contact-card__link {
  font: 700 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue-mid);
}
.sponsor-tier {
  margin-top: 48px;
}
.sponsor-tier:first-of-type {
  margin-top: 40px;
}
.sponsor-tier h2 {
  font: 400 26px var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.sponsor-tier__grid {
  display: grid;
  gap: 18px;
}
.sponsor-tier--premiumsponsor .sponsor-tier__grid,
.sponsor-tier--ausstatter .sponsor-tier__grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.sponsor-tier--sponsor .sponsor-tier__grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.sponsor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sponsor-tile:hover {
  box-shadow: 0 12px 20px -8px rgba(6, 33, 62, 0.16);
  transform: translateY(-2px);
}
.sponsor-tier--sponsor .sponsor-tile {
  padding: 14px 10px;
  gap: 0;
}
.sponsor-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 100%;
}
.sponsor-tier--sponsor .sponsor-tile__logo {
  height: 44px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: opacity 0.2s, filter 0.2s;
}
.sponsor-tile:hover .sponsor-tile__logo {
  filter: none;
  opacity: 1;
}
.sponsor-tile__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sponsor-tile__logo--placeholder {
  font: 700 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.sponsor-tile__name {
  font: 600 13px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink);
}

@media (max-width: 760px) {
  .sponsor-tier--premiumsponsor .sponsor-tier__grid,
  .sponsor-tier--ausstatter .sponsor-tier__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .sponsor-tier--sponsor .sponsor-tier__grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

/* ---------- Monats-Gruppierung (page-termine, page-heimspiele, page-news) ---------- */
.month-group {
  margin-top: 40px;
}
.month-group:first-of-type {
  margin-top: 0;
}
.month-group h2 {
  font: 400 22px var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.month-group .fixture-list__row:first-child {
  border-top: none;
}
.fixture-list__loc {
  display: block;
  font: 400 11px var(--font-body);
  color: var(--muted);
}
.fixture-list__match--termin {
  justify-content: flex-start;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.fixture-list__match--termin a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Termine-Übersicht: Filterbar + angereicherte Zeilen ---------- */
.termine-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.termine-filterbar__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.termine-filterbar__group label {
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.termine-filterbar select {
  font: 600 13px var(--font-body);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  min-width: 180px;
}
.termine-filterbar__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 13px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
/* ---------- Termine-Übersicht: Tages-Badge-Layout (Vorbild ColorMag) ---------- */
.termine-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.termin-day {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.termin-day:first-child {
  border-top: none;
  padding-top: 0;
}
.termin-day__badge {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 4px;
  background: var(--hcw);
  border-radius: 6px;
  color: #fff;
}
.termin-day__num {
  font: 400 34px/1 var(--font-display);
}
.termin-day__month {
  margin-top: 2px;
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}
.termin-day__entries {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.termin-entry {
  padding:0 19px 22px;
  border-left: 3px solid var(--line);
}
.termin-entry--spieltag,
.termin-entry--termin {
  border-left-color: var(--blue-mid);
}
.termin-entry__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 1.4em var(--font-label);
  color: var(--ink);
}
.termin-entry__title a {
  color: var(--ink);
}
.termin-entry__title .logo,
.termin-entry__title .badge {
  width: 30px;
  height: 30px;
  flex: none;
}
.termin-entry__title .badge {
  font-size: 8px;
}

.termin-entry__title .is-own {
  color: var(--hcw);
  font-weight:700;
}
.termin-entry__header {
  padding: 5px 0;
}
.termin-entry__header .pill.small {
  position: static;
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
}
.termin-entry__vs {
  color: var(--muted);
  font-weight: 400;
  margin: 0 2px;
}
.termin-entry__staffel {
  margin: 2px 0 0;
  font: 600 .9em var(--font-body);
  color: var(--muted);
}
.termin-entry__meta {
  margin: 4px 0 0;
  font: 400 1.2em var(--font-body);
  color: var(--muted);
}
.termin-entry__time {
  font: 400 1.2em var(--font-body);
  color: var(--muted);
}
.ical-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted) !important;
  font: 600 11px var(--font-body) !important;
  vertical-align: middle;
}
.ical-btn:hover {
  background: var(--line);
  color: var(--ink) !important;
}
.ical-btn__icon {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.termin-entry__sep {
  margin: 0 6px;
  color: #adb5bf;
}

/* ---------- Trainingszeiten-Übersicht (page-trainingszeiten) ---------- */
.training-group {
  margin-top: 44px;
  overflow-x: auto;
}
.training-group:first-of-type {
  margin-top: 0;
}
.training-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.training-table th {
  text-align: left;
  padding: 0 16px 12px 0;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.training-table th:first-child {
  font: 400 22px var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--navy);
  padding-bottom: 14px;
}
.training-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.training-table tr:last-child td {
  border-bottom: none;
}
.training-table td:first-child a {
  color: var(--navy);
  font-weight: 700;
}
.training-slot {
  margin-bottom: 8px;
}
.training-slot:last-child {
  margin-bottom: 0;
}
.training-slot__label {
  display: block;
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.training-slot__time {
  display: block;
  font-weight: 700;
}
.training-slot__loc {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.training-table td:last-child {
  color: var(--muted);
  font-size: 13px;
  max-width: 280px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}
.footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  pointer-events: none;
}
.ghost {
  position: absolute;
  right: -1.5rem;
  bottom: -16%;
  font: 400 min(22vw, 270px)/1 var(--font-display);
  transform: skewX(-8deg);
  pointer-events: none;
  white-space: nowrap;
  color: #ffffff12;
  filter: blur(1px);
}
.foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) 1fr;
  gap: 28px;
  padding-bottom: 52px;
  border-bottom: 1px solid #ffffff1f;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.foot-brand .crest {
  height: 70px;
  top: 0;
}
.foot-brand h2 {
  font: 400 34px/0.92 var(--font-display);
  text-transform: uppercase;
}
.foot-brand__legal {
  font: 700 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9fbde3;
  margin: 0 0 6px;
}
.foot-col h4 {
  font: 400 15px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #cfe0f5;
}
.foot-col a {
  display: block;
  font: 500 12px var(--font-body);
  color: #b7c9e0;
  margin: 9px 0;
}
.social {
  display: flex;
  gap: 12px;
}
.social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0;
}
.social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social a:hover {
  color: #9fbde3;
}
.foot-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid #ffffff1f;
}
.foot-info h4 {
  font: 400 15px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #cfe0f5;
}
.foot-info p {
  font: 500 12px var(--font-body);
  line-height: 1.8;
  color: #b7c9e0;
  margin: 0;
}
.foot-info a {
  color: #b7c9e0;
}
.foot-info a:hover {
  color: #fff;
}
.foot-info__note {
  margin-top: 14px;
}
.foot-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font: 500 11px var(--font-body);
  color: #94aacb;
}
.foot-legal {
  display: flex;
  gap: 18px;
}
.foot-legal a {
  color: #94aacb;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .foot-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1/-1;
  }
}

/* Mobile/Tablet-Nav: Dropdown-Panel, per JS über .nav-open getoggelt (siehe index.html) */
.site-header.nav-open .menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  gap: 2px;
  padding: 8px 24px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 24px -8px rgba(6, 33, 62, 0.18);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}
.site-header.nav-open .menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

/* Mobile: Untermenüs als aufklappbares Akkordeon statt Hover-Flyout */
.site-header.nav-open .menu .sub-menu {
  position: static;
  display: none;
  margin: 0 0 0 14px;
  padding: 0;
  border: none;
  box-shadow: none;
  min-width: 0;
}
.site-header.nav-open .menu li.submenu-open > .sub-menu {
  display: block;
}
.site-header.nav-open .menu .sub-menu a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.site-header.nav-open .menu .menu-item-has-children > a:after {
  transition: transform 0.15s ease;
}
.site-header.nav-open .menu li.submenu-open > a:after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.menu-btn svg line {
  transform-origin: 12px 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .menu-btn svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .menu-btn svg line:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .menu-btn svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .fixture-row {
    grid-template-columns: repeat(5, 240px);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  .fixture {
    scroll-snap-align: start;
  }
  .news4 {
    grid-template-columns: 1fr 1fr;
  }
  .youth-grid {
    grid-template-columns: repeat(15, 160px);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  .youth-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 100px;
  } 
  .c {
    width: calc(100% - 32px);
    padding-top:10px;
  }
  .section__band {
     min-height: 180px
  }
  .nav {
    height: 68px;
    gap: 14px;
  }
  .crest {
    height: 104px
  }
  .brand-text small {
    display: none;
  }

  .hero {
    min-height: auto;
  }
  .hero-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 24px;
  }
  .hero-media {
    position: relative;
    height: 340px;
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  }
  .hero:before {
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(0deg, #06213ef5, #06213e88 55%, #06213e33);
  }
  .heimspiele-card {
    flex-direction: column;
    align-items: stretch;
  }
  .heimspiele-card__title,
  .heimspiele-card__body {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
    margin-bottom: 1em;
  }
  .heimspiele-card__body {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  .hero-copy {
    position: relative;
    margin-top: -120px;
    z-index: 1;
    padding: 0 4px;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 56px);
    letter-spacing: -1px;
  }
  .match-card {
    position: relative;
    inset: auto;
    width: auto;
    margin: 20px 4px 0;
    right: auto;
    bottom: auto;
  }

 
  .title {
    font-size: 32px;
  }
  .head {
    align-items: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .story-media {
    height: 300px;
  }

  .fixture-row {
    grid-template-columns: repeat(5, 78vw);
  }
  .mobile-only.btn {
    display: block;
    margin-top: 22px;
    text-align: center;
    background: var(--blue-mid);
    color: #fff;
  }

  .youth-grid {
    grid-template-columns: repeat(15, 40vw);
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .teaser-card {
    min-height: 220px;
    padding: 28px;
  }
  .teaser-card.kleidung {
    background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy) 62%, transparent 90%), linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  }
  .teaser-photo--wide {
    top: 20px;
    bottom: 20px;
    width: 74%;
  }
  .teaser-photo--accent {
    width: 32%;
    bottom: 16px;
  }

  .sponsor-row {
    justify-content: center;
    gap: 28px;
  }
  .sponsor-logo {
    height: 30px;
    max-width: 180px;
  }

  .news4 {
    grid-template-columns: 1fr;
  }
  .mini-media {
    height: 220px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }
  .foot-brand h2 {
    font-size: 28px;
  }
  .foot-info {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .ghost {
    font-size: 38vw;
    bottom: -6%;
  }

  .gfx {
    width: 160px;
    height: 160px;
  }
  .gfx.small {
    width: 120px;
    height: 120px;
  }
  .edge-column {
    width: 44px;
  }

  .brand-link {
    top: 30px;
  }

  .brand-link .crest {
    top: 10px;
  }
}

/* ---------- "Mehr anzeigen" (page-news) ---------- */
.load-more {
  text-align: center;
  margin-top: 40px;
}
.load-more a.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
