/* =========================================================
   FC Wald/Süssenbach – Stylesheet
   Farben: Blau/Weiß (aus dem Vereinswappen)
   ========================================================= */

:root {
    --blue:        #1a2fd8;   /* Vereinsblau (Wappen) */
    --blue-bright: #2e4bff;
    --blue-light:  #5b74ff;
    --navy:        #0a1140;   /* dunkles Marineblau für Flächen */
    --navy-2:      #101a5e;
    --white:       #ffffff;
    --off-white:   #f4f6fc;
    --grey:        #667085;
    --dark:        #12141d;
    --accent:      #ffd23f;   /* dezenter Gelb-Akzent für Highlights */

    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --shadow-md: 0 8px 30px rgba(10, 17, 64, .12);
    --shadow-lg: 0 20px 60px rgba(10, 17, 64, .22);
    --radius: 14px;

    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Horizontalen Überlauf kappen (z. B. durch .reveal-right-Verschiebungen),
   sonst entsteht auf dem Smartphone ein weißer Rand rechts */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
    margin: 0 0 .5em;
    color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem);     font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; }

.section-head {
    max-width: 720px;
    margin-bottom: 3rem;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .95rem;
    color: var(--blue);
    margin-bottom: .8rem;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--blue);
    transform: skewX(-20deg);
}
.section-head.center .eyebrow::after {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--blue);
    transform: skewX(-20deg);
}

.lead { font-size: 1.15rem; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1.05rem;
    padding: .85rem 2.2rem;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transform: skewX(-8deg);
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn > span { display: inline-block; transform: skewX(8deg); }
.btn:hover { transform: skewX(-8deg) translateY(-3px); box-shadow: var(--shadow-md); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-bright); color: var(--white); }

.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-blue { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(10,17,64,.85), rgba(10,17,64,.65));
    backdrop-filter: blur(12px);
    transition: background .35s, height .35s, box-shadow .35s;
}
.site-header.scrolled {
    height: 66px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 4px 24px rgba(10,17,64,.14);
}

.header-inner {
    width: min(1280px, 94%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand-logo {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
    transition: height .35s;
}
.site-header.scrolled .brand-logo { height: 42px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--white);
    transition: color .35s;
}
.brand-text small {
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    transition: color .35s;
}
.site-header.scrolled .brand-text strong { color: var(--navy); }
.site-header.scrolled .brand-text small  { color: var(--grey); }

.main-nav ul {
    display: flex;
    gap: .3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    position: relative;
    padding: .55rem .95rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1.06rem;
    color: rgba(255,255,255,.92);
    transition: color .25s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: .95rem;
    right: .95rem;
    bottom: .25rem;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0) skewX(-20deg);
    transform-origin: left;
    transition: transform .3s;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1) skewX(-20deg); }
.main-nav a:hover { color: var(--white); }

.site-header.scrolled .main-nav a { color: var(--navy); }
.site-header.scrolled .main-nav a::after { background: var(--blue); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}
.nav-toggle span {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .3s, opacity .3s, background .35s;
}
.site-header.scrolled .nav-toggle span { background: var(--navy); }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   Hero-Slider (Startseite)
   ========================================================= */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    overflow: hidden;
    color: var(--white);
}

.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-slide.active .hero-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
    from { transform: scale(1) translateX(0); }
    to   { transform: scale(1.1) translateX(1.5%); }
}

