/* --- GRUNDLEGENDE VARIABLEN & RESET --- */
:root {
    --tsg-blue: #4591DA;
    /* TSG Blau - Hauptfarbe */
    --tsg-yellow: #F5CA00;
    /* TSG Gelb - Akzent */
    --tsg-dark: #1c1c1e;
    /* Fast Schwarz für Text */
    --bg-light: #f9f9fa;
    /* Fast Weiß für Text */
    --tsg-light: #f9f9fa;
    /* Leichter Hintergrund */    
    --white: #ffffff;
    --border-color: #d1d1d1;
    --spacing-unit: 1.5rem;
    --border-radius: 8px;

    /* Semantische Töne für Karten/Abschnitte, damit sich das Dark Theme
       unten zentral über diese Variablen umschalten lässt. */
    --card-border: #eee;
    --input-border: #ccc;
    --divider: #f0f0f0;
    --icon-chip-bg: #f0f7ff;
    --text-muted: #555;
    --text-faint: #666;
    --text-fainter: #888;
    --text-lightest: #999;
    --text-decorative: #ccc;

    /* Dezente Hintergrundschraffur für die Altersgruppen im Sportangebot (Turnen) */
    --offer-hatch-color: rgba(0, 0, 0, 0.035);
}

/* --- DARK THEME --- */
/* Wird per data-theme="dark" auf <html> aktiviert (siehe _master.tmpl).
   Titel, Header (Hero, Page-Header, Section-Header, CTA-Streifen) und
   das Hauptmenü bleiben bewusst unverändert blau/gelb - hier werden nur
   die Variablen für helle Hintergründe, Karten, Rahmen und Fließtext
   umgedreht. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --tsg-dark: #EAECEF;
    --white: #1b1f24;
    --bg-light: #121417;
    --border-color: #3a4048;
    --card-border: #2c3138;
    --input-border: #3a4048;
    --divider: #262b31;
    --icon-chip-bg: rgba(69, 145, 218, 0.16);
    --text-muted: #b7c0c8;
    --text-faint: #a3acb5;
    --text-fainter: #8b939c;
    --text-lightest: #7d858e;
    --text-decorative: #4a5058;
    --offer-hatch-color: rgba(255, 255, 255, 0.05);
}

/* Sanfter Übergang beim Umschalten */
body,
.feature-card, .fee-card, .dept-card, .offer-card, .news-card, .doc-row-item,
.event-row, .sidebar-box, .quick-links-list, .form-card, .faq-item,
.legal-card, .beteiligung-card, .programm-card, .tsg-verein-card,
.dash-widget, .tl-card, .service-box, .dept-fee-card, .uebersicht-card,
.partner-card, .partnership-model-card, .partnership-contact-card {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tsg-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* --- CONTAINER UTILITY --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* --- NAVIGATION --- */
header {
    background: var(--tsg-blue);
    border-bottom: 8px solid var(--tsg-yellow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.logo-img {
    height: 60px;
    /*width: 40px;*/
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Abteilungs-Titel neben dem Logo darf schrumpfen und wird bei Platzmangel
   abgeschnitten (…), statt die Navbar zu sprengen und den Menü-Button
   aus dem sichtbaren Bereich zu schieben. */
.abteilung-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    margin-left: 3rem;
}

.nav-links a {
    color: #ffffff;
}

.nav-links a:not(.btn-nav-cta):not(.nav-news-special):hover {
    color: var(--tsg-yellow);
}

.btn-nav-cta {
    background-color: var(--tsg-blue);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.btn-nav-cta:hover {
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    flex-shrink: 0;
}

.theme-toggle-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.nav-news-special {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1c1c1e;
    background-color: #fff4e5;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #ffeebb;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-news-special:hover {
    background-color: #ffe0b2;
    border-color: var(--tsg-yellow);
    color: #000;
    transform: translateY(-1px);
}


.nav-news-special-2 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1c1c1e;
    background-color: hsl(214, 88%, 68%);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #ffeebb;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-news-special-2:hover {
    background-color: var(--tsg-blue);
    border-color: var(--tsg-blue);
    color: var(--tsg-dark) !important;
    transform: translateY(-1px);
}

.nav-news-icon {
    font-size: 1rem;
}

@media (max-width: 1150px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 2px solid var(--tsg-yellow);
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        margin-left: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: var(--tsg-dark);
    }

    .nav-links a:not(.btn-nav-cta):not(.nav-news-special):hover {
        color: var(--tsg-blue);
    }
}

@media (max-width: 480px) {
    .abteilung-title {
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 0 1.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 3.25rem 0 2.75rem;
    text-align: center;
    background: linear-gradient(135deg, #2c6cb0 0%, var(--tsg-blue) 50%, #6aaee8 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--tsg-yellow);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 202, 0, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero .hero-text {
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero .hero-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    max-width: none;
    margin: 0 0 0.5rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 202, 0, 0.15);
    border: 1px solid rgba(245, 202, 0, 0.45);
    color: var(--tsg-yellow);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2.5rem;
}

.quicklink-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    color: var(--tsg-dark);
    padding: 0.5rem 1.25rem;
    line-height: 1.3;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quicklink-btn:nth-child(3n+2) {
    background: var(--tsg-yellow);
}

.quicklink-btn:nth-child(3n+3) {
    background: var(--tsg-blue);
    color: #ffffff;
}

.quicklink-btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: #eaf3fc;
    color: var(--tsg-blue);
    box-shadow: 0 8px 22px rgba(69, 145, 218, 0.35);
}

.quicklink-btn:nth-child(3n+2):hover {
    background: #e0b800;
    color: #1c1c1e;
    box-shadow: 0 8px 22px rgba(245, 202, 0, 0.5);
}

.quicklink-btn:nth-child(3n+3):hover {
    background: #2c6cb0;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(69, 145, 218, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tsg-yellow);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.hero-stats-link:hover {
    transform: translateY(-2px);
}

.hero-stats-link:hover .hero-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.hero-stats-cta {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.hero-stats-link:hover .hero-stats-cta {
    color: var(--tsg-yellow);
}

.page-header {
    background: linear-gradient(135deg, #2c6cb0 0%, var(--tsg-blue) 50%, #6aaee8 100%);
    padding: 2.75rem 0 2.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--tsg-yellow);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 202, 0, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--tsg-yellow);
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.page-header strong {
    color: var(--tsg-yellow);
}

.btn-hero {
    display: inline-block;
    background-color: var(--tsg-yellow);
    color: #1c1c1e;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(245, 202, 0, 0.4);
    transition: transform 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-hero-2 {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    backdrop-filter: blur(4px);
    margin-left: 1rem;
}

.btn-hero-2:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    display: inline-block;
    color: var(--tsg-blue);
    margin-left: 1rem;
    font-weight: 600;
}

/* Im blauen Hero: weiße Schrift, damit der Button lesbar bleibt */
.hero .btn-secondary {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero .btn-secondary:hover {
    color: var(--tsg-yellow);
}

/* --- WILLKOMMEN / VEREINSVORSTELLUNG --- */
.welcome-section {
    padding: 2.5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--card-border);
}

.welcome-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-portrait {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.welcome-inner {
    text-align: left;
}

.welcome-greeting {
    color: var(--tsg-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.welcome-inner h2 {
    font-size: 2.1rem;
    color: var(--tsg-dark);
    margin-bottom: 1.75rem;
}

.welcome-inner h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--tsg-yellow);
    border-radius: 2px;
    margin: 0.9rem 0 0;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.8;
    text-align: left;
}

.welcome-text p {
    margin-bottom: 1rem;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .welcome-section {
        padding: 3rem 0;
    }

    .welcome-flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .welcome-inner {
        text-align: center;
    }

    .welcome-inner h2 {
        font-size: 1.6rem;
    }

    .welcome-inner h2::after {
        margin: 0.9rem auto 0;
    }
}

/* --- FEATURE BLOCKS --- */
.features {
    padding: 2.25rem 0;
    background-color: var(--bg-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--tsg-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-top-color: var(--tsg-yellow);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.link-arrow {
    color: var(--tsg-blue);
    font-weight: 600;
}

/* --- TERMINE (CalDAV) --- */
.events-section {
    padding: 2.25rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--card-border);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-light);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--tsg-blue);
}

.event-date {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    background: var(--tsg-blue);
    color: #fff;
    border-radius: var(--border-radius);
    line-height: 1.1;
}

.event-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.event-month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tsg-yellow);
}

.event-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.event-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- NEWS SECTION --- */
.news-section {
    padding: 2.25rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--card-border);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: var(--tsg-blue);
    border-bottom: 4px solid var(--tsg-yellow);
    border-radius: var(--border-radius);
    padding: 0.9rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.section-header-row p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.section-header-row-light {
    color: var(--tsg-light) !important;
}

.section-header-row a {
    color: var(--tsg-yellow);
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--tsg-blue);
}

