/* ==========================================================================
   SV Vesalia 08 Oberwesel – Stylesheet
   Farben: Blau/Weiß. Schriften lokal (DSGVO-konform, keine Google-Verbindung)
   ========================================================================== */

@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"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); }

:root {
  --blue: #162f91;
  --blue-dark: #0f2272;
  --blue-deep: #0a1650;
  --blue-light: #eaeefa;
  --sky: #6f8cff;
  --ink: #0f1a2e;
  --text: #2b3445;
  --muted: #6a7487;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --ok: #1d7a46;
  --warn: #9a6400;
  --error: #b42318;
  --radius: 4px;
  --header-h: 92px;
  --crest: 136px;
  --wrap: 1240px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(10, 22, 80, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-weight: 800; text-transform: uppercase; }
h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-weight: 700; font-size: 1.45rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1.05rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  padding: .95em 1.6em; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #8a1a12; color: #fff; }
.btn-lg { font-size: 1.2rem; }
.btn-sm { font-size: .85rem; padding: .6em 1em; }
.btn-block { width: 100%; }

/* --- Topbar ------------------------------------------------------------- */
.topbar { background: var(--blue-deep); color: #c9d6ee; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar-claim { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; }
.topbar-nav a:hover { color: var(--sky); }
.topbar-nav .topbar-cta { background: var(--blue); margin-left: 8px; }
.topbar-nav .topbar-cta:hover { background: var(--sky); color: #fff; }

/* --- Header mit zentriertem Wappen ------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s; }
.header-inner { position: relative; display: grid; grid-template-columns: 1fr var(--crest) 1fr; grid-template-rows: 100%; align-items: center; height: var(--header-h); transition: height .25s; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(8px, 2vw, 34px); }
.nav-left > ul { justify-content: flex-end; padding-right: clamp(16px, 3vw, 44px); }
.nav-right > ul { justify-content: flex-start; padding-left: clamp(16px, 3vw, 44px); }
.nav-item { position: relative; }
.nav-item > a { display: block; font: 700 1.3rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; padding: 34px 4px; position: relative; transition: padding .25s; }
.nav-item > a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 22px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s, bottom .25s; }
.nav-item:hover > a::after, .nav-item.is-active > a::after, .nav-item > a:focus-visible::after { transform: scaleX(1); }
.nav-item.is-active > a, .nav-item:hover > a { color: var(--blue); }
.nav-item.has-sub > a { padding-right: 18px; }
.nav-item.has-sub > a::before { content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.sub { position: absolute; top: 100%; left: -12px; min-width: 250px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--blue); list-style: none; margin: 0; padding: 8px 0;
  display: block !important; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sub a:hover { background: var(--blue-light); color: var(--blue); }

.crest { position: relative; justify-self: center; align-self: start; width: var(--crest); height: var(--crest); margin-top: 10px; z-index: 2; transition: width .25s, height .25s, margin .25s, transform .25s; }
.crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(7, 26, 63, .28)); }
.crest:hover { transform: translateY(-2px) scale(1.02); }
.crest-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--blue); color: #fff; font: 800 2.6rem var(--font-head); border: 6px solid #fff; box-shadow: var(--shadow); }
.mobile-brand, .burger { display: none; }

/* Header beim Scrollen kompakter */
body.is-scrolled .site-header { box-shadow: 0 6px 20px rgba(7, 26, 63, .1); }
body.is-scrolled .header-inner { height: 68px; }
body.is-scrolled .nav-item > a { padding-top: 22px; padding-bottom: 22px; }
body.is-scrolled .nav-item > a::after { bottom: 14px; }
body.is-scrolled .crest { width: 76px; height: 76px; margin-top: -4px; }

/* --- Hero (Startseite) -------------------------------------------------- */
.hero { position: relative; background: var(--blue-deep); }
.hero-main { position: relative; display: block; min-height: clamp(460px, 74vh, 720px); color: #fff; text-decoration: none; overflow: hidden; }
.hero-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-main:hover > img { transform: scale(1.04); }
.hero-main.no-img, .card-media.no-img, .dept-tile.no-img, .page-hero:not(.has-img) {
  background: radial-gradient(circle at 78% 30%, rgba(61, 139, 253, .55), transparent 55%),
              repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 18px, transparent 18px 46px),
              linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 63, .88) 0%, rgba(7, 26, 63, .55) 45%, rgba(7, 26, 63, .05) 80%), linear-gradient(0deg, rgba(7, 26, 63, .7), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--crest) - var(--header-h) + 70px); padding-bottom: 150px; max-width: var(--wrap); }