/* Slide-Hintergründe: Vereinsfarben-Verläufe + Muster */
.hero-bg-1 {
    background:
        radial-gradient(1100px 600px at 78% 30%, rgba(46,75,255,.55), transparent 60%),
        linear-gradient(118deg, #060b2e 0%, #0a1140 45%, #1a2fd8 130%);
}
.hero-bg-2 {
    background:
        radial-gradient(900px 700px at 20% 70%, rgba(91,116,255,.4), transparent 60%),
        linear-gradient(245deg, #060b2e 0%, #101a5e 50%, #2e4bff 140%);
}
.hero-bg-3 {
    background:
        radial-gradient(1000px 500px at 50% 100%, rgba(46,75,255,.5), transparent 65%),
        linear-gradient(180deg, #0a1140 0%, #060b2e 100%);
}

/* Netz-/Linienmuster über allen Slides */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(900px 600px at 70% 40%, #000, transparent 75%);
}

/* riesiges Wappen-Wasserzeichen */
.hero-crest {
    position: absolute;
    right: -6%;
    bottom: -12%;
    width: clamp(340px, 44vw, 660px);
    opacity: .16;
    z-index: 1;
    filter: grayscale(35%) brightness(1.6);
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(1180px, 92%);
    margin-inline: auto;
    padding-top: var(--header-h);
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: clamp(.8rem, 1.5vw, 1rem);
    color: var(--accent);
    padding: .35rem .9rem;
    border: 1px solid rgba(255,210,63,.45);
    transform: skewX(-8deg);
    margin-bottom: 1.4rem;
    opacity: 0;
}
.hero-title {
    color: var(--white);
    text-shadow: 0 6px 40px rgba(0,0,0,.45);
    margin-bottom: 1rem;
    opacity: 0;
}
.hero-title .stroke {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,.75);
}
.hero-text {
    max-width: 560px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 2.2rem;
    opacity: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; }

.hero-slide.active .hero-kicker  { animation: riseIn .8s .25s ease-out forwards; }
.hero-slide.active .hero-title   { animation: riseIn .8s .45s ease-out forwards; }
.hero-slide.active .hero-text    { animation: riseIn .8s .65s ease-out forwards; }
.hero-slide.active .hero-actions { animation: riseIn .8s .85s ease-out forwards; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Slider-Steuerung */
.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.hero-dots { display: flex; gap: .7rem; }
.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 3px;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transform: skewX(-20deg);
    transition: background .3s;
    position: relative;
    overflow: hidden;
}
.hero-dot.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    animation: dotFill var(--slide-ms, 7000ms) linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.hero-arrow:hover { background: var(--blue-bright); transform: scale(1.08); }

/* Scroll-Hinweis */
.scroll-hint {
    position: absolute;
    z-index: 5;
    right: 3rem;
    bottom: 2.2rem;
    color: rgba(255,255,255,.6);
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: .8rem;
}
.scroll-hint::after {
    content: "";
    width: 1px;
    height: 54px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   Unterseiten-Hero (kleiner Kopfbereich)
   ========================================================= */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 5rem) 0 4.5rem;
    color: var(--white);
    background:
        radial-gradient(900px 420px at 80% 20%, rgba(46,75,255,.5), transparent 60%),
        linear-gradient(118deg, #060b2e 0%, #0a1140 55%, #1a2fd8 150%);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
    padding-bottom: calc(4.5rem + 3.5vw);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .hero-crest { width: clamp(240px, 30vw, 420px); bottom: -30%; }

.breadcrumb {
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }

/* =========================================================
   Sektionen
   ========================================================= */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--off-white); }

.section-dark {
    background:
        radial-gradient(800px 500px at 15% 20%, rgba(46,75,255,.35), transparent 60%),
        linear-gradient(160deg, #0a1140, #060b2e);
    color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead { color: rgba(255,255,255,.75); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--accent); }

/* Schräger Übergang */
.slant-top    { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); margin-top: -3.6vw; padding-top: calc(5.5rem + 3.5vw); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.3,1);
}
.reveal.reveal-left  { transform: translateX(-60px); }
.reveal.reveal-right { transform: translateX(60px); }
.reveal.visible { opacity: 1; transform: none; }

/* gestaffelte Verzögerung für Kartenraster */
.stagger > .reveal:nth-child(2) { transition-delay: .15s; }
.stagger > .reveal:nth-child(3) { transition-delay: .3s; }
.stagger > .reveal:nth-child(4) { transition-delay: .45s; }
.stagger > .reveal:nth-child(5) { transition-delay: .6s; }
.stagger > .reveal:nth-child(6) { transition-delay: .75s; }