.news-image {
    height: 180px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lightest);
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-fainter);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- TOP SPORTARTEN --- */
.top-sports {
    padding: 4rem 0;
}

.section-header {
    background: var(--tsg-blue);
    border-bottom: 4px solid var(--tsg-yellow);
    border-radius: var(--border-radius);
    padding: 0.9rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- CTA STREIFEN --- */
.cta-strip {
    background: linear-gradient(135deg, #2c6cb0 0%, var(--tsg-blue) 50%, #6aaee8 100%);
    padding: 1.75rem 0;
}

.cta-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
}

.btn-cta-strip {
    display: inline-block;
    background: var(--tsg-yellow);
    color: #1c1c1e;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(245, 202, 0, 0.35);
}

.btn-cta-strip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 202, 0, 0.5);
}

@media (max-width: 600px) {
    .cta-strip .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- VEREIN & ORGANISATION --- */
.club-service {
    padding: 4rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--card-border);
}

.club-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--tsg-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.service-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--tsg-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-box p {
    font-size: 0.9rem;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tsg-blue);
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* --- MITGLIEDSBEITRÄGE --- */
.fee-formula-section {
    padding: 3rem 0 0;
}

.fee-formula-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin-bottom: 2rem;
}

.fee-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 950px;
    margin: 0 auto;
}

.fee-formula-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 140px;
    text-align: center;
}

.fee-formula-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-formula-icon svg {
    width: 32px;
    height: 32px;
}

.fee-formula-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tsg-dark);
    line-height: 1.3;
}

.fee-formula-item--optional .fee-formula-icon {
    background-color: transparent;
    border: 2px dashed var(--tsg-yellow);
    color: var(--tsg-yellow);
}

.fee-formula-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tsg-yellow);
    background: rgba(245, 202, 0, 0.12);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.fee-formula-item--result .fee-formula-icon {
    background-color: var(--tsg-blue);
    color: #ffffff;
}

.fee-formula-item--result .fee-formula-label {
    color: var(--tsg-blue);
    font-size: 1rem;
}

.fee-formula-op {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-decorative);
    flex-shrink: 0;
}

.fee-formula-op--eq {
    color: var(--tsg-blue);
    font-weight: 700;
}

@media (max-width: 700px) {
    .fee-formula {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.fees-section {
    padding: 4.5rem 0;
}

.fees-section--alt {
    background-color: var(--bg-light);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.fee-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--tsg-blue);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-top-color: var(--tsg-yellow);
}

.fee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--tsg-dark);
}

.fee-desc {
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    min-height: 1.2rem;
}

.fee-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider);
}

.fee-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tsg-blue);
}

.fee-period {
    font-size: 0.9rem;
    color: var(--text-fainter);
}

.dept-fees-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.dept-fee-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--tsg-blue);
}

.dept-fee-name {
    font-size: 1.15rem;
    color: var(--tsg-dark);
    margin-bottom: 1rem;
}

.dept-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
}

.dept-fee-row:last-child {
    border-bottom: none;
}

.dept-fee-cat {
    color: var(--text-muted);
}

.dept-fee-amount {
    font-weight: 700;
    color: var(--tsg-dark);
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--text-fainter);
}

.proration-box {
    max-width: 700px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.proration-title {
    font-size: 1.05rem;
    color: var(--tsg-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.proration-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proration-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.95rem;
}

.proration-period {
    color: var(--text-muted);
}

.proration-percent {
    font-weight: 700;
    color: var(--tsg-blue);
    white-space: nowrap;
}

.payment-info-box {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.payment-info-box p {
    margin-bottom: 1rem;
}

.payment-info-box p:last-child {
    margin-bottom: 0;
}

/* --- BEITRAGSTABELLE (Turnen) --- */
.fee-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--tsg-blue);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.fee-table-head,
.fee-table-row {
    display: grid;
    grid-template-columns: 2.4fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
}

.fee-table-head {
    background: var(--bg-light);
    border-bottom: 1px solid var(--card-border);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
}

.fee-table-row {
    border-bottom: 1px solid var(--divider);
}

.fee-table-row:last-child {
    border-bottom: none;
}

.fee-table-cat strong {
    display: block;
    color: var(--tsg-dark);
}

.fee-table-cat small {
    display: block;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.fee-table-num {
    text-align: right;
    white-space: nowrap;
    color: var(--text-muted);
}

.fee-table-total {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--tsg-blue);
}

.fee-table-download {
    text-align: center;
    margin-top: 2rem;
}

.fee-resolution {
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 700px) {
    .fee-table-head {
        display: none;
    }

    .fee-table-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .fee-table-cat {
        grid-column: 1 / -1;
    }

    .fee-table-num {
        text-align: left;
    }

    .fee-table-num::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--text-faint);
    }
}