.hero-content h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.8rem); max-width: 20ch; margin: .25em 0 .3em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-content p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 52ch; margin: 0 0 1.6em; color: #e6edf9; }
.hero-content .btn { pointer-events: none; }
.tag { display: inline-block; background: var(--blue); color: #fff; font: 700 .85rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; padding: .5em .8em; }
.hero-content .tag { background: #fff; color: var(--blue-dark); }

.hero-rail { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 20px; margin-top: -110px; padding-bottom: 10px; }
.card.rail { background: #fff; box-shadow: var(--shadow); }
.card.rail .card-link { display: grid; grid-template-columns: 42% 1fr; height: 100%; }
.card.rail .card-media { aspect-ratio: auto; min-height: 170px; }
.card.rail h3 { font-size: 1.3rem; }
.card.rail p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-cta { display: flex; flex-direction: column; justify-content: center; padding: 26px; background: var(--blue); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: background .2s; }
.rail-cta:hover { background: var(--blue-dark); color: #fff; }
.rail-cta .kicker { color: #bcd3ff; }
.rail-cta strong { font: 800 2.1rem/1 var(--font-head); text-transform: uppercase; margin: .15em 0 .4em; }
.rail-cta .more { color: #fff; }

/* --- Sektionen ------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.home .section:first-of-type { padding-top: 60px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--blue); }
.kicker, .eyebrow { font: 700 .95rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .4em; }
.kicker a { color: inherit; text-decoration: none; }
.link-more { font: 700 1.05rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-left { margin-bottom: 32px; }
.chip { font: 700 .95rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: .6em 1em; border: 2px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 99px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --- Karten ------------------------------------------------------------ */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; position: relative; transition: transform .25s, box-shadow .25s; }
.section .card:not(.rail) { box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .tag { position: absolute; left: 0; bottom: 0; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-body h3 { margin: .25em 0 .35em; font-size: 1.55rem; color: var(--ink); }
.card:hover h3 { color: var(--blue); }
.card-body p { margin: 0 0 1em; color: var(--text); font-size: 1rem; }
.more { margin-top: auto; font: 700 .95rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.more::after { content: " →"; }

/* --- Abteilungs-Kacheln ------------------------------------------------ */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dept-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 28px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.dept-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.dept-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 26, 63, .92) 0%, rgba(7, 26, 63, .25) 60%, rgba(7, 26, 63, .1)); transition: background .3s; }
.dept-tile:hover img { transform: scale(1.06); }
.dept-tile:hover::before { background: linear-gradient(0deg, rgba(13, 71, 161, .95) 0%, rgba(13, 71, 161, .45) 70%, rgba(13, 71, 161, .2)); }
.dept-name { font: 800 2.4rem/1 var(--font-head); text-transform: uppercase; }
.dept-name::after { content: ""; display: block; width: 40px; height: 4px; background: #fff; margin: 12px 0; }
.dept-intro { font-size: .98rem; color: #dce6f7; max-width: 32ch; }

/* --- CTA ------------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 70%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: "08"; position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font: 800 clamp(10rem, 26vw, 22rem)/1 var(--font-head); color: rgba(255,255,255,.07); pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 .2em; }
.cta-band p { max-width: 56ch; color: #dce6f7; margin: 0; }
.cta-band .kicker { color: #bcd3ff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-text { padding: clamp(28px, 4vw, 48px); background: var(--bg-alt); border-left: 5px solid var(--blue); }
.split-text p { max-width: 48ch; }

/* --- Seiten-Hero ------------------------------------------------------ */
.page-hero { position: relative; color: #fff; padding: calc(var(--crest) - var(--header-h) + 64px) 0 56px; background-size: cover; background-position: center; }
.page-hero.has-img { background-image: linear-gradient(90deg, rgba(7, 26, 63, .9), rgba(7, 26, 63, .45)), var(--hero-img); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin: 0; }
.page-hero .kicker { color: #bcd3ff; }

/* --- Inhalt --------------------------------------------------------- */
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--blue); }
.prose > :first-child { margin-top: 0; }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.with-aside { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.with-aside.aside-right { grid-template-columns: 1fr 340px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); position: sticky; top: 110px; }
.aside-nav a { display: block; padding: 10px 18px; margin-left: -3px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font: 700 1.15rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.aside-nav a:hover, .aside-nav a.is-active { color: var(--blue); border-left-color: var(--blue); }
.dept-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.info-box { background: var(--bg-alt); padding: 28px; border-top: 5px solid var(--blue); }
.info-box h3 { font-size: 1.3rem; text-transform: uppercase; margin-top: 1.2em; }
.info-box h3:first-child { margin-top: 0; }
.info-box p { margin: 0 0 .8em; }
.info-box .btn { margin-top: 1.2em; }
.info-box.sticky { position: sticky; top: 110px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.link-list a::after { content: " →"; }
.contact-cards, .sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 2em; }
.contact-card { background: var(--bg-alt); padding: 20px; }
.contact-card h3 { font-size: 1.25rem; }
.sponsor-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; min-height: 140px; }
.sponsor-card img { max-height: 80px; width: auto; object-fit: contain; }

/* Artikel */
.article-head { padding: calc(var(--crest) - var(--header-h) + 56px) 0 32px; background: var(--bg-alt); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.article-image { margin: 0 auto 40px; padding-top: 0; }
.article-image img { width: 100%; max-height: 640px; object-fit: cover; margin-top: -1px; }
.article-image figcaption { font-size: .9rem; color: var(--muted); padding: 8px 0; }
.article .prose { padding-top: 32px; }
.article-image + .prose { padding-top: 0; }
.article-foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 64px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 32px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4, 12, 30, .94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox img { max-height: 84vh; width: auto; }
.lightbox p { color: #fff; margin: 12px 0 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 12px 18px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; font-weight: 600; }

/* Termine */
.section-tight { padding-top: 0 !important; }
.event-rows { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row strong { display: block; font: 700 1.4rem/1.15 var(--font-head); color: var(--ink); }
.event-row small { color: var(--muted); font-weight: 500; }
.ev-desc p { margin: .4em 0 0; font-size: 1rem; }
.events-page .ev-desc, .events-page .event-row small { max-width: 760px; display: block; }
.events-page .event-row { gap: 24px; }
.ev-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--blue); color: #fff; padding: 8px 0 6px; font: 700 .85rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.ev-date b { display: block; font-size: 1.9rem; font-weight: 800; margin-bottom: 2px; letter-spacing: 0; }
.event-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.event-cards .event-row { border: 1px solid var(--line); padding: 16px; background: #fff; }
@media (max-width: 980px) { .event-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .event-cards { grid-template-columns: 1fr; } }

/* --- Formular ------------------------------------------------------------ */
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form legend { display: flex; align-items: center; gap: 12px; font: 800 1.7rem var(--font-head); text-transform: uppercase; color: var(--ink); margin-bottom: 18px; padding: 0; }
.form legend span { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--blue); color: #fff; border-radius: 50%; font-size: 1.2rem; }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 14px; }
.form .label { font-weight: 600; color: var(--ink); font-size: .95rem; margin: 18px 0 8px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 1.05rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid #c8d1de; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13, 71, 161, .15); }
.form [aria-invalid=true] { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: .88rem; font-weight: 500; margin-top: 4px; }
.row { display: grid; gap: 0 16px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 140px 1fr 1fr; }
.row-zip { grid-template-columns: 140px 1fr; }
.row > label:only-child { max-width: 100%; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options-inline { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.option { display: flex !important; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid #c8d1de; border-radius: var(--radius); cursor: pointer; margin: 0 !important; transition: border-color .15s, background .15s; }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.option span { display: flex; flex-direction: column; }
.option em { font-style: normal; color: var(--blue); font-weight: 600; font-size: .9rem; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.check input, .option input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.mandate { background: var(--bg-alt); padding: 18px 20px; font-size: .92rem; margin: 6px 0 16px; border-left: 4px solid var(--blue); }
.mandate p { margin: 0 0 .6em; }
.steps { padding-left: 1.2em; margin: 0 0 1em; }
.fee-list { list-style: none; padding: 0; margin: 0 0 1em; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.fee-list strong { white-space: nowrap; color: var(--blue); }

.flash { padding: 14px 18px; margin: 0 0 20px; border-radius: var(--radius); font-weight: 500; }
.flash-ok { background: #e6f4ec; color: var(--ok); border-left: 4px solid var(--ok); }
.flash-error { background: #fdecea; color: var(--error); border-left: 4px solid var(--error); }
.flash-warn { background: #fff4e0; color: var(--warn); border-left: 4px solid var(--warn); }

/* --- Sponsoren / Footer ------------------------------------------------ */
.sponsor-strip { padding: 48px 0; border-top: 1px solid var(--line); }
.sponsor-strip .eyebrow { text-align: center; margin-bottom: 24px; }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; }
.sponsor img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.sponsor:hover img { filter: none; opacity: 1; }
.sponsor span { font: 700 1.2rem var(--font-head); text-transform: uppercase; color: var(--muted); }
.site-footer { background: var(--blue-deep); color: #c9d6ee; padding-top: 64px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { flex-shrink: 0; }
.footer-brand strong { font: 800 1.4rem var(--font-head); color: #fff; text-transform: uppercase; display: block; margin-bottom: 8px; }
.footer-brand p { margin: 0 0 10px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--blue); color: #fff; text-decoration: none; font-size: 1.3rem; border-radius: 50%; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
body.is-scrolled .to-top { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--blue-dark); }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-item > a { font-size: 1.12rem; }
  .hero-rail { grid-template-columns: 1fr 1fr; }
  .rail-cta { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; --crest: 58px; }
  .topbar { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .main-nav { display: none; }
  .crest { grid-column: 1; margin-top: 0; align-self: center; width: var(--crest); height: var(--crest); }
  body.is-scrolled .crest { width: 50px; height: 50px; margin-top: 0; }
  body.is-scrolled .header-inner { height: 60px; }
  .mobile-brand { display: flex; flex-direction: column; grid-column: 2; text-decoration: none; line-height: 1; }
  .mobile-brand span { font: 800 1.5rem var(--font-head); text-transform: uppercase; color: var(--ink); }
  .mobile-brand small { font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-top: 2px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; grid-column: 3; width: 46px; height: 46px; padding: 10px; background: var(--blue); border: 0; border-radius: var(--radius); cursor: pointer; }
  .burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--blue-deep); overflow-y: auto; padding: 16px 24px 40px; }
  body.is-scrolled .mobile-menu { top: 60px; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu > nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .mobile-menu > nav > ul > li > a { display: block; padding: 14px 0; color: #fff; text-decoration: none; font: 800 1.7rem var(--font-head); text-transform: uppercase; }
  .mobile-menu li ul { padding: 0 0 12px 14px; }
  .mobile-menu li ul a { display: block; padding: 6px 0; color: #bcd3ff; text-decoration: none; font-weight: 500; }
  .mobile-service { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 14px; }
  .mobile-service a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #fff; font: 700 .9rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .mobile-service a:active { background: rgba(255,255,255,.16); }
  .mobile-service svg { width: 22px; height: 22px; fill: #bcd3ff; }
  body.menu-open { overflow: hidden; }

  .hero-content { padding-top: 56px; padding-bottom: 120px; }
  .hero-rail { grid-template-columns: 1fr; margin-top: -80px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .with-aside, .with-aside.aside-right, .dept-layout { grid-template-columns: 1fr; gap: 32px; }
  .aside-nav ul { position: static; display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .aside-nav a { border: 2px solid var(--line); margin: 0; padding: 6px 12px; font-size: 1rem; border-radius: 99px; }
  .aside-nav a.is-active, .aside-nav a:hover { border-color: var(--blue); }
  .info-box.sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero, .article-head { padding-top: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-3, .split, .options, .row-2, .row-3 { grid-template-columns: 1fr; }
  .row-zip { grid-template-columns: 110px 1fr; }
  .card.rail .card-link { grid-template-columns: 38% 1fr; }
  .card.rail .card-media { min-height: 130px; }
  .card.rail .card-body { padding: 14px; }
  .card.rail h3 { font-size: 1.15rem; }
  .card.rail p { display: none; }
  .dept-tile { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 480px; }
  .section-head { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .sponsor-strip, .to-top, .mobile-menu { display: none !important; }
}
.grid + .center { margin-top: 36px; }


/* ==========================================================================
   Look nach Entwurf test.stahlit.de: weiße Service-Leiste mit blauen Buttons,
   blaue Navigationsleiste mit weißer Schrift, rundes Wappen mittig
   ========================================================================== */
.topbar { background: #fff; color: var(--blue); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 58px; }
.topbar-claim { color: var(--blue); }
.topbar-nav { gap: 10px; }
.topbar-nav a { background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; }
.topbar-nav a svg { width: 16px; height: 16px; fill: currentColor; }
.topbar-nav a:hover { background: var(--blue-dark); color: #fff; }
.topbar-nav .topbar-cta { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); margin-left: 6px; }
.topbar-nav .topbar-cta:hover { background: var(--blue); color: #fff; }

.site-header { background: var(--blue); box-shadow: none; }
.nav-item > a { color: #fff; }
.nav-item.is-active > a, .nav-item:hover > a { color: #fff; }
.nav-item > a::after { background: #fff; }
.crest img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
body.is-scrolled .site-header { box-shadow: 0 6px 20px rgba(10, 22, 80, .35); }
@media (max-width: 980px) {
  .mobile-brand span { color: #fff; }
  .mobile-brand small { color: #c7d2ff; }
  .burger { background: #fff; }
  .burger span { background: var(--blue); }
}

/* Galerien */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.album { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--blue); }
.album-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-light); }
.album-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album:hover .album-media img { transform: scale(1.05); }
.album-count { position: absolute; right: 0; bottom: 0; background: var(--blue); color: #fff; font: 700 .85rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: .5em .8em; }
.album-body { padding: 16px 18px 20px; }
.album-body small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.album-body strong { display: block; font: 700 1.4rem/1.15 var(--font-head); margin-top: 4px; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page-galleries { margin-top: 48px; }
.page-galleries h2 { font-size: 1.8rem; }
[hidden] { display: none !important; }
.hero-content h1, .page-hero h1, .article-head h1 { overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
.hy { hyphens: auto; -webkit-hyphens: auto; }
.hero-content h1.long { font-size: clamp(2rem, 4.2vw, 3.6rem); }
@media (max-width: 980px) {
  .hero-content { padding-top: 64px; padding-bottom: 140px; }
  .hero-rail { margin-top: -70px; }
}
@media (max-width: 640px) {
  .hero-content h1 { font-size: clamp(2rem, 9.5vw, 2.8rem); }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* Kopfbereich v2.1: Wappen exakt mittig in der blauen Leiste */
:root { --header-h: 104px; --crest: 92px; }
.crest { align-self: center; margin-top: 0; }
.crest img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.nav-item > a { padding-top: 40px; padding-bottom: 40px; }
.nav-item > a::after { bottom: 28px; }
body.is-scrolled .header-inner { height: 74px; }
body.is-scrolled .crest { width: 62px; height: 62px; margin-top: 0; }
body.is-scrolled .nav-item > a { padding-top: 25px; padding-bottom: 25px; }
body.is-scrolled .nav-item > a::after { bottom: 16px; }
.hero-content { padding-top: 72px; }
.page-hero, .article-head { padding-top: 64px; }
@media (max-width: 980px) {
  :root { --header-h: 68px; --crest: 54px; }
  .nav-item > a { padding: 0; }
  body.is-scrolled .header-inner { height: 60px; }
  body.is-scrolled .crest { width: 46px; height: 46px; }
  .page-hero, .article-head { padding-top: 48px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Filter-Chips auf dem Handy: eine Zeile, seitlich wischbar */
@media (max-width: 640px) {
  .chips-left, .section-head .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 24px; padding: 2px 16px 4px; gap: 6px; }
  .chips-left::-webkit-scrollbar, .section-head .chips::-webkit-scrollbar { display: none; }
  .chips-left .chip, .section-head .chips .chip { flex: 0 0 auto; scroll-snap-align: start; font-size: .82rem; padding: .62em .95em; border-width: 1.5px; }
}

/* Spiele & Ergebnisse */
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.mx-col h3 { font: 800 1.15rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; color: var(--blue); }
.mx-list { list-style: none; margin: 0; padding: 0; }
.mx-list li { border-bottom: 1px solid var(--line); }
.mx-list li > a, .mx-list li > div { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta score" "teams score"; gap: 2px 14px; align-items: center; padding: 12px 0; color: inherit; text-decoration: none; }
.mx-list li > a:hover .mx-teams { color: var(--blue); }
.mx-meta { grid-area: meta; font-size: .82rem; color: var(--muted); }
.mx-teams { grid-area: teams; display: grid; font-weight: 600; line-height: 1.3; }
.mx-teams .us { font-weight: 800; }
.mx-score { grid-area: score; font: 800 1.35rem/1 var(--font-head); min-width: 64px; text-align: center; padding: 8px 10px; border-radius: 8px; color: #fff; background: #6b7487; }
.mx-w { background: #1d7a46; } .mx-l { background: #b42318; } .mx-d { background: #8a6d1d; }
.mx-next { background: transparent; color: var(--blue); border: 2px solid var(--line); font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 640px) { .section-head .chips { flex: 1 1 100%; max-width: calc(100% + 32px); } }

/* Abteilung: Training, Mannschaften, Ansprechpartner */
.train-list { margin: 0 0 8px; }
.train-list dt { font-weight: 700; margin-top: 10px; }
.train-list dd { margin: 2px 0 0; }
.train-list dd.note { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.team-links, .contact-list { list-style: none; margin: 0 0 8px; padding: 0; }
.team-links li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.team-links small, .contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.team-links a { font-weight: 700; white-space: nowrap; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.contact-list li:last-child, .team-links li:last-child { border-bottom: 0; }

/* Übergang Aufmacher → Inhalt: dunkler Hintergrund endet auf halber Höhe der unteren Kacheln */
.hero { background: transparent; padding-bottom: 8px; }
.hero-rail { padding-bottom: 0; }
/* Zwei weiße Abschnitte hintereinander: Abstand nicht doppelt */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 18px; gap: 10px 16px; align-items: baseline; }
  .section-head .link-more { font-size: .85rem; }
}

/* Helferplan (öffentlich) */
.duty-intro { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 24px; align-items: start; margin-bottom: 28px; }
.duty-progress { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; }
.duty-progress strong { font: 800 1.4rem var(--font-head); color: var(--blue); }
.duty-progress span { display: block; height: 8px; background: #dfe5f1; border-radius: 9px; margin: 8px 0; overflow: hidden; }
.duty-progress i { display: block; height: 100%; background: var(--blue); }
.duty-progress small { color: var(--muted); }
.duty-day { margin: 34px 0 10px; font-size: 1.6rem; }
.duty-slot { margin: 0 0 22px; }
.duty-slot h3 { font: 800 1.15rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--blue); margin: 0 0 10px; }
.duty-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.duty-cell { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.duty-cell.is-full { background: #f6f8fc; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dc-head span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.duty-cell.is-full .dc-head span { color: #1d7a46; }
.duty-cell ul { list-style: none; margin: 0; padding: 0; }
.duty-cell li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.duty-cell li:last-child { border-bottom: 0; }
.duty-cell li.free { color: #9aa4b5; font-weight: 400; font-style: italic; }
.dc-rm button { background: none; border: 0; color: #b42318; font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 0; }
.dc-add summary { list-style: none; margin-top: 10px; display: inline-block; cursor: pointer; background: var(--blue); color: #fff; font: 700 .9rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: .55em 1em; border-radius: 6px; }
.dc-add summary::-webkit-details-marker { display: none; }
.dc-add[open] summary { display: none; }
.dc-add form { display: grid; gap: 8px; margin-top: 10px; }
.dc-add input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.duty-note { margin-top: 26px; }
@media (max-width: 760px) { .duty-intro { grid-template-columns: 1fr; } }

/* Abteilungs-Kacheln: Überschriften und Texte in einer Flucht (Text immer 4 Zeilen hoch) */
.dept-intro { line-height: 1.55; min-height: calc(4 * 1.55em); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* Ergebnisse in einer Ergebnis-Meldung */
.post-results { margin-top: 8px; margin-bottom: 18px; }
.post-results .mx-list { border-top: 2px solid var(--blue); }


/* Vorstand & Ämter */
.board-photo { margin: 0 0 28px; }
.board-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.board-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose .board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 0 0 32px; }
.board-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board-card img, .board-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; display: block; margin: 0; }
.board-ph { display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font: 800 3rem var(--font-head); letter-spacing: .04em; }
.board-card > div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.board-card small { color: var(--blue); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.board-card strong { font-size: 1.05rem; color: var(--ink); }
.board-card a { font-size: .88rem; word-break: break-all; margin-top: 4px; }
@media (max-width: 520px) { .prose .board-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .board-card > div { padding: 10px; } .board-card a { font-size: .78rem; } }
