/* =========================================================
   BSG Raubling e.V. – Theme
   Farbwelt: Royalblau / Signalgelb / Weiß (aus Logo & Plakat)
   ========================================================= */

/* --- Lokale Schriften (DSGVO-konform, kein Google-CDN) --- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/opensans-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/opensans-600.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/opensans-700.woff2') format('woff2'); }

:root {
    --blue:        #0026d4;   /* Primär (Markenblau) */
    --blue-dark:   #001a8f;   /* Tiefe / Hover */
    --blue-light:  #6c80c9;   /* heller Akzent */
    --yellow:      #ffd400;   /* Signalgelb (Highlights/CTA) */
    --yellow-dark: #e6bf00;
    --ink:         #14171f;   /* Hero-Schwarz */
    --text:        #2c2c2c;
    --muted:       #5b6470;
    --line:        #e3e7ef;
    --bg:          #ffffff;
    --bg-soft:     #f3f6fc;   /* sanftes Blaugrau */

    --radius:      14px;
    --radius-sm:   8px;
    --shadow:      0 6px 24px rgba(0, 38, 212, 0.08);
    --shadow-lg:   0 14px 40px rgba(0, 38, 212, 0.14);
    --container:   1140px;
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Oswald', 'Open Sans', -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.page-narrow { max-width: 820px; }
.text-center { text-align: center; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--yellow);
    color: var(--ink); padding: 10px 16px; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 999px;
    font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-dark); color: var(--ink); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--blue); }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.site-header > .container { max-width: 1260px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 58px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { color: var(--blue); font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: nowrap; }
/* Menüpunkte als sichtbare "Chips": dauerhaft eigener Rahmen + Fläche, damit
   sie auch ohne Hover sofort als klickbare Einträge erkennbar sind (reiner
   Text in einer Reihe wurde als Navigation zu spät wahrgenommen). */
.main-nav a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fbfcfe;
    color: var(--ink); font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.main-nav a:hover {
    color: var(--blue); background: var(--bg-soft); border-color: var(--blue-light);
}
/* Aktive Seite: kräftig gefüllt - unmissverständlich, wo man gerade ist. */
.main-nav .is-active > a {
    color: #fff; background: var(--blue); border-color: var(--blue);
}
.main-nav .is-active > a:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.main-nav .is-active > a .caret { color: #fff; opacity: .85; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--blue); transition: .25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; text-align: center;
    background: linear-gradient(135deg, rgba(0,38,212,.90) 0%, rgba(0,26,143,.86) 55%, rgba(20,23,31,.92) 130%),
                url('../images/hero.jpg') center 30% / cover no-repeat;
    padding: clamp(40px, 6vw, 72px) 0;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1040px; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); text-align: left; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .82rem; color: var(--yellow); margin: 0 0 12px; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.hero-subtitle { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: rgba(255,255,255,.92); margin: 0 0 28px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero-logo { flex: 0 0 auto; margin: 0; }
.hero-logo-img { height: clamp(120px, 15vw, 190px); width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
@media (max-width: 720px) {
    .hero-inner { flex-direction: column; text-align: center; gap: 18px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-logo-img { height: 100px; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 40px; }
.welcome :first-child { margin-top: 0; }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 22px 24px; }
.card-date { color: var(--muted); font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
.card-title { margin: 0 0 10px; font-size: 1.25rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue); text-decoration: none; }
.card-more { font-weight: 700; }

.card-link {
    display: block; text-decoration: none; color: var(--text); text-align: center;
    padding: 30px 22px;
}
.card-link:hover { text-decoration: none; }
.card-link .card-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.card-link h3 { color: var(--blue); margin: 0 0 8px; }
.card-link p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Inhaltsseiten ---------- */
.page { padding: clamp(40px, 7vw, 72px) 0; }
.page-logo-block { text-align: center; margin: 32px 0 8px; }
.page-logo-img { height: 160px; width: auto; object-fit: contain; }
@media (max-width: 600px) { .page-logo-img { height: 120px; } }
.page-title { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 24px; position: relative; padding-bottom: 16px; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; border-radius: 4px; background: var(--yellow); }
.page-subtitle { font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--blue); font-weight: 600; margin: -12px 0 28px; }
.page-content { font-size: 1.08rem; }
.page-content h2 { margin-top: 2em; }
.page-content img { border-radius: var(--radius); margin: 1.5em 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.page-content th, .page-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.page-content th { background: var(--blue); color: #fff; }
.page-content tr:nth-child(even) td { background: var(--bg-soft); }
.page-content blockquote {
    border-left: 4px solid var(--yellow); background: var(--bg-soft);
    margin: 1.5em 0; padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.82); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.7fr 1fr; gap: 40px; padding: 36px 20px 20px; align-items: start; }
.footer-logo { width: 84px; height: 84px; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: .92rem; }
.footer-brand strong { color: #fff; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.footer-col li { margin-bottom: 7px; break-inside: avoid; font-size: .92rem; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: var(--yellow); text-decoration: none; }

.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a {
    display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600;
    padding: 7px 16px; border-radius: 999px; width: fit-content; font-size: .9rem;
}
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-fb { background: #1877f2; }
.social-links a:hover { text-decoration: none; opacity: .9; transform: translateY(-1px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.legal-nav a { color: rgba(255,255,255,.78); margin-left: 18px; }
.legal-nav a:first-child { margin-left: 0; }
.legal-nav a:hover { color: var(--yellow); text-decoration: none; }

.footer-credits { border-top: 1px solid rgba(255,255,255,.12); }
.footer-credits .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 13px 20px; font-size: .82rem; color: rgba(255,255,255,.7); }
.footer-credits a { color: rgba(255,255,255,.85); }
.footer-credits a:hover { color: var(--yellow); text-decoration: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 58px 0 auto 0; background: #fff;
        border-bottom: 1px solid var(--line); padding: 12px 20px;
        transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
        max-height: calc(100svh - 58px); overflow-y: auto;
    }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 14px; font-size: 1.05rem; }
    .nav-open .main-nav { transform: translateY(0); }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .cards-4, .cards-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand-text small { display: none; }
}

/* ---------- Dropdown-Navigation ---------- */
.main-nav li.has-dropdown { position: relative; }
.main-nav .caret { font-size: .7em; opacity: .7; }
.main-nav .dropdown {
    position: absolute; top: calc(100% + 6px); left: 50%; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--yellow); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg); padding: 6px; margin: 0;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 50;
}
/* Nur auf Desktop-Breiten: mobil wird das Dropdown per .open-Klasse
   statisch ein-/ausgeklappt (siehe Media-Query unten). Ohne diese
   Begrenzung gewinnt diese höher-spezifische Regel gegen die mobile
   transform:none-Regel, sobald der Aufklapp-Button (Kind des <li>)
   per Tap den Fokus erhält (:focus-within) - das schiebt das volle-
   Breite-Untermenü um 50% seiner Breite aus dem Bildschirm. */
@media (min-width: 1025px) {
    .main-nav li.has-dropdown:hover > .dropdown,
    .main-nav li.has-dropdown:focus-within > .dropdown {
        opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
    }
}
.main-nav .dropdown li { width: 100%; }
.main-nav .dropdown a { padding: 9px 14px; font-weight: 500; font-size: .88rem; border-radius: var(--radius-sm); border-left: 2px solid transparent; }
.main-nav .dropdown a:hover { background: var(--bg-soft); border-left-color: var(--yellow); }

/* ---------- Statistik-Band ---------- */
.stats { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: clamp(40px, 6vw, 64px) 0; }
.stat-num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-label { font-weight: 600; margin-top: 8px; color: rgba(255,255,255,.9); }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Dropdown-Toggle-Buttons nur auf Mobile sichtbar */
.dropdown-toggle { display: none; }

/* ---------- Mobile: Dropdowns einklappbar ---------- */
@media (max-width: 1024px) {
    .dropdown-toggle { display: block; }
    /* Desktop-Caret im Linktext ausblenden - mobil gibt es schon den
       großen Aufklapp-Button rechts, sonst erscheinen zwei Pfeile */
    .main-nav .caret { display: none; }
    .main-nav li.has-dropdown { display: flex; flex-wrap: wrap; align-items: center; }
    .main-nav li.has-dropdown > a { flex: 1; }
    .main-nav .dropdown-toggle {
        background: none; border: none; cursor: pointer; padding: 10px 14px;
        font-size: 1.1rem; color: var(--blue); line-height: 1;
        transition: transform .2s ease;
    }
    .main-nav li.has-dropdown.open > .dropdown-toggle { transform: rotate(180deg); }
    .main-nav .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 3px solid var(--yellow);
        border-radius: 0; margin: 0 0 6px 14px; padding: 0;
        width: 100%; display: none;
    }
    .main-nav li.has-dropdown.open > .dropdown { display: block; }
}

/* ---------- Trainingszeiten / Saison-Kacheln ---------- */
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.season-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px; transition: transform .18s ease;
}
.season-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.5rem; }
.season-loc { color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.season-card table { width: 100%; border-collapse: collapse; }
.season-card th { background: var(--bg-soft); color: var(--ink); text-align: left; padding: 10px 12px; font-size: .9rem; }
.season-card td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.season-card.is-current { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,38,212,.15), var(--shadow-lg); }
.badge { background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 720px) { .season-grid { grid-template-columns: 1fr; } }