/* --- KONTAKT SEITE --- */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.info-box {
    margin-bottom: 2rem;
}

.info-box h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tsg-dark);
}

.info-box p,
.info-box li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table strong {
    color: var(--tsg-dark);
}

.alert-box {
    background-color: #fffde7;
    border-left: 4px solid var(--tsg-yellow);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: #554400;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tsg-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--tsg-blue);
    box-shadow: 0 0 0 3px rgba(69, 145, 218, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: var(--tsg-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #357ABD;
    transform: translateY(-1px);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    color: var(--text-fainter);
    font-weight: 600;
    background-image: repeating-linear-gradient(45deg, #e9ecef 0, #e9ecef 10px, #f1f3f5 10px, #f1f3f5 20px);
}

.dept-shortcut {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.dept-link {
    color: var(--tsg-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* --- KONTAKT: EINSPALTIGES LAYOUT (Formular + Link-Liste) --- */
.contact-single {
    max-width: 700px;
    margin: 0 auto;
}

.quick-links-box {
    margin-top: 2.5rem;
}

.quick-links-box>h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    color: var(--tsg-dark);
}

.quick-links-box>p {
    color: var(--text-faint);
    margin-bottom: 1.25rem;
}

.quick-links-list {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quick-links-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.2s;
}

.quick-links-item:last-child {
    border-bottom: none;
}

.quick-links-item:hover {
    background-color: var(--bg-light);
}

.quick-links-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.quick-links-body {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.quick-links-body strong {
    display: block;
    color: var(--tsg-dark);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.quick-links-arrow {
    color: var(--tsg-blue);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
}

.quick-links-arrow:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quick-links-item {
        flex-wrap: wrap;
    }
}

/* --- PARTNER SEITE --- */
.partner-section {
    padding: 4rem 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.partner-logo-container {
    height: 180px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-bottom: 1px solid var(--divider);
}

.partner-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-decorative);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tsg-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.partner-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.partner-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-partner {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    color: var(--tsg-dark);
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    width: 100%;
    transition: all 0.2s;
}

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

/* --- UEBERSICHT SEITE (Karten mit Bild, Überschrift, Link) --- */
.uebersicht-section {
    padding: 4rem 0;
}

.uebersicht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.uebersicht-card {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uebersicht-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.uebersicht-image-container {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-light);
}

.uebersicht-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uebersicht-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.uebersicht-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.uebersicht-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Macht die we:link-Fläche unsichtbar und dehnt sie über die gesamte Karte,
   sodass ein Klick irgendwo auf der Karte dem Link folgt (kein sichtbarer Button mehr). */
.uebersicht-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.premium-partner {
    border-top: 4px solid var(--tsg-yellow);
}

/* --- PARTNER LOGO STREIFEN (Startseite) --- */
.partner-strip-section {
    padding: 2.5rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--card-border);
}

.partner-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3rem;
}

.partner-strip img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-strip img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.partner-strip-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.partner-strip-cta a {
    color: var(--tsg-blue);
    font-weight: 600;
}

.partner-strip-cta a:hover {
    text-decoration: underline;
}

/* --- PARTNERSCHAFT WERDEN SEITE --- */
.partnership-models-section {
    padding: 4.5rem 0;
}

.partnership-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 1rem;
}

.partnership-model-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.partnership-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.partnership-model-card--featured {
    border: 2px solid var(--tsg-blue);
    box-shadow: 0 14px 34px rgba(69, 145, 218, 0.2);
    transform: scale(1.06);
    z-index: 2;
    padding-top: 2.75rem;
}

.partnership-model-card--featured:hover {
    transform: scale(1.06) translateY(-4px);
}

.partnership-model-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tsg-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(69, 145, 218, 0.35);
}

.partnership-model-card h3 {
    font-size: 1.25rem;
    color: var(--tsg-dark);
    margin-bottom: 0.4rem;
}

.partnership-model-tagline {
    color: var(--text-fainter);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.partnership-model-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--divider);
    width: 100%;
}

.partnership-model-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tsg-blue);
}

.partnership-model-period {
    font-size: 0.9rem;
    color: var(--text-fainter);
}

.partnership-model-list {
    width: 100%;
    text-align: left;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.partnership-model-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.partnership-model-list li i {
    color: var(--tsg-blue);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.btn-partnership-model {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--bg-light);
    color: var(--tsg-dark);
    border: 1px solid var(--input-border);
    transition: all 0.2s;
    margin-top: auto;
}

.btn-partnership-model:hover {
    background: var(--tsg-blue);
    color: #fff;
    border-color: var(--tsg-blue);
}

.partnership-model-card--featured .btn-partnership-model {
    background: var(--tsg-blue);
    color: #fff;
    border-color: var(--tsg-blue);
    box-shadow: 0 4px 14px rgba(69, 145, 218, 0.35);
}

.partnership-model-card--featured .btn-partnership-model:hover {
    background: #2c6cb0;
}

@media (max-width: 900px) {
    .partnership-model-card--featured {
        order: -1;
        transform: none;
    }

    .partnership-model-card--featured:hover {
        transform: translateY(-4px);
    }
}

/* Ansprechpartner-Karte (Bild links, Kontaktinfos rechts) */
.partnership-contact-section {
    padding: 3.5rem 0 4.5rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--card-border);
}

.partnership-contact-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.partnership-contact-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partnership-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partnership-contact-body h3 {
    font-size: 1.3rem;
    color: var(--tsg-dark);
    margin-bottom: 0.15rem;
}

.partnership-contact-role {
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
}

.partnership-contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.partnership-contact-methods a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.partnership-contact-methods a:hover {
    text-decoration: underline;
}

.partnership-contact-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .partnership-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .partnership-contact-methods {
        justify-content: center;
    }
}