/* =========================================================
   Karten & Raster
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform .35s, box-shadow .35s;
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--blue), var(--blue-light));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .35s;
}
.card:hover::before { transform: scaleY(1); }

/* Team-Karten */
.team-card { padding-top: 2.4rem; }
.team-card-foto {
    display: block;
    width: calc(100% + 4rem);
    margin: -2.4rem -2rem 1.4rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.team-badge {
    display: inline-grid;
    place-items: center;
    min-width: 64px;
    height: 64px;
    padding-inline: .8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.2rem;
    transition: transform .35s;
}
.card:hover .team-badge { transform: rotate(4deg) scale(1.08); }
.team-card p { color: var(--grey); }

/* ---------- Team-Tabelle (BFV-Import) ---------- */
.team-tabelle { margin-top: 1.2rem; text-align: left; }
.team-tabelle summary {
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .92rem;
    color: var(--blue);
    list-style: none;
}
.team-tabelle summary::-webkit-details-marker { display: none; }
.team-tabelle summary::after { content: '▾'; margin-left: .4em; display: inline-block; transition: transform .25s; }
.team-tabelle[open] summary::after { transform: rotate(180deg); }
.mini-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: .8rem;
    font-size: .82rem;
}
.mini-tabelle th, .mini-tabelle td { padding: .35rem .4rem; text-align: left; }
.mini-tabelle th { color: var(--grey); font-weight: 600; border-bottom: 1px solid var(--off-white); }
.mini-tabelle td:first-child, .mini-tabelle th:first-child { width: 1.6rem; }
.mini-tabelle tr.eigenes-team { background: rgba(46,75,255,.08); font-weight: 700; color: var(--navy); }
.mini-tabelle tr.eigenes-team td { border-radius: 4px; }
.tabelle-bfv-link {
    display: inline-block;
    margin-top: .8rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--blue);
}
.tabelle-bfv-link:hover { color: var(--blue-bright); }

.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue);
    background: rgba(46,75,255,.1);
    padding: .25rem .7rem;
    border-radius: 3px;
    margin-bottom: .6rem;
}

/* News-Karten */
.news-card time {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .4rem;
}
.news-card p { color: var(--grey); margin-bottom: 0; }

/* Personen-Karten (Vorstand) */
.person-card { display: flex; align-items: center; gap: 1.3rem; }
.person-avatar {
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.person-info h3 { margin-bottom: .15rem; font-size: 1.25rem; }
.person-info .role {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue);
    display: block;
    margin-bottom: .35rem;
}
.person-info a { display: block; font-size: .92rem; color: var(--grey); }
.person-info a:hover { color: var(--blue); }

.person-card-clickable { cursor: pointer; transition: transform .25s, box-shadow .25s; }
.person-card-clickable:hover, .person-card-clickable:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

/* ---------- Betreuer-Dialog (native <dialog>) ---------- */
.betreuer-dialog { text-align: center; }
.betreuer-dialog-bild {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: .3rem auto 1.3rem;
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
    display: grid;
    place-items: center;
}
.betreuer-dialog-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.betreuer-dialog-initialen { color: var(--white); font-family: var(--font-head); font-size: 3rem; font-weight: 800; }
.betreuer-dialog .role { display: block; }
.betreuer-dialog h3 { margin-bottom: .6rem; }
.betreuer-dialog a { display: inline-block; font-size: .95rem; color: var(--grey); }
.betreuer-dialog a:hover { color: var(--blue); }

/* Gruppenfoto (z. B. Betreuerteam) */
.team-photo {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
}

/* =========================================================
   Zahlen / Counter
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-value {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.stat-value .suffix { color: var(--accent); }
.stat-label {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    margin-top: .5rem;
}

/* =========================================================
   Termin-Liste
   ========================================================= */
.match-list { display: grid; gap: 1.2rem; }
.match-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.3rem 1.8rem;
    box-shadow: var(--shadow-md);
    transition: transform .3s, box-shadow .3s;
}
.match-row:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }

