/* =====================================================================
   ETB Handball – Designsystem "Kinetic Court"
   Energetisch, modern, Leistungssport. Blau-Navy + Energie-Orange.
   Struktur: Tokens · Base · Eyebrow · Sections · Navbar · Buttons ·
             Hero · Stats · Cards · Teams/Kader · Tabellen/Spiele ·
             CTA · Footer · Motion · Utilities · Responsive
   ===================================================================== */

/* ---------- Design-Tokens -------------------------------------------- */
:root {
    /* Blau – Hauptfarbe #014cae (Vereinsblau) */
    --blue-950: #021a3e;   /* tiefstes Navy (Dark-Sections, Footer) */
    --blue-900: #04224f;   /* Text / dunkel */
    --blue-800: #013a86;   /* tiefes Blau */
    --blue-700: #014cae;   /* HAUPTFARBE / Primär */
    --blue-600: #1a5ec2;
    --blue-500: #2f74dc;   /* Links / hell */
    --blue-400: #5e95e8;
    --blue-300: #9ec2f4;
    --blue-100: #e2ecfb;   /* Flächen-Tint */
    --blue-050: #f2f7fe;

    /* Energie-Akzent (Handball-Orange) – HIER zentral änderbar */
    --energy-700: #d8430f;
    --energy:     #ff5a1f;
    --energy-400: #ff7a3c;
    --energy-300: #ff9d5c;
    --energy-grad: linear-gradient(180deg, #ff5f26 0%, #f04a10 100%);

    --white: #ffffff;
    --gray-50:  #f7f9fc;
    --gray-100: #eef2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #556070;
    --gray-800: #1f2a37;

    --ok:    #1f9d57;
    --warn:  #d97706;
    --danger:#dc2626;

    --shadow-sm: 0 1px 2px rgba(7,32,63,.06), 0 1px 3px rgba(7,32,63,.08);
    --shadow-md: 0 8px 24px rgba(7,32,63,.12);
    --shadow-lg: 0 24px 60px rgba(7,32,63,.20);
    --glow-blue:   0 10px 24px -12px rgba(1,76,174,.4);
    --glow-energy: 0 8px 20px -10px rgba(216,67,15,.4);

    --radius:    14px;
    --radius-sm: 9px;
    --radius-lg: 18px;

    --maxw: 1200px;
    --gut: clamp(16px, 4vw, 36px);

    --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ff-head: "Barlow Condensed", "Inter", system-ui, sans-serif;

    --t-fast: .15s ease;
    --t: .28s cubic-bezier(.4, 0, .2, 1);
    --t-bounce: .3s cubic-bezier(.33, 1, .68, 1);
}

/* ---------- Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--ff-sans);
    color: var(--blue-900);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--energy-700); }

h1, h2, h3, h4 {
    font-family: var(--ff-head);
    line-height: 1.0;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--blue-900);
}
h1 { font-size: clamp(2.7rem, 7vw, 4.8rem); letter-spacing: -.5px; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { color: var(--gray-800); }
.lead { font-size: 1.18rem; color: var(--gray-600); }

::selection { background: var(--energy); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { max-width: 780px; }
.container--article { max-width: 880px; }

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

/* ---------- Eyebrow / Section-Titel --------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--ff-head); font-size: .98rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--energy-700);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--energy-grad); }

.section { padding-block: clamp(52px, 8vw, 100px); position: relative; }
.section--tint { background: var(--blue-050); }
.section__head { max-width: 660px; margin-bottom: 2.4rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }
.section__head h2 { margin-top: .5rem; }
.section--flush-top { padding-top: clamp(22px, 4vw, 44px); }
.section--flush-bottom { padding-bottom: clamp(28px, 4vw, 48px); }
.section--pb-0 { padding-bottom: 0; }
.section__head--compact { margin-bottom: 1.15rem; }
.section__head--flush { margin-bottom: 0; }
.section__head--tight { margin-bottom: 1rem; }
.section__head--near { margin: 1.5rem 0 .8rem; }
.section__head--spaced { margin-top: 3rem; }
.section__head-row {
    display: flex; align-items: end; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 2rem;
}
.section__head-row .section__head { flex: 1 1 360px; }
.lead--center { max-width: 68ch; margin-inline: auto; }
.lead--narrow { max-width: 48ch; margin-inline: auto; }
.lead--wide { max-width: 60ch; margin-inline: auto; }
.empty-inline {
    display: inline-block; padding: .85rem 1rem; border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm); background: var(--gray-50);
}

/* Dunkle Impact-Section (Matchday / Drama) */
.section--dark {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(255,90,31,.09), transparent 60%),
        radial-gradient(700px 500px at 5% 110%, rgba(30,99,200,.24), transparent 60%),
        linear-gradient(135deg, var(--blue-950), #013a86);
    color: #fff; overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--energy-300); }
.section--dark p, .section--dark .muted { color: rgba(255,255,255,.78); }
.section--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.5px);
    background-size: 26px 26px; opacity: .22;
    mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 75%);
}
.section--dark .container { position: relative; z-index: 1; }

/* Energie-Trennlinie */
.rule-energy { height: 4px; border: 0; border-radius: 4px; background: var(--energy-grad); width: 64px; }

/* ---------- Navbar --------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--t), background var(--t), border-color var(--t);
}
.nav.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.94); }
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .75rem; font-family: var(--ff-head); }
.brand__logo { width: 44px; height: 44px; flex: none; transition: transform var(--t-bounce); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.4rem; font-weight: 700; color: var(--blue-900); letter-spacing: .3px; text-transform: uppercase; }
.brand__sub { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--energy-700); font-weight: 600; }

.nav__menu { display: flex; align-items: center; gap: .12rem; margin-left: auto; }
.nav__menu[hidden] { display: none !important; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap;
    padding: .5rem .72rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .96rem; color: var(--blue-900); transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { background: var(--blue-100); color: var(--blue-800); }
.nav__link.is-active { color: var(--energy-700); }
.nav__link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
    height: 3px; border-radius: 3px; background: var(--energy-grad);
    transform: scaleX(0); transform-origin: center; transition: transform var(--t-fast);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: .35rem; }

/* Dropdown */
.nav__item { position: relative; }
.nav__caret { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 234px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--t);
}
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
    display: block; padding: .6rem .85rem; border-radius: var(--radius-sm);
    color: var(--blue-900); font-weight: 500; font-size: .94rem; transition: var(--t-fast);
}
.nav__dropdown a:hover { background: var(--blue-100); color: var(--energy-700); padding-left: 1.1rem; }