/* --- ABTEILUNGEN SEITE --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--tsg-yellow);
    color: #1c1c1e;
    border-color: var(--tsg-yellow);
}

.dept-section {
    padding: 4rem 0;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.dept-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    background: var(--white);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.dept-icon {
    width: 100%;
    height: 80px;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.dept-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--tsg-dark);
}

.dept-card p {
    color: var(--text-faint);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-dept {
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-dept:hover {
    text-decoration: underline;
}

.dept-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
    width: 100%;
}

.dept-socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dept-socials .social-icon:hover {
    background-color: var(--tsg-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(69, 145, 218, 0.3);
}

.dept-socials .social-icon.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 4px 10px rgba(214, 36, 159, 0.3);
    color: white;
}

.dept-socials .social-icon.fb:hover {
    background-color: #1877f2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
    color: white;
}

.dept-socials .social-icon.yt:hover {
    background-color: #ff0000;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    color: white;
}

.dept-socials .social-icon.x:hover {
    background-color: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.gymwelt-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.gymwelt-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--tsg-blue) 0%, #2c6cb0 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-box h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--tsg-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.btn-white:hover {
    background: #f0f0f0;
}

/* --- SPORTANGEBOT SEITE --- */
.category-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--card-border);
}

.category-section:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.category-header h2 {
    font-size: 1.8rem;
    color: var(--tsg-dark);
}

.category-header a {
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem 2rem;
}

.offer-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.2s;
    background: var(--white);
    margin-bottom: 10px;
}

.offer-card:hover {
    transform: translateY(-2px);
    border-color: var(--tsg-blue);
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tag-gymwelt {
    background-color: #ff0066;
    color: white;
}

.tag-reha {
    background-color: #2ecc71;
    color: white;
}

.tag-kids {
    background-color: var(--tsg-yellow);
    color: #1c1c1e;
}

.tag-comp {
    background-color: var(--tsg-blue);
    color: white;
}

/* --- SPORTANGEBOT (1846 & TURNEN): FARBE NACH AKTIVITÄT & SCHRAFFUR NACH ALTERSGRUPPE --- */
/* Aktivität liefert die Farbe der Tag-Pille. Eine Karte kann mehrere
   Aktivitäten/Altersgruppen haben (Checkboxen) - die data-Attribute im
   Template sammeln alle Treffer, die CSS-Klassen unten ebenso. Die
   allgemeinen 1846-Aktivitäten und die Turnen-spezifischen Aktivitäten
   teilen sich dieselbe gemeinsame Übersicht (sportangebot_liste.tmpl). */
.tag-activity-wettkampf {
    background-color: #e74c3c;
    color: white;
}

.tag-activity-spielspass {
    background-color: var(--tsg-yellow);
    color: #1c1c1e;
}

.tag-activity-reha {
    background-color: #16a085;
    color: white;
}

.tag-activity-gesundheit {
    background-color: #1abc9c;
    color: white;
}

.tag-activity-kindersport {
    background-color: #e67e22;
    color: white;
}

.tag-activity-sonstiges {
    background-color: #7f8c8d;
    color: white;
}

.tag-activity-mannschaft {
    background-color: #34495e;
    color: white;
}

.tag-activity-turnen {
    background-color: var(--tsg-blue);
    color: white;
}

.tag-activity-akrobatik {
    background-color: #9b59b6;
    color: white;
}

.tag-activity-rsg {
    background-color: #e84393;
    color: white;
}

.tag-activity-sportabzeichen {
    background-color: #2ecc71;
    color: white;
}

.tag-activity-fitness {
    background-color: #f39c12;
    color: white;
}

/* Altersgruppe wird nicht farbig, sondern nur dezent schraffiert (siehe unten) -
   die Pille bleibt neutral. */
.tag-age {
    background-color: var(--card-border);
    color: var(--text-muted);
}

/* Hintergrundschraffur je Altersgruppe, sehr dezent über --offer-hatch-color.
   Hat eine Karte mehrere Altersgruppen, gewinnt die zuletzt notierte Regel
   (CSS-Kaskade) - daher hier bewusst von "18+ Jahre" (niedrigste Priorität)
   bis "Baby" (höchste Priorität) sortiert. */
.offer-card.age-18plus {
    background-image: repeating-linear-gradient(0deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 1px, transparent 1px, transparent 18px);
}

.offer-card.age-16bis18 {
    background-image: repeating-linear-gradient(90deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 1px, transparent 1px, transparent 16px);
}

.offer-card.age-10bis16 {
    background-image:
        repeating-linear-gradient(45deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-45deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 1px, transparent 1px, transparent 14px);
}

.offer-card.age-6bis10 {
    background-image: repeating-linear-gradient(-45deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 2px, transparent 2px, transparent 12px);
}

.offer-card.age-1bis6 {
    background-image: repeating-linear-gradient(45deg, var(--offer-hatch-color) 0, var(--offer-hatch-color) 2px, transparent 2px, transparent 10px);
}

.offer-card.age-baby {
    background-image: radial-gradient(var(--offer-hatch-color) 1.4px, transparent 1.4px);
    background-size: 10px 10px;
}

.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.offer-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.offer-meta {
    font-size: 0.85rem;
    color: var(--text-fainter);
    display: flex;
    gap: 1rem;
}

.gymwelt-banner {
    background: linear-gradient(90deg, #ff0066 0%, #c40052 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gymwelt-banner h2 {
    margin: 0;
    font-size: 1.5rem;
}

.gymwelt-logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

/* --- FOOTER --- */
footer {
    background-color: #1c1c1e;
    color: #bbb;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 4px solid var(--tsg-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- CSS HELPERS --- */
.hidden {
    display: none !important;
}

.offer-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- DOKUMENTEN ÜBERSICHT --- */
.doc-overview-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.doc-row-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    gap: 2rem;
}

.doc-row-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--tsg-blue);
}

.doc-row-icon {
    font-size: 2.5rem;
    background: var(--icon-chip-bg);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.doc-row-content {
    flex-grow: 1;
}

.doc-row-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--tsg-dark);
}

.doc-row-content p {
    color: var(--text-faint);
    font-size: 0.95rem;
    margin: 0;
}

.doc-row-action {
    flex-shrink: 0;
}

.btn-doc-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--tsg-blue);
    border: 2px solid var(--tsg-blue);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-doc-link:hover {
    background-color: var(--tsg-blue);
    color: white;
}

/* --- DOKUMENTEN LAYOUT (Single) --- */
.doc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.paragraph-title {
    color: var(--tsg-blue);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--tsg-yellow);
}

.doc-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sidebar-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--divider);
    padding-bottom: 0.5rem;
    color: var(--tsg-dark);
}

.download-box {
    border-top: 4px solid var(--tsg-blue);
    background-color: var(--bg-light);
}