.match-date {
    text-align: center;
    font-family: var(--font-head);
    line-height: 1.05;
    border-right: 2px solid var(--off-white);
    padding-right: 1.2rem;
}
.match-date .day   { font-size: 2rem; font-weight: 800; color: var(--blue); display: block; }
.match-date .month { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--grey); }
.match-teams { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.match-teams .vs { color: var(--blue-bright); font-style: italic; padding-inline: .4rem; }
.match-info { font-size: .88rem; color: var(--grey); }
.match-time {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    background: var(--blue);
    padding: .5rem 1.1rem;
    border-radius: 8px;
    transform: skewX(-8deg);
}

/* =========================================================
   Download-Liste
   ========================================================= */
.download-list { display: grid; gap: 1.2rem; }
.download-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.3rem 1.8rem;
    box-shadow: var(--shadow-md);
    transition: transform .3s, box-shadow .3s;
}
.download-row:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }

.download-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .08em;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-md);
    transition: transform .35s;
}
.download-row:hover .download-icon { transform: rotate(4deg) scale(1.08); }

.download-row h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.download-text { font-size: .88rem; color: var(--grey); margin-bottom: 0; }

.download-soon {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--grey);
    background: var(--off-white);
    padding: .55rem 1rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* =========================================================
   Timeline (Vereinsgeschichte)
   ========================================================= */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, var(--blue), var(--blue-light));
    border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 6px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--blue);
    box-shadow: 0 0 0 5px rgba(46,75,255,.15);
}
.timeline-year {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue);
}
.timeline-item p { color: var(--grey); margin: .3rem 0 0; }

/* =========================================================
   CTA-Banner
   ========================================================= */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 3.5rem 3rem;
    color: var(--white);
    background:
        radial-gradient(700px 400px at 85% 30%, rgba(255,210,63,.18), transparent 60%),
        linear-gradient(118deg, var(--navy) 0%, var(--blue) 120%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: .3rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin: 0; }
.cta-banner img {
    position: absolute;
    right: -30px;
    bottom: -60px;
    width: 220px;
    opacity: .18;
    transform: rotate(-10deg);
}

/* =========================================================
   Formulare (Kontakt)
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--navy);
}
.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    padding: .85rem 1rem;
    border: 2px solid #dfe4f2;
    border-radius: 8px;
    background: var(--white);
    transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(46,75,255,.14);
}
.form-field textarea { min-height: 160px; resize: vertical; }

.form-note { font-size: .82rem; color: var(--grey); }

.alert {
    padding: 1rem 1.4rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success { background: #e6f7ed; color: #157347; border: 1px solid #b7e4c7; }
.alert-error   { background: #fdecea; color: #b02a37; border: 1px solid #f5c2c7; }

/* Honeypot unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* =========================================================
   Kontakt-Infoboxen
   ========================================================= */
.contact-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.8rem;
}
.contact-box h3 { font-size: 1.2rem; }
.contact-box p { color: var(--grey); margin: 0; }
.contact-box a { font-weight: 600; }

/* =========================================================
   Text-Seiten (Impressum/Datenschutz)
   ========================================================= */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose p, .prose li { color: #3d4354; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: linear-gradient(160deg, #0a1140, #060b2e);
    color: rgba(255,255,255,.8);
    margin-top: 0;
}
.footer-top { padding: 4.5rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 2.5rem;
}
.footer-logo { width: 84px; margin-bottom: 1rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: .12em;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: .5rem;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    transform: skewX(-20deg);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.75); transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-muted { font-size: .85rem; color: rgba(255,255,255,.5); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 0;
    font-size: .85rem;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); margin-left: 1.4rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- "Nach oben"-Button ---------- */
.to-top {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-bright); }

/* ---------- Cookie-Banner (Google Analytics) ---------- */
.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 1.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}
.cookie-banner-inner p { margin: 0; flex: 1 1 420px; font-size: .95rem; line-height: 1.5; }
.cookie-banner-inner a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: .8rem; flex: 0 0 auto; }