.nav__toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; flex: none;
    border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--blue-900); transition: var(--t);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after  { transform: translateY(5px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: rotate(-45deg); }
.nav__mobile-actions { display: none; }

/* ---------- Buttons -------------------------------------------------- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .4px;
    text-transform: uppercase;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: var(--t); white-space: nowrap; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-800); color: var(--white); box-shadow: var(--shadow-md); }
.btn--energy { background: var(--energy); color: #fff; box-shadow: var(--shadow-sm); border-color: transparent; }
.btn--energy:hover { color: #fff; background: var(--energy-700); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--gray-300); color: var(--blue-900); }
.btn--ghost:hover { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-050); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--white { background: #fff; color: var(--blue-800); border-color: #fff; box-shadow: var(--shadow-sm); }
.btn--white:hover { color: var(--blue-700); box-shadow: var(--shadow-md); }
.btn--mt { margin-top: 1rem; }
.btn__icon { width: 1em; height: 1em; flex: none; }

/* ---------- Hero (clean · türkis · typo-zentriert) ------------------ */
.hero {
    position: relative; color: #fff; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(1000px 520px at 78% -12%, rgba(94,149,232,.40), transparent 60%),
        radial-gradient(760px 520px at 8% 116%, rgba(1,76,174,.55), transparent 60%),
        linear-gradient(140deg, #013a86 0%, var(--blue-700) 52%, var(--blue-600) 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(125deg, rgba(1,76,174,.90) 0%, rgba(4,34,79,.82) 55%, rgba(2,18,42,.86) 100%); }
.hero__inner {
    position: relative; z-index: 4; text-align: center; margin-inline: auto; max-width: 920px;
    padding-block: clamp(30px, 4.8vw, 54px) clamp(28px, 3.8vw, 42px);
}
.etb-logo { display: block; }
.hero__logo {
    width: clamp(70px, 8vw, 100px); height: auto; margin: 0 auto .7rem;
    background: #fff; border-radius: 50%; padding: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.hero h1 {
    color: #fff; text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 6px 44px rgba(0,0,0,.18);
}
/* Beide Zeilen werden per JS auf die gleiche (Container-)Breite skaliert. */
.hero__title .fit-line { display: block; white-space: nowrap; line-height: .88;
    font-size: clamp(2.35rem, 9vw, 6.4rem);
    animation: heroLineUp .9s cubic-bezier(.2,.75,.2,1) both; }
/* „ELSFLETH": kräftiges Blau + durchlaufender Glanz-Sweep */
.hero h1 .accent {
    background-image: linear-gradient(100deg, #3f8cff 0 42%, #d4e6ff 50%, #3f8cff 58% 100%);
    background-size: 250% 100%; background-position: 150% 0;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: heroLineUp .9s cubic-bezier(.2,.75,.2,1) .16s both,
               heroShine 5.5s ease-in-out 1.4s infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hero__title .fit-line, .hero h1 .accent { animation: none; opacity: 1; clip-path: none; }
}
.hero p {
    color: rgba(255,255,255,.92); font-size: clamp(1rem, 1.6vw, 1.12rem);
    margin: .65rem auto 0; max-width: 48ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; justify-content: center; }

/* Weiße Elsflether Hafensilhouette als Abschluss zur nächsten Sektion */
.hero__skyline {
    position: relative; z-index: 3; width: 100%; height: clamp(86px, 11vw, 170px);
    overflow: hidden; pointer-events: none; margin-top: clamp(-72px, -4.8vw, -40px);
}
.hero__skyline::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: #fff;
}
.hero__skyline img {
    position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: none;
    transform: translateX(-50%);
    filter: brightness(0) invert(1) drop-shadow(0 -7px 14px rgba(2,18,42,.2));
}

/* Breites Medien-Banner (z. B. Stadthalle) */
.media-banner { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Stats-Strip ---------------------------------------------- */
.stats {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--gray-200); border: 1px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
    margin-top: -3.5rem;
}
.stat { background: #fff; padding: 1.5rem 1.2rem; text-align: center; transition: var(--t); }
.stat:hover { background: var(--blue-050); }
.stat__num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--blue-800); }
.stat__num .u { background: var(--energy-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Tagesübersicht direkt unter den Vereinszahlen */
.today-board {
    margin-top: clamp(2rem, 4vw, 3.4rem); padding-top: clamp(1.7rem, 3vw, 2.5rem);
    border-top: 1px solid var(--gray-200);
}
.today-board__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.today-board__head h2 { margin-top: .4rem; font-size: clamp(1.9rem, 3.5vw, 2.55rem); }
.today-board__links { display: flex; gap: 1rem; flex-wrap: wrap; font-family: var(--ff-head); font-weight: 600; }
.today-board__links a { border-bottom: 2px solid var(--blue-200); }
.today-board__items {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 1fr); gap: .75rem;
    overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity;
    padding: 2px 2px .65rem; scrollbar-width: thin;
}
.today-item {
    position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2rem .7rem;
    min-height: 126px; padding: 1rem 1rem 1rem 1.15rem; scroll-snap-align: start;
    color: var(--blue-900); background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
    box-shadow: var(--shadow-sm); transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.today-item::before { content: ""; position: absolute; inset-block: 0; left: 0; width: 4px; background: var(--blue-500); }
.today-item--spiel::before { background: var(--energy); }
.today-item:hover { color: var(--blue-900); transform: translateY(-2px); border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.today-item__time { font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--energy-700); }
.today-item__type { justify-self: end; font-family: var(--ff-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-600); }
.today-item strong { grid-column: 1 / -1; align-self: end; font-family: var(--ff-head); font-size: 1.08rem; line-height: 1.08; }
.today-item__venue { grid-column: 1 / -1; font-size: .78rem; color: var(--gray-600); }
.today-board__empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px dashed var(--gray-300); border-radius: 8px; }
.stat__label { display: block; margin-top: .35rem; font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-600); }

/* ---------- Seiten-Header (Innenseiten) ----------------------------- */
.page-hero {
    position: relative; min-height: clamp(400px, 42vw, 520px); display: grid;
    margin: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0;
    border-radius: clamp(16px, 2vw, 24px); overflow: hidden; isolation: isolate;
    color: #fff; background: var(--blue-950); box-shadow: 0 24px 70px -34px rgba(2,17,40,.55);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2,17,40,.96) 0%, rgba(3,32,76,.88) 36%, rgba(3,32,76,.48) 68%, rgba(2,17,40,.12) 100%),
        linear-gradient(0deg, rgba(2,17,40,.58) 0%, transparent 58%);
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    height: 5px; background: var(--energy-grad); pointer-events: none;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 48%;
    transform: scale(1.015); animation: phMediaIn 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero--focus-people .page-hero__media img { object-position: center 40%; }
.page-hero--focus-wide .page-hero__media img { object-position: center 52%; }
.page-hero__inner {
    position: relative; z-index: 1; min-height: inherit; display: flex; flex-direction: column;
    justify-content: space-between; padding-block: clamp(24px, 3vw, 38px) clamp(38px, 5vw, 64px);
}
.page-hero .crumbs {
    display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: center;
    padding: 0; margin: 0; color: rgba(255,255,255,.56); font-size: .78rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px;
    animation: phIn .55s ease both;
}
.page-hero .crumbs a { color: rgba(255,255,255,.78); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs > span:not(.crumbs__current) { color: var(--energy-300); opacity: .8; }
.crumbs__current { color: rgba(255,255,255,.92); }
.page-hero__copy { width: min(850px, 82%); }
.page-hero__kicker {
    display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
    font-family: var(--ff-head); font-size: .84rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.2px; color: rgba(255,255,255,.86);
    animation: phIn .65s .05s ease both;
}
.page-hero__kicker::after { content: ""; width: 52px; height: 3px; border-radius: 3px; background: var(--energy-grad); }
.page-hero__kicker svg { width: 19px; height: 19px; color: var(--energy-300); flex: none; }
.page-hero__kicker-logo { width: 26px; height: 26px; flex: none; object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.page-hero h1 {
    max-width: 14ch; color: #fff; overflow-wrap: break-word; hyphens: auto;
    font-size: clamp(3rem, 7.2vw, 5.8rem); line-height: .9; letter-spacing: 0;
    text-shadow: 0 5px 28px rgba(0,0,0,.24); animation: phIn .7s .1s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero p {
    max-width: 58ch; margin-top: 1rem; color: rgba(255,255,255,.86);
    font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.55;
    animation: phIn .7s .16s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero__crest {
    position: absolute; right: clamp(2px, 2vw, 26px); top: 50%; width: clamp(78px, 10vw, 118px);
    transform: translateY(-42%) rotate(4deg); opacity: .94; pointer-events: none;
    filter: drop-shadow(0 14px 24px rgba(2,17,40,.34));
}
.page-hero__crest img { width: 100%; height: auto; }
@keyframes phIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes phMediaIn { from { opacity: .65; transform: scale(1.055); } to { opacity: 1; transform: scale(1.015); } }
@media (max-width: 760px) {
    .page-hero { min-height: 420px; }
    .page-hero::before {
        background:
            linear-gradient(90deg, rgba(2,17,40,.96) 0%, rgba(3,32,76,.82) 65%, rgba(2,17,40,.38) 100%),
            linear-gradient(0deg, rgba(2,17,40,.62) 0%, transparent 62%);
    }
    .page-hero__copy { width: 92%; }
    .page-hero__crest { top: 30px; right: 18px; width: 70px; transform: rotate(4deg); opacity: .84; }
}
@media (max-width: 520px) {
    .page-hero { min-height: 400px; border-radius: 14px; }
    .page-hero__inner { padding-block: 20px 34px; }
    .page-hero__copy { width: 100%; }
    .page-hero h1 { max-width: 12ch; font-size: clamp(2.55rem, 13vw, 3.65rem); }
    .page-hero p { max-width: 34ch; font-size: 1rem; line-height: 1.48; }
    .page-hero__kicker { font-size: .75rem; letter-spacing: 1.7px; }
    .page-hero__kicker::after { width: 34px; }
    .page-hero__crest { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero__media img, .page-hero h1, .page-hero p, .page-hero .crumbs, .page-hero__kicker { animation: none; }
}

/* ---------- Karte / Embed ------------------------------------------- */
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Karten-Platzhalter (lädt erst nach Einwilligung) */
.map-embed { width: 100%; height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1.6rem; background: linear-gradient(135deg, var(--blue-050), var(--blue-100)); border: 1px dashed var(--blue-300); border-radius: var(--radius); }
.map-embed__ph svg { width: 40px; height: 40px; color: var(--blue-400); }
.map-embed__ph p { margin: 0; max-width: 44ch; }
.map-embed__ph .muted { font-size: .88rem; }
.map-embed .map-frame { box-shadow: none; border-radius: 0; height: 100%; }

/* Consent-Banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--blue-950); color: #fff; border-top: 3px solid var(--energy); box-shadow: 0 -12px 40px rgba(0,0,0,.32); transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.consent.is-open { transform: none; }
.consent__inner { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0; flex-wrap: wrap; }
.consent__text { flex: 1 1 420px; }
.consent__text strong { font-family: var(--ff-head); font-size: 1.06rem; letter-spacing: .3px; }
.consent__text p { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: .25rem; }
.consent__text a { color: var(--energy-300); }
.consent__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* 404-Seite */
.error-404__code { font-family: var(--ff-head); font-weight: 700; font-size: clamp(5rem, 22vw, 12rem); line-height: .9; background-image: var(--energy-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }

/* Instagram-Sektion */
.ig-panel { display: grid; grid-template-columns: minmax(280px, .92fr) 1.08fr; gap: 1rem; align-items: stretch; }
.ig-feature, .ig-tile {
    position: relative; overflow: hidden; border-radius: var(--radius-sm); color: #fff;
    background: var(--blue-900); box-shadow: var(--shadow-sm); transition: var(--t);
}
.ig-feature { min-height: min(420px, 48vw); }
.ig-feature img, .ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ig-feature::after, .ig-tile::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(2,17,40,.72), rgba(2,17,40,.05) 62%);
}
.ig-feature:hover, .ig-tile:hover { box-shadow: var(--shadow-md); color: #fff; filter: brightness(1.04); }
.ig-feature:hover img, .ig-tile:hover img { transform: scale(1.045); }
.ig-feature__overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem; }
.ig-feature__handle {
    display: block; font-family: var(--ff-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--energy-300);
}
.ig-feature__title { display: block; margin-top: .25rem; max-width: 26ch; font-family: var(--ff-head); font-size: 1.65rem; line-height: 1.02; color: #fff; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ig-grid--preview { height: 100%; }
.ig-tile { aspect-ratio: 1; display: block; }
.ig-tile span {
    position: absolute; z-index: 2; left: .65rem; bottom: .55rem;
    font-family: var(--ff-head); font-weight: 700; line-height: 1; color: #fff;
}

/* Live-Badge (laufende Spiele) */
.live-badge { display: inline-block; font-family: var(--ff-head); font-size: .62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--danger); border-radius: 4px; padding: .05rem .35rem; margin-right: .35rem; vertical-align: middle; animation: livePulse 1.6s infinite; }
.fixture__result.is-live, .fixture__result--link.is-live { color: var(--danger); }
.section--dark .fixture__result.is-live { color: #ff6b6b; }
@media (prefers-reduced-motion: reduce) { .live-badge { animation: none; } }
.fixture__rcol { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.fixture__share { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--gray-400); background: var(--gray-50); transition: var(--t); }
.fixture__share svg { width: 16px; height: 16px; }
.fixture__share:hover { color: #fff; background: var(--energy); transform: translateY(-1px); }
.section--dark .fixture__share { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.section--dark .fixture__share:hover { background: var(--energy); color: #fff; }

/* Spieler: klickbare Karte öffnet Drawer */
.player-card--link { text-decoration: none; cursor: pointer; }
button.player-card--link { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left; width: 100%; }

/* Spieler-Drawer */
.drawer { position: fixed; inset: 0; z-index: 250; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(2,17,40,.55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 92vw); background: var(--white); box-shadow: -20px 0 60px rgba(2,17,40,.35); padding: 2.2rem 1.9rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border: 0; background: var(--gray-100); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--blue-900); transition: var(--t); }
.drawer__close:hover { background: var(--energy); color: #fff; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__media { width: 100%; height: 240px; border-radius: var(--radius); margin: .4rem 0 1.5rem; position: relative; display: grid; place-items: center; background: linear-gradient(140deg, #014cae, #021a3e); color: #fff; overflow: hidden; }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; }
.drawer__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,17,40,.45), transparent 55%); }
.drawer__no { position: absolute; top: .85rem; left: .85rem; font-family: var(--ff-head); font-weight: 700; font-size: 1.85rem; line-height: 1; background-image: var(--energy-grad); color: #fff; border-radius: 10px; padding: .3rem .62rem; z-index: 2; box-shadow: var(--glow-energy); }
.drawer__initials { font-family: var(--ff-head); font-weight: 700; font-size: 5rem; position: relative; z-index: 1; }
.drawer__media img { object-position: center 22%; } /* Porträt: Gesicht im Bild halten */
.drawer__media.has-photo { height: 340px; } /* mehr Höhe, wenn ein echtes Foto da ist */
.drawer__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.2rem 0; }
.drawer__meta > div { display: flex; flex-direction: column; gap: .15rem; }
.drawer__meta .muted { font-size: .76rem; text-transform: uppercase; letter-spacing: .55px; font-weight: 700; }
.drawer__meta strong { font-family: var(--ff-head); font-size: 1.5rem; color: var(--blue-900); line-height: 1; }
.drawer__block { margin-top: 1.1rem; }
.drawer__label { display: block; font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .6px; font-size: .74rem; font-weight: 700; color: var(--gray-600); margin-bottom: .15rem; }
.drawer__block p { margin: 0; color: var(--blue-900); }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__backdrop { transition: none; } }
.embed-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius); padding:1.4rem; box-shadow:var(--shadow-sm); }
.hbnet-frame { border: 0; width: 100%; border-radius: var(--radius-sm); background: var(--gray-50); }

/* handball.net-Widget Platzhalter (Design-Phase) */
.embed-card--ph { border-style: dashed; border-color: var(--blue-300); background: var(--blue-050); }
.embed-ph { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem; }
.embed-ph__icon { font-size: 2.4rem; }
.embed-ph h3 { margin-top: .6rem; color: var(--blue-800); }
.embed-ph p { max-width: 46ch; margin: .6rem auto 0; }
.embed-ph code { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: .1rem .4rem; font-size: .85em; }

/* Hinweis-Banner */
.notice { background: var(--blue-050); border: 1px solid var(--blue-100); border-left: 4px solid var(--energy); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem; font-size: .92rem; color: var(--gray-800); margin-bottom: 1.6rem; }
.notice strong { color: var(--blue-800); }
.notice--live { border-left-color: #18a957; background: linear-gradient(0deg, rgba(24,169,87,.06), rgba(24,169,87,.06)), var(--blue-050); }
.live-dot { display: inline-block; width: .62rem; height: .62rem; margin-right: .45rem; border-radius: 50%; background: #18a957; box-shadow: 0 0 0 0 rgba(24,169,87,.55); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(24,169,87,.5); } 70% { box-shadow: 0 0 0 .5rem rgba(24,169,87,0); } 100% { box-shadow: 0 0 0 0 rgba(24,169,87,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Alert (Formular) */
.alert { border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.alert--ok { background: #e9f8f0; border: 1px solid #b9e6cd; color: #15663c; }

/* Häkchen-Liste */
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { position: relative; padding-left: 2.2rem; color: var(--gray-800); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.5rem; height: 1.5rem;
    background: var(--energy-grad); color: #fff; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
    box-shadow: var(--glow-energy); }

/* ---------- Formular ------------------------------------------------- */
/* minmax(0,…) statt auto/1fr: eine reine auto-Spalte wächst auf die min-content-
   Breite des breitesten Kindes und ragt dann aus schmalen Containern heraus
   (auf dem Handy standen die Felder über den Rand hinaus). */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field__hint { font-size: .82rem; color: var(--gray-600); margin: 0; }
.field__hint a { color: var(--energy-700); font-weight: 600; }
.field input[type=file] { padding: .45rem; border: 1px dashed var(--gray-300); border-radius: 8px; background: var(--gray-50); font-size: .9rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
    font-family: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--energy); box-shadow: 0 0 0 3px rgba(255,90,31,.18);
}
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form__legend { font-family: var(--ff-head); font-size: 1.15rem; color: var(--blue-900); }
/* Schmales Feld (PLZ, Betrag): begrenzt sich selbst, damit die Nachbarspalte breit bleibt. */
.field--narrow { max-width: 190px; }
.form .row--narrow-first { grid-template-columns: 190px minmax(0, 1fr); }
@media (max-width: 560px) { .form .row--narrow-first { grid-template-columns: minmax(0, 1fr); } .field--narrow { max-width: none; } }
.field--check label { font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--blue-700); }
/* Honigtopf gegen Spam-Bots: für Menschen unsichtbar, für Screenreader ausgeblendet. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert--warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Filter-Tabs --------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.tabs--tight { margin-bottom: 1.5rem; }
.tab {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--gray-200);
    background: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .98rem; letter-spacing: .3px;
    cursor: pointer; color: var(--gray-600); transition: var(--t);
}
.tab:hover { border-color: var(--energy-300); color: var(--energy-700); transform: translateY(-2px); }
.tab.is-active { background-image: var(--energy-grad); border-color: transparent; color: #fff; box-shadow: var(--glow-energy); }
.tab--all { border-color: var(--blue-100); color: var(--blue-800); background: var(--blue-050); }
.news-filter { margin-bottom: 2.2rem; }
.filter-shell, .team-switcher {
    display: flex; align-items: center; justify-content: space-between; gap: .85rem;
    padding: .7rem; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tabs--quiet { margin-bottom: 0; gap: .35rem; }
.tabs--quiet .tab {
    padding: .45rem .85rem; border-color: var(--gray-200); background: #fff;
    box-shadow: none; font-size: .9rem; color: var(--gray-600);
}
.tabs--quiet .tab:hover { border-color: var(--blue-300); color: var(--blue-800); transform: none; }
.tabs--quiet .tab.is-active { background: var(--blue-900); border-color: var(--blue-900); color: #fff; box-shadow: none; }
.filter-select, .team-switcher__select {
    display: flex; flex-direction: column; gap: .25rem; min-width: min(320px, 100%);
    font-family: var(--ff-head); font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .7px; color: var(--gray-600);
}
.filter-select select, .team-switcher__select select {
    min-height: 42px; min-width: 230px; padding: .45rem 2.2rem .45rem .75rem;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff;
    color: var(--blue-900); font: 600 .98rem var(--ff-sans); cursor: pointer;
}
.filter-select select:focus-visible, .team-switcher__select select:focus-visible { outline: 2px solid var(--energy); outline-offset: 2px; }
.team-switcher { margin-bottom: 1.1rem; }
.team-switcher__links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.team-switcher__links .tab { margin-bottom: 0; }
.tabs--teams { gap: .45rem; margin-top: .9rem; align-items: center; }
.tabs__label { font-family: var(--ff-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-600); margin-right: .35rem; }
.tab--sm { padding: .4rem .85rem; font-size: .9rem; }
.tab__n { display: inline-block; min-width: 1.2em; padding: 0 .35em; margin-left: .15rem; border-radius: 999px; background: var(--energy); color: #fff; font-size: .72em; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.tab.is-active .tab__n { background: rgba(255,255,255,.4); }

/* ---------- Grids & Cards ------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--split { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 2rem; }
.grid--split > * { min-width: 0; } /* erlaubt overflow-x der Tabelle statt Spalten-Sprengung */
.grid--support { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); align-items: center; gap: 2rem; }
.grid--venue { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 2.5rem; }
.grid--team-layout { grid-template-columns: 1.7fr 1fr; align-items: start; gap: 2rem; }
.grid--contact { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.grid--join { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.grid--ref { grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.grid--hfk { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.grid--two-center { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid--stretch { align-items: stretch; }
@media (max-width: 900px) {
    .grid--split, .grid--support, .grid--venue, .grid--team-layout, .grid--contact,
    .grid--join, .grid--ref, .grid--hfk, .grid--two-center { grid-template-columns: 1fr; }
}

.card {
    position: relative; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: var(--t); display: flex; flex-direction: column;
}
.card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--energy-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card:hover::after { transform: scaleX(1); }
.card__media { aspect-ratio: 16 / 10; background: var(--blue-100); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { font-family: var(--ff-head); font-size: 1.45rem; line-height: 1.05; }
.card__title a { color: var(--blue-900); transition: color var(--t-fast); display: inline-block; min-height: 40px; }
.card:hover .card__title a { color: var(--energy-700); }
.card__meta { font-size: .82rem; color: var(--gray-400); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.card__foot { margin-top: auto; padding-top: .7rem; }
.card__foot a { font-family: var(--ff-head); font-weight: 600; letter-spacing: .3px; color: var(--energy-700);
    display: inline-flex; align-items: center; min-height: 44px; }   /* bequeme Tap-Fläche */
.card__badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: rgba(2,17,40,.72); color: #fff; backdrop-filter: blur(5px); padding: .28rem .72rem; border-radius: 999px; font-family: var(--ff-head); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
/* Liga direkt im Bild – sitzt im unteren Verlauf des Mannschaftsfotos. */
.card__league {
    position: absolute; left: .8rem; right: .8rem; bottom: .7rem; z-index: 3;
    color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-shadow: 0 1px 10px rgba(2,17,40,.65);
    display: flex; align-items: center; gap: .45rem;
}
.card__league::before { content: ""; width: 3px; align-self: stretch; min-height: 1em; flex: none;
    border-radius: 2px; background: var(--energy); }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    background: rgba(255,90,31,.12); color: var(--energy-700);
}
.badge--ghost { background: var(--gray-100); color: var(--gray-600); }
.badge--live { background: var(--energy-grad); color: #fff; box-shadow: var(--glow-energy); }

/* Platzhalter-Bildkachel mit Initialen/Icon */
.ph {
    width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
    color: rgba(255,255,255,.92); font-family: var(--ff-head); font-weight: 700; text-align: center;
}
.ph::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 220px at 80% -10%, rgba(255,90,31,.16), transparent 60%);
}
.ph__big { position: relative; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: 1px; }
.ph--soft { background: linear-gradient(135deg, var(--blue-100), var(--blue-050)); color: var(--blue-700); }
.ph--soft::before { display: none; }

/* ---------- Teams / Kader / Spielerprofile -------------------------- */
.team-photo {
    aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 1rem; }
/* Squad-Card: Porträt (Foto oder Initialen) + Name/Position */
.player-card {
    position: relative; display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--t);
}
.player-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--energy-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.player-card:hover::after { transform: scaleX(1); }

.player-card__media {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(150deg, #1a5ec2 0%, #04224f 78%, #021a3e 100%);
}
.player-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.player-card:hover .player-card__media img { transform: scale(1.07); }
.player-card__initials {
    position: relative; z-index: 1; font-family: var(--ff-head); font-weight: 700; font-size: 2.7rem;
    letter-spacing: 1px; color: rgba(255,255,255,.96); text-shadow: 0 6px 22px rgba(0,0,0,.35);
    transition: transform var(--t-bounce);
}
.player-card:hover .player-card__initials { transform: scale(1.04); }
.player-card__no {
    position: absolute; top: .5rem; left: .5rem; z-index: 2; min-width: 30px; height: 30px; padding: 0 .45rem;
    display: grid; place-items: center; border-radius: 9px; font-family: var(--ff-head); font-weight: 700;
    font-size: 1.05rem; color: #fff; background-image: var(--energy-grad); box-shadow: var(--glow-energy);
}
.player-card__info { padding: .6rem .8rem .85rem; }
.player-card__name { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem;
    line-height: 1.08; color: var(--blue-900); }
.player-card:hover .player-card__name { color: var(--energy-700); }
.player-card__pos { display: block; font-size: .76rem; color: var(--gray-600); text-transform: uppercase;
    letter-spacing: .5px; margin-top: .2rem; }
.player {
    position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t); text-align: center;
}
.player:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.player__media { aspect-ratio: 1 / 1; position: relative; background: var(--blue-100); overflow: hidden; }
.player__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.player:hover .player__media img { transform: scale(1.06); }
.player__no {
    position: absolute; top: .55rem; left: .55rem; min-width: 36px; height: 36px; padding: 0 .45rem;
    display: grid; place-items: center; border-radius: 10px; font-family: var(--ff-head);
    font-weight: 700; font-size: 1.2rem; color: #fff; background-image: var(--energy-grad);
    box-shadow: var(--glow-energy);
}
.player__body { padding: .85rem .7rem 1.1rem; }
.player__name { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 600; }
.player__pos { font-size: .82rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.player__stats { display: flex; justify-content: center; gap: 1.2rem; margin-top: .6rem; font-size: .78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.player__stats b { display: block; font-family: var(--ff-head); font-size: 1.15rem; color: var(--energy-700); letter-spacing: 0; }

.staff-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.team-training-mini { border-top: 1px solid var(--gray-200); padding-top: 1rem; }
.team-training-mini strong { display: block; font-family: var(--ff-head); font-size: 1.18rem; line-height: 1.05; color: var(--blue-900); margin-top: .2rem; }
.team-training-mini p { margin: .35rem 0 .75rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .4rem;
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 999px; font-weight: 600; font-size: .92rem;
    transition: var(--t);
}
.chip:hover { border-color: var(--energy-300); transform: translateY(-2px); }
.chip .avatar { width: 32px; height: 32px; border-radius: 999px; background-image: var(--energy-grad); color: #fff;
    display: grid; place-items: center; font-family: var(--ff-head); font-size: .9rem; }

/* Mannschaftsoffizielle */
.officials { display: flex; flex-direction: column; gap: .6rem; }
.official { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; background: #fff;
    border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--t); }
.official:hover { border-color: var(--energy-300); transform: translateX(3px); box-shadow: var(--shadow-md); }
button.official { width: 100%; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.official:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.official__av--photo { overflow: hidden; }
.official__av img { width: 100%; height: 100%; object-fit: cover; }
.official__av { width: 44px; height: 44px; flex: none; border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, var(--blue-600), #04224f); display: grid; place-items: center;
    font-family: var(--ff-head); font-weight: 700; font-size: .92rem; }
.official__txt { display: flex; flex-direction: column; line-height: 1.15; }
.official__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; color: var(--blue-900); }
.official__role { font-size: .74rem; color: var(--energy-700); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

/* ---------- Personen (Funktionäre / Schiri / Kontakt) --------------- */
.person { position: relative; overflow: hidden; display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--t); }
.person::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--energy-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.person:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-2px); }
.person:hover::after { transform: scaleX(1); }
.person .avatar { width: 64px; height: 64px; flex: none; border-radius: 999px; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-600), #04224f); color: #fff; display: grid; place-items: center;
    font-family: var(--ff-head); font-size: 1.35rem; box-shadow: 0 6px 18px rgba(1,76,174,.35); transition: transform var(--t-bounce); }
.person:hover .avatar { transform: scale(1.07) rotate(-3deg); }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__body { min-width: 0; }
.person__role { font-size: .76rem; text-transform: uppercase; letter-spacing: .7px; color: var(--energy-700); font-weight: 700; }
.person__name { font-family: var(--ff-head); font-size: 1.3rem; line-height: 1.05; margin-top: .1rem; }
.person__contact { font-size: .88rem; color: var(--gray-600); word-break: break-word; }

/* Funktionärs-Gruppen */
.fkt-group + .fkt-group { margin-top: 2.8rem; }
.fkt-group__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.4rem; }
.fkt-group__head .eyebrow { flex: none; }
.fkt-group__count { flex: none; min-width: 24px; height: 24px; padding: 0 .45rem; display: grid; place-items: center;
    border-radius: 999px; background-image: var(--energy-grad); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: .85rem; }
.fkt-group__rule { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gray-200), transparent); }

/* Funktionärs-Profilkarte (mit optionalem Foto) */
.fkt-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--t); text-align: center; }
.fkt-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--energy-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.fkt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.fkt-card:hover::after { transform: scaleX(1); }
.fkt-card__top { position: relative; height: 86px;
    background: linear-gradient(135deg, #1a5ec2, #04224f); }
.fkt-card__avatar { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%);
    width: 92px; height: 92px; border-radius: 999px; overflow: hidden; border: 4px solid #fff;
    background: linear-gradient(135deg, var(--blue-500), #04224f); color: #fff;
    display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: 1.7rem;
    box-shadow: var(--shadow-md); transition: transform var(--t-bounce); z-index: 1; }
.fkt-card:hover .fkt-card__avatar { transform: translateX(-50%) scale(1.07); }
.fkt-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.fkt-card__info { padding: 58px 1.1rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; }
.fkt-card__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--blue-900); }
.fkt-card__role { font-size: .75rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--energy-700); }
.fkt-card__contact { font-size: .88rem; color: var(--gray-600); margin-top: .35rem; word-break: break-word; }

/* ---------- Tabellen & Spiele (handball.net) ------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.standings { width: 100%; border-collapse: collapse; min-width: 540px; }
table.standings th, table.standings td { padding: .85rem .9rem; text-align: center; font-size: .92rem; border-bottom: 1px solid var(--gray-100); }
table.standings thead th { background: var(--blue-950); color: #fff; font-family: var(--ff-head); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; font-size: .82rem; }
table.standings td:nth-child(2), table.standings th:nth-child(2) { text-align: left; }
table.standings tbody tr { transition: background var(--t-fast); }
table.standings tbody tr:hover { background: var(--blue-050); }
table.standings .team-cell { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
table.standings .rank { font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; color: var(--blue-700); }
table.standings .is-own { background: rgba(255,90,31,.08); box-shadow: inset 4px 0 0 0 var(--energy); }
table.standings .is-own td { font-weight: 700; }
table.standings .is-own .rank { color: var(--energy-700); }
.club-logo { width: 28px; height: 28px; border-radius: 7px; background: var(--gray-100); object-fit: contain; flex: none; }
.club-logo--initials { display: grid; place-items: center; font-family: var(--ff-head); font-size: .7rem; }

.fixtures { display: flex; flex-direction: column; gap: .8rem; }
.fixture {
    display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.2rem;
    box-shadow: var(--shadow-sm); transition: var(--t); position: relative; overflow: hidden;
}
.fixture::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--energy-grad); transition: width var(--t); }
.fixture:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.fixture:hover::before { width: 4px; }
.fixture__date { font-size: .85rem; color: var(--gray-600); font-weight: 600; }
.fixture__date b { display: block; font-family: var(--ff-head); color: var(--energy-700); font-size: 1.12rem; letter-spacing: .3px; }
.fixture__teams { display: flex; flex-direction: column; gap: .25rem; }
.fixture__teams .t { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.02rem; }
.fixture__result { font-family: var(--ff-head); font-size: 1.7rem; font-weight: 700; color: var(--blue-900); letter-spacing: .5px; }
.fixture__result.pending { font-size: 1.05rem; color: var(--energy-700); font-family: var(--ff-head); font-weight: 700;
    border: 2px solid rgba(255,90,31,.35); border-radius: 999px; padding: .15rem .7rem; text-transform: uppercase; letter-spacing: 1px; }
.fixtures--compact { gap: .48rem; }
.fixtures--compact .fixture {
    grid-template-columns: 104px minmax(0, 1fr) auto; gap: .75rem;
    padding: .68rem .85rem; border-radius: 10px; box-shadow: none;
}
.fixtures--compact .fixture:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fixtures--compact .fixture__date { font-size: .78rem; line-height: 1.25; }
.fixtures--compact .fixture__date b { font-size: 1rem; }
.fixtures--compact .fixture__teams { gap: .12rem; min-width: 0; }
.fixtures--compact .fixture__teams .t { font-size: .94rem; gap: .38rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixtures--compact .fixture__teams .t span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fixtures--compact .fixture__logo { width: 24px; height: 24px; border-radius: 5px; }
.fixtures--compact .fixture__tag { font-size: .66rem; padding-inline: .45rem; margin-bottom: .1rem; }
.fixtures--compact .fixture__result { font-size: 1.35rem; }
.fixtures--compact .fixture__result.pending { font-size: .82rem; padding: .12rem .55rem; letter-spacing: .7px; }
.fixtures--compact .fixture__rcol { gap: .28rem; }

/* Spiele auf dunklem Grund (Matchday) */
.section--dark .fixture { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; backdrop-filter: blur(4px); }
.section--dark .fixture:hover { background: rgba(255,255,255,.1); }
.section--dark .fixture__date { color: rgba(255,255,255,.7); }
.section--dark .fixture__date b { color: var(--energy-300); }
.section--dark .fixture__teams .t { color: #fff; }
.section--dark .fixture__result { color: #fff; }

/* Ergebnis als Spielbericht-Link + Spielplan ausklappen */
.fixture__result--link { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; cursor: pointer; transition: var(--t); }
/* Die ganze Spielkarte ist anklickbar: Der Ergebnis-Link legt sich unsichtbar
   über die Karte (ein einziger Link, kein verschachteltes Markup). */
.fixture__result--link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fixture:has(.fixture__result--link) { cursor: pointer; }
.fixture__share { position: relative; z-index: 2; }   /* Spielgrafik bleibt separat klickbar */
.fixture__result--link:hover { color: var(--energy-700); }
.section--dark .fixture__result--link:hover { color: var(--energy-300); }
.fixture__ext { width: 14px; height: 14px; opacity: .5; flex-shrink: 0; }
.fixture__result--link:hover .fixture__ext { opacity: 1; }
.fixture__tag { align-self: flex-start; font-family: var(--ff-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--blue-700); background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 999px; padding: .08rem .55rem; margin-bottom: .2rem; }
.section--dark .fixture__tag { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.fixture__logo { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; padding: 2px; box-shadow: 0 1px 3px rgba(2,17,40,.12); }
.fixture__teams .t.is-own { color: var(--blue-700); font-weight: 700; }
.section--dark .fixture__teams .t.is-own { color: var(--energy-300); }

/* „Nächstes Spiel"-Band + Countdown */
.matchday { position: relative; overflow: hidden; text-align: center; margin-bottom: 2rem; padding: 1.7rem 1.4rem;
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg); backdrop-filter: blur(4px); }
.matchday::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--energy-grad); }
.matchday__head { display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.matchday__league { font-family: var(--ff-head); font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; color: var(--energy-300); background: rgba(255,90,31,.16); padding: .15rem .65rem; border-radius: 999px; }
.matchday__teams { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin: 1.1rem 0 .5rem; }
.matchday__team { display: flex; flex-direction: column; align-items: center; gap: .55rem; flex: 1 1 0; max-width: 230px; }
.matchday__team img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; }
.matchday__team span { font-family: var(--ff-head); font-weight: 600; color: #fff; font-size: 1.15rem; line-height: 1.05; }
.matchday__vs { font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem; color: var(--energy-300); flex: 0 0 auto; }
.matchday__meta { color: rgba(255,255,255,.78); font-weight: 600; }
.matchday__cd { display: flex; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.matchday__cd .cd { background: rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .6rem 1rem; min-width: 72px; }
.matchday__cd .cd b { display: block; font-family: var(--ff-head); font-size: 2rem; line-height: 1; color: #fff; }
.matchday__cd .cd span { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.65); }
.matchday__off-text { color: rgba(255,255,255,.85); max-width: 60ch; margin: .6rem auto 1.1rem; }
.matchday__opp { margin-top: .55rem; font-size: .92rem; color: rgba(255,255,255,.82); }
.matchday__opp strong { color: var(--energy-300); }
.matchday--home { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.matchday--home::after {
    content: ""; position: absolute; width: 180px; aspect-ratio: 1; right: -80px; bottom: -105px;
    border: 28px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none;
}
.matchday__more {
    width: fit-content; margin: .75rem auto 0; padding: .3rem .75rem; border-radius: 999px;
    background: rgba(255,90,31,.14); color: var(--energy-300); font-family: var(--ff-head); font-weight: 600; font-size: .82rem;
}
.matchday__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }

/* Horizontaler Ergebnis-Ticker */
.result-ticker { margin-block: clamp(2.4rem, 5vw, 4rem); }
.result-ticker__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.result-ticker__head h2 { margin-top: .4rem; }
.result-ticker__controls { display: flex; gap: .5rem; }
.result-ticker__controls button {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 8px;
    color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); cursor: pointer;
    transition: background var(--t-fast), opacity var(--t-fast);
}
.result-ticker__controls button:hover { background: rgba(255,255,255,.17); }
.result-ticker__controls button:disabled { opacity: .35; cursor: default; }
.result-ticker__controls svg { width: 20px; height: 20px; }
.result-ticker__viewport { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.result-ticker__viewport::-webkit-scrollbar { display: none; }
.result-ticker__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: .7rem; }
.result-tile {
    position: relative; display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; min-height: 132px;
    padding: 1rem 1rem .95rem 1.15rem; overflow: hidden; scroll-snap-align: start;
    color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
    transition: background var(--t-fast), transform var(--t-fast);
}
.result-tile::before { content: ""; position: absolute; inset-block: 0; left: 0; width: 4px; background: #9aa3ad; }
.result-tile--win::before { background: #3ad07f; }
.result-tile--loss::before { background: #ff6b6b; }
.result-tile:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); }
.result-tile__meta { grid-column: 1 / -1; font-size: .7rem; color: rgba(255,255,255,.64); text-transform: uppercase; letter-spacing: .4px; }
.result-tile strong { align-self: end; overflow: hidden; font-family: var(--ff-head); font-size: 1.08rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.result-tile__score { grid-row: 2 / 4; grid-column: 2; align-self: center; font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: #fff; }
.result-tile__outcome { font-family: var(--ff-head); font-size: .78rem; font-weight: 600; color: var(--energy-300); }
.result-tile--win .result-tile__outcome { color: #55dc93; }
.result-tile--loss .result-tile__outcome { color: #ff8b8b; }
.result-ticker__empty {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem;
    border: 1px dashed rgba(255,255,255,.24); border-radius: 8px; background: rgba(255,255,255,.045);
}
.result-ticker__empty strong { font-family: var(--ff-head); font-size: 1.05rem; color: #fff; }
.result-ticker__empty span { color: rgba(255,255,255,.68); font-size: .88rem; }

/* Spiel-Detailseite */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 2.2rem 1.5rem; text-align: center; border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, #04224f, #014cae); }
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.scoreboard__logo { width: 92px; height: 92px; display: grid; place-items: center; background: #fff; border-radius: 16px; overflow: hidden; }
.scoreboard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.scoreboard__ini { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: var(--blue-700); }
.scoreboard__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; line-height: 1.05; }
.scoreboard__name.is-own { color: var(--energy-300); }
.scoreboard__center { min-width: 120px; }
.scoreboard__score { font-family: var(--ff-head); font-weight: 700; font-size: clamp(2.8rem, 9vw, 4rem); line-height: 1; }
.scoreboard__score span { opacity: .45; margin: 0 .08em; }
.scoreboard__half { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: .35rem; }
.scoreboard__state { color: var(--energy-300); font-family: var(--ff-head); text-transform: uppercase; letter-spacing: 1.2px; font-size: .82rem; margin-top: .55rem; }
.scoreboard__vs { font-family: var(--ff-head); font-weight: 700; font-size: 2.6rem; color: var(--energy-300); }
.scoreboard .live-badge { margin-bottom: .4rem; }
.gameinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.gameinfo__item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .85rem 1.1rem; }
.gameinfo__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--gray-400); margin-bottom: .15rem; }
.gameinfo__val { font-weight: 600; color: var(--blue-900); }
.vs-row { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: .6rem; }
.vs-row__rank { font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem; color: var(--blue-700); min-width: 1.6rem; }
.vs-row__team { flex: 1; font-weight: 600; color: var(--blue-900); }
.vs-row__team.is-own { color: var(--energy-700); }
.vs-row__rec { color: var(--gray-600); font-size: .88rem; }
.vs-row__pts { font-family: var(--ff-head); font-weight: 700; color: var(--blue-900); }
@media (max-width: 560px) { .scoreboard { padding: 1.5rem .7rem; gap: .5rem; } .scoreboard__logo { width: 62px; height: 62px; } .scoreboard__name { font-size: 1rem; } .vs-row__rec { display: none; } }
@media (max-width: 560px) { .matchday__cd { gap: .5rem; } .matchday__cd .cd { min-width: 58px; padding: .5rem .55rem; } .matchday__cd .cd b { font-size: 1.5rem; } .matchday__team span { font-size: 1rem; } }
.fixtures.is-collapsed .fixture--extra { display: none; }
.fixture[hidden] { display: none; }
.gsp-filter { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: flex-end; margin-bottom: 1.6rem; padding: 1.1rem 1.2rem; background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: var(--radius); }
.gsp-filter label { display: flex; flex-direction: column; gap: .3rem; font-family: var(--ff-head); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-600); }
.gsp-filter select { font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--blue-900); padding: .5rem .7rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-width: 170px; }
.gsp-filter select:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; }
.gsp-count { margin-left: auto; align-self: center; font-size: .9rem; font-weight: 600; color: var(--gray-600); }
@media (max-width: 560px) { .gsp-count { margin-left: 0; } .gsp-filter select { min-width: 0; width: 100%; } .gsp-filter label { flex: 1 1 100%; } }
.fixtures-wrap .fixtures__toggle { display: flex; justify-content: center; margin-top: 1rem; }
.fixtures__toggle button { display: inline-flex; align-items: center; gap: .45rem; }
.fixtures__chev { width: 1.05em; height: 1.05em; transition: transform var(--t); }
[data-fixtures-toggle][aria-expanded="true"] .fixtures__chev { transform: rotate(180deg); }

/* Daten-Hinweis (z. B. Cache / Quelle) */
/* Fließtext – KEIN flex: sonst werden <strong> und <a> zu eigenen Flex-Items
   und der Satz zerfällt in nebeneinanderstehende Spalten (mobil gut sichtbar). */
/* display ausdrücklich auf block: Als Flex-Container würden <strong> und <a>
   zu eigenen Spalten und der Satz zerfiele in Fragmente (war so, bis 08/2026). */
.source-note { display: block; font-size: .82rem; color: var(--gray-400); margin-top: 1rem; }
.section--dark .source-note { color: rgba(255,255,255,.6); }

/* ---------- Info-Listen / Trainingszeiten --------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.info-grid--single { grid-template-columns: 1fr; }
.info-card { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: var(--t); overflow: hidden; }
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.info-card .ic { width: 50px; height: 50px; border-radius: 14px; background-image: var(--energy-grad); color: #fff;
    display: grid; place-items: center; margin-bottom: .9rem; box-shadow: var(--glow-energy); transition: transform var(--t-bounce); }
.info-card:hover .ic { transform: rotate(-6deg) scale(1.08); }
.info-card .ic svg { width: 26px; height: 26px; }
.info-card--link { display: block; color: inherit; text-decoration: none; }
.info-card--link:hover { color: inherit; }
.info-card__title { font-family: var(--ff-head); font-size: 1.36rem; line-height: 1.05; color: var(--blue-900); }
.info-card__title--sm { font-size: 1.2rem; }
.ic--letter { font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; }

table.schedule { width: 100%; border-collapse: collapse; }
table.schedule th, table.schedule td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-100); }
table.schedule thead th { background: var(--blue-950); color: #fff; font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .6px; font-size: .85rem; font-weight: 600; }
table.schedule tbody tr { transition: background var(--t-fast); }
table.schedule tbody tr:hover { background: var(--blue-050); }
table.schedule .day { font-family: var(--ff-head); font-weight: 700; color: var(--energy-700); text-transform: uppercase; letter-spacing: .3px; }

/* ---------- CTA-Band ------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, #04224f, #014cae);
    color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.8rem);
    text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
/* Hafensilhouette am unteren Rand des Bands (wie auf der Spielgrafik) */
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 96px; pointer-events: none;
    background: url("../img/skyline-elsfleth.png") bottom center / auto 100% no-repeat; opacity: .5; }
.cta-band { padding-bottom: clamp(5.4rem, 9vw, 7.5rem); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin-inline: auto; margin-top: .7rem; }
.cta-band .hero__cta { justify-content: center; }

/* Funktionaler Teamfinder im Mitmachen-Bereich */
.join-section { background: var(--blue-050); }
.team-finder {
    display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.35fr);
    overflow: hidden; border-radius: 8px; background: linear-gradient(145deg, #04224f, #014cae 72%);
    border: 1px solid rgba(1,76,174,.2); box-shadow: var(--shadow-lg);
}
.team-finder__intro { align-self: center; padding: clamp(2rem, 5vw, 4rem); color: #fff; }
.team-finder__intro h2 { margin-top: .65rem; color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.team-finder__intro p { margin-top: 1rem; color: rgba(255,255,255,.82); max-width: 42ch; }
.team-finder__intro-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.team-finder__tool { min-width: 0; padding: clamp(1.5rem, 4vw, 2.7rem); background: var(--white); }
.team-finder__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--gray-200); }
.team-finder__controls label { display: grid; gap: .4rem; }
.team-finder__controls label > span { font-family: var(--ff-head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-600); }
.team-finder__controls select {
    width: 100%; min-height: 48px; padding: .65rem 2.4rem .65rem .8rem; border: 1.5px solid var(--gray-300); border-radius: 6px;
    color: var(--blue-900); background: var(--white); font: 600 .96rem var(--ff-sans);
}
.team-finder__controls select:focus-visible { outline: 3px solid rgba(30,99,200,.22); border-color: var(--blue-500); }
.team-finder__prompt { min-height: 190px; display: grid; place-items: center; align-content: center; gap: .7rem; text-align: center; color: var(--gray-600); }
.team-finder__prompt > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--blue-700); background: var(--blue-050); }
.team-finder__prompt svg { width: 25px; height: 25px; }
.team-finder__prompt p { max-width: 34ch; color: var(--gray-600); }
.team-finder__results { display: grid; }
.team-finder__result {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem;
    padding: 1.2rem 0; border-bottom: 1px solid var(--gray-200);
}
.team-finder__result[hidden], .team-finder__prompt[hidden], .team-finder__empty[hidden] { display: none !important; }
.team-finder__result:last-child { border-bottom: 0; }
.team-finder__category { font-family: var(--ff-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--energy-700); }
.team-finder__result h3 { margin-top: .15rem; font-size: 1.55rem; }
.team-finder__result p { margin-top: .2rem; font-size: .88rem; color: var(--gray-600); }
.team-finder__training { display: block; margin-top: .45rem; font-size: .82rem; font-weight: 600; color: var(--blue-700); }
.team-finder__result-actions { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; min-width: 132px; text-align: center; }
.team-finder__text-link { font-family: var(--ff-head); font-size: .82rem; font-weight: 600; }
.team-finder__empty { padding: 1.7rem 0 .4rem; text-align: center; }
.team-finder__empty strong { display: block; font-family: var(--ff-head); font-size: 1.35rem; color: var(--blue-900); }
.team-finder__empty p { max-width: 48ch; margin: .45rem auto 1rem; color: var(--gray-600); }
@media (max-width: 900px) {
    .team-finder { grid-template-columns: 1fr; }
    .team-finder__intro { padding-block: 2.2rem; }
    .team-finder__intro h2 { font-size: clamp(2.3rem, 8vw, 3.3rem); }
}
@media (max-width: 640px) {
    .today-board__head { align-items: flex-start; flex-direction: column; }
    .today-board__items { grid-auto-columns: minmax(82vw, 1fr); }
    .today-board__empty { align-items: stretch; flex-direction: column; }
    .team-finder__controls { grid-template-columns: 1fr; }
    .team-finder__result { grid-template-columns: 1fr; }
    .team-finder__result-actions { align-items: stretch; }
    .team-finder__intro-actions .btn { flex: 1 1 100%; justify-content: center; }
    .result-ticker__track { grid-auto-columns: minmax(76vw, 1fr); }
    .matchday__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Spieldetail: Form & Direktvergleich ---------------------- */
.matchform { display: grid; gap: .55rem; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.matchform__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.matchform__team { font-weight: 600; }
.matchform__team.is-own { color: var(--blue-700); font-weight: 700; }
.matchform__h2h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    border-top: 1px solid var(--gray-200); padding-top: .55rem; font-size: .95rem; color: var(--gray-600); }
.matchform__h2h strong { color: var(--blue-900); font-family: var(--ff-head); letter-spacing: .3px; white-space: nowrap; }
.gameinfo__sub { display: block; font-size: .82rem; color: var(--gray-600); font-weight: 400; margin-top: .15rem; }
.gameinfo__sub a { color: var(--energy-700); font-weight: 600; }

/* ---------- Kalender: Spiele / Training umschalten ------------------ */
/* Filterung über den Modus am Container statt [hidden] – so kollidiert nichts
   mit den display-Werten der Kacheln. */
.calmonths[data-cal-scope="games"]    [data-cal-item="training"],
.calmonths[data-cal-scope="training"] [data-cal-item="game"] { display: none; }
.calmonth[hidden] { display: none; }

.caltrain {
    display: flex; flex-direction: column; gap: .1rem; padding: .28rem .4rem; border-radius: 6px;
    font-size: .68rem; line-height: 1.15; text-decoration: none;
    background: var(--blue-050); color: var(--blue-700); border-left: 3px solid var(--blue-400);
}
.caltrain .calgame__team { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caltrain .calgame__meta { opacity: .8; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .caltrain { background: rgba(255,255,255,.06); color: var(--blue-300); border-left-color: var(--blue-500); }

/* ---------- Grußwort (Startseite) ---------------------------------- */
/* Dunkler Block als bewusste Kontrast-Insel im hellen Layout. Farben als feste
   Hex-Werte, weil --blue-* im Dark Mode kippen würden und die Fläche dann hell wäre. */
.welcome {
    margin-top: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.6rem);
    background: linear-gradient(135deg, #04224f, #014cae); color: #fff;
    position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.welcome::after {   /* dezenter Lichtschein oben rechts */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(620px 260px at 88% -20%, rgba(255,90,31,.20), transparent 62%);
}
.welcome > * { position: relative; z-index: 1; }
.welcome__title { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.05; max-width: 20ch; }
.welcome__title::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px;
    margin-top: .7rem; background: var(--energy-grad); }
.welcome__text { margin-top: .9rem; font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 1.65;
    color: rgba(255,255,255,.92); max-width: 74ch; }

.welcome__signers { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 1.3rem;
    padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.18); }
.welcome__signer { display: flex; align-items: center; gap: .7rem; }
.welcome__av { width: 46px; height: 46px; flex: none; border-radius: 999px; overflow: hidden;
    display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
    color: #fff; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.28); }
.welcome__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome__who { display: flex; flex-direction: column; line-height: 1.25; }
.welcome__who strong { font-family: var(--ff-head); font-size: 1.05rem; letter-spacing: .3px; color: #fff; }
.welcome__who span { font-size: .74rem; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; color: var(--energy-300); }
@media (max-width: 560px) { .welcome__signers { gap: .9rem; flex-direction: column; } }

/* ---------- Sponsoren ----------------------------------------------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
/* Alle Kacheln (Sponsoren + „Partner werden“) sind gleichwertige Rasterzellen und
   füllen die Zeilen fortlaufend. Früher wurden sie in drei Spalten-Blöcke zerlegt –
   bei nicht durch 3 teilbarer Anzahl blieben am Ende Löcher (2×2 statt voller Zeilen). */
.sponsor-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; align-items: start; }
.sponsor-tile { aspect-ratio: 3 / 2; display: grid; place-items: center; align-content: center; row-gap: .4rem; text-align: center; padding: 1rem;
    border-radius: var(--radius-sm); transition: var(--t); text-decoration: none; min-height: 108px; }
.sponsor-tile span { font-family: var(--ff-head); font-weight: 600; line-height: 1.1; }
.sponsor-tile:not(.sponsor-tile--logo) { background: var(--blue-050); border: 2px dashed var(--blue-300); color: var(--blue-400); }
.sponsor-tile:not(.sponsor-tile--logo):hover { border-color: var(--blue-400); color: var(--blue-700); }
.sponsor-tile--logo { background: #fff; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.sponsor-tile--logo:hover { box-shadow: var(--shadow-md); }
.sponsor-tile--logo img { max-width: 100%; max-height: 76px; object-fit: contain; filter: saturate(.9) contrast(1.02); opacity: .92; transition: var(--t); }
.sponsor-tile--logo:hover img { filter: none; opacity: 1; }
.sponsor-tile__name { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; color: #04224f; }
.sponsor-tile--logo img + .sponsor-tile__name { margin-top: .25rem; font-size: .74rem; letter-spacing: .2px; color: #556070; }
/* Spezifisch genug, um die gestrichelte Platzhalter-Kachel oben zu überschreiben. */
.sponsor-tile.sponsor-tile--cta {
    /* Reiht sich als normale Rasterzelle ein (früher volle Breite): So füllen
       Sponsoren + CTA die Zeilen lückenlos auf. */
    aspect-ratio: 3 / 2; min-height: 108px;
    align-content: center; row-gap: .35rem; padding: 1.6rem 1.3rem; text-align: center;
    color: #fff; border: 0; background: var(--energy); box-shadow: var(--shadow-sm);
}
.sponsor-cta__ic { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto .2rem;
    border-radius: 999px; background: rgba(255,255,255,.18); }
.sponsor-cta__ic svg { width: 20px; height: 20px; color: #fff; }
.sponsor-cta__title { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: .6px; line-height: 1.1; }
.sponsor-cta__sub { font-size: .88rem; color: rgba(255,255,255,.92); max-width: 34ch; margin-inline: auto; }
.sponsor-cta__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem;
    font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: #fff;
    border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.sponsor-cta__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.sponsor-tile--cta:hover .sponsor-cta__link svg { transform: translateX(3px); }
.sponsor-tile.sponsor-tile--cta:hover { color: #fff; background: var(--energy-700); box-shadow: var(--shadow-md); }
.eyebrow--light { color: var(--energy-300); }
.eyebrow--light::before { background: rgba(255,255,255,.58); }
.dues-amount {
    margin: .75rem 0 .45rem; font-family: var(--ff-head); font-size: clamp(3.4rem, 7vw, 5.4rem);
    font-weight: 700; line-height: .9; color: #fff;
}
.dues-amount span { font-size: .3em; color: rgba(255,255,255,.72); }

/* ---------- News-Artikel -------------------------------------------- */
.article { max-width: 760px; }
.article--center { margin-inline: auto; }
.article img { border-radius: var(--radius); margin-block: 1.5rem; box-shadow: var(--shadow-md); }
.article h2 { margin-top: 2rem; }
.article p { margin-top: 1rem; }

/* ---------- Breadcrumb ---------------------------------------------- */
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--gray-400); padding-top: 1.4rem; flex-wrap: wrap; }
.crumbs a { color: var(--gray-600); font-weight: 600; }
.crumbs span { color: var(--gray-300); }

/* ---------- Footer --------------------------------------------------- */
.footer { position: relative; background: var(--blue-950); color: rgba(255,255,255,.78); padding-block: clamp(44px, 7vw, 76px) 0; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--energy-grad); }
/* Elsflether Hafensilhouette als dunkles Relief am unteren Rand */
.footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 180px; pointer-events: none;
    background: url("../img/skyline-elsfleth.png") bottom center / auto 100% no-repeat; opacity: .8; }
.footer > * { position: relative; z-index: 1; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--energy-300); }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.3fr; gap: 2rem; }
.footer__brand .brand__logo { background: #fff; border-radius: 50%; padding: 5px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--blue-300); }
.footer__brand p { color: rgba(255,255,255,.62); margin-top: .9rem; max-width: 32ch; }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; letter-spacing: .5px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08);
    display: grid; place-items: center; transition: var(--t); }
.footer__socials a:hover { background: var(--energy); box-shadow: var(--shadow-sm); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem;
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__bottom a { color: rgba(255,255,255,.7); }
.footer__bottom .wrap-actions a:hover { color: var(--energy-300); }

/* ---------- Motion --------------------------------------------------- */
@keyframes heroLineUp { from { opacity: 0; transform: translateY(35%); clip-path: inset(100% 0 0 0); }
                        to   { opacity: 1; transform: none;          clip-path: inset(0 0 0 0); } }
@keyframes heroShine { 0% { background-position: 150% 0; } 38% { background-position: -60% 0; } 100% { background-position: -60% 0; } }

/* Reveal-on-scroll (JS toggelt .in), mit Stagger via --i */
/* Nur bei aktivem JS unsichtbar starten: Fällt das Einblenden aus (Fehler,
   blockiertes Script), bleibt der Inhalt sichtbar statt dauerhaft opacity:0. */
.has-js .reveal { --i: 0; opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 70ms); }
.has-js .reveal.in, .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; }
    .hero { background-position: 0 0 !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card:hover, .player:hover, .info-card:hover, .fixture:hover, .person:hover, .btn:hover { transform: none; }
}