/* --- KALENDER LIST VIEW --- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-row {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.event-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--tsg-blue);
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
    gap: 2px;
}

.ev-day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.ev-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--tsg-dark);
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.text-blue {
    color: var(--tsg-blue);
}

.meta-item {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-full-date {
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.event-category {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-action {
    margin-left: auto;
    padding-left: 1rem;
}

.btn-download {
    display: inline-block;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-download:hover {
    border-color: var(--tsg-blue);
    color: var(--tsg-blue);
}

.calendar-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-filter-bar select,
.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.filter-input {
    min-width: 200px;
}

.filter-reset-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto;
}

/* NEWS LIST SEARCH */
.search-wrapper {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--input-border);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--tsg-blue);
    box-shadow: 0 0 0 4px rgba(69, 145, 218, 0.15);
    outline: none;
}

.search-btn {
    background-color: var(--tsg-yellow);
    color: #1c1c1e;
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #e0b800;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.btn-pagination {
    background: var(--white);
    border: 1px solid var(--input-border);
    color: var(--tsg-dark);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-pagination:hover {
    border-color: var(--tsg-blue);
    color: var(--tsg-blue);
    background: var(--icon-chip-bg);
}

.pagination-info {
    color: var(--text-fainter);
    font-size: 0.9rem;
}

/* MOBILE SPECIALS */
@media (max-width: 1150px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }

    .hero p,
    .hero .hero-text {
        margin-bottom: 1.5rem;
        font-size: 1.05rem;
    }

    .hero-quicklinks {
        margin-top: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .quicklink-btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .contact-grid,
    .gymwelt-content,
    .gymwelt-banner,
    .doc-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .contact-grid,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
        order: -1;
    }

    .doc-row-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .doc-row-action {
        width: 100%;
    }

    .btn-doc-link {
        width: 100%;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        padding: 12px;
        width: 100%;
    }

    .calendar-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-input,
    .calendar-filter-bar select {
        width: 100%;
    }

    .filter-reset-btn {
        margin-left: 0;
        text-align: center;
        margin-top: 10px;
    }

    .event-row {
        flex-wrap: wrap;
    }

    .event-action {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        margin-top: 10px;
    }

    .btn-download {
        display: block;
        text-align: center;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-date-badge {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 0.5rem;
        gap: 10px;
        justify-content: flex-start;
        background: transparent;
        border: none;
        padding-left: 0;
    }

    .ev-day {
        font-size: 1.2rem;
    }
}

/* --- SPORTABZEICHEN / DOWNLOADS --- */
.download-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-item {
    display: flex;
    align-items: center;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--tsg-blue);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    text-align: left;
}

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

.highlight-box h3 {
    color: var(--tsg-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: left;
}

.header-logo img {
    max-height: 120px;
    width: auto;
}

@media (max-width: 768px) {
    .page-header-flex {
        flex-direction: column-reverse;
        text-align: center;
    }
}

.calendar-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-filter-bar select,
.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.filter-input {
    min-width: 200px;
}

.filter-reset-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto;
}

.event-full-date {
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.event-category {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-details h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--tsg-dark);
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.text-blue {
    color: var(--tsg-blue);
}

.meta-item {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
    gap: 2px;
}

.ev-day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.ev-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.event-row {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.event-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--tsg-blue);
}

.event-details {
    flex-grow: 1;
}

.event-action {
    margin-left: auto;
    padding-left: 1rem;
}