.cookie-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    padding: .65rem 1.4rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.cookie-btn-primary { background: var(--blue); color: var(--white); }
.cookie-btn-primary:hover { background: var(--blue-bright); }
.cookie-btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.cookie-btn-outline:hover { border-color: var(--white); }

@media (max-width: 640px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { justify-content: flex-end; }
}

/* =========================================================
   Termine: Filter + Mannschafts-Etikett (termine.php)
   ========================================================= */
.termine-filter {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
    font-size: .95rem;
}
.termine-filter label { font-weight: 600; color: var(--navy); }
.termine-filter select {
    padding: .5rem .8rem;
    border: 1px solid rgba(10,17,64,.16);
    border-radius: 10px;
    font: inherit;
    background: var(--white);
    color: var(--text, #22303f);
}
.termine-filter-check {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}
.termine-filter-check input { width: 17px; height: 17px; accent-color: var(--blue); }

.match-tag {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .12rem .55rem;
    border-radius: 999px;
    margin-right: .5rem;
    vertical-align: 1px;
    white-space: nowrap;
}
.match-tag-ausw { background: var(--off-white); color: var(--navy); border: 1px solid rgba(10,17,64,.2); }

/* =========================================================
   Start-Countdown (countdown.php) – eigenständige "Coming Soon"-Seite
   ========================================================= */
.cd-body {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1100px 650px at 22% 15%, rgba(46, 75, 255, .35), transparent 60%),
        radial-gradient(900px 700px at 82% 85%, rgba(255, 210, 63, .12), transparent 60%),
        linear-gradient(160deg, #060b2e 0%, #0a1140 45%, #131f6e 100%);
    background-size: 140% 140%, 140% 140%, 100% 100%;
    animation: cdBgDrift 22s ease-in-out infinite alternate;
    font-family: var(--font-body);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
}
@keyframes cdBgDrift {
    from { background-position: 0% 0%, 100% 100%, center; }
    to   { background-position: 12% 8%, 88% 92%, center; }
}

/* Weiche, langsam schwebende Lichtflecken für Tiefe/Bewegung */
.cd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.cd-orb-1 {
    width: 420px; height: 420px;
    top: -140px; left: -120px;
    background: radial-gradient(circle, rgba(46, 75, 255, .55), transparent 70%);
    animation: cdDrift1 17s ease-in-out infinite alternate;
}
.cd-orb-2 {
    width: 520px; height: 520px;
    bottom: -180px; right: -140px;
    background: radial-gradient(circle, rgba(255, 210, 63, .3), transparent 70%);
    animation: cdDrift2 21s ease-in-out infinite alternate;
}
@keyframes cdDrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 50px) scale(1.15); } }
@keyframes cdDrift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, -40px) scale(1.12); } }

/* Markante Farbleisten oben/unten – Wiedererkennung wie im Rest der Seite */
.cd-bar {
    position: fixed;
    left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-bright), var(--accent), var(--blue-bright));
    background-size: 200% 100%;
    animation: cdBarShift 6s linear infinite;
    z-index: 2;
}
.cd-bar-top { top: 0; }
.cd-bar-bottom { bottom: 0; }
@keyframes cdBarShift { from { background-position: 0% 0; } to { background-position: 200% 0; } }