/* ---------- Utilities ----------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.center { text-align: center; }
.text-tight { margin: 0; }
.title-sm { font-size: 1.25rem; }
.title-xs { font-size: 1.15rem; }
.legend-note { font-size: .8rem; }
.text-win { color: #1f9d4d; font-weight: 700; }
.text-loss { color: #d2433a; font-weight: 700; }
.wrap-actions--center { justify-content: center; }
.source-note--center { text-align: center; }
.stats--flat { margin-top: 0; grid-template-columns: repeat(3, 1fr); } /* Stadthalle: drei Eckdaten */
.person--stack { flex-direction: column; text-align: center; align-items: center; }
.person__name--sm { font-size: 1.1rem; }
.person__role--offset { margin-top: .2rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.wrap-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.muted { color: var(--gray-600); }

/* ---------- Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed; top: 74px; left: 0; right: 0; bottom: auto;
        height: calc(100vh - 74px); height: calc(100dvh - 74px);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        background: #fff; padding: 1.3rem var(--gut) 2rem; gap: .1rem;
        transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav.is-open .nav__menu { transform: translateX(0); }
    .nav__link { padding: 1rem .4rem; font-size: 1.2rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
    .nav__link::after { display: none; }
    .nav__cta { margin-left: 0; }
    .nav__menu .btn { margin: 1.3rem 0 0; justify-content: center; }
    .nav__mobile-actions {
        display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem;
    }
    .nav__mobile-action {
        display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
        min-height: 48px; padding: .75rem .8rem; border: 1.5px solid var(--gray-200);
        border-radius: var(--radius-sm); background: var(--white); color: var(--blue-900);
        font-family: var(--ff-head); font-size: .96rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .3px; cursor: pointer;
    }
    .nav__mobile-action svg { width: 19px; height: 19px; flex: none; }
    .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
        padding-left: 1rem; display: none; }
    .nav__item.open .nav__dropdown { display: block; }
    .nav__item.open .nav__caret { transform: rotate(180deg); }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .fixture { grid-template-columns: 92px 1fr; }
    .fixtures--compact .fixture { grid-template-columns: 82px minmax(0, 1fr); gap: .58rem; }
    .fixtures--compact .fixture__result { font-size: 1.18rem; }
    .fixture__rcol { grid-column: 2; justify-self: end; align-items: flex-end; }
}
@media (max-width: 560px) {
    .grid--4 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .section__head-row { align-items: stretch; margin-bottom: 1.35rem; }
    .section__head-row .btn { width: 100%; justify-content: center; }
    .filter-shell, .team-switcher { align-items: stretch; flex-direction: column; }
    .tabs--quiet { width: 100%; }
    .tabs--quiet .tab { flex: 1 1 auto; justify-content: center; text-align: center; }
    .filter-select, .team-switcher__select, .filter-select select, .team-switcher__select select { width: 100%; min-width: 0; }
    .team-switcher__links { width: 100%; }
    .team-switcher__links .tab { flex: 1 1 100%; text-align: center; }
    .hero__inner { padding-block: clamp(32px, 10vw, 54px) 34px; }
    .hero__logo { width: 78px; margin-bottom: .75rem; }
    .hero p { max-width: 31ch; }
    .hero__cta .btn { width: min(100%, 318px); justify-content: center; }
    .ig-panel { grid-template-columns: 1fr; }
    .ig-feature { min-height: 260px; }
    .ig-grid { grid-template-columns: repeat(2, 1fr); }
    .sponsor-wall { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; margin-top: -2rem; }
    .stat { padding: 1.3rem .7rem; }
    .stat__label { font-size: .72rem; letter-spacing: .5px; }
    .brand__sub { display: none; }
}
@media (max-width: 430px) {
    .nav__inner { height: 66px; gap: .55rem; }
    .nav__menu { top: 66px; height: calc(100vh - 66px); height: calc(100dvh - 66px); }
    .nav__desktop-tool { display: none; }
    .nav__toggle, .theme-toggle { width: 40px; height: 40px; }
    .brand__logo { width: 38px; height: 38px; }
    .brand__name { font-size: 1.18rem; }
}

/* ---------- Barrierefreiheit: Skip-Link & Fokus -------------------- */
.skip-link { position: absolute; left: 8px; top: -52px; z-index: 300; background: var(--blue-700); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--energy); outline-offset: 2px; border-radius: 4px; }
.section--dark :focus-visible, [data-theme="dark"] :focus-visible { outline-color: var(--energy-300); }