.btn-download {
    display: inline-block;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-download:hover {
    border-color: var(--tsg-blue);
    color: var(--tsg-blue);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .calendar-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-input,
    .calendar-filter-bar select {
        width: 100%;
    }

    .filter-reset-btn {
        margin-left: 0;
        text-align: center;
        margin-top: 10px;
    }

    .event-row {
        flex-wrap: wrap;
    }

    .event-action {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        margin-top: 10px;
    }

    .btn-download {
        display: block;
        text-align: center;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-date-badge {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 0.5rem;
        gap: 10px;
        justify-content: flex-start;
        background: transparent;
        border: none;
        padding-left: 0;
    }

    .ev-day {
        font-size: 1.2rem;
    }
}

/* Termine: kompaktere Darstellung auf dem Smartphone */
@media (max-width: 768px) {
    .event-row {
        flex-wrap: nowrap;
        align-items: flex-start;
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.6rem;
        position: relative;
    }

    .event-row:hover {
        transform: none;
    }

    .event-date-badge {
        flex-direction: column;
        width: 50px;
        height: 50px;
        padding: 0;
        gap: 0;
        justify-content: center;
        background-color: var(--icon-chip-bg);
        border: 1px solid var(--card-border);
        border-radius: 10px;
    }

    .event-date-badge .ev-day {
        font-size: 1.25rem;
    }

    .event-date-badge .ev-month {
        font-size: 0.65rem;
        margin-top: 0;
    }

    .event-details {
        min-width: 0;
    }

    .event-full-date {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    .event-category {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .event-details h3 {
        font-size: 1rem;
        margin: 0 0 0.4rem 0;
    }

    .event-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0;
    }

    .meta-item {
        padding: 2px 6px;
        font-size: 0.78rem;
    }

    .event-desc {
        font-size: 0.8rem;
        margin-top: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Speichern-Button als kleines Symbol oben rechts statt eigener Zeile */
    .event-action {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .event-action .btn-download {
        display: inline-block;
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .event-full-date {
        padding-right: 5.5rem;
    }
}

.user-icon {
    width: 100px;
    /* Größe ändern */
    height: 100px;
    color: #333;
    /* Farbe der Silhouette ändern */
}

.user-icon:hover {
    color: #007bff;
    /* Farbe beim Drüberfahren ändern */
}

/* Department Icons */
.dept-icon img {
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Yolawo Integration */
.yolawo-container {
    width: 100%;
    min-height: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.yolawo-iframe {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    display: block;
}

/* --- WHITEBOARD TEMPLATE --- */
.whiteboard-wrapper {
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 4rem 0;
    min-height: 80vh;
}

.whiteboard-header {
    text-align: center;
    margin-bottom: 4rem;
}

.whiteboard-header h1 {
    font-size: 2.5rem;
    color: var(--tsg-dark);
    margin-bottom: 1rem;
}

.whiteboard-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.whiteboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}

.sticker-wrapper {
    transition: transform 0.2s ease;
    /* Rotation wird inline gesetzt */
}

.sticker-wrapper:hover {
    z-index: 10;
}

.sticker {
    width: 280px;
    min-height: 340px;
    padding: 15px;
    padding-bottom: 75px;
    /* Polaroid bottom border */
    position: relative;
    border-radius: 2px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.sticker:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.12);
}

/* Sticker Colors applied to the inner content */
.sticker.color-yellow .sticker-content {
    background-color: #fef08a;
    color: #5f4b06;
}

.sticker.color-blue .sticker-content {
    background-color: #bae6fd;
    color: #0c4a6e;
}

.sticker.color-pink .sticker-content {
    background-color: #fbcfe8;
    color: #831843;
}

.sticker.color-green .sticker-content {
    background-color: #bbf7d0;
    color: #14532d;
}

.sticker.color-white .sticker-content {
    background-color: var(--bg-light);
    color: #333333;
    border: 1px solid var(--card-border);
}

/* Decor - Tape */
.sticker.pin-tape .decoration {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 100px;
    height: 32px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Decor - Pin Red & Blue */
.sticker.pin-red .decoration,
.sticker.pin-blue .decoration {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: -2px 5px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 4px rgba(0, 0, 0, 0.3), inset 2px 2px 4px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.sticker.pin-red .decoration {
    background: #ef4444;
}

.sticker.pin-blue .decoration {
    background: #3b82f6;
}

.sticker-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    /* subtle inner shadow for depth */
}

.sticker-headline {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.sticker-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Ensure Polaroid images fit perfectly within the card limits */
.sticker-image-container {
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sticker-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    /* Prevent immensely tall images from stretching the card */
    object-fit: contain;
    border-radius: 4px;
}

.sticker-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 0.95rem;
    color: #444;
    text-align: center;
    border-top: none;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* --- WEBEDITION EDITMODE UTILITIES --- */

.we-edit-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tsg-blue);
    margin-top: 0.75rem;
    margin-bottom: 0.2rem;
}

.we-block-item {
    /*background: var(--white);
    border: 1px dashed var(--tsg-blue);*/
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* --- TIMELINE SEITE --- */

.timeline-wrapper {
    background-color: var(--bg-light);
    padding: 4rem 0;
    min-height: 60vh;
}

.timeline-inner-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.timeline-header-card {
    background: linear-gradient(135deg, var(--tsg-blue) 0%, #2c6cb0 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(69, 145, 218, 0.25);
}

.timeline-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.progress-wrapper {
    margin-top: 1.5rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.4rem;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--tsg-yellow);
    border-radius: 50px;
    transition: width 0.8s ease-in-out;
}

.timeline-stream {
    position: relative;
    padding-left: 2rem;
}

.timeline-stream::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--tsg-blue), #d1d1d1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -2rem;
    top: 1.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 2px #adb5bd;
    background-color: #adb5bd;
    z-index: 1;
}

.timeline-item[data-status="done"] .tl-dot {
    background-color: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.timeline-item[data-status="active"] .tl-dot {
    background-color: #fd7e14;
    box-shadow: 0 0 0 2px #fd7e14;
}

.timeline-item[data-status="planned"] .tl-dot {
    background-color: #adb5bd;
    box-shadow: 0 0 0 2px #adb5bd;
}

.tl-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-left: 4px solid #adb5bd;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tl-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.timeline-item[data-status="done"] .tl-card {
    border-left-color: #28a745;
}

.timeline-item[data-status="active"] .tl-card {
    border-left-color: #fd7e14;
}

.timeline-item[data-status="planned"] .tl-card {
    border-left-color: #adb5bd;
}

.tl-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tl-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tsg-blue);
}

.tl-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.badge-done {
    background-color: #d4edda;
    color: #155724;
}

.badge-active {
    background-color: #fff3cd;
    color: #856404;
}

.badge-planned {
    background-color: #e9ecef;
    color: #495057;
}

.tl-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin-bottom: 0.5rem;
}

.tl-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.timeline-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-lightest);
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

@media (max-width: 600px) {
    .timeline-header-card {
        padding: 1.5rem;
    }

    .timeline-h1 {
        font-size: 1.5rem;
    }

    .tl-card {
        padding: 1rem;
    }
}

/* --- VEREINSHISTORIE (Foto-Timeline) --- */
.vh-page {
    --vh-navy-deep: #081726;
    --vh-navy: #0e2439;
    --vh-gold: #F5CA00;
    --vh-off-white: #F2F5F8;
    --vh-muted: #8FA3B8;
    --vh-glass: rgba(255, 255, 255, 0.045);
    --vh-glass-border: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(ellipse 900px 600px at 15% 0%, rgba(69, 145, 218, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 30%, rgba(245, 202, 0, 0.07), transparent 60%),
        linear-gradient(180deg, var(--vh-navy-deep) 0%, var(--vh-navy) 50%, var(--vh-navy-deep) 100%);
    color: var(--vh-off-white);
    overflow-x: hidden;
}

.vh-hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
}

.vh-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--vh-gold);
    margin-bottom: 1rem;
}

.vh-h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #ffffff, #cfe1f5 60%, var(--tsg-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vh-hero-text {
    margin-top: 1rem;
    color: var(--vh-muted);
    font-size: 1.02rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.vh-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.25rem 6rem;
}

.vh-spine {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.vh-spine-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--tsg-blue), var(--vh-gold));
    box-shadow: 0 0 16px rgba(69, 145, 218, 0.6);
    transition: height 0.15s linear;
}

.vh-entry {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    padding: 2.2rem 0;
    padding-left: 200px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1);
}

.vh-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.vh-card {
    flex: 1;
    background: var(--vh-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--vh-glass-border);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.vh-year {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--vh-gold);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.35rem;
}

.vh-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--vh-off-white);
}

.vh-card p {
    color: var(--vh-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.vh-node {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    z-index: 3;
}

.vh-node img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--vh-navy-deep);
    box-shadow: 0 0 0 2px var(--vh-glass-border), 0 8px 26px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.vh-entry.visible .vh-node img {
    box-shadow: 0 0 0 2px var(--vh-gold), 0 0 30px rgba(245, 202, 0, 0.5);
    transform: scale(1.04);
}

@media (max-width: 640px) {
    .vh-spine {
        left: 52px;
    }

    .vh-node {
        left: 52px;
        width: 88px;
        height: 88px;
    }

    .vh-entry {
        padding-left: 110px;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vh-entry,
    .vh-node img {
        transition: none;
    }
}

/* --- VEREINSDASHBOARD --- */
.dash-section {
    padding: 3rem 0 5rem;
    background-color: var(--bg-light);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.dash-widget {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dash-widget[data-type="bar"],
.dash-widget[data-type="line"],
.dash-widget[data-type="pie"] {
    grid-column: span 2;
}

@media (max-width: 700px) {

    .dash-widget[data-type="bar"],
    .dash-widget[data-type="line"],
    .dash-widget[data-type="pie"] {
        grid-column: span 1;
    }
}

.dash-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin-bottom: 1.25rem;
}

/* Kennzahlenkarte */
.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: auto;
}

.dash-stat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.dash-stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--tsg-blue);
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.9rem;
    color: var(--text-faint);
}