.cd-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    /* Flex statt text-align: zentriert jedes Kind zuverlässig, unabhängig
       davon, ob es inline oder block ist (z. B. das Logo-<img>, das per
       globalem Reset "display:block" bekommt). "width:100%" sorgt dafür,
       dass der Wrapper (bis zur max-width) auch wirklich die verfügbare
       Breite ausfüllt – sonst wäre er nur so breit wie sein Inhalt verlangt
       und Kinder mit align-self:stretch (z. B. .cd-counter auf Mobilgeräten)
       hätten dadurch gar keine echte Breite zum Ausfüllen. */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-logo-ring {
    position: relative;
    display: inline-block;
    margin-bottom: 1.4rem;
    animation: cdPopIn .9s cubic-bezier(.22, .9, .3, 1) both;
}
.cd-logo-ring::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 63, .35), transparent 72%);
    animation: cdPulseRing 2.6s ease-in-out infinite;
}
.cd-logo {
    position: relative;
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
}
@keyframes cdPopIn {
    0%   { opacity: 0; transform: scale(.55) rotate(-10deg); }
    70%  { transform: scale(1.08) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes cdPulseRing {
    0%, 100% { transform: scale(.92); opacity: .55; }
    50%      { transform: scale(1.18); opacity: 1; }
}

.cd-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .85rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 .5rem;
    opacity: 0;
    animation: cdFadeUp .8s ease .15s both;
}
.cd-kicker::before, .cd-kicker::after { content: ""; width: 28px; height: 2px; background: var(--accent); opacity: .7; }

.cd-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-transform: uppercase;
    margin: 0 0 2.4rem;
    line-height: 1.05;
    opacity: 0;
    animation: cdFadeUp .9s ease .3s both;
}

.cd-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 100%;
    gap: .5rem .6rem;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: cdFadeUp .9s ease .5s both;
}
.cd-counter.cd-tick .cd-block { animation: cdHeartbeat .4s ease; }

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.6rem;
    padding: .7rem .4rem .6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
}
.cd-block-klein { min-width: 3.4rem; padding: .5rem .3rem .45rem; background: rgba(255, 210, 63, .08); border-color: rgba(255, 210, 63, .25); }
.cd-zahl {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 5rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-zahl-klein { font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: var(--accent); }
.cd-label {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    color: rgba(255, 255, 255, .65);
    margin-top: .35rem;
}
.cd-trenner {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.6rem);
    color: rgba(255, 255, 255, .3);
}
.cd-komma { font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
@keyframes cdHeartbeat {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.05); box-shadow: 0 14px 34px rgba(255, 210, 63, .25); }
    100% { transform: scale(1); }
}

.cd-datum {
    color: rgba(255, 255, 255, .75);
    margin-bottom: 2rem;
    opacity: 0;
    animation: cdFadeUp .9s ease .75s both;
}
.cd-footer {
    font-size: .85rem;
    opacity: 0;
    animation: cdFadeUp .9s ease .9s both;
}
.cd-footer a { color: rgba(255, 255, 255, .7); }
.cd-footer a:hover { color: var(--accent); }

@keyframes cdFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
    /* Alle Blöcke müssen in einer Zeile bleiben (nowrap, siehe .cd-counter)
       UND die volle Breite ausnutzen: Statt einer festen, an der ganzen
       Viewport-Breite bemessenen Schriftgröße (die bei 5 Blöcken zwangsläufig
       winzig würde) wachsen die Blöcke per Flexbox gleichmäßig auf die volle
       Zeilenbreite – die Zahlengröße bemisst sich dann per Container-Query
       an der tatsächlichen (jetzt größeren) Blockbreite, nicht am Viewport.
       "container-type" + "cqw" zuerst als clamp()-Fallback für ältere
       Browser ohne Container-Query-Unterstützung, danach die cqw-Variante
       (gewinnt nur, wenn unterstützt – sonst bleibt der Fallback gültig). */
    .cd-counter { width: 100%; align-self: stretch; gap: .2rem .25rem; }
    .cd-block, .cd-block-klein {
        flex: 1 1 0;
        min-width: 0;
        padding: .55rem .1rem .45rem;
        container-type: inline-size;
    }
    .cd-block-klein { flex: .7 1 0; }
    .cd-zahl {
        font-size: clamp(1.6rem, 11vw, 3.2rem);
        font-size: 32cqw;
    }
    .cd-zahl-klein {
        font-size: clamp(1.1rem, 8vw, 2.2rem);
        font-size: 32cqw;
    }
    .cd-label { font-size: .6rem; letter-spacing: .05em; }
    .cd-trenner { font-size: clamp(1.2rem, 7vw, 2.4rem); }
    .cd-komma { font-size: clamp(1rem, 5vw, 1.8rem); }
    .cd-orb-1, .cd-orb-2 { width: 300px; height: 300px; }
}