/* ---------- Theme-Umschalter --------------------------------------- */
.theme-toggle { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--gray-200); border-radius: 50%; background: #fff; color: var(--blue-700); cursor: pointer; transition: var(--t); }
.theme-toggle:hover { border-color: var(--energy-300); color: var(--energy-700); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
.print-bar { margin: -.2rem 0 1.5rem; }
@media (max-width: 430px) { .nav__desktop-tool { display: none; } }

/* ---------- Kader: Ansicht umschalten (Karten / Liste) -------------- */
.section__head--between { display: flex; align-items: flex-end; justify-content: space-between; gap: .9rem 1.5rem; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.view-toggle__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; line-height: 1; color: var(--blue-800); background: transparent; border: 0; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.view-toggle__btn + .view-toggle__btn { border-left: 1px solid var(--gray-200); }
.view-toggle__btn svg { width: 17px; height: 17px; flex: none; }
.tab__ic { width: 15px; height: 15px; flex: none; vertical-align: -2px; margin-right: .3rem; }
.view-toggle__btn:hover:not(.is-active) { background: var(--blue-050); }
.view-toggle__btn.is-active { background: var(--blue-700); color: #fff; }
.view-toggle__btn:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.roster[hidden], .roster-list-wrap[hidden] { display: none; }
.roster-list-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.roster-list { width: 100%; border-collapse: collapse; min-width: 460px; color: var(--gray-800); }
.roster-list th, .roster-list td { padding: .72rem .95rem; text-align: left; vertical-align: middle; }
.roster-list thead th { background: var(--blue-950); color: #fff; font-family: var(--ff-head); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: .8rem; white-space: nowrap; }
.roster-list thead th.roster-list__num-h { text-align: center; }
.roster-list tbody tr { border-bottom: 1px solid var(--gray-100); transition: background var(--t-fast); }
.roster-list tbody tr:last-child { border-bottom: 0; }
.roster-list__num { text-align: center; width: 3.4rem; font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; color: var(--blue-500); }
.roster-list__name { font-weight: 600; color: var(--blue-900); white-space: nowrap; }
.roster-list tbody tr.is-link { cursor: pointer; }
.roster-list tbody tr.is-link:hover { background: var(--blue-050); }
.roster-list tbody tr.is-link:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }

/* ---------- Spielverlauf (Torkurve) --------------------------------- */
.gamechart { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem 1.2rem 1rem; }
.gamechart svg { width: 100%; height: auto; display: block; }
.gamechart__grid { stroke: var(--gray-200); stroke-width: 1; }
.gamechart__half { stroke: var(--gray-300); stroke-width: 1; stroke-dasharray: 4 4; }
.gamechart__tick { fill: var(--gray-600); font-size: 10px; font-family: var(--ff-sans); }
.gamechart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gamechart__line--home { stroke: var(--gray-400); }
.gamechart__line--away { stroke: var(--blue-300); }
.gamechart__line.is-own { stroke: var(--blue-700); stroke-width: 3; }
.gamechart__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .7rem; font-size: .88rem; color: var(--gray-800); }
.gamechart__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.gamechart__key { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.gamechart__key--home { background: var(--gray-400); }
.gamechart__key--away { background: var(--blue-300); }
.gamechart__key.is-own { background: var(--blue-700); height: 4px; }

/* ---------- Aufstellung / Torschützen je Spiel ---------------------- */
.lineups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.lineup { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.lineup__team { font-family: var(--ff-head); font-size: 1.05rem; padding: .7rem 1rem; margin: 0;
    background: var(--gray-50); border-bottom: 1px solid var(--gray-200); color: var(--blue-900); }
.lineup__team.is-own { background: var(--blue-700); color: #fff; border-bottom-color: var(--blue-700); }
.lineup__list { list-style: none; margin: 0; padding: 0; }
.lineup__row { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .7rem;
    padding: .42rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .92rem; }
.lineup__row:last-child { border-bottom: 0; }
.lineup__no { font-family: var(--ff-head); font-weight: 700; color: var(--gray-400); text-align: center; }
.lineup__name { color: var(--blue-900); }
.lineup__goals { font-family: var(--ff-head); font-weight: 700; color: var(--gray-400); min-width: 2.6rem; text-align: right; }
.lineup__goals.has-goals { color: var(--energy-700); }
.lineup__goals small { font-weight: 600; font-size: .72rem; color: var(--gray-600); }

/* ---------- Torschützen --------------------------------------------- */
.scorers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.scorer { display: grid; grid-template-columns: 2.2rem minmax(9rem, 1fr) minmax(60px, 8rem) auto;
    grid-template-areas: "rank name bar goals" ". meta meta meta"; align-items: center;
    column-gap: .9rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--gray-100); }
.scorer:last-child { border-bottom: 0; }
.scorer:nth-child(-n+3) .scorer__rank { background: var(--blue-700); color: #fff; }
.scorer__rank { grid-area: rank; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px;
    background: var(--gray-100); color: var(--gray-600); font-family: var(--ff-head); font-weight: 700; font-size: .95rem; }
.scorer__name { grid-area: name; font-weight: 600; color: var(--blue-900); }
.scorer__no { color: var(--gray-400); font-size: .82rem; margin-left: .3rem; }
.scorer__bar { grid-area: bar; height: 8px; border-radius: 4px; background: var(--gray-100); overflow: hidden; }
.scorer__bar span { display: block; height: 100%; border-radius: 4px; background: var(--blue-700); }
.scorer__goals { grid-area: goals; white-space: nowrap; font-size: .9rem; color: var(--gray-600); }
.scorer__goals b { font-family: var(--ff-head); font-size: 1.15rem; color: var(--blue-900); margin-right: .15rem; }
.scorer__meta { grid-area: meta; font-size: .8rem; color: var(--gray-600); }
@media (max-width: 640px) {
    .scorer { grid-template-columns: 2.2rem 1fr auto; grid-template-areas: "rank name goals" ". bar bar" ". meta meta"; row-gap: .35rem; }
}

/* ---------- Pagination (Aktuelles) --------------------------------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.6rem; }
.pagination__btn, .pagination__num { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .85rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: var(--white); color: var(--blue-800); font-family: var(--ff-head); font-weight: 600; text-decoration: none; transition: var(--t-fast); }
.pagination__btn:hover, .pagination__num:hover:not(.is-active) { border-color: var(--blue-400); color: var(--blue-700); transform: translateY(-2px); }
.pagination__num.is-active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); cursor: default; }
.pagination__gap { padding: 0 .25rem; color: var(--gray-400); }
.pagination__info { width: 100%; text-align: center; margin-top: .6rem; color: var(--gray-600); font-size: .9rem; }

/* ---------- Dark Mode ----------------------------------------------- */
[data-theme="dark"] {
    --white: #171e2a;
    --blue-900: #e9eef6;
    --blue-800: #c4d2e6;
    --gray-800: #d7dfeb;
    --gray-600: #9fadbe;
    --gray-400: #7b8a9d;
    --gray-300: #3a4659;
    --gray-200: #2b3547;
    --gray-100: #232d3c;
    --gray-50:  #131922;
    --blue-100: #18243d;
    --blue-050: #121a2c;
    color-scheme: dark;
}
[data-theme="dark"] body { background: #0e131b; }
[data-theme="dark"] .page-hero::before {
    background:
        linear-gradient(90deg, rgba(1,10,24,.97) 0%, rgba(3,25,58,.91) 42%, rgba(3,25,58,.56) 72%, rgba(1,10,24,.28) 100%),
        linear-gradient(0deg, rgba(1,10,24,.7) 0%, transparent 62%);
}
[data-theme="dark"] .nav { background: rgba(14,19,27,.85); border-bottom-color: var(--gray-200); }
[data-theme="dark"] .nav.is-scrolled { background: rgba(14,19,27,.95); }
[data-theme="dark"] .theme-toggle { background: var(--white); border-color: var(--gray-200); color: var(--energy-300); }
[data-theme="dark"] .stat,
[data-theme="dark"] .tab,
[data-theme="dark"] .card,
[data-theme="dark"] .official,
[data-theme="dark"] .fkt-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .fixture,
[data-theme="dark"] .info-card,
[data-theme="dark"] .player-card,
[data-theme="dark"] .gamechart,
[data-theme="dark"] .lineup,
[data-theme="dark"] .scorers,
[data-theme="dark"] .roster-list-wrap,
[data-theme="dark"] .view-toggle,
[data-theme="dark"] .embed-card,
[data-theme="dark"] .gsp-filter select,
[data-theme="dark"] .filter-shell,
[data-theme="dark"] .team-switcher,
[data-theme="dark"] .filter-select select,
[data-theme="dark"] .team-switcher__select select,
[data-theme="dark"] .empty-inline,
[data-theme="dark"] .form input,
[data-theme="dark"] .form textarea,
[data-theme="dark"] .form select { background: var(--white); border-color: var(--gray-200); color: var(--gray-800); }
[data-theme="dark"] .nav__dropdown { background: var(--white); border-color: var(--gray-200); }
[data-theme="dark"] .nav__mobile-action { background: var(--white); border-color: var(--gray-200); color: var(--blue-900); }
[data-theme="dark"] .stats { background: var(--gray-200); border-color: var(--gray-200); }
[data-theme="dark"] table.standings tbody tr:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .notice { background: var(--blue-050); }
[data-theme="dark"] .tab.is-active { color: #fff; }
[data-theme="dark"] .fixture__tag { color: var(--blue-300); background: rgba(255,255,255,.07); border-color: var(--gray-200); }
[data-theme="dark"] .fixture__logo, [data-theme="dark"] .matchday__team img, [data-theme="dark"] .club-logo, [data-theme="dark"] .sponsor-tile--logo { background: #fff; }
@media (max-width: 1100px) { [data-theme="dark"] .nav__menu { background: #0e131b; border-bottom-color: var(--gray-200); } }

/* ---------- Druck / Aushang ----------------------------------------- */
@media print {
    .nav, .footer, .consent, .hero__video, .hero__bg, .hero__cta, .hero__skyline, .nav__toggle, .theme-toggle,
    .skip-link, .gsp-filter, .tabs, .team-switcher, .fixtures__toggle, .print-bar, .btn, .ig-panel, .ig-grid, .news-filter, .matchday__cd { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .section, .section--tint, .section--dark, .page-hero, .matchday { background: #fff !important; color: #000 !important; padding-block: 10px !important; }
    .section--dark h2, .section--dark h3, .section--dark p, .section--dark .eyebrow,
    .page-hero h1, .page-hero p, .matchday__team span, .matchday__meta, .matchday__opp { color: #000 !important; }
    .card, .fixture, .info-card, .table-wrap, .player-card, .matchday { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
    a { color: #000 !important; text-decoration: none !important; }
    .fixtures.is-collapsed .fixture--extra { display: grid !important; }
    .page-hero__media, .page-hero__crest, .page-hero__kicker, .page-hero::before, .page-hero::after, .section--dark::before { display: none !important; }
}

/* === Team-Statistik (Bilanz / Form / Verlauf) === */
.teamstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.teamstats__item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; }
.teamstats__item--w { border-color: rgba(31, 157, 77, .4); }
.teamstats__item--l { border-color: rgba(210, 67, 58, .35); }
.teamstats__num { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--blue-900); }
.teamstats__item--w .teamstats__num { color: #1f9d4d; }
.teamstats__item--l .teamstats__num { color: #d2433a; }
.teamstats__lbl { display: block; margin-top: .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--gray-600); }
.statpanel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem; height: 100%; }
.statpanel__title { font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; color: var(--blue-900); }
.form-dots { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; color: #fff; text-decoration: none; font-size: .95rem; }
a.form-dot { transition: transform .12s ease; }
a.form-dot:hover { transform: translateY(-2px); }
.form-dot--w { background: #1f9d4d; }
.form-dot--d { background: #9aa3ad; }
.form-dot--l { background: #d2433a; }
.statpanel__rec { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--gray-600); font-size: .9rem; margin-top: auto; }
.statpanel__rec b { color: var(--blue-900); }
.sparkline { width: 100%; height: 70px; display: block; }
.sparkline__line { fill: none; stroke: var(--energy); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sparkline__area { fill: rgba(1, 76, 174, .08); stroke: none; }

/* === Spiel: Vor/Zurück-Navigation === */
.gamenav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gamenav__btn { display: flex; flex-direction: column; gap: .15rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.gamenav__btn:hover { border-color: var(--energy); transform: translateY(-2px); }
.gamenav__btn--next { text-align: right; }
.gamenav__dir { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .78rem; color: var(--energy-700); }
.gamenav__match { font-weight: 600; color: var(--blue-900); }
.gamenav__meta { font-size: .85rem; color: var(--gray-600); }

/* === Saison-Kalender === */
.calmonth { margin-bottom: 2.5rem; }
.calmonth__title { font-family: var(--ff-head); margin-bottom: .8rem; }
.calmonth__title .muted { font-size: 1rem; font-weight: 400; }
.calmonth__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; min-width: 720px; }
.calgrid__dow { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .78rem; color: var(--gray-600); text-align: center; padding-bottom: .2rem; }
.calday { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; min-height: 92px; padding: .35rem; display: flex; flex-direction: column; gap: 3px; }
.calday--blank { background: transparent; border: none; }
.calday--has { border-color: var(--gray-300); }
.calday--today { border-color: var(--energy); box-shadow: 0 0 0 1px var(--energy); }
.calday__num { font-size: .8rem; font-weight: 700; color: var(--gray-600); }
.calday--today .calday__num { color: var(--energy-700); }
.calgame { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; padding: 3px 5px; border-radius: 5px; background: var(--gray-100); border-left: 3px solid var(--gray-400); overflow: hidden; }
a.calgame:hover { background: var(--gray-200); }
.calgame--w { border-left-color: #1f9d4d; }
.calgame--d { border-left-color: #9aa3ad; }
.calgame--l { border-left-color: #d2433a; }
.calgame__team { font-size: .72rem; font-weight: 700; color: var(--blue-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calgame__meta { font-size: .72rem; color: var(--gray-600); }
.callegend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; color: var(--gray-600); font-size: .88rem; margin: .5rem 0 1rem; }
.callegend__sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: .15rem; }
.callegend__sw--w { background: #1f9d4d; }
.callegend__sw--d { background: #9aa3ad; }
.callegend__sw--l { background: #d2433a; }
.tab--cal { font-weight: 700; }

/* === Kalender-Abonnement === */
.calendar-subscribe {
    display: grid; grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr); gap: 1.5rem 2.2rem;
    margin: 1.4rem 0 3rem; padding: clamp(1.35rem, 3vw, 2.2rem); border: 1px solid var(--blue-100);
    border-radius: 8px; background: var(--blue-050); box-shadow: var(--shadow-sm);
}
.calendar-subscribe__intro { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; align-items: start; }
.calendar-subscribe__icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--blue-700); border-radius: 8px; box-shadow: var(--glow-blue); }
.calendar-subscribe__icon svg { width: 30px; height: 30px; }
.calendar-subscribe__intro h2 { margin-top: .35rem; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.calendar-subscribe__intro p { margin-top: .6rem; max-width: 50ch; color: var(--gray-600); }
.calendar-subscribe__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.calendar-subscribe__team { display: grid; gap: .35rem; font-family: var(--ff-head); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-600); }
.calendar-subscribe__team select { width: 100%; min-height: 48px; padding: .65rem 2.4rem .65rem .8rem; border: 1px solid var(--gray-300); border-radius: 6px; background: var(--white); color: var(--blue-900); font: 600 .95rem var(--ff-sans); }
.calendar-scope { border: 0; padding: 0; min-width: 0; }
.calendar-scope legend { margin-bottom: .35rem; font-family: var(--ff-head); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-600); }
.calendar-scope { display: flex; flex-wrap: nowrap; }
.calendar-scope label { position: relative; }
.calendar-scope input { position: absolute; opacity: 0; pointer-events: none; }
.calendar-scope span { display: grid; place-items: center; min-height: 48px; padding: .55rem .8rem; border: 1px solid var(--gray-300); border-right-width: 0; background: var(--white); color: var(--gray-600); font-size: .82rem; font-weight: 700; cursor: pointer; }
.calendar-scope label:first-of-type span { border-radius: 6px 0 0 6px; }
.calendar-scope label:last-of-type span { border-right-width: 1px; border-radius: 0 6px 6px 0; }
.calendar-scope input:checked + span { position: relative; z-index: 1; border-color: var(--blue-700); background: var(--blue-700); color: #fff; }
.calendar-scope input:focus-visible + span { outline: 3px solid rgba(30,99,200,.24); outline-offset: 2px; }
.calendar-subscribe__result { grid-column: 1 / -1; display: flex; align-items: center; gap: .65rem; padding-top: 1.15rem; border-top: 1px solid var(--blue-100); }
.calendar-subscribe__url { display: grid; grid-template-columns: minmax(0, 1fr) 42px; flex: 1 1 260px; min-width: 180px; }
.calendar-subscribe__url input { width: 100%; min-width: 0; height: 42px; padding: 0 .7rem; border: 1px solid var(--gray-300); border-radius: 6px 0 0 6px; background: var(--white); color: var(--gray-600); font-size: .78rem; }
.calendar-subscribe__url button { display: grid; place-items: center; border: 1px solid var(--gray-300); border-left: 0; border-radius: 0 6px 6px 0; background: var(--white); color: var(--blue-700); cursor: pointer; }
.calendar-subscribe__url button:hover { background: var(--blue-100); }
.calendar-subscribe__url svg { width: 19px; height: 19px; }
.calendar-subscribe__status { flex: 0 0 auto; font-size: .82rem; font-weight: 700; color: var(--ok); }

/* === Digitaler Heimspieltag === */
.matchday-stage { position: relative; overflow: hidden; padding-block: clamp(2.3rem, 5vw, 4.5rem); color: #fff; background: #04224f; }
.matchday-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .11; background-image: linear-gradient(90deg, transparent 49.8%, #fff 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, #fff 50%, transparent 50.2%); background-size: 180px 180px; }
.matchday-stage__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1.3rem, 4vw, 3.5rem); }
.matchday-date { display: grid; width: 112px; flex: none; text-align: center; border-right: 3px solid var(--energy); padding-right: 1.5rem; }
.matchday-date__day { font-family: var(--ff-head); font-size: 4.8rem; font-weight: 700; line-height: .8; color: #fff; }
.matchday-date__month { margin-top: .7rem; font-family: var(--ff-head); font-size: 1rem; font-weight: 700; letter-spacing: 2px; color: var(--energy-300); }
.matchday-stage__copy .eyebrow { color: var(--energy-300); }
.matchday-stage__copy h2 { margin-top: .55rem; color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.matchday-stage__copy p { margin-top: .55rem; color: rgba(255,255,255,.75); }
.matchday-stage__facts { display: grid; grid-template-columns: repeat(3, minmax(82px, 1fr)); align-self: stretch; }
.matchday-stage__facts > div { display: grid; place-content: center; min-width: 105px; padding: .5rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.16); }
.matchday-stage__facts strong { font-family: var(--ff-head); font-size: 1.75rem; line-height: 1; color: #fff; }
.matchday-stage__facts span { margin-top: .35rem; font-size: .69rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.6); }
.matchday-countdown { position: relative; margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.18); text-align: center; }
.matchday-countdown__label { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.68); }
.matchday-countdown .matchday__cd { margin-top: .75rem; }
.matchday-stage__actions { position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.share-status { width: 100%; min-height: 1.2em; text-align: center; font-size: .82rem; color: var(--energy-300); }
.matchday-nav { display: flex; gap: .45rem; }
.matchday-nav a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 42px; padding: .45rem .8rem; border: 1px solid var(--gray-300); border-radius: 6px; color: var(--blue-800); font-family: var(--ff-head); font-weight: 700; }
.matchday-nav a:hover { border-color: var(--blue-700); color: var(--blue-700); }
.matchday-program { position: relative; display: grid; gap: .8rem; }
.matchday-program::before { content: ""; position: absolute; left: 58px; top: 0; bottom: 0; width: 2px; background: var(--blue-100); }
.matchday-game { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.matchday-game:hover { border-color: var(--blue-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.matchday-game.is-live { border-color: var(--danger); }
.matchday-game__rail { position: relative; z-index: 1; display: grid; align-content: center; justify-items: center; padding: 1.2rem .6rem; background: var(--blue-050); border-right: 1px solid var(--gray-200); }
.matchday-game__rail::before { content: ""; position: absolute; left: 53px; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border: 3px solid var(--white); border-radius: 50%; background: var(--energy); box-shadow: 0 0 0 2px var(--blue-300); }
.matchday-game__rail time { font-family: var(--ff-head); font-size: 1.85rem; font-weight: 700; line-height: 1; color: var(--blue-900); }
.matchday-game__rail span { margin-top: .3rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-600); }
.matchday-game__body { min-width: 0; padding: 1rem 1.2rem; }
.matchday-game__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.matchday-game__teamlabel { font-family: var(--ff-head); font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--energy-700); }
.matchday-game__state { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--gray-600); }
.matchday-game__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.matchday-game__club { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.matchday-game__club--away { justify-content: flex-end; text-align: right; }
.matchday-game__club img { width: 52px; height: 52px; flex: none; object-fit: contain; padding: 3px; border: 1px solid var(--gray-200); border-radius: 6px; background: #fff; }
.matchday-game__club strong { min-width: 0; overflow-wrap: break-word; line-height: 1.25; color: var(--blue-900); }
.matchday-game__score { display: inline-flex; align-items: center; gap: .22rem; min-width: 76px; justify-content: center; font-family: var(--ff-head); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--blue-900); }
.matchday-game__score.is-live { color: var(--danger); }
.matchday-game__score--vs { font-size: 1rem; color: var(--gray-400); }
.matchday-game__links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--gray-100); }
.matchday-game__links a { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; }
.matchday-service { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--gray-200); }
.matchday-service__item { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.4rem; border-right: 1px solid var(--gray-200); }
.matchday-service__item:last-child { border-right: 0; }
.matchday-service__item .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-700); color: #fff; }
.matchday-service__item .ic svg { width: 24px; height: 24px; }
.matchday-service__item h3 { font-size: 1.25rem; }
.matchday-service__item p { margin-top: .35rem; font-size: .9rem; color: var(--gray-600); }
.matchday-social__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.matchday-social h2 { margin-top: .5rem; }
.matchday-social p { max-width: 58ch; margin-top: .7rem; }

@media (max-width: 900px) {
    .calendar-subscribe { grid-template-columns: 1fr; }
    .calendar-subscribe__result { grid-column: auto; flex-wrap: wrap; }
    .calendar-subscribe__url { flex-basis: 100%; }
    .matchday-stage__inner { grid-template-columns: auto 1fr; }
    .matchday-stage__facts { grid-column: 1 / -1; }
    .matchday-service { grid-template-columns: 1fr; }
    .matchday-service__item { border-right: 0; border-bottom: 1px solid var(--gray-200); }
    .matchday-service__item:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
    .calendar-subscribe { padding: 1.1rem; }
    .calendar-subscribe__intro { grid-template-columns: 44px 1fr; }
    .calendar-subscribe__icon { width: 44px; height: 44px; }
    .calendar-subscribe__icon svg { width: 23px; height: 23px; }
    .calendar-subscribe__controls { grid-template-columns: 1fr; }
    .calendar-scope { width: 100%; }
    .calendar-scope label { flex: 1 1 0; }
    .calendar-scope span { padding-inline: .45rem; }
    .calendar-subscribe__result > .btn { width: 100%; justify-content: center; }
    .matchday-stage__inner { grid-template-columns: 1fr; text-align: center; }
    .matchday-date { width: auto; justify-content: center; border-right: 0; border-bottom: 3px solid var(--energy); padding: 0 0 1rem; }
    .matchday-stage__copy .eyebrow { justify-content: center; }
    .matchday-stage__facts { grid-column: auto; }
    .matchday-stage__facts > div { min-width: 0; padding-inline: .35rem; }
    .matchday-stage__facts > div:first-child { border-left: 0; }
    .matchday-stage__actions .btn { width: 100%; justify-content: center; }
    .matchday-program::before { left: 47px; }
    .matchday-game { grid-template-columns: 94px minmax(0, 1fr); }
    .matchday-game__rail::before { left: 42px; }
    .matchday-game__rail time { font-size: 1.55rem; }
    .matchday-game__body { padding: .85rem; }
    .matchday-game__teams { gap: .5rem; }
    .matchday-game__club { flex-direction: column; align-items: flex-start; gap: .35rem; font-size: .84rem; }
    .matchday-game__club--away { align-items: flex-end; }
    .matchday-game__club img { width: 40px; height: 40px; }
    .matchday-game__score { min-width: 46px; font-size: 1.65rem; }
    .matchday-game__links { justify-content: flex-start; }
    .matchday-social__inner { align-items: stretch; flex-direction: column; }
    .matchday-social .btn { width: 100%; justify-content: center; }
}

/* === Suche === */
.searchbar { display: flex; align-items: center; gap: .6rem; background: var(--white); border: 2px solid var(--gray-300); border-radius: var(--radius); padding: .5rem .5rem .5rem .9rem; }
.searchbar:focus-within { border-color: var(--energy); }
.searchbar__icon { width: 22px; height: 22px; color: var(--gray-600); flex: none; }
.searchbar input { flex: 1; border: none; background: none; font: inherit; color: var(--blue-900); padding: .35rem 0; outline: none; min-width: 0; }
.search-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.search-results { display: flex; flex-direction: column; gap: .6rem; }
.search-result { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "type title" "type sub"; column-gap: .9rem; align-items: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .7rem 1rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.search-result:hover { border-color: var(--energy); transform: translateX(3px); }
.search-result__type { grid-area: type; align-self: center; justify-self: start; font-family: var(--ff-head); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--energy-700); background: rgba(255, 90, 31, .1); border-radius: 999px; padding: .2rem .6rem; }
.search-result__title { grid-area: title; font-weight: 600; color: var(--blue-900); }
.search-result__sub { grid-area: sub; font-size: .85rem; color: var(--gray-600); }

/* === Trainingszeiten-Wochenraster === */
.trainfilter { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.6rem; }
.trainfilter__group { display: flex; flex-direction: column; gap: .3rem; }
.trainfilter__group label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); }
.trainfilter select { padding: .55rem .8rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); color: var(--blue-900); font: inherit; min-width: 210px; }
.trainweek { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }
.trainweek[hidden], .tgrid-wrap[hidden] { display: none; }
/* Filter setzt [hidden] – ohne diese Regeln überschreiben die display-Werte
   von .trainday/.tslot/.tblock das Ausblenden, und der Filter bliebe wirkungslos. */
.trainday[hidden], .tslot[hidden], .tblock[hidden] { display: none; }
.trainday { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.trainday__name { font-family: var(--ff-head); font-size: 1.15rem; background: var(--blue-700); color: #fff; margin: 0; padding: .65rem 1.1rem; }
.trainday__slots { display: flex; flex-direction: column; }
.tslot { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "time team" "time venue"; column-gap: .9rem; padding: .7rem 1.1rem; border-top: 1px solid var(--gray-100); }
.tslot:first-child { border-top: none; }
.tslot__time { grid-area: time; align-self: center; font-family: var(--ff-head); font-weight: 700; color: var(--energy-700); white-space: nowrap; }
.tslot__team { grid-area: team; font-weight: 600; color: var(--blue-900); }
.tslot__venue { grid-area: venue; font-size: .85rem; color: var(--gray-600); }

/* ---------- Wochenplan (Zeitraster) --------------------------------- */
/* Kategoriefarben: geprüft auf Farbfehlsichtigkeit & Kontrast, eigene Stufen für Dark Mode. */
:root { --cat-aktive: #014cae; --cat-jugend: #0d9488; --cat-minis: #ea580c; }
.trainfilter__view { margin-left: auto; align-self: flex-end; }
.tgrid-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-bottom: .9rem; font-size: .88rem; color: var(--gray-800); }
.tgrid-legend__item { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.tgrid-legend__dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.tgrid-legend__dot--aktive { background: var(--cat-aktive); }
.tgrid-legend__dot--jugend { background: var(--cat-jugend); }
.tgrid-legend__dot--minis  { background: var(--cat-minis); }
.tgrid-legend__hint { margin-left: auto; color: var(--gray-600); font-size: .82rem; }

.tgrid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tgrid {
    display: grid; grid-template-columns: 3.6rem repeat(5, minmax(120px, 1fr)); gap: 0 .4rem;
    min-width: 700px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: .5rem .8rem 1rem;
}
.tgrid__corner { grid-row: 1; }
.tgrid__dayname { grid-row: 1; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--blue-900);
    text-align: center; padding: .4rem 0 .6rem; border-bottom: 2px solid var(--gray-200); }
.tgrid__axis { grid-row: 2; position: relative; height: calc(var(--hours) * 58px); }
.tgrid__hour { position: absolute; right: .5rem; transform: translateY(-50%); font-size: .76rem; font-variant-numeric: tabular-nums;
    color: var(--gray-600); white-space: nowrap; }
.tgrid__col {
    grid-row: 2; position: relative; height: calc(var(--hours) * 58px);
    background: repeating-linear-gradient(to bottom, var(--gray-200) 0 1px, transparent 1px calc(100% / var(--hours)));
}
.tblock {
    position: absolute; overflow: hidden; border-radius: 6px; padding: .3rem .45rem; color: #fff;
    display: flex; flex-direction: column; gap: .1rem; line-height: 1.15;
    box-shadow: inset 0 0 0 2px var(--white);   /* 2px Trennung zwischen benachbarten Blöcken */
    transition: filter var(--t-fast);
}
.tblock:hover { filter: brightness(1.08); }
/* Schriftfarbe je Fläche so gewählt, dass jeder Block >= 5:1 Kontrast hat. */
.tblock--aktive { background: var(--cat-aktive); color: #fff; }
.tblock--jugend { background: var(--cat-jugend); color: #0b1017; }
.tblock--minis  { background: var(--cat-minis);  color: #0b1017; }
.tblock__name { font-family: var(--ff-head); font-weight: 600; font-size: .84rem; }
.tblock__time { font-size: .72rem; opacity: .9; font-variant-numeric: tabular-nums; }
.tblock__hall { font-size: .68rem; opacity: .9; font-style: italic; }

/* Dark Mode: eigene, separat geprüfte Stufen – kein automatisches Umkehren. */
[data-theme="dark"] { --cat-aktive: #5e95e8; --cat-jugend: #0d9488; --cat-minis: #ea580c; }
[data-theme="dark"] .tgrid { background: var(--white); border-color: var(--gray-200); }
[data-theme="dark"] .tblock--aktive { color: #0b1017; }

@media (max-width: 860px) {
    /* Raster braucht Breite – auf kleinen Displays bleibt die Listenansicht */
    [data-trainview-panel="grid"] { display: none !important; }
    [data-trainview-panel="list"] { display: grid !important; }
    .trainfilter__view { display: none; }
}

@media (max-width: 640px) { .gamenav { grid-template-columns: 1fr; } }

/* ======================================================================
   Design-Refresh: Fixtures-Akzente, Leerzustände, Hero-Teaser, Tabellen
   mobil, Button-Shine, Sektions-Schrägen, Bild-Overlays
   ====================================================================== */

/* (1) Ergebnis-/Spielkarten: Sieg/Niederlage-Akzent */
.fixture--win::before  { width: 4px; background: #1f9d4d; }
.fixture--loss::before { width: 4px; background: #d2433a; }
.fixture--draw::before { width: 4px; background: #9aa3ad; }
.fixture--win  .fixture__result { color: #1f9d4d; }
.fixture--loss .fixture__result { color: #d2433a; }
.section--dark .fixture--win  .fixture__result { color: #3ad07f; }
.section--dark .fixture--loss .fixture__result { color: #ff6b6b; }
.fixture__teams .t { gap: .6rem; }

/* (5) Leerzustände */
.empty-state { text-align: center; padding: 2.6rem 1.4rem; border: 1.5px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-50); }
.empty-state__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background-image: var(--energy-grad); color: #fff; box-shadow: var(--glow-energy); margin-bottom: .9rem; }
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state__title { font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; color: var(--blue-900); margin-bottom: .2rem; }
.section--dark .empty-state { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
.section--dark .empty-state__title { color: #fff; }

/* (6) Hero: „Nächstes Spiel"-Teaser */
.hero__next { display: inline-flex; align-items: center; gap: .7rem; margin-top: .75rem; max-width: 100%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(6px);
    color: #fff; padding: .42rem .58rem .42rem .75rem; border-radius: 999px; text-decoration: none; transition: var(--t); }
.hero__next:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.hero__next-tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: .72rem; color: var(--energy-300); white-space: nowrap; }
.hero__next-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 0 0 rgba(255,90,31,.6); animation: pulseDot 1.8s ease-out infinite; }
.hero__next-text { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__next-text strong { font-weight: 700; }
.hero__next svg { width: 18px; height: 18px; flex: none; opacity: .8; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
/* Auf schmalen Displays zweizeilig statt abgeschnitten – der Gegner bleibt lesbar. */
@media (max-width: 560px) {
    .hero__next { flex-wrap: wrap; border-radius: var(--radius); padding: .6rem .8rem; row-gap: .2rem; }
    .hero__next-tag { flex: 1 1 100%; }
    .hero__next-text { font-size: .86rem; white-space: normal; overflow: visible; flex: 1 1 auto; line-height: 1.3; }
    .hero__next svg { align-self: center; }
}

/* (8) Button-Shine beim Hover */
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg);
    transition: left .55s ease; pointer-events: none; }
.btn:hover::after { left: 160%; }
.btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(255,90,31,.18), transparent); }

/* (7) Dunkle Sektionen bleiben ruhiger und schneiden keine Inhalte an. */
.section--dark { clip-path: none; }
@media (max-width: 600px) { .section--dark { clip-path: none; } }

/* (4) Einheitliche Bildsprache: dezente Marken-Overlays + Platzhalter-Motiv */
.card__media::after, .team-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(2,17,40,.72), rgba(2,17,40,.18) 34%, transparent 56%), radial-gradient(120% 80% at 85% -10%, rgba(1,76,174,.18), transparent 55%); }
.team-photo { position: relative; }
.card__badge { z-index: 3; }
.ph::after { content: ""; position: absolute; width: 150px; height: 150px; right: -34px; bottom: -42px;
    border: 4px solid rgba(255,255,255,.14); border-radius: 50%; }
.ph__big { z-index: 1; }

/* (10) Scroll-Lock bei offenem Mobile-Overlay */
body.nav-open { overflow: hidden; }

/* (2) Tabellen: Zebra + deutlichere Eigen-Hervorhebung + Mobil-Karten */
table.standings tbody tr:nth-child(even) { background: rgba(2,17,40,.022); }
table.standings tbody tr.is-own:nth-child(even) { background: rgba(255,90,31,.08); }
@media (max-width: 640px) {
    .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
    table.standings { min-width: 0; display: block; }
    table.standings thead { display: none; }
    table.standings tbody, table.standings tr, table.standings td { display: block; }
    table.standings tr { position: relative; background: var(--white); border: 1px solid var(--gray-200);
        border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: .7rem; padding: .7rem .9rem .8rem 3rem; }
    table.standings tr.is-own { box-shadow: inset 4px 0 0 0 var(--energy), var(--shadow-sm); }
    table.standings td { border: 0; text-align: left; padding: 0; }
    table.standings td.rank { position: absolute; left: 0; top: 0; width: 2.4rem; height: 100%;
        display: grid; place-items: center; background: var(--blue-050); color: var(--blue-700);
        border-radius: var(--radius) 0 0 var(--radius); font-size: 1.15rem; }
    table.standings tr.is-own td.rank { background: rgba(255,90,31,.14); color: var(--energy-700); }
    table.standings td:nth-child(2) { font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
    table.standings td:nth-child(n+3) { display: inline-flex; align-items: baseline; gap: .3rem; margin: .12rem .9rem .12rem 0; font-size: .9rem; color: var(--gray-600); }
    table.standings td:nth-child(n+3)::before { content: attr(data-label); font-weight: 700; color: var(--gray-400); text-transform: uppercase; font-size: .68rem; letter-spacing: .4px; }
    table.standings td[data-label="Pkt"] { color: var(--blue-900); font-weight: 700; }
}

/* ======================================================================
   nuLiga-Erweiterungen: Terminstatus, Livecenter und Spielberichte
   ====================================================================== */
.fixture__note { display: block; margin-top: .2rem; color: var(--energy-700); font-size: .72rem; line-height: 1.25; }
.section--dark .fixture__note { color: var(--energy-300); }

.lineup__row { grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; }
.lineup__cards { display: inline-flex; align-items: center; justify-content: flex-end; gap: .35rem; min-width: 1rem; }
.lineup__cards small { font-family: var(--ff-head); font-size: .72rem; font-weight: 700; color: var(--gray-600); white-space: nowrap; }
.card-mark { display: inline-block; width: 8px; height: 12px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(2,17,40,.12); }
.card-mark--yellow { background: #f7ca34; }
.card-mark--red { background: #d73535; }

.eventlog { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.eventlog summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; cursor: pointer;
    font-family: var(--ff-head); font-weight: 700; color: var(--blue-900); background: var(--gray-50); }
.eventlog summary span { color: var(--gray-600); font-family: var(--ff-sans); font-size: .82rem; font-weight: 600; }
.eventlog__list { list-style: none; margin: 0; padding: 0; max-height: 32rem; overflow: auto; }
.eventlog__item { display: grid; grid-template-columns: 3.4rem 3.2rem minmax(0, 1fr); gap: .7rem; align-items: baseline;
    padding: .52rem 1rem; border-top: 1px solid var(--gray-100); font-size: .88rem; }
.eventlog__item time { color: var(--gray-600); font-variant-numeric: tabular-nums; }
.eventlog__item strong { color: var(--blue-900); font-family: var(--ff-head); }
.eventlog__item--goal, .eventlog__item--sevenmetergoal { box-shadow: inset 3px 0 0 var(--blue-500); }
.eventlog__item--suspension, .eventlog__item--disqualification { box-shadow: inset 3px 0 0 var(--energy); }

.nu-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); border: 1px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden; background: var(--white); }
.nu-metric { min-height: 7.5rem; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .25rem; text-align: center;
    border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.nu-metric strong { font-family: var(--ff-head); color: var(--blue-700); font-size: 1.85rem; }
.nu-metric span { color: var(--gray-600); font-size: .82rem; }

.venue-official { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; color: var(--gray-600); font-size: .9rem; }
.venue-official span { display: inline-flex; gap: .35rem; }

.livecenter__status { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue-500); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.livecenter__status h2 { margin: .15rem 0 .25rem; font-size: 2rem; }
.livecenter__status p { margin: 0; color: var(--gray-600); }
.livecenter__status.is-live { border-left-color: var(--energy); }
.livecenter__pulse { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--blue-500); }
.livecenter__status.is-live .livecenter__pulse { background: var(--energy); box-shadow: 0 0 0 0 rgba(255,90,31,.6); animation: pulseDot 1.6s ease-out infinite; }
.livecenter__updated { margin-left: auto; align-self: flex-start; color: var(--gray-600); font-size: .8rem; white-space: nowrap; }
.livecenter__games { display: grid; gap: 1rem; }
.livegame { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.livegame.is-live { border-color: rgba(255,90,31,.48); box-shadow: 0 12px 32px rgba(255,90,31,.12); }
.livegame.is-final { border-left: 4px solid var(--ok); }
.final-badge { display: inline-block; padding: .12rem .45rem; border-radius: 4px; background: var(--ok); color: var(--white); font-family: var(--ff-head); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.livegame__meta, .livegame__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 1rem;
    background: var(--gray-50); color: var(--gray-600); font-size: .8rem; }
.livegame__foot a { color: var(--blue-700); font-weight: 700; }
[data-theme="dark"] .livegame__foot a { color: var(--blue-300); }
.livegame__meta span:last-child { text-align: right; }
.livegame__scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1.35rem 1rem; }
.livegame__team { display: flex; align-items: center; gap: .8rem; color: var(--blue-900); }
.livegame__team:last-child { flex-direction: row-reverse; text-align: right; }
.livegame__team img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.livegame__score { font-family: var(--ff-head); font-size: 3.6rem; font-weight: 800; color: var(--blue-950); line-height: 1; white-space: nowrap; }
.livegame__score span { color: var(--gray-300); margin: 0 .12em; }
.livegame__score--vs { font-size: 1.25rem; color: var(--energy-700); border: 2px solid rgba(255,90,31,.32); border-radius: 999px; padding: .2rem .6rem; }
[data-theme="dark"] .livegame__score { color: var(--blue-900); }
[data-theme="dark"] .livegame__score--vs { color: var(--energy-300); }
[data-theme="dark"] .livegame__team img { padding: .15rem; border-radius: 4px; background: #fff; }

@media (max-width: 640px) {
    .lineup__row { grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: .45rem; padding-inline: .7rem; }
    .lineup__cards { grid-column: 2 / -1; justify-content: flex-start; min-height: 0; }
    .eventlog__item { grid-template-columns: 3rem 2.7rem minmax(0, 1fr); gap: .45rem; padding-inline: .7rem; }
    .livecenter__status { align-items: flex-start; flex-wrap: wrap; }
    .livecenter__status h2 { font-size: 1.55rem; }
    .livecenter__status > div { flex: 1; min-width: 0; }
    .livecenter__updated { flex: 1 1 100%; margin-left: 2rem; }
    .livegame__scoreboard { gap: .45rem; padding: 1rem .7rem; }
    .livegame__score { font-size: 2rem; }
    .livegame__team { flex-direction: column; gap: .4rem; text-align: center; font-size: .83rem; line-height: 1.2; }
    .livegame__team:last-child { flex-direction: column; text-align: center; }
    .livegame__team img { width: 48px; height: 48px; }
    .livegame__foot { align-items: flex-start; flex-direction: column; }
}
