/* ==========================================================================
   Vereinsheim – Frontend (Farben über :root-Variablen, werden im Backend gesetzt)
   ========================================================================== */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  /* Primärfarbe (Standard Gelb) & Dunkelfarbe – werden per Backend überschrieben */
  --yellow: #FCDC00;
  --on-yellow: #111111;
  --primary-on-dark: #FCDC00;
  --black: #111111;
  --yellow-2: color-mix(in srgb, var(--yellow) 82%, #fff);
  --yellow-ink: color-mix(in srgb, var(--on-yellow) 85%, var(--yellow));
  --ink: #1b1b1f;
  --ink-2: #4a4a55;
  --muted: #6b6b76;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-2: #f5f5f2;
  --bg-3: #ececE6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px -12px rgba(0,0,0,.18);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,.35);
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 1em; height: 1em; vertical-align: -.125em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 2.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .5rem 1rem; z-index: 100;  color: var(--on-yellow); }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; }
.kicker { font-family: var(--head); text-transform: uppercase; font-weight: 700; letter-spacing: .12em; font-size: .9rem; color: var(--muted); margin-bottom: .2rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: var(--radius); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.3rem; border-radius: 999px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; text-decoration: none; background: var(--black); color: #fff; border: 2px solid var(--black); cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { background: var(--yellow-2);  color: var(--on-yellow); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-dark { background: var(--black); color: var(--primary-on-dark); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: .95rem; }
.link-more:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* Topbar */
.topbar { background: var(--black); color: #d8d8d8; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.topbar a:hover { color: var(--primary-on-dark); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.topsearch { display: flex; align-items: center; background: #222; border-radius: 999px; padding: 0 .3rem 0 .8rem; }
.topsearch input { background: none; border: 0; color: #fff; width: 120px; font: inherit; padding: .3rem 0; outline: 0; }
.topsearch button { background: none; border: 0; color: #bbb; cursor: pointer; padding: .3rem; display: flex; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--black) 12px 24px); opacity: .95; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); text-transform: uppercase; }
.brand-text strong { font-size: 1.55rem; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin-top: .15rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; }
.nav-link { display: block; padding: .6rem .8rem; font-family: var(--head); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-radius: 8px; }
.nav-item:hover > .nav-link, .nav-item.active > .nav-link { background: var(--bg-2); }
.nav-item.active > .nav-link { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-cta .nav-link { background: var(--yellow); margin-left: .4rem;  color: var(--on-yellow); }
.nav-cta:hover .nav-link { background: var(--yellow-2);  color: var(--on-yellow); }
.sub-toggle { display: none; }
.mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 280px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem; opacity: 0; visibility: hidden; transition: .18s; display: grid; gap: 1.2rem; border-top: 4px solid var(--yellow); }
.mega-2 { grid-template-columns: 1fr 1fr; min-width: 540px; }
.nav-item.has-sub:hover .mega, .nav-item.has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-head { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; text-decoration: none; padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.mega-head img { width: 36px; height: 36px; object-fit: contain; }
.mega-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: .6rem 0 .2rem; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: .28rem .45rem; border-radius: 6px; text-decoration: none; font-size: .95rem; }
.mega li a:hover { background: var(--bg-2); }
.nav-toggle { display: none; background: var(--black); color: var(--primary-on-dark); border: 0; border-radius: 10px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Hero */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .75; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 100%), linear-gradient(0deg, rgba(0,0,0,.7), transparent 45%); }
.hero-inner { position: relative; padding: clamp(4rem, 10vw, 8rem) 20px clamp(7rem, 12vw, 9rem); max-width: var(--wrap); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); max-width: 14ch; font-style: italic; }
.hero h1::after { content: ''; display: block; width: 110px; height: 8px; background: var(--yellow); margin-top: 1rem; transform: skewX(-20deg); }
.hero p { font-size: 1.2rem; max-width: 46ch; color: #eaeaea; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--primary-on-dark); margin-bottom: 1rem; }
.hero-kicker .dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--yellow) 25%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-depts { position: relative; margin-top: -4.5rem; padding-bottom: 1.5rem; }
.hero-depts-inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.dept-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .6rem; background: #fff; color: var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); border-bottom: 4px solid var(--c); transition: transform .18s, box-shadow .18s; }
.dept-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dept-tile-logo { width: 64px; height: 64px; display: grid; place-items: center; }
.dept-tile-logo img { max-width: 64px; max-height: 64px; object-fit: contain; }
.dept-tile-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; text-align: center; line-height: 1.05; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-muted { background: var(--bg-2); }
.section-yellow { background: var(--yellow);  color: var(--on-yellow); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.section-head--inline { margin-top: 2.5rem; }
.group-title { font-size: 1.4rem; text-transform: uppercase; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.group-title::before { content: ''; width: 18px; height: 6px; background: var(--yellow); transform: skewX(-20deg); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.2rem; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.side-card { margin-bottom: 1.2rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 1rem; }
.side-title small { margin-left: auto; font-family: var(--body); text-transform: none; font-weight: 500; font-size: .85rem; color: var(--muted); }
.side-dark { background: var(--black); color: #eee; border-color: var(--black); }
.side-dark .muted { color: #aaa; }
.side-dark .side-title { color: var(--primary-on-dark); }
.side-dark .link-more { color: var(--primary-on-dark); }
.side-links { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Chips / Badges */
.chips-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.chip-filter { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem .38rem .45rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 600; cursor: pointer; font-family: var(--body); color: var(--ink); }
.chip-filter img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: #fff; }
.chip-filter:first-child { padding-left: .8rem; }
.chip-filter small { color: var(--muted); font-weight: 500; }
.chip-filter:hover { border-color: var(--c, var(--black)); }
.chip-filter.is-active { background: var(--black); color: #fff; border-color: var(--black); }
.chip-filter.is-active small { color: #bbb; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem .25rem .3rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); font-size: .82rem; font-weight: 700; }
.badge img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: #fff; }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 5px; background: var(--bg-3); }
.chip-sommer { background: color-mix(in srgb, var(--yellow) 30%, #fff); color: var(--on-yellow); }
.chip-winter { background: #dbeafe; color: #1e3a8a; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
.news-grid--3 { grid-template-columns: repeat(3, 1fr); }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-media { position: relative; display: block; aspect-ratio: 16/10; background: var(--bg-3); overflow: hidden; }
.news-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-media > img { transform: scale(1.04); }
.news-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #f3f3ef 0 14px, #ecece6 14px 28px); }
.news-card-placeholder img { width: 38%; max-height: 70%; object-fit: contain; }
.news-card-logo { position: absolute; left: .8rem; bottom: .8rem; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.25); border: 3px solid var(--c); }
.news-card-logo img { width: 34px; height: 34px; object-fit: contain; }
.news-card-body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.35rem; margin: .35rem 0 .45rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.news-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.meta-dept { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink); border-left: 4px solid var(--c); padding-left: .45rem; }
.news-card--big { display: grid; grid-template-columns: 1.25fr 1fr; }
.news-card--big .news-card-media { aspect-ratio: auto; min-height: 320px; }
.news-card--big .news-card-body { padding: 1.6rem; justify-content: center; }
.news-card--big h3 { font-size: 2rem; text-transform: uppercase; }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager a.is-active { background: var(--black); color: var(--primary-on-dark); border-color: var(--black); }

/* Events */
.event-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.event-list li { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.event-list li:last-child { border-bottom: 0; }
.event-date { flex: none; width: 58px; height: 58px; border-radius: 12px; background: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--head); text-transform: uppercase; font-weight: 700; line-height: 1; font-size: .8rem;  color: var(--on-yellow); }
.event-date strong { font-size: 1.6rem; font-weight: 800; }
.event-info { display: flex; flex-direction: column; gap: .15rem; }
.event-info small { color: var(--muted); }
.event-list--big .event-date { width: 76px; height: 76px; background: var(--c); color: #fff; }
.event-list--big li { padding: 1rem 0; }
.event-list--past .event-date { background: var(--bg-3); }
.today-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.today-list li { display: flex; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid #2a2a2a; }
.today-time { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: #fff; background: #242424; border-left: 4px solid var(--c); border-radius: 6px; padding: .15rem .5rem; }
.today-list a { text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.today-list small { color: #9a9a9a; }

/* Highlight */
.highlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.highlight .kicker { color: var(--yellow-ink); }
.highlight-media video { border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; display: block; }
.audio-box { background: rgba(255,255,255,.6); border-radius: var(--radius); padding: 1rem; margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.audio-box audio { width: 100%; margin-top: .4rem; }
.highlight .muted { color: inherit; }

/* Stats */
.stats-band { background: var(--black); color: #fff; padding: 2.5rem 0; position: relative; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.stats strong { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.8rem); color: var(--primary-on-dark); line-height: 1; font-style: italic; }
.stats span { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: #bbb; }

/* Sponsors */
.sponsors-band { overflow: hidden; }
.marquee { overflow: hidden; margin: .5rem 0 2rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 60s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; width: 150px; height: 80px; display: grid; place-items: center; filter: grayscale(1); opacity: .75; transition: .2s; }
.marquee-item:hover { filter: none; opacity: 1; }
.marquee-item img { max-width: 150px; max-height: 80px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.logo-grid a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 110px; display: grid; place-items: center; padding: .8rem; transition: .2s; text-decoration: none; text-align: center; font-weight: 600; }
.logo-grid a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-grid img { max-height: 84px; max-width: 100%; object-fit: contain; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.sponsor-card { display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.sponsor-card h3 { margin-bottom: .2rem; }
.sponsor-card p { font-size: .93rem; color: var(--ink-2); margin: .5rem 0; }
.sponsor-logo { height: 110px; display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm); }
.sponsor-logo img { max-height: 110px; object-fit: contain; }
.sponsor-grid--main { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.sponsor-grid--main .sponsor-card { grid-template-columns: 200px 1fr; border-top: 5px solid var(--yellow); }
.cta-box { margin-top: 3rem; background: var(--yellow); border-radius: var(--radius); padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;  color: var(--on-yellow); }
.cta-box p { margin: 0; max-width: 60ch; }

/* Page head */
.pagehead { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.pagehead::before { content: ''; position: absolute; right: -80px; top: -40px; width: 380px; height: 140%; background: var(--c); transform: skewX(-18deg); opacity: .9; }
.pagehead.has-img::before { opacity: .55; }
.pagehead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.pagehead-inner { position: relative; padding: 2.4rem 20px 2.8rem; }
.pagehead-title { display: flex; align-items: center; gap: 1.3rem; }
.pagehead-logo { flex: none; width: 96px; height: 96px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); padding: 8px; }
.pagehead-logo img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.pagehead h1 { margin: 0; font-style: italic; }
.pagehead .kicker { color: var(--primary-on-dark); }
.pagehead .lead { color: #ddd; margin: .6rem 0 0; }
.crumbs { font-size: .82rem; color: #bdbdbd; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: #eee; text-decoration: none; }
.crumbs a:hover { color: var(--primary-on-dark); }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 30; }
.subnav-inner { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .9rem .9rem; text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { border-bottom-color: var(--c); }

/* Department */
.dept-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.link-list li a:hover { color: #000; background: var(--bg-2); padding-left: .5rem; }
.link-list li:last-child a { border-bottom: 0; }
.link-list-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: .9rem 0 .1rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.team-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .18s; border-top: 5px solid var(--c); }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-card-media { aspect-ratio: 16/9; background: var(--bg-3); overflow: hidden; }
.team-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.team-card-ph { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #f3f3ef 0 14px, #ecece6 14px 28px); }
.team-card-ph img { height: 60%; width: auto; object-fit: contain; opacity: .9; }
.team-card-body { padding: 1rem 1.1rem 1.1rem; }
.team-card h3 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: .25rem; }
.team-card p { margin: .2rem 0; font-size: .9rem; display: flex; gap: .4rem; align-items: baseline; }
.team-card-times { color: var(--ink); font-weight: 600; }
.team-card-coaches { color: var(--ink-2); }

/* Team */
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.team-side { position: sticky; top: 150px; }
.team-photo { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.team-photo img { display: block; width: 100%; }
.times { list-style: none; margin: 0 0 1rem; padding: 0; }
.times li { display: grid; grid-template-columns: 44px 1fr; column-gap: .7rem; padding: .55rem 0; border-bottom: 1px solid #2a2a2a; align-items: center; }
.card:not(.side-dark) .times li { border-bottom-color: var(--line); }
.times-day { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-family: var(--head); font-weight: 800; font-size: 1.2rem; border-radius: 10px; }
.times-time { font-weight: 700; }
.times-loc { font-size: .85rem; color: #aaa; }
.card:not(.side-dark) .times-loc { color: var(--muted); }
.times .chip { grid-column: 2; justify-self: start; margin-top: .2rem; }
.facts { margin: 0 0 1rem; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-top: .7rem; }
.facts dd { margin: .1rem 0 0; font-weight: 500; }
.note { background: color-mix(in srgb, var(--yellow) 18%, #fff); border-left: 4px solid var(--yellow); padding: .8rem 1rem; border-radius: 8px; font-size: .93rem; margin: 0 0 1rem; }
.consent-box { background: var(--bg-2); border: 1px dashed #c9c9c0; border-radius: var(--radius); padding: 1.4rem; }
.consent-box.is-loaded { background: none; border: 0; padding: 0; }
.consent-remember { display: block; margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.fussballde_widget { margin-bottom: 1.5rem; }

/* People */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.2rem; }
.person-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); align-items: start; }
.person-photo { width: 120px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { font-family: var(--head); font-weight: 800; font-size: 2.6rem; color: #b6b6ad; }
.person h3 { font-size: 1.45rem; margin: .1rem 0 .5rem; text-transform: uppercase; }
.person-role { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; background: var(--yellow); padding: .15rem .5rem; border-radius: 5px;  color: var(--on-yellow); }
.person-facts { margin: 0; display: grid; gap: .35rem; font-size: .88rem; }
.person-facts div { display: grid; grid-template-columns: 100px 1fr; gap: .5rem; }
.person-facts dt { color: var(--muted); font-weight: 600; }
.person-facts dd { margin: 0; }
.person-contact { display: flex; flex-direction: column; gap: .2rem; margin-top: .7rem; font-size: .9rem; }
.person-contact a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; font-size: .86rem; }
.person-contact a:hover { text-decoration: underline; }
.person-text { font-size: .9rem; color: var(--ink-2); }
.person-text p { margin: 0 0 .5rem; }
.person--contact { grid-template-columns: 110px 1fr; }
#ansprechpartner .person-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.person--contact .person-photo { width: 110px; }

/* Training week */
.training-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.training-tools .chips-row { margin: 0; order: 3; flex-basis: 100%; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a, .seg button { border: 0; background: none; padding: .45rem .95rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; cursor: pointer; font-family: var(--body); color: var(--ink); }
.seg .is-active { background: var(--black); color: var(--primary-on-dark); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.week-day { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 200px; }
.week-day-head { background: var(--black); color: #fff; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; padding: .6rem .8rem; display: flex; align-items: center; gap: .4rem; }
.week-day-head em { margin-left: auto; font-style: normal; font-size: .7rem; background: var(--yellow); color: var(--on-yellow); padding: .1rem .4rem; border-radius: 4px; letter-spacing: .06em; }
.week-day.is-today { box-shadow: 0 0 0 3px var(--yellow); }
.wd-short { display: none; }
.week-day-body { padding: .5rem; display: flex; flex-direction: column; gap: .45rem; }
.slot { display: flex; flex-direction: column; gap: .15rem; background: #fff; border-radius: 10px; padding: .55rem .6rem; text-decoration: none; border-left: 5px solid var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: .82rem; transition: .15s; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot.is-hidden { display: none; }
.slot-time { font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.slot-team { font-weight: 700; display: flex; gap: .35rem; align-items: center; line-height: 1.2; }
.slot-team img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.slot-loc { color: var(--muted); font-size: .76rem; display: flex; gap: .25rem; align-items: baseline; line-height: 1.25; }
.slot-empty { color: #b9b9b0; text-align: center; padding: 1rem 0; }
.slot .chip { align-self: flex-start; }
.bydept-block { margin-bottom: 2rem; }
.bydept-block.is-hidden { display: none; }
.bydept-title { display: flex; align-items: center; gap: .7rem; font-size: 1.7rem; margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 4px solid var(--c); }
.bydept-title img { width: 44px; height: 44px; object-fit: contain; }
.no-times { margin-top: 2rem; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
.table-wrap th { background: var(--black); color: #fff; text-align: left; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: .95rem; padding: .7rem .9rem; }
.table-wrap td { padding: .65rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) td { background: #fafaf7; }
.table-wrap a { text-decoration: none; }

/* Prose (Editor-Inhalte) */
.prose { font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.9rem; margin: 2rem 0 .7rem; }
.prose h3 { font-size: 1.5rem; margin: 1.8rem 0 .6rem; text-transform: uppercase; }
.prose h4 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.prose a { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { background: color-mix(in srgb, var(--yellow) 28%, #fff); }
.prose img { border-radius: var(--radius-sm); display: block; margin: 1.2rem auto; }
.prose video { border-radius: var(--radius-sm); background: #000; margin: 1rem 0; display: block; }
.prose audio { width: 100%; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.prose ul li::marker { color: var(--primary-on-dark); }
.prose hr { border: 0; height: 4px; margin: 2rem 0; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, transparent 8px 16px); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 5px solid var(--yellow); background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose p:has(> a.lightbox), .prose p:has(> img) { margin: 0; }
.prose p:has(> a.lightbox + a.lightbox) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.prose .gallery, .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; margin: 1rem 0 2rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.article-head { padding: 2.5rem 0 1rem; border-top: 6px solid var(--c); }
.article-head .crumbs { color: var(--muted); }
.article-head .crumbs a { color: var(--ink-2); }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .8rem 0 .5rem; }
.article-head .meta { font-size: .88rem; }
.article-head .meta time { display: inline-flex; gap: .35rem; align-items: center; }
.article-cover { margin: 0 0 2rem; }
.article-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.article-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Forms */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.contact-info a { text-decoration: none; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; }
.form input[type=text], .form input[type=email], .form select, .form textarea, .searchbox input { font: inherit; padding: .75rem .9rem; border: 1.5px solid #d4d4cc; border-radius: 10px; background: #fff; width: 100%; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus, .searchbox input:focus { outline: 0; border-color: var(--black); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 45%, transparent); }
.form .check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--black); }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-success { background: #e8f7ec; border: 1px solid #9fd8ae; }
.alert-error { background: #fdecec; border: 1px solid #f1a9a9; }
.searchbox { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.notfound-code { font-family: var(--head); font-size: 9rem; font-weight: 800; font-style: italic; line-height: 1; color: var(--primary-on-dark); -webkit-text-stroke: 3px var(--black); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; align-items: start; }
.dl-grid .side-card { margin: 0; }
.dl-grid .side-title { font-size: 1.2rem; }

/* Footer */
.footer { background: var(--black); color: #cfcfcf; margin-top: 0; }
.footer-stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer h3 { color: var(--primary-on-dark); text-transform: uppercase; font-size: 1.2rem; }
.footer a { color: #eee; text-decoration: none; }
.footer a:hover { color: var(--primary-on-dark); }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; margin-bottom: .8rem; }
.footer-brand p { font-size: .92rem; max-width: 36ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .93rem; }
.social { display: flex; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #222; display: grid; place-items: center; font-size: 1.1rem; }
.social a:hover { background: var(--yellow); color: var(--on-yellow); }
.footer-bottom { border-top: 1px solid #262626; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; color: #999; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: grid; place-items: center; padding: 2rem; }
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lb-close { position: absolute; top: 1rem; right: 1rem; background: var(--yellow); border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;  color: var(--on-yellow); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .nav-link { padding: .55rem .55rem; font-size: 1.02rem; }
  .brand-text span { display: none; }
}
@media (max-width: 1080px) {
  .home-grid, .dept-intro, .team-layout { grid-template-columns: 1fr; }
  .team-side { position: static; }
  .hero-depts-inner { grid-template-columns: repeat(3, 1fr); }
  .news-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
  .home-side .side-card { margin: 0; }
  /* Mobile Navigation */
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 114px 0 0 0; background: #fff; transform: translateX(100%); transition: transform .25s, visibility .25s; visibility: hidden; overflow-y: auto; padding: 1rem 20px 3rem; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; }
  .nav-link { font-size: 1.35rem; padding: .85rem .3rem; }
  .nav-item:hover > .nav-link { background: none; }
  .sub-toggle { display: block; width: 48px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--black); border-bottom: 3px solid var(--black); transform: translate(-50%, -70%) rotate(45deg); transition: .2s; }
  .nav-item.sub-open .sub-toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }
  .mega { position: static; grid-column: 1 / -1; transform: none; opacity: 1; visibility: visible; box-shadow: none; min-width: 0; padding: 0 0 1rem; display: none; border: 0; }
  .mega-2 { grid-template-columns: 1fr; }
  .nav-item.sub-open .mega { display: grid; }
  .nav-item.has-sub:hover .mega { transform: none; }
  .nav-cta .nav-link { margin: 1rem 0 0; text-align: center; border-radius: 999px; }
  .nav-cta { border: 0; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter würde die fixierte Navigation auf die Header-Höhe begrenzen */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { top: var(--nav-top, 114px) !important; bottom: 0 !important; height: auto; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hide-sm { display: none !important; }
  .topsearch input { width: 80px; }
  .topbar-left span { display: none; }
  .topbar-left a::after { content: 'Anrufen'; }
  .header-inner { min-height: 64px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.3rem; }
  .nav { inset: 106px 0 0 0; }
  .subnav { top: 64px; }
  .hero-depts-inner { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .news-grid--3 { grid-template-columns: 1fr; }
  .news-card--big { grid-template-columns: 1fr; }
  .news-card--big .news-card-media { min-height: 0; aspect-ratio: 16/10; }
  .news-card--big h3 { font-size: 1.6rem; }
  .highlight { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .week-day.is-empty { display: none; }
  .training-tools { flex-direction: column; align-items: stretch; }
  .training-tools .chips-row { justify-content: flex-start; }
  .person, .person--contact { grid-template-columns: 84px 1fr; }
  .person-photo, .person--contact .person-photo { width: 84px; }
  .person-facts div { grid-template-columns: 1fr; gap: 0; }
  .sponsor-card, .sponsor-grid--main .sponsor-card { grid-template-columns: 1fr; }
  .sponsor-grid, .sponsor-grid--main, .person-grid, #ansprechpartner .person-grid, .dl-grid { grid-template-columns: 1fr; }
  .contact-layout, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pagehead-logo { width: 64px; height: 64px; border-radius: 14px; }
  .pagehead-title { gap: .9rem; }
  .pagehead::before { width: 180px; right: -90px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .header, .footer, .training-tools, .subnav, .pagehead::before, .no-times { display: none !important; }
  .pagehead { background: none; color: #000; }
  .pagehead-bg { display: none; }
  .week { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .week-day { min-height: 0; border: 1px solid #999; }
  .week-day-head { background: #eee; color: #000; }
  .slot { box-shadow: none; border: 1px solid #ccc; border-left-width: 5px; font-size: 9pt; }
  .slot-team img { display: none; }
  [data-view-panel] { display: block !important; }
  [data-view-panel="list"] { display: none !important; }
}
.gallery a { display: block; } .gallery img { border-radius: 8px; }

.powered { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.powered img { width: 18px; height: 15px; }