@media (max-width: 360px) {
    .cd-counter { gap: .15rem .18rem; }
    .cd-block, .cd-block-klein { padding: .45rem .08rem .38rem; }
}

/* ---------- Übergang zum Zielzeitpunkt ----------
   Ablauf (siehe countdown.php, uebergangStarten()):
   1) Countdown + Deko blenden aus (body.cd-uebergang)
   2) kleines Logo blendet ein
   3) Logo wächst über den ganzen Bildschirm
   4) Logo blendet aus -> danach lädt die echte Website. */
.cd-wrap, .cd-orb, .cd-bar {
    transition: opacity .8s ease;
}
body.cd-uebergang .cd-wrap,
body.cd-uebergang .cd-orb,
body.cd-uebergang .cd-bar {
    opacity: 0;
}

.cd-logo-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.cd-logo-overlay-img {
    width: 18vmax;
    height: 18vmax;
    object-fit: contain;
    opacity: 0;
    transform: scale(.15);
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .45));
}
.cd-logo-overlay.cd-logo-takeover .cd-logo-overlay-img {
    animation: cdLogoTakeover 2.6s cubic-bezier(.7, 0, .3, 1) forwards;
}
@keyframes cdLogoTakeover {
    0%   { opacity: 0; transform: scale(.15); }
    20%  { opacity: 1; transform: scale(.22); }
    72%  { opacity: 1; transform: scale(15); }
    100% { opacity: 0; transform: scale(15); }
}

/* =========================================================
   Belegungsplan (belegungsplan.php)
   ========================================================= */
.bp-adminleiste {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--navy);
    color: rgba(255,255,255,.85);
    border-radius: var(--radius);
    padding: .8rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: .92rem;
}
.bp-adminleiste a { color: var(--accent); font-weight: 600; }

.bp-plaetze { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.bp-pill {
    display: inline-block;
    padding: .45rem 1.05rem;
    border-radius: 999px;
    border: 2px solid rgba(10,17,64,.15);
    color: var(--navy);
    font-weight: 600;
    font-size: .92rem;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.bp-pill:hover { border-color: var(--blue); transform: translateY(-2px); }
.bp-pill.aktiv { background: var(--blue); border-color: var(--blue); color: var(--white); }

.bp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.bp-monatsnav { display: flex; align-items: center; gap: .9rem; }
.bp-monatsnav h2 {
    font-family: var(--font-head);
    font-size: 1.9rem;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0;
    min-width: 230px;
    text-align: center;
}
.bp-nav-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--navy);
    font-size: 1rem;
    transition: background .2s, color .2s, transform .2s;
}
.bp-nav-btn:hover { background: var(--blue); color: var(--white); transform: scale(1.06); }