/* ---------- Vorstand / Team-Galerie ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 28px 0; }
.team-card { margin: 0; text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-card figcaption { margin-top: 12px; }
.team-card figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }
.team-card figcaption span { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Maskottchen-Banner (Nachwuchs) ---------- */
.mascot-hero {
    display: grid; grid-template-columns: 240px 1fr; gap: 0; margin: 28px 0;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--blue);
}
.mascot-hero img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: center 30%; }
.mascot-images { display: grid; grid-template-columns: 1fr 1fr; }
.mascot-images img { max-height: 280px; }
@media (max-width: 480px) { .mascot-images { grid-template-columns: 1fr; } }
.mascot-hero-text { padding: 32px; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mascot-hero-text h3 { color: #fff; margin: 0 0 12px; font-size: 1.5rem; }
.mascot-hero-text p { color: rgba(255,255,255,.92); margin: 0 0 20px; }
@media (max-width: 720px) { .mascot-hero { grid-template-columns: 1fr; } .mascot-hero img { max-height: 260px; } }

/* ---------- Spitzensport / Athleten ---------- */
.athletes { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.athlete { display: grid; grid-template-columns: 240px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.athlete-photo { background: var(--bg-soft); }
.athlete-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.athlete-avatar { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 280px; font-size: 3.5rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); letter-spacing: .05em; }
.athlete-info { padding: 28px 30px; }
.athlete-info h2 { margin: 0 0 4px; }
.athlete-role { color: var(--blue); font-weight: 700; margin: 0 0 14px; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.athlete-ranking { font-weight: 700; color: var(--blue); margin: 0 0 12px; font-size: .97rem; }
.athlete-ranking-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.athlete-ranking-link:hover { color: var(--blue-dark); }
.athlete-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.athlete-results-title { font-size: 1.05rem; margin: 22px 0 10px; }
.athlete-results { margin: 0; padding-left: 1.1em; }
.athlete-results li { margin-bottom: 5px; }
@media (max-width: 640px) { .athlete { grid-template-columns: 1fr; } .athlete-photo img, .athlete-avatar { min-height: 220px; } }

/* ---------- Anfahrt / Karte ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0; }
.location-grid h3 { margin-top: 0; }
.map-consent { background: var(--bg-soft); border: 1px dashed var(--blue-light); border-radius: var(--radius); padding: 32px; text-align: center; }
.map-consent p { margin: 0 0 16px; color: var(--muted); }
.map-frame { width: 100%; height: 400px; border: 0; border-radius: var(--radius); display: block; }
@media (max-width: 720px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie-Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--ink); color: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 22px; padding: 16px 20px; }
.cookie-inner p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.9); }
.cookie-inner a { color: var(--yellow); }
.cookie-inner .btn { flex-shrink: 0; }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ---------- Formulare ---------- */
.form-wrap { margin-top: 28px; background: var(--bg-soft); padding: 28px 30px; border-radius: var(--radius); }
.form-wrap .form-field { margin-bottom: 18px; }
.form-wrap label { font-weight: 600; display: block; margin-bottom: 6px; }
.form-wrap input[type=text], .form-wrap input[type=email], .form-wrap input[type=tel], .form-wrap textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff;
}
.form-wrap textarea { min-height: 130px; resize: vertical; }
.form-wrap input:focus, .form-wrap textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-wrap .checkbox label { font-weight: 400; display: inline; }
.form-wrap .buttons { margin-top: 8px; }
.treppchen-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.treppchen-item { background: var(--bg-soft); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 20px; text-align: center; min-width: 110px; cursor: pointer; transition: all .18s ease; }
.treppchen-item:hover { border-color: var(--blue); background: #eef2fd; }
.treppchen-item.is-active { background: var(--blue); border-color: var(--blue); }
.treppchen-item.is-active strong { color: #fff; }
.treppchen-item.is-active span { color: rgba(255,255,255,.85); }
.treppchen-item strong { display: block; font-size: 1.8rem; line-height: 1; color: var(--blue); }
.treppchen-item span { font-size: .8rem; color: var(--muted); }
/* Gesamt-Box: kein Blau (Blau = ausgewählter Filter), stattdessen Gold-Akzent, nicht klickbar */
.treppchen-total { border-color: var(--yellow); background: #fffae0; cursor: default; }
.treppchen-total:hover { background: #fffae0; border-color: var(--yellow); }
.treppchen-total strong { color: var(--blue-dark); }
.treppchen-total.is-active strong { color: var(--blue-dark); }
/* Schützen-Gesamtzahl: neutral, nicht klickbar (kein Platz-Filter) */
.treppchen-people { cursor: default; }
.treppchen-people:hover { background: var(--bg-soft); border-color: var(--line); }

/* Hinweis unter den Stats (automatische Erfassung / über 1.900) */
.db-hinweis {
    margin: -8px 0 24px; padding: 12px 16px;
    background: #fffae0; border-left: 3px solid var(--yellow); border-radius: var(--radius-sm);
    font-size: .9rem; line-height: 1.5; color: var(--ink);
}
.hist-badge { display: inline-block; font-size: .68rem; font-weight: 600; background: #f0e6d2; color: #7a5c1e; padding: 1px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }

/* ---------- Quellen / Kleingedrucktes ---------- */
.quellen-box { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.quellen-disclaimer { font-size: .8rem; line-height: 1.55; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 14px; }
.quellen-details > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--blue); padding: 8px 0; list-style: none; user-select: none; }
.quellen-details > summary::-webkit-details-marker { display: none; }
.quellen-details > summary::before { content: '▸ '; }
.quellen-details[open] > summary::before { content: '▾ '; }
.quellen-details > summary:hover { color: var(--blue-dark); }
.quellen-inner { font-size: .82rem; color: var(--ink); padding: 8px 2px 0; }
.quellen-jahr { margin-bottom: 10px; }
.quellen-jahr h4 { margin: 0 0 4px; font-size: .9rem; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.quellen-jahr ul, .quellen-legende ul { margin: 0; padding-left: 18px; }
.quellen-jahr li { margin: 2px 0; }
.quellen-meta { color: var(--muted); font-size: .76rem; }
.quellen-legende { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.quellen-legende h4 { margin: 0 0 6px; font-size: .9rem; }
.quellen-legende li { margin: 4px 0; }
.quellen-stand { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.form-wrap .captcha-field input[type=text] { max-width: 140px; }
.form-wrap .captcha-field label::before { content: '🔒 '; }
.form-messages { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-messages--success { background: #e7f6e7; border: 1px solid #41a541; color: #1d6b1d; }

/* ---------- Neuigkeiten / Blog ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.filter-chip { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .15s; font-size: .95rem; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.news-card { display: flex; flex-direction: column; padding: 0; }
.news-cover { display: block; aspect-ratio: 5 / 3; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.cat-badge { background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; margin-right: 6px; }
.news-card[hidden] { display: none; }
.article-meta { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 0 0 24px; box-shadow: var(--shadow); }
.article-back { margin-top: 32px; font-weight: 700; }

/* ---------- Bogentypen: goldene Embleme ---------- */
.lead { font-size: 1.25rem; color: var(--muted); max-width: 760px; margin: 0 0 16px; }
.bow-row { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.bow-row:last-child { border-bottom: 0; }
.bow-emblem { display: flex; justify-content: center; align-items: center; }
.bow-emblem img { width: 100%; max-width: 280px; filter: drop-shadow(0 10px 28px rgba(201,162,39,.40)); transition: transform .4s ease; }
.bow-row:hover .bow-emblem img { transform: rotate(-4deg) scale(1.05); }
.bow-text h2 { margin-top: 0; font-size: 1.9rem; }
.bow-row.reverse .bow-emblem { order: 2; }
@media (max-width: 768px) {
    .bow-row, .bow-row.reverse { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .bow-row.reverse .bow-emblem { order: 0; }
    .bow-text { text-align: left; }
    .bow-emblem img { max-width: 190px; }
}

/* ---------- Wettkampf-Bilder ---------- */
.discipline-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0 24px; }
.discipline-banner { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 28px; }

/* ---------- Daten-Tabelle (Bestenliste) ---------- */
.table-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.table-filter { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; cursor: pointer; }
.table-search { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; min-width: 220px; flex: 1 1 220px; }
.table-search:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 580px; }
.data-table th { background: var(--blue); color: #fff; text-align: left; padding: 13px 16px; font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; cursor: pointer; white-space: nowrap; user-select: none; }
.data-table th:hover { background: var(--blue-dark); }
.data-table th::after { content: ' ↕'; opacity: .45; font-size: .82em; }
.data-table th.sort-asc::after { content: ' ↑'; opacity: 1; }
.data-table th.sort-desc::after { content: ' ↓'; opacity: 1; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
/* Bestenliste: keine Sortierung (würde die Top-3-Klassenblöcke zerreißen) */
.bl-table th { cursor: default; }
.bl-table th:hover { background: var(--blue); }
.bl-table th::after { content: none; }
.data-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.data-table tbody tr:hover td { background: #eef2fd; }
.data-table tr[hidden] { display: none; }
.table-search { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; min-width: 220px; flex: 1 1 220px; }
.table-count { color: var(--muted); margin: 4px 0 16px; font-size: .92rem; }
.table-count strong { color: var(--blue); }

/* ---------- Multi-Select-Filter (Checkbox-Dropdown) ---------- */
.multi-select { position: relative; }
.multi-select-toggle { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; cursor: pointer; }
.multi-select-toggle.has-selection { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.multi-select-panel {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
    min-width: 200px; max-height: 260px; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); padding: 8px;
}
.multi-select-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.multi-select-panel label:hover { background: var(--bg-soft); }
.multi-select-panel input[type="checkbox"] { cursor: pointer; }

/* ---------- Bestenliste ---------- */
.bl-tabs { display: flex; gap: 4px; margin: 24px 0 0; border-bottom: 2px solid var(--line); }
.bl-tab { background: none; border: 2px solid var(--line); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 10px 22px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.bl-tab:hover { background: var(--bg-soft); color: var(--ink); }
.bl-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.bl-panel { padding-top: 20px; }
.bl-hint { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.bl-table .bl-record td { background: #f0f4ff; font-weight: 600; border-top: 2px solid var(--blue); }
.bl-table td:first-child { white-space: nowrap; }
.bl-wk { font-size: .83rem; color: var(--muted); max-width: 220px; }
.bl-sub-title { margin: 40px 0 4px; font-size: 1.3rem; padding-top: 20px; border-top: 1px solid var(--line); }
/* Bogenart-Trenner (Recurve / Compound / Blankbogen) in der offiziellen Liste.
   Selektor bewusst mit tbody+tr, damit er die nth-child(even)- und hover-
   Zebra-Regeln (gleiche Spezifität, aber weiter oben) sicher überschreibt. */
.bl-table tbody tr.bl-group-sep td,
.bl-table tbody tr.bl-group-sep:hover td {
    background: var(--blue-dark);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .85rem;
    padding: 8px 16px;
    border-top: 3px solid var(--yellow);
}

/* Mobil: Die Klassen-Spalte darf nicht mehr per nowrap in die Breite laufen -
   lange Namen wie "Herren Blankbogen (Auflage bis 2014)" machten sie sonst
   breiter als das ganze Display (346px bei 375px Viewport). Jetzt umbrechen,
   Breite deckeln und alle Datentabellen (Bestenliste UND Schützen-Datenbank)
   kompakter, damit weniger seitlich gescrollt werden muss. */
@media (max-width: 640px) {
    .data-table { min-width: 480px; }
    .data-table th,
    .data-table td { padding: 10px 10px; font-size: .92rem; }
    .bl-table td:first-child { white-space: normal; max-width: 8.5em; }
    .bl-table tbody tr.bl-group-sep td { padding: 8px 10px; }
    .bl-wk { max-width: 9em; font-size: .78rem; }
}

/* ---------- Galerie + Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; background: rgba(10,14,30,.93); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 16px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Instagram-Feed ---------- */
.ig-feed { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.ig-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ig-head h2 { margin: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ig-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ig-item:hover img { transform: scale(1.07); }
.ig-note { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.ig-fallback { color: var(--muted); }

/* ---------- Gau-Meldungen (RSS) ---------- */
.gau-news { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.section-title-left { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 20px; }
.gau-news-list { display: grid; gap: 12px; }
.gau-news-item { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; text-decoration: none; }
.gau-news-item:hover { transform: translateX(3px); border-left-color: var(--yellow); text-decoration: none; }
.gau-news-date { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.gau-news-title { display: block; color: var(--ink); font-weight: 700; font-family: var(--font-head); margin: 2px 0; }
.gau-news-excerpt { display: block; color: var(--muted); font-size: .92rem; }
.gau-news-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.gau-news-intro { color: var(--muted); margin: 0 0 16px; }
.gau-year { font-family: var(--font-head); color: var(--blue); font-size: 1.25rem; margin: 20px 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--bg-soft); }
.gau-year:first-child { margin-top: 0; }

/* ---------- Sprungleiste (Ergebnisse) ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.jump-nav a { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.jump-nav a:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }

/* ---------- Startseite: Nächste Termine ---------- */
.termine-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.termin-row { display: flex; align-items: center; gap: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius-sm); padding: 14px 20px; text-decoration: none; color: var(--ink); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.termin-row:hover { background: #eef2fd; border-left-color: var(--yellow); transform: translateX(3px); text-decoration: none; }
.termin-date { flex: 0 0 auto; text-align: center; line-height: 1.05; min-width: 58px; }
.termin-date strong { display: block; font-size: 1.35rem; color: var(--blue); }
.termin-date span { font-size: .8rem; color: var(--muted); }
.termin-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.termin-body strong { font-size: 1.05rem; }
.termin-meta { font-size: .85rem; color: var(--muted); }
.termin-arrow { flex: 0 0 auto; color: var(--blue); font-size: 1.3rem; }

/* ---------- Startseite: Aktuelle Erfolge ---------- */
.ergebnis-card { text-align: center; }
.ergebnis-medal { font-size: 2rem; display: block; margin-bottom: 4px; }
.ergebnis-card .card-title { margin: 0 0 4px; }
.ergebnis-meta { font-size: .9rem; color: var(--ink); margin: 0 0 4px; }
.ergebnis-wk { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- FAQ-Akkordeon ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 28px; }
.faq-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--blue); list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .18s ease; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: #eef2fd; }
.faq-item > p { margin: 0; padding: 0 18px 16px; color: var(--ink); }

/* =========================================================
   Termine-Seite
   ========================================================= */
.termine-section { margin: 0 0 48px; }
.termine-section-past { opacity: .85; }
.termine-leer { color: var(--muted); font-style: italic; }

.termine-calendar { display: flex; flex-direction: column; gap: 14px; }
.termin-card {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue);
    border-radius: var(--radius); padding: 18px 24px;
    text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.termin-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); border-left-color: var(--yellow); text-decoration: none; }
.termin-card-date {
    flex: 0 0 64px; text-align: center; background: var(--blue);
    color: #fff; border-radius: var(--radius-sm); padding: 10px 6px;
    line-height: 1.1;
}
.termin-day   { display: block; font-size: 1.9rem; font-weight: 700; font-family: var(--font-head); }
.termin-month { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.termin-year  { display: block; font-size: .72rem; opacity: .75; }
.termin-card-body { flex: 1 1 auto; }
.termin-card-body h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink); }
.termin-card-meta { font-size: .88rem; color: var(--muted); margin: 0 0 4px; }
.termin-card-text { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Vergangene Termine */
.termine-past-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.termin-past-row { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.termin-past-row:last-child { border-bottom: none; }
.termin-past-date { flex: 0 0 90px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.termin-past-title { flex: 1; color: var(--ink); font-weight: 600; }
.termin-past-title:hover { color: var(--blue); }
.termin-past-ort { font-size: .82rem; color: var(--muted); }
@media (max-width: 600px) {
    .termin-card { flex-wrap: wrap; }
    .termin-card-date { flex: 0 0 auto; }
    .termin-past-row { flex-wrap: wrap; }
    .termin-past-ort { width: 100%; }
}

/* =========================================================
   Rablinger Chatbot
   ========================================================= */

/* ── SVG-Figur Animationen ── */
@keyframes rabi-bob {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}
@keyframes rabi-blink {
    0%, 88%, 100% { transform: scaleY(1); }
    92%           { transform: scaleY(0.08); }
}
@keyframes rabi-talk-beak {
    0%, 100% { transform: rotate(0deg); }
    40%      { transform: rotate(18deg); }
}
@keyframes rabi-flap {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(-30deg); }
    60%  { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}
@keyframes rabi-shadow-bob {
    0%, 100% { transform: scaleX(1) scaleY(1); opacity: .15; }
    50%       { transform: scaleX(0.85) scaleY(0.7); opacity: .09; }
}

.rabi-body-group { animation: rabi-bob 3s ease-in-out infinite; transform-origin: 60px 100px; }
.rabi-eye        { animation: rabi-blink 5s ease-in-out infinite; }
.rabi-eye-right  { animation-delay: .15s; }
.rabi-shadow     { animation: rabi-shadow-bob 3s ease-in-out infinite; transform-origin: 60px 126px; }

.is-talking .rabi-beak-lower { animation: rabi-talk-beak .25s ease-in-out infinite alternate; }
.rabi-wing-left.flap  { animation: rabi-flap .5s ease-in-out; }
.rabi-wing-right.flap { animation: rabi-flap .5s ease-in-out; transform-origin: 82px 80px; }

/* ── Easter Egg: Verwandlung Rabe ⇄ Falke (Wappentier von Raubling) ── */
.rabi-svg { transition: transform .4s ease, opacity .3s ease; }
.rabi-svg-falcon {
    position: absolute; top: 0; left: 50%;
    width: 90px; height: 100px;
    transform: translateX(-50%) scale(0) rotate(-25deg);
    opacity: 0; pointer-events: none;
    transition: transform .5s cubic-bezier(.34,1.7,.55,1), opacity .3s ease;
}
.rabi-trigger.is-falcon .rabi-svg {
    transform: scale(0) rotate(18deg);
    opacity: 0;
}
.rabi-trigger.is-falcon .rabi-svg-falcon {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 1;
}
/* "Puff"-Ring beim Wechsel */
.rabi-trigger.is-falcon::before {
    content: ''; position: absolute; top: 12px; left: 50%;
    width: 70px; height: 70px; margin-left: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,210,90,.55) 0%, rgba(255,210,90,0) 70%);
    animation: rabi-poof .6s ease-out;
    pointer-events: none;
}
@keyframes rabi-poof {
    0%   { transform: scale(.3); opacity: .9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ── Widget äußere Hülle ── */
.rabi-chat {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9000;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 10px;
    font-family: var(--font);
}

/* ── Trigger-Button (SVG-Figur) ── */
.rabi-trigger {
    width: 90px; height: 100px;
    background: none; border: none; padding: 0; cursor: pointer;
    position: relative; display: flex; flex-direction: column; align-items: center;
    filter: drop-shadow(0 6px 18px rgba(0,38,212,.25));
    transition: filter .2s;
}
.rabi-trigger:hover { filter: drop-shadow(0 8px 24px rgba(0,38,212,.4)); }
.rabi-svg { width: 90px; height: 100px; }

.rabi-bubble-hint {
    position: absolute; bottom: 104px; right: 0;
    background: var(--blue); color: #fff;
    padding: 7px 14px; border-radius: 20px 20px 4px 20px;
    font-size: .82rem; font-weight: 600; white-space: nowrap;
    opacity: 0; transition: opacity .4s;
    box-shadow: var(--shadow);
    pointer-events: none;
}
.rabi-bubble-hint::after {
    content: ''; position: absolute; bottom: -7px; right: 12px;
    border: 7px solid transparent; border-top-color: var(--blue); border-bottom: none;
}

/* ── Chatfenster ── */
.rabi-window {
    width: 340px; max-height: 500px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; overflow: hidden;
    animation: rabi-slide-up .22s ease-out;
}
@keyframes rabi-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rabi-window[hidden] { display: none; }

.rabi-window-header {
    display: flex; align-items: center; gap: 10px;
    background: var(--blue); color: #fff;
    padding: 12px 14px;
}
.rabi-avatar-small { font-size: 1.5rem; }
.rabi-window-header strong { font-size: 1rem; }
.rabi-status { display: block; font-size: .75rem; opacity: .8; font-weight: 400; }
.rabi-close {
    margin-left: auto; background: none; border: none; color: #fff;
    font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 4px;
    transition: background .15s;
}
.rabi-close:hover { background: rgba(255,255,255,.2); }

.rabi-messages { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rabi-msg { max-width: 88%; }
.rabi-msg p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.rabi-msg-bot  p { background: var(--bg-soft); color: var(--ink); border-radius: 4px 14px 14px 14px; }
.rabi-msg-user { align-self: flex-end; }
.rabi-msg-user p { background: var(--blue); color: #fff; border-radius: 14px 4px 14px 14px; }

/* Typing dots */
.rabi-typing { padding: 6px 14px; display: flex; align-items: center; gap: 5px; }
.rabi-typing span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light);
    animation: rabi-dot .9s ease-in-out infinite;
}
.rabi-typing span:nth-child(2) { animation-delay: .2s; }
.rabi-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes rabi-dot {
    0%, 80%, 100% { transform: scale(1); opacity: .5; }
    40%           { transform: scale(1.4); opacity: 1; }
}
.rabi-typing[hidden] { display: none; }

/* Eingabe-Bereich */
.rabi-form { display: flex; align-items: center; gap: 0; border-top: 1px solid var(--line); }
.rabi-input {
    flex: 1; border: none; padding: 12px 14px; font: inherit; font-size: .9rem;
    outline: none; background: #fff; color: var(--ink);
}
.rabi-send {
    background: var(--blue); color: #fff; border: none;
    padding: 0 16px; height: 100%; min-height: 44px;
    font-size: 1.1rem; cursor: pointer; transition: background .15s;
}
.rabi-send:hover { background: var(--blue-dark); }

.rabi-disclaimer {
    font-size: .72rem; color: var(--muted); text-align: center;
    margin: 0; padding: 6px 12px 8px;
    border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
    .rabi-chat { bottom: 12px; right: 12px; }
    .rabi-window { width: calc(100vw - 24px); }
}

/* ── BSSB-Kader-Übersicht ────────────────────────────────────────────── */
.kader-section { margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--line); }
.kader-meta { font-size: 0.82rem; color: var(--muted); margin: -8px 0 24px; }
.kader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kader-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 28px; }
.kader-card-title { font-size: 1rem; font-weight: 700; color: var(--blue); margin: 0 0 14px; }
.kader-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kader-list li { font-size: 0.95rem; }
.kader-kat { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.kader-empty { font-size: 0.9rem; color: var(--muted); font-style: italic; margin: 0; }
.kader-card--lk { }
.kader-separator { grid-column: 1 / -1; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.kader-separator-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .kader-grid { grid-template-columns: 1fr; } }

/* ── Nachwuchs-Slogan-Block ───────────────────────────────────────────── */
.slogan-nachwuchs {
    background: var(--blue-dark);
    padding: clamp(40px, 7vw, 72px) 0;
}
.slogan-nachwuchs-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.slogan-nachwuchs-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin: 0 0 10px;
    opacity: 0.85;
}
.slogan-nachwuchs-quote {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
    border: none;
    padding: 0;
}
.slogan-nachwuchs-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.72);
    margin: 0;
    max-width: 520px;
}
@media (max-width: 640px) {
    .slogan-nachwuchs-inner { flex-direction: column; align-items: flex-start; }
}