.dash-stat-trend {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.4rem;
}

.dash-trend-up {
    color: #1e7e34;
    background: rgba(40, 167, 69, 0.12);
}

.dash-trend-down {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.12);
}

.dash-trend-neutral {
    color: var(--text-faint);
    background: #f0f0f0;
}

/* Balkendiagramm */
.dash-chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
    padding-top: 1rem;
}

.dash-chart-bar .dash-chart-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.dash-bar-fill {
    width: 100%;
    max-width: 44px;
    height: 0%;
    background: linear-gradient(180deg, var(--tsg-blue), #2c6cb0);
    border-radius: 6px 6px 0 0;
    transition: height 0.8s cubic-bezier(.2, .8, .2, 1);
}

.dash-bar-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin-top: 0.5rem;
}

.dash-bar-axis {
    font-size: 0.75rem;
    color: var(--text-fainter);
    margin-top: 0.2rem;
}

/* Liniendiagramm */
.dash-chart-line {
    position: relative;
    height: 200px;
    padding-top: 1rem;
}

.dash-line-svg {
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    height: calc(100% - 2.5rem);
}

.dash-chart-line-labels {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5rem;
    display: flex;
}

.dash-line-point {
    flex: 1;
    text-align: center;
}

.dash-line-point .dash-bar-axis {
    margin-top: 0;
}

/* Kreisdiagramm */
.dash-chart-pie {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dash-pie-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--card-border) 0deg 360deg);
    flex-shrink: 0;
    position: relative;
}

.dash-pie-ring::after {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: var(--white);
}

.dash-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-width: 160px;
}

.dash-pie-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.dash-pie-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-color-blue {
    background-color: var(--tsg-blue);
}

.dash-color-gold {
    background-color: var(--tsg-yellow);
}

.dash-color-green {
    background-color: #2ecc71;
}

.dash-color-red {
    background-color: #e74c3c;
}

.dash-color-teal {
    background-color: #17a2b8;
}

.dash-color-gray {
    background-color: #adb5bd;
}

.dash-pie-label {
    color: var(--text-muted);
    flex: 1;
}

.dash-pie-value {
    font-weight: 700;
    color: var(--tsg-dark);
}

/* --- IMPRESSUM / DATENSCHUTZ SEITE --- */

.legal-section {
    padding: 5rem 0;
}

.legal-section--alt {
    background-color: var(--bg-light);
    border-top: 1px solid var(--card-border);
}

.legal-badge {
    display: inline-block;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.legal-section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--tsg-dark);
    margin-bottom: 2.5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    border-top: 3px solid var(--tsg-blue);
}

.legal-card--full {
    grid-column: 1 / -1;
}

.legal-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.legal-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--divider);
}

.legal-card p,
.legal-card li,
.legal-card a {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-card a {
    color: var(--tsg-blue);
}

.legal-card a:hover {
    text-decoration: underline;
}

/* --- FAQ SEITE --- */

.faq-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--tsg-dark);
}

@media (max-width: 700px) {
    .faq-filter-bar .filter-input,
    .faq-filter-bar .filter-select {
        width: 100%;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--tsg-blue);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-category-badge {
    display: inline-block;
    margin: 1.25rem 1.25rem 0;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--tsg-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-question {
    padding: 1.1rem 1.25rem 0.6rem;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--tsg-dark);
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    margin-top: 0.6rem;
    border-top: 1px solid var(--divider);
    padding-top: 1rem;
}

.faq-answer-content,
.faq-answer-content p,
.faq-answer-content li {
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.25rem;
}

.faq-links li:last-child {
    padding-bottom: 1.25rem;
}

.faq-links li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--tsg-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-links li a::before {
    content: "\2192";
}

.faq-links li a:hover {
    text-decoration: underline;
}

/* --- BETEILIGUNGSMÖGLICHKEITEN SEITE --- */

.beteiligung-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .beteiligung-filter-bar .filter-input,
    .beteiligung-filter-bar .filter-select {
        width: 100%;
    }
}

.beteiligung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.beteiligung-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    background: var(--white);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.beteiligung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.beteiligung-card .btn-partner {
    margin-top: auto;
}

.beteiligung-icon {
    width: 64px;
    height: 64px;
    background-color: var(--icon-chip-bg);
    color: var(--tsg-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.beteiligung-category {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--tsg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.bet-tag-spende {
    background-color: var(--tsg-yellow);
    color: #1c1c1e;
}

.bet-tag-sachspende {
    background-color: #e67e22;
    color: #fff;
}

.bet-tag-ehrenamt {
    background-color: var(--tsg-blue);
    color: #fff;
}

.bet-tag-patenschaft {
    background-color: #2ecc71;
    color: #fff;
}

.bet-tag-sponsoring {
    background-color: #8e44ad;
    color: #fff;
}

.bet-tag-praktikum {
    background-color: #16a085;
    color: #fff;
}

.bet-tag-sonstiges {
    background-color: #888;
    color: #fff;
}

.beteiligung-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--tsg-dark);
}

.beteiligung-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.beteiligung-details {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.beteiligung-details p,
.beteiligung-details li {
    color: var(--text-muted);
}

.beteiligung-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--divider);
}

/* --- SPORTPROGRAMM SEITE --- */

.programm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.programm-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.programm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.programm-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid var(--divider);
}

.programm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.programm-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.programm-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--tsg-dark);
}

.programm-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.programm-content .btn-submit {
    margin-top: auto;
}

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

    .legal-section-title {
        font-size: 1.5rem;
    }
}

/* --- TSG VEREINE ÜBERSICHT (Preisplan-Stil) --- */
.tsg-verein-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 3rem;
}

.tsg-verein-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.25rem 2rem;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tsg-verein-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.tsg-verein-card--featured {
    border: 2px solid var(--tsg-blue);
    box-shadow: 0 14px 34px rgba(69, 145, 218, 0.2);
    transform: scale(1.08);
    z-index: 2;
    padding-top: 2.75rem;
}

.tsg-verein-card--featured:hover {
    transform: scale(1.08) translateY(-4px);
}

.tsg-verein-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tsg-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(69, 145, 218, 0.35);
}

.tsg-verein-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tsg-verein-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tsg-verein-card h3 {
    font-size: 1.25rem;
    color: var(--tsg-dark);
    margin-bottom: 0.4rem;
}