.bp-kalender {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.bp-wochentage {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--navy);
    color: rgba(255,255,255,.85);
    font-family: var(--font-head);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.bp-wochentage div { padding: .55rem .6rem; text-align: center; }
.bp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.bp-tag {
    min-height: 96px;
    border-right: 1px solid rgba(10,17,64,.08);
    border-bottom: 1px solid rgba(10,17,64,.08);
    padding: .35rem .4rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    align-items: stretch;
}
.bp-tag:nth-child(7n) { border-right: none; }
.bp-leer { background: var(--off-white); }
.bp-waehlbar { cursor: pointer; transition: background .15s; }
.bp-waehlbar:hover { background: #eef2ff; }
.bp-heute { background: #fffbe8; }
.bp-heute .bp-tagnr {
    background: var(--accent);
    color: var(--navy);
    border-radius: 50%;
    width: 26px; height: 26px;
    display: grid; place-items: center;
}
.bp-tagnr {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    line-height: 1;
    padding: .15rem;
}
.bp-eintrag {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    font: inherit;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.25;
    padding: .28rem .45rem;
    border-radius: 7px;
    overflow: hidden;
}
.bp-eintrag .bp-zeit { display: block; font-weight: 700; font-size: .7rem; opacity: .85; }
.bp-eintrag.st-bestaetigt { background: var(--blue); color: var(--white); }
.bp-eintrag.st-angefragt {
    background: #fff3d6;
    color: #7a5b0d;
    border: 1px dashed #d9b64a;
}
button.bp-eintrag { cursor: pointer; transition: transform .15s, box-shadow .15s; }
button.bp-eintrag:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.bp-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    margin-top: 1.1rem;
    font-size: .88rem;
    color: var(--grey);
}
.bp-legende i {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 4px;
    margin-right: .4rem;
    vertical-align: -2px;
}
.bp-legende i.st-bestaetigt { background: var(--blue); }
.bp-legende i.st-angefragt { background: #fff3d6; border: 1px dashed #d9b64a; }
.bp-legende-tipp { margin-left: auto; }

.bp-login-hinweis { margin-top: 1.6rem; font-size: .85rem; color: var(--grey); }
.bp-login-hinweis a { color: var(--blue); font-weight: 600; }

/* Dialoge (native <dialog>) */
.bp-dialog {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.8rem;
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
}
.bp-dialog::backdrop { background: rgba(10,17,64,.55); backdrop-filter: blur(3px); }
.bp-dialog h3 {
    font-family: var(--font-head);
    font-size: 1.7rem;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 .3rem;
}
.bp-dialog .form-note { margin-bottom: 1.1rem; }
.bp-dialog .form-field { margin-bottom: .9rem; }
.bp-dialog select {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid rgba(10,17,64,.16);
    border-radius: 10px;
    font: inherit;
    background: var(--white);
}
.bp-zeitzeile { display: flex; gap: .5rem; }
.bp-zeitzeile input { min-width: 0; }
.bp-dialog-aktionen {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}
.bp-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .3rem 1.2rem;
    margin: .8rem 0 1.2rem;
    font-size: .95rem;
}
.bp-details dt { font-weight: 700; color: var(--navy); }
.bp-details dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .bp-tag { min-height: 74px; }
    .bp-eintrag { font-size: .65rem; padding: .2rem .3rem; }
    .bp-monatsnav h2 { font-size: 1.5rem; min-width: 175px; }
    .bp-legende-tipp { margin-left: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
}

@media (max-width: 860px) {
    /* Kein backdrop-filter auf dem Header: er würde das fixierte
       Vollbild-Menü (.main-nav) auf die Header-Höhe beschränken */
    .site-header {
        backdrop-filter: none;
        background: linear-gradient(180deg, rgba(10,17,64,.94), rgba(10,17,64,.78));
    }

    .nav-toggle { display: flex; z-index: 110; }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 105;
        display: grid;
        place-items: center;
        background: linear-gradient(160deg, rgba(10,17,64,.97), rgba(6,11,46,.97));
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s, visibility .35s;
    }
    body.nav-open .main-nav { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
    /* !important: gewinnt auch gegen .site-header.scrolled .nav-toggle span,
       sonst wäre das X dunkelblau auf dunkelblauem Menü-Overlay */
    body.nav-open .nav-toggle span { background: var(--white) !important; }

    .main-nav ul { flex-direction: column; text-align: center; gap: .6rem; }
    .main-nav a { font-size: 1.7rem; color: var(--white) !important; }

    .grid-2, .form-grid { grid-template-columns: 1fr; }
    .scroll-hint { display: none; }
    .hero-crest { right: -25%; }

    .match-row { grid-template-columns: 84px 1fr; }
    .match-time { justify-self: start; grid-column: 2; }
    .match-date { padding-right: .8rem; }

    .download-row { grid-template-columns: auto 1fr; }
    .download-row .btn,
    .download-row .download-soon { justify-self: start; grid-column: 2; }
}

@media (max-width: 600px) {
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3.8rem 0; }
    .brand-text small { display: none; }
    .cta-banner { padding: 2.4rem 1.6rem; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