.tsg-verein-tagline {
    color: var(--text-fainter);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.tsg-verein-list {
    width: 100%;
    text-align: left;
    margin-bottom: 1.75rem;
}

.tsg-verein-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.tsg-verein-list li i {
    color: var(--tsg-blue);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.btn-verein {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--bg-light);
    color: var(--tsg-dark);
    border: 1px solid var(--input-border);
    transition: all 0.2s;
    margin-top: auto;
}

.btn-verein:hover {
    background: var(--tsg-blue);
    color: #fff;
    border-color: var(--tsg-blue);
}

.tsg-verein-card--featured .btn-verein {
    background: var(--tsg-blue);
    color: #fff;
    border-color: var(--tsg-blue);
    box-shadow: 0 4px 14px rgba(69, 145, 218, 0.35);
}

.tsg-verein-card--featured .btn-verein:hover {
    background: #2c6cb0;
}

@media (max-width: 900px) {
    .tsg-verein-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tsg-verein-card--featured {
        order: -1;
        transform: none;
    }

    .tsg-verein-card--featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 560px) {
    .tsg-verein-grid {
        grid-template-columns: 1fr;
    }
}

/* --- KURSANGEBOT (Kategorien mit verschachtelten Kursen & Terminen) --- */
.kurs-section {
    padding: 4rem 0;
}

.kurs-category {
    margin-bottom: 3.5rem;
}

.kurs-category:last-child {
    margin-bottom: 0;
}

.kurs-category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tsg-yellow);
}

.kurs-category-header h2 {
    font-size: 1.75rem;
    color: var(--tsg-blue);
    margin-bottom: 0.5rem;
}

.kurs-category-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
}

.kurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.kurs-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kurs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tsg-blue);
}

.kurs-image-container {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-light);
}

.kurs-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kurs-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kurs-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.kurs-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.kurs-leitung {
    font-size: 0.9rem;
}

.kurs-termine {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kurs-termin-item {
    font-size: 0.85rem;
    color: var(--text-fainter);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kurs-termin-datum {
    font-weight: 600;
    color: var(--tsg-dark);
}

/* --- KI-BILDKENNZEICHNUNG (EU-KI-Verordnung, Art. 50) ---
   Kennzeichnet Bilder, die KI-generiert oder KI-bearbeitet wurden.
   Anwendung: Klasse "ai-generated" bzw. "ai-modified" direkt auf den Bild-Container
   setzen (den Wrapper, der unmittelbar um <img> bzw. we:img liegt, z.B.
   .uebersicht-image-container, .kurs-image-container, .news-image ...).
   Die Klasse übernimmt selbst position:relative und legt das Badge unten links
   über das Bild. Der Container sollte overflow:hidden NICHT auf einen Kreis
   (border-radius:50%) anwenden, da das Badge sonst abgeschnitten wird. */
.ai-generated,
.ai-modified {
    position: relative;
}

.ai-generated::after,
.ai-modified::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    width: 42%;
    max-width: 190px;
    min-width: 110px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    z-index: 3;
}

.ai-generated::after {
    background-image: url("/includes/icons/LABEL_AI_GENERATED_white_transparent.svg");
    aspect-ratio: 1789.84 / 566.93;
}

.ai-modified::after {
    background-image: url("/includes/icons/LABEL_AI_MODIFIED_white_transparent.svg");
    aspect-ratio: 1700.79 / 566.93;
}

/* Optionale Positions-Varianten (mit ai-generated/ai-modified kombinieren) */
.ai-label-top-left.ai-generated::after,
.ai-label-top-left.ai-modified::after {
    top: 0.6rem;
    bottom: auto;
    left: 0.6rem;
    right: auto;
}

.ai-label-top-right.ai-generated::after,
.ai-label-top-right.ai-modified::after {
    top: 0.6rem;
    bottom: auto;
    left: auto;
    right: 0.6rem;
}

.ai-label-bottom-right.ai-generated::after,
.ai-label-bottom-right.ai-modified::after {
    bottom: 0.6rem;
    top: auto;
    left: auto;
    right: 0.6rem;
}

/* --- KOMPAKTE ABSTÄNDE AUF SMARTPHONES --- */
@media (max-width: 600px) {
    .features,
    .welcome-section,
    .events-section,
    .news-section {
        padding: 1rem 0;
    }

    .partner-strip-section {
        padding: 1.25rem 0;
    }

    .section-header {
        padding: 0.5rem 1rem;
        /* !important, da die Templates teils inline margin-bottom:2rem setzen */
        margin-bottom: 0.7rem !important;
    }

    .section-header h2,
    .section-header-row h2 {
        font-size: 1.25rem;
        line-height: 1.25;
        margin-bottom: 0;
    }

    .section-header p,
    .section-header-row p {
        margin-top: 0.15rem;
        font-size: 0.9rem;
    }

    .section-header-row {
        padding: 0.5rem 1rem;
        margin-bottom: 0.7rem;
    }

    /* Abstände zwischen Terminen und nach den Highlights verkleinern */
    .event-row {
        margin-bottom: 0.4rem;
        padding: 0.6rem;
    }

    .features .grid-3 {
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card p {
        margin-bottom: 0.75rem;
    }

    .news-grid {
        gap: 1.25rem;
    }

    .cta-strip {
        padding: 1.25rem 0;
    }

    .grid-3 {
        gap: 1rem;
    }
}

/* --- AUFZÄHLUNGEN IN FLIESSTEXTEN --- */
/* Das globale "ul { list-style: none }" gilt für Navigation, Footer und Listen-Komponenten.
   In redaktionellen Textbereichen (Rich-Text) sollen normale Listen wieder Punkte zeigen. */
.hero-text ul,
.welcome-text ul,
.payment-info-box ul,
.beteiligung-details ul,
.faq-answer-content ul,
.event-desc ul,
.kurs-category-header ul,
.legal-card ul:not([class]),
.news-content ul,
.programm-content ul,
.uebersicht-content ul,
.kurs-content ul {
    list-style: disc outside;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.hero-text ol,
.welcome-text ol,
.payment-info-box ol,
.beteiligung-details ol,
.faq-answer-content ol,
.legal-card ol:not([class]) {
    list-style: decimal outside;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.hero-text ul li,
.welcome-text ul li,
.payment-info-box ul li,
.beteiligung-details ul li,
.faq-answer-content ul li,
.legal-card ul:not([class]) li {
    margin-bottom: 0.3rem;
}

/* Rich-Text-Container der Detailseiten (news_detail, file, abteilungen_detail) */
.news-content-body ul {
    list-style: disc outside;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.news-content-body ol {
    list-style: decimal outside;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.news-content-body li {
    margin-bottom: 0.3rem;
}

.news-content-body li > ul {
    margin-top: 0.3rem;
    margin-bottom: 0;
    list-style-type: circle;
}
