/*
Theme Name: TSV Martfeld
Theme URI: https://tsv-martfeld.de
Description: Individuelles Theme für den TSV Martfeld e.V. - basierend auf Astra
Author: TSV Martfeld
Author URI: https://tsv-martfeld.de
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsv-martfeld
*/

/* ==========================================================================
   TSV Martfeld Farbvariablen
   ========================================================================== */

:root {
    /* Primärfarben */
    --tsv-primary-dark: #040e16;
    --tsv-primary: #0c2941;
    --tsv-primary-medium: #15446b;
    --tsv-primary-light: #257bc1;
    --tsv-accent: #207daf;
    --tsv-light: #eaf3fb;

    /* Text */
    --tsv-text-light: #ffffff;
    --tsv-text-dark: #333333;
    --tsv-text-muted: #666666;

    /* Gradient */
    --tsv-gradient: linear-gradient(135deg, var(--tsv-primary) 0%, var(--tsv-primary-medium) 100%);
}

/* ==========================================================================
   Allgemeine Styles
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sport-Header + Verein-Header einheitlich */
.sport-header,
.verein-header {
    min-height: 200px;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    border: 2px solid var(--tsv-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.sport-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    color: #fff !important;
}
.sport-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color: #fff !important;
}

/* Abstand zwischen Navigation und Seiteninhalt reduzieren */
.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 15px !important;
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.ast-primary-header-bar,
.site-header {
    background: var(--tsv-gradient) !important;
    position: relative;
    z-index: 10;
}

.site-logo-img,
.custom-logo {
    filter: none;
}

.ast-header-break-point .ast-mobile-header-wrap .ast-primary-header-bar {
    background: var(--tsv-primary) !important;
}

/* Logo Bereich */
.site-branding {
    padding: 2px 0;
}

/* Header kompakter */
.ast-primary-header-bar,
.main-header-bar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.custom-logo {
    max-height: 75px !important;
    width: auto !important;
}
.custom-logo-link img {
    max-height: 75px !important;
    width: auto !important;
}
.ast-nav-menu a,
.main-header-menu a {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 1.1rem !important;
}
.ast-nav-menu .sub-menu a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 1.1rem !important;
}

.site-title {
    display: none !important;
}

/* Navigation Links */
.ast-nav-menu a,
.main-header-menu a {
    color: var(--tsv-text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ast-nav-menu a:hover,
.main-header-menu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
}
.ast-nav-menu .current-menu-item > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px;
}
.ast-nav-menu .sub-menu a:hover,
.main-header-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
}

/* Dropdown Menü */
.ast-nav-menu .sub-menu {
    background: var(--tsv-primary-medium) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ast-nav-menu .sub-menu a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link,
.ast-button,
button,
input[type="submit"],
.elementor-button {
    background: var(--tsv-primary-light) !important;
    color: var(--tsv-text-light) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--tsv-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 125, 175, 0.4);
}

/* Sekundärer Button */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--tsv-primary-light) !important;
    color: var(--tsv-primary-light) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--tsv-primary-light) !important;
    color: var(--tsv-text-light) !important;
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--tsv-primary-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tsv-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer,
.ast-footer-overlay {
    background: var(--tsv-primary-dark) !important;
    color: var(--tsv-text-light);
}

.site-footer a {
    color: var(--tsv-accent) !important;
}

.site-footer a:hover {
    color: var(--tsv-light) !important;
}

/* ==========================================================================
   Sportabteilungen - Karten (alt)
   ========================================================================== */

.abteilung-card {
    background: var(--tsv-text-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.abteilung-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.abteilung-card .card-header {
    background: var(--tsv-gradient);
    color: var(--tsv-text-light);
    padding: 20px;
}

.abteilung-card .card-body {
    padding: 25px;
}

/* ==========================================================================
   Sportarten-Sektion (Startseite)
   ========================================================================== */

.tsv-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tsv-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.tsv-section-header h2 {
    font-size: 2.2rem;
    color: #0c2941 !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.tsv-section-header p {
    color: var(--tsv-text-muted);
    font-size: 1.05rem;
}

/* Info-Cards: Links am unteren Rand */
.kontakt-grid /* Kontakt-Grid + Info-Cards */
.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: #0c2941;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf3fb;
}

.info-card p {
    color: #374151;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.info-card ul {
    color: #374151;
    padding-left: 20px;
    margin: 0;
    line-height: 1.8;
}

.info-card a {
    color: #257bc1;
    text-decoration: none;
}

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

.kontakt-grid .info-card p:last-child a,
.kontakt-grid .info-card > p:last-of-type {
    margin-top: auto;
}

.kontakt-grid .info-card p:last-child a,
.kontakt-grid .info-card > p:last-of-type {
    margin-top: auto;
}

/* Sportarten-Logo-Grid (8 kleine Kacheln, ~50% einer Mannschafts-Card) */
.tsv-sportarten-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 0;
}

.tsv-sportart-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    flex: 1 1 0;
    min-width: 100px;
    max-width: calc(12.5% - 10px);
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.tsv-sportart-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tsv-sportart-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 500px) {
    .tsv-sportart-tile {
        min-width: 70px;
        max-width: calc(25% - 6px);
        padding: 6px;
    }
    .tsv-sportarten-grid {
        gap: 6px;
    }
}

/* Sportarten-Uebersichtsseite: 8 Kacheln mit Logo + Spartenleiter */
.tsv-sparten-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.tsv-sparte-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 20px 15px 18px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tsv-sparte-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tsv-sparte-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.tsv-sparte-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tsv-sparte-info h3 {
    color: #0c2941;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.tsv-sparte-leiter {
    display: block;
    color: #555;
    font-size: 0.85rem;
    margin: 0 0 2px 0;
}

.tsv-sparte-email {
    display: block;
    margin: 0;
    font-size: 0.78rem;
}

.tsv-sparte-email .vorstand-email {
    color: #b8860b;
    cursor: pointer;
}

.tsv-sparte-tile,
.tsv-sparte-tile:hover,
.tsv-sparte-tile:visited {
    text-decoration: none !important;
}

.tsv-sparte-email .vorstand-email:hover {
    text-decoration: underline;
}

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

@media (max-width: 500px) {
    .tsv-sparten-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tsv-sparte-tile {
        padding: 14px 10px;
    }
    .tsv-sparte-logo {
        width: 70px;
        height: 70px;
    }
}

/* Sportarten: alte Karten (Mannschaften etc.) */
.tsv-sport-grid {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.tsv-sport-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    padding: 16px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 0;
    max-width: 140px;
    min-height: 95px;
}

.tsv-sport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tsv-sport-card .icon {
    font-size: 4rem;
    margin-bottom: 8px;
    line-height: 1;
}

.tsv-sport-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0c2941 !important;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    hyphens: manual;
}

.tsv-sport-card:hover h3 {
    color: #257bc1 !important;
}

/* Mannschaften-Grid: Wrapping erlauben */
.tsv-mannschaften-grid {
    flex-wrap: wrap !important;
    max-width: 1200px;
}

.tsv-mannschaften-grid .tsv-sport-card {
    flex: 0 0 calc(16.66% - 12px);
    max-width: none;
}

/* Responsive: Tablet */
@media (max-width: 900px) {
    .tsv-sport-grid {
        flex-wrap: wrap;
    }
    .tsv-mannschaften-grid .tsv-sport-card {
        flex: 0 0 calc(25% - 12px);
    }
    .tsv-sport-card {
        flex: 0 0 calc(25% - 12px);
        max-width: none;
    }
}

/* Responsive: Mobile */
@media (max-width: 500px) {
    .tsv-sport-card {
        flex: 0 0 calc(50% - 8px);
    }
    .tsv-sport-grid {
        gap: 8px;
    }
}

/* ==========================================================================
   Kompakte News-Liste (Sport-Card Einbettung)
   ========================================================================== */

.tsv-news-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tsv-news-compact-item {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.tsv-news-compact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tsv-news-compact-item:first-child {
    padding-top: 0;
}

.tsv-news-compact-item:hover {
    background: #f8fafc;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.tsv-news-compact-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #257bc1;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tsv-news-compact-title {
    display: block;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

.tsv-news-compact-item:hover .tsv-news-compact-title {
    color: #0c2941;
}

/* ==========================================================================
   Termine & Events
   ========================================================================== */

.tribe-events-calendar-month__day--current {
    background: var(--tsv-primary-light) !important;
}

.tribe-events .tribe-events-c-ical__link {
    background: var(--tsv-primary-light) !important;
}

/* ==========================================================================
   WP Club Manager Styles
   ========================================================================== */

.wpcm-matches-list .wpcm-matches-list-item {
    border-left: 4px solid var(--tsv-primary-light);
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.wpcm-standings-table th {
    background: var(--tsv-primary) !important;
    color: var(--tsv-text-light) !important;
}

.wpcm-standings-table tr:nth-child(even) {
    background: var(--tsv-light);
}

/* ==========================================================================
   Mitgliederbereich
   ========================================================================== */

.um-form input[type="text"],
.um-form input[type="email"],
.um-form input[type="password"] {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.um-form input:focus {
    border-color: var(--tsv-primary-light);
    outline: none;
}

/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */

@media (max-width: 921px) {

    /* --- Hamburger-Icon: weiss auf dunklem Header --- */
    .ast-header-break-point .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
    .ast-header-break-point .ast-button-wrap .ast-mobile-svg,
    .ast-header-break-point .menu-toggle .ast-mobile-svg,
    .ast-header-break-point .ast-mobile-menu-buttons .ast-mobile-svg {
        fill: #fff !important;
    }
    .ast-header-break-point .ast-mobile-menu-trigger-minimal,
    .ast-header-break-point .ast-button-wrap .menu-toggle {
        border: 1px solid rgba(255,255,255,0.3) !important;
        border-radius: 6px;
        padding: 6px 8px !important;
        background: transparent !important;
    }
    .ast-header-break-point .ast-mobile-menu-trigger-minimal:hover,
    .ast-header-break-point .ast-button-wrap .menu-toggle:hover {
        border-color: rgba(255,255,255,0.6) !important;
    }

    /* --- Off-Canvas Popup: Hintergrund dunkelblau --- */
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-drawer .ast-mobile-popup-inner,
    .ast-mobile-popup-drawer .ast-mobile-popup-content,
    .ast-mobile-popup-drawer .ast-mobile-popup-header,
    body .ast-mobile-popup-drawer .ast-mobile-popup-inner,
    .ast-mobile-header-content,
    .ast-mobile-header-wrap .ast-mobile-header-content,
    #ast-mobile-header,
    .ast-header-break-point .ast-mobile-header-content {
        background: #0c2941 !important;
        background-color: #0c2941 !important;
    }

    /* --- Off-Canvas Overlay (Abdunkelung dahinter) --- */
    .ast-mobile-popup-drawer .ast-mobile-popup-overlay {
        background: rgba(0,0,0,0.5) !important;
    }

    /* --- Schliessen-Button --- */
    .ast-mobile-popup-drawer .menu-toggle-close,
    .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close,
    .ast-mobile-popup-drawer .menu-toggle-close .ast-mobile-svg,
    .menu-toggle-close {
        fill: #fff !important;
        color: #fff !important;
        background: transparent !important;
    }

    /* --- Menu-Links: weiss auf dunkelblau (ALLE Zustaende) --- */
    .ast-mobile-popup-drawer .menu-link,
    .ast-mobile-popup-drawer .menu-link:hover,
    .ast-mobile-popup-drawer .menu-link:focus,
    .ast-mobile-popup-drawer .menu-link:active,
    .ast-mobile-popup-drawer .menu-link:visited,
    .ast-mobile-popup-drawer a.menu-link,
    .ast-mobile-popup-drawer a.menu-link:hover,
    .ast-mobile-popup-drawer a.menu-link:focus,
    .ast-mobile-popup-drawer a.menu-link:active,
    .ast-mobile-popup-drawer a.menu-link:visited,
    .ast-mobile-popup-drawer .menu-item > a,
    .ast-mobile-popup-drawer .menu-item > a:hover,
    .ast-mobile-popup-drawer .menu-item > a:focus,
    .ast-mobile-popup-drawer .menu-item > a:active,
    .ast-mobile-popup-drawer .menu-item > a:visited,
    .ast-mobile-popup-drawer li > a,
    .ast-mobile-popup-drawer li > a:hover,
    .ast-mobile-popup-drawer li > a:focus,
    .ast-mobile-popup-drawer li > a:active,
    .ast-mobile-popup-drawer li > a:visited,
    .ast-mobile-popup-drawer .ast-builder-menu-mobile .menu-link,
    .ast-mobile-popup-drawer .main-header-menu .menu-link,
    .ast-mobile-popup-drawer .ast-nav-menu .menu-link,
    .ast-mobile-popup-drawer nav .menu-link,
    .ast-mobile-header-content .menu-link,
    .ast-mobile-header-content .menu-link:hover,
    .ast-mobile-header-content .menu-link:focus,
    .ast-mobile-header-content .menu-link:active,
    .ast-mobile-header-content .menu-link:visited,
    .ast-mobile-header-content .menu-item > a,
    .ast-mobile-header-content .menu-item > a:hover,
    .ast-mobile-header-content .menu-item > a:focus,
    .ast-mobile-header-content .menu-item > a:active,
    .ast-mobile-header-content .menu-item > a:visited,
    .ast-builder-menu-mobile .menu-link,
    .ast-builder-menu-mobile .menu-link:hover,
    .ast-builder-menu-mobile .menu-link:focus,
    .ast-builder-menu-mobile .menu-link:active,
    .ast-builder-menu-mobile .menu-link:visited,
    .ast-mobile-header-wrap .menu-link,
    .ast-mobile-header-wrap .menu-link:hover,
    .ast-mobile-header-wrap .menu-link:focus,
    .ast-mobile-header-wrap .menu-link:active,
    .ast-mobile-header-wrap .menu-link:visited,
    #ast-mobile-header .menu-link,
    #ast-mobile-header .menu-link:hover,
    #ast-mobile-header .menu-link:focus,
    #ast-mobile-header .menu-link:active,
    #ast-mobile-header .menu-link:visited,
    #ast-mobile-header .menu-item > a,
    #ast-mobile-header .menu-item > a:hover,
    #ast-mobile-header .menu-item > a:focus,
    #ast-mobile-header .menu-item > a:active,
    #ast-mobile-header .menu-item > a:visited {
        color: #fff !important;
        background-color: #0c2941 !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: block;
    }
    /* Hover-Effekt: leicht heller */
    .ast-mobile-popup-drawer .menu-link:hover,
    .ast-mobile-popup-drawer .menu-item > a:hover,
    .ast-mobile-header-content .menu-link:hover,
    .ast-mobile-header-content .menu-item > a:hover,
    .ast-builder-menu-mobile .menu-link:hover,
    #ast-mobile-header .menu-link:hover,
    #ast-mobile-header .menu-item > a:hover {
        background-color: rgba(255,255,255,0.1) !important;
    }
    /* Aktive Seite */
    .ast-mobile-popup-drawer .current-menu-item > .menu-link,
    .ast-mobile-popup-drawer .current-menu-item > a,
    .ast-mobile-popup-drawer .current-menu-ancestor > .menu-link,
    .ast-mobile-popup-drawer .current-menu-ancestor > a,
    .ast-mobile-header-content .current-menu-item > .menu-link,
    .ast-mobile-header-content .current-menu-item > a,
    .ast-mobile-header-content .current-menu-ancestor > .menu-link,
    #ast-mobile-header .current-menu-item > .menu-link,
    #ast-mobile-header .current-menu-item > a,
    #ast-mobile-header .current-menu-ancestor > .menu-link {
        background-color: rgba(255,255,255,0.15) !important;
        color: #fff !important;
        font-weight: 700;
    }

    /* --- Submenu Toggle Buttons: weiss statt blau (ALLE Zustaende) --- */
    .ast-mobile-popup-drawer .ast-menu-toggle,
    .ast-mobile-popup-drawer .ast-menu-toggle:hover,
    .ast-mobile-popup-drawer .ast-menu-toggle:focus,
    .ast-mobile-popup-drawer .ast-menu-toggle:active,
    .ast-mobile-popup-drawer button.ast-menu-toggle,
    .ast-mobile-popup-drawer button.ast-menu-toggle:hover,
    .ast-mobile-popup-drawer button.ast-menu-toggle:focus,
    .ast-mobile-popup-drawer button.ast-menu-toggle:active,
    .ast-mobile-popup-drawer .dropdown-menu-toggle,
    .ast-mobile-popup-drawer .dropdown-menu-toggle:hover,
    .ast-mobile-popup-drawer .dropdown-menu-toggle:focus,
    .ast-mobile-popup-drawer .dropdown-menu-toggle:active,
    .ast-mobile-header-content .ast-menu-toggle,
    .ast-mobile-header-content .ast-menu-toggle:hover,
    .ast-mobile-header-content .ast-menu-toggle:focus,
    .ast-mobile-header-content .ast-menu-toggle:active,
    .ast-mobile-header-content .dropdown-menu-toggle,
    .ast-mobile-header-content .dropdown-menu-toggle:hover,
    .ast-mobile-header-content .dropdown-menu-toggle:focus,
    .ast-mobile-header-content .dropdown-menu-toggle:active,
    #ast-mobile-header .ast-menu-toggle,
    #ast-mobile-header .ast-menu-toggle:hover,
    #ast-mobile-header .ast-menu-toggle:focus,
    #ast-mobile-header .ast-menu-toggle:active,
    #ast-mobile-header .dropdown-menu-toggle,
    #ast-mobile-header .dropdown-menu-toggle:hover,
    #ast-mobile-header .dropdown-menu-toggle:focus,
    #ast-mobile-header .dropdown-menu-toggle:active {
        fill: #fff !important;
        color: #fff !important;
        border-left: 1px solid rgba(255,255,255,0.15) !important;
        background: rgba(255,255,255,0.08) !important;
        border-color: rgba(255,255,255,0.15) !important;
    }
    .ast-mobile-popup-drawer .ast-arrow-svg,
    .ast-mobile-popup-drawer svg.ast-arrow-svg,
    .ast-mobile-header-content .ast-arrow-svg,
    #ast-mobile-header .ast-arrow-svg {
        fill: #fff !important;
    }

    /* --- Submenu Items (ALLE Zustaende) --- */
    .ast-mobile-popup-drawer .sub-menu,
    .ast-mobile-header-content .sub-menu,
    #ast-mobile-header .sub-menu {
        background: rgba(0,0,0,0.15) !important;
    }
    .ast-mobile-popup-drawer .sub-menu .menu-link,
    .ast-mobile-popup-drawer .sub-menu .menu-link:hover,
    .ast-mobile-popup-drawer .sub-menu .menu-link:focus,
    .ast-mobile-popup-drawer .sub-menu .menu-link:active,
    .ast-mobile-popup-drawer .sub-menu .menu-link:visited,
    .ast-mobile-popup-drawer .sub-menu .menu-item > a,
    .ast-mobile-popup-drawer .sub-menu .menu-item > a:hover,
    .ast-mobile-popup-drawer .sub-menu .menu-item > a:focus,
    .ast-mobile-popup-drawer .sub-menu .menu-item > a:active,
    .ast-mobile-popup-drawer .sub-menu .menu-item > a:visited,
    .ast-mobile-header-content .sub-menu .menu-link,
    .ast-mobile-header-content .sub-menu .menu-link:hover,
    .ast-mobile-header-content .sub-menu .menu-link:focus,
    .ast-mobile-header-content .sub-menu .menu-link:active,
    .ast-mobile-header-content .sub-menu .menu-link:visited,
    #ast-mobile-header .sub-menu .menu-link,
    #ast-mobile-header .sub-menu .menu-link:hover,
    #ast-mobile-header .sub-menu .menu-link:focus,
    #ast-mobile-header .sub-menu .menu-link:active,
    #ast-mobile-header .sub-menu .menu-link:visited {
        padding-left: 35px !important;
        font-size: 0.92rem !important;
        font-weight: 400;
        color: #fff !important;
        background-color: transparent !important;
    }
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-link,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-link:hover,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-link:focus,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-link:active,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-link:visited,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-item > a,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-item > a:hover,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-item > a:focus,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-item > a:active,
    .ast-mobile-popup-drawer .sub-menu .sub-menu .menu-item > a:visited,
    .ast-mobile-header-content .sub-menu .sub-menu .menu-link,
    .ast-mobile-header-content .sub-menu .sub-menu .menu-link:hover,
    .ast-mobile-header-content .sub-menu .sub-menu .menu-link:focus,
    .ast-mobile-header-content .sub-menu .sub-menu .menu-link:active,
    .ast-mobile-header-content .sub-menu .sub-menu .menu-link:visited,
    #ast-mobile-header .sub-menu .sub-menu .menu-link,
    #ast-mobile-header .sub-menu .sub-menu .menu-link:hover,
    #ast-mobile-header .sub-menu .sub-menu .menu-link:focus,
    #ast-mobile-header .sub-menu .sub-menu .menu-link:active,
    #ast-mobile-header .sub-menu .sub-menu .menu-link:visited {
        padding-left: 50px !important;
        font-size: 0.88rem !important;
        color: #fff !important;
        background-color: transparent !important;
    }

    /* --- TSV-Logo als dezentes Wasserzeichen auf Mobil (alle Seiten) --- */
    [style*="TSV_Martfeld_Logo"] {
        background-position: center center !important;
        background-size: 250px auto !important;
        opacity: 0.09 !important;
    }

    /* --- Logo im mobilen Header --- */
    .ast-header-break-point .custom-logo {
        max-height: 45px !important;
    }

    /* --- Mobile Header kompakt --- */
    .ast-header-break-point .ast-primary-header-bar {
        padding: 5px 15px !important;
    }
}

/* ==========================================================================
   Hero Bereich
   ========================================================================== */

.tsv-hero {
    position: relative;
    min-height: 75vh;
    background-image: url('/wp-content/uploads/startseite-header.png');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: -20px -20px 0 -20px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tsv-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(12,41,65,0.3) 0%, rgba(12,41,65,0.5) 100%);
    border-radius: 0 0 24px 24px;
}

.tsv-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 30px 40px;
    width: 100%;
}

.tsv-hero h1 {
    font-size: 3.2rem;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    color: #fff !important;
    font-weight: 700;
}

.tsv-hero p {
    font-size: 1.4rem;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.tsv-schal-banner {
    text-align: center;
    background: transparent;
    padding: 30px 20px;
    margin: 30px 0;
}

.tsv-schal-img {
    display: block;
    max-width: 700px;
    width: 85%;
    margin: 0 auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

/* Info Cards (Startseite) */
.tsv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tsv-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaf3fb;
}

.tsv-info-card h3 {
    color: #0c2941;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaf3fb;
    font-weight: 700;
}

.tsv-info-card p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.tsv-info-card a {
    color: #257bc1;
    text-decoration: none;
    font-weight: 600;
}

.tsv-info-card a:hover {
    color: #0c2941;
}

/* Responsive Hero + Sportarten */
@media (max-width: 768px) {
    .tsv-hero {
        background-position: center 30%;
    }
    .tsv-hero h1 {
        font-size: 2.2rem;
    }
    .tsv-hero p {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Animationen
   ========================================================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Custom Footer - TSV Martfeld
   ========================================================================== */

.tsv-footer {
    background: var(--tsv-primary-dark);
    color: var(--tsv-text-light);
    margin-top: 0;
}

.tsv-footer-main {
    padding: 60px 0 40px;
}

.tsv-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.tsv-footer-column h4 {
    color: var(--tsv-text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tsv-primary-light);
    display: inline-block;
}

.tsv-footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.tsv-footer-icon {
    width: 18px;
    height: 18px;
    fill: var(--tsv-primary-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.tsv-footer-email {
    color: var(--tsv-accent);
    cursor: pointer;
    border-bottom: 1px dashed var(--tsv-accent);
    transition: color 0.3s ease;
}

.tsv-footer-email:hover {
    color: var(--tsv-light);
}

.tsv-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tsv-footer-links li {
    margin-bottom: 10px;
}

.tsv-footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tsv-footer-links a:hover {
    color: var(--tsv-accent) !important;
    transform: translateX(5px);
}

.tsv-footer-social {
    display: flex;
    gap: 15px;
}

.tsv-social-link {
    width: 45px;
    height: 45px;
    background: var(--tsv-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tsv-social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--tsv-text-light);
    transition: fill 0.3s ease;
}

.tsv-social-link:hover {
    background: var(--tsv-primary-light);
    transform: translateY(-3px);
}

.tsv-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.tsv-footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .tsv-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tsv-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tsv-footer-contact p {
        justify-content: center;
    }

    .tsv-footer-social {
        justify-content: center;
    }

    .tsv-footer-links a:hover {
        transform: none;
    }
}

/* ==========================================================================
   Verstecke Standard-Seitentitel bei benutzerdefinierten Headern
   ========================================================================== */

/* ==========================================================================
   Hallenplan - Wochenübersicht
   ========================================================================== */

.tsv-hallenplan-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Legende */
.tsv-hallenplan-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--tsv-light);
    border-radius: 8px;
}

.tsv-legende-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tsv-text-dark);
}

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

/* Desktop-Tabelle */
.tsv-hallenplan-table-wrap {
    overflow-x: hidden;
}

.tsv-hallenplan-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    margin: 0;
}

.tsv-hallenplan-table thead th {
    background: var(--tsv-gradient);
    color: var(--tsv-text-light);
    padding: 14px 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: none;
}

.tsv-hallenplan-table thead th.tsv-hp-today {
    background: var(--tsv-primary-light);
    position: relative;
}

.tsv-hallenplan-table thead th.tsv-hp-today::after {
    content: 'Heute';
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
}

.tsv-hp-cell {
    vertical-align: top;
    padding: 10px 8px;
    background: #ffffff;
    border: none;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-width: 0;
}

.tsv-hp-cell:last-child {
    border-right: none;
}

.tsv-hp-cell.tsv-hp-today {
    background: var(--tsv-light);
}

/* Event-Karte */
.tsv-hp-event {
    display: block;
    background: #f5f5f5;
    border-left: 4px solid #555;
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
    margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}

.tsv-hp-event:last-child {
    margin-bottom: 0;
}

.tsv-hp-event:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #222;
    background: #ebebeb;
}

.tsv-hp-time {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
}

.tsv-hp-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.tsv-hp-cat {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #777;
}

.tsv-hp-empty {
    display: block;
    text-align: center;
    color: #ccc;
    font-size: 0.8rem;
    font-style: italic;
    padding: 20px 5px;
}

/* Mobile Ansicht */
.tsv-hallenplan-mobile {
    display: none;
}

.tsv-hp-day-mobile {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tsv-hp-day-mobile.tsv-hp-today {
    box-shadow: 0 2px 12px rgba(37, 123, 193, 0.2);
}

.tsv-hp-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--tsv-primary);
    color: var(--tsv-text-light);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.tsv-hp-day-header::-webkit-details-marker {
    display: none;
}

.tsv-hp-today .tsv-hp-day-header {
    background: var(--tsv-primary-light);
}

.tsv-hp-day-count {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.tsv-hp-day-body {
    padding: 12px;
    background: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .tsv-hallenplan-table-wrap {
        display: none;
    }

    .tsv-hallenplan-mobile {
        display: block;
    }
}

/* ==========================================================================
   Kalender / Terminliste
   ========================================================================== */

.tsv-kalender-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.tsv-kalender-header h2 {
    font-size: 1.8rem;
    color: var(--tsv-primary) !important;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 12px;
}

.tsv-kalender-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tsv-accent);
    border-radius: 2px;
}

.tsv-kalender-sub {
    font-size: 1.15rem;
    color: var(--tsv-text-dark) !important;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tsv-light);
}

.tsv-kalender-wochenplan {
    margin-bottom: 20px;
}

/* Terminliste */
.tsv-terminliste {
    margin-top: 10px;
}

.tsv-terminliste-empty {
    color: var(--tsv-text-muted);
    font-style: italic;
}

.tsv-terminliste-month-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tsv-primary) !important;
    margin: 25px 0 12px;
    padding: 8px 15px;
    background: var(--tsv-light);
    border-radius: 8px;
    border-left: 4px solid var(--tsv-primary);
}

.tsv-terminliste-month-header:first-child {
    margin-top: 0;
}

.tsv-terminliste-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}

.tsv-terminliste-item:hover {
    background: #ebebeb;
    text-decoration: none;
    color: #222;
}

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

.tsv-terminliste-date {
    flex: 0 0 50px;
    text-align: center;
    background: #e0e0e0;
    color: #222;
    border-radius: 8px;
    padding: 8px 5px;
    line-height: 1;
}

.tsv-terminliste-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.tsv-terminliste-wtag {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 2px;
}

.tsv-terminliste-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tsv-terminliste-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.tsv-terminliste-time {
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
}

.tsv-terminliste-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .tsv-kalender-header h2 {
        font-size: 1.4rem;
    }

    .tsv-terminliste-item {
        gap: 10px;
        padding: 10px 8px;
    }

    .tsv-terminliste-date {
        flex: 0 0 42px;
    }

    .tsv-terminliste-day {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Event-Modal
   ========================================================================== */

.tsv-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.tsv-event-modal.is-active {
    display: flex;
}

.tsv-event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tsv-event-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tsv-event-modal-in 0.3s ease;
}

@keyframes tsv-event-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tsv-event-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.tsv-event-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.tsv-event-modal-header {
    padding: 25px 25px 15px;
    border-left: 5px solid #555;
    margin: 20px 20px 0;
    border-radius: 0 8px 8px 0;
    background: var(--tsv-light);
}

.tsv-event-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tsv-primary) !important;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tsv-event-modal-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tsv-event-modal-body {
    padding: 20px 25px 25px;
}

.tsv-event-modal-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.tsv-event-modal-row:last-child {
    border-bottom: none;
}

.tsv-event-modal-icon {
    font-size: 1.2rem;
    flex: 0 0 30px;
    text-align: center;
    padding-top: 2px;
}

.tsv-event-modal-row div {
    flex: 1;
    font-size: 0.9rem;
    color: var(--tsv-text-dark);
    line-height: 1.5;
}

.tsv-event-modal-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tsv-text-muted);
}

.tsv-event-modal-row a {
    color: var(--tsv-primary-light);
    text-decoration: none;
}

.tsv-event-modal-row a:hover {
    color: var(--tsv-accent);
    text-decoration: underline;
}

/* Button-Reset für Event-Karten */
button.tsv-hp-event,
button.tsv-terminliste-item {
    border: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    z-index: 1;
}

button.tsv-terminliste-item {
    background: transparent;
    padding: 12px 15px;
}

/* Verstecke den Astra-Seitentitel auf Seiten mit eigenem Header */
.page .entry-title,
.page .ast-archive-description,
.page .page-header,
.page h1.entry-title {
    display: none !important;
}

/* ==========================================================================
   News/Berichte Grid - Startseite
   ========================================================================== */

.tsv-news-section {
    padding: 20px 0 80px;
    background: var(--tsv-text-light);
}

.tsv-news-header {
    text-align: center;
    margin-bottom: 50px;
}

.tsv-news-header h2 {
    font-size: 2.5rem;
    color: var(--tsv-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.tsv-news-header p {
    color: var(--tsv-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tsv-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tsv-news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tsv-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tsv-news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--tsv-light);
}

.tsv-news-card-image img:not(.tsv-news-cat-logo) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tsv-news-card:hover .tsv-news-card-image img:not(.tsv-news-cat-logo) {
    transform: scale(1.05);
}

.tsv-news-card-image .tsv-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.tsv-news-card-image .tsv-news-placeholder svg {
    width: 60px;
    height: 60px;
    fill: rgba(200, 200, 200, 0.5);
}

.tsv-news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tsv-primary-light);
    color: var(--tsv-text-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}
.tsv-news-category[data-cat="fussball"]     { background: #2e7d32; }
.tsv-news-category[data-cat="tischtennis"]  { background: #1565c0; }
.tsv-news-category[data-cat="tennis"]       { background: #ef6c00; }
.tsv-news-category[data-cat="gymnastik"]    { background: #ad1457; }
.tsv-news-category[data-cat="kinderturnen"] { background: #6a1b9a; }
.tsv-news-category[data-cat="zumba"]        { background: #c62828; }
.tsv-news-category[data-cat="pickleball"]   { background: #00838f; }
.tsv-news-category[data-cat="darts"]        { background: #5d4037; }
.tsv-news-category[data-cat="wassergymnastik"] { background: #0277bd; }
.tsv-news-category[data-cat="verein"]       { background: var(--tsv-primary); }
.tsv-news-category[data-cat="allgemein"]    { background: #455a64; }
/* News-Category Sport-Logo */
img.tsv-news-cat-logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    bottom: auto !important;
    right: auto !important;
    width: 200px !important;
    max-width: 80%;
    height: auto !important;
    object-fit: contain !important;
    z-index: 10;
    padding: 10px;
    filter: none !important;
    background: none !important;
    border-radius: 0 !important;
}

.tsv-news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tsv-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--tsv-text-muted);
}

.tsv-news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tsv-news-date svg {
    width: 14px;
    height: 14px;
    fill: var(--tsv-text-muted);
}

section.tsv-news-section .tsv-news-grid .tsv-news-card h3.tsv-news-card-title,
section.tsv-news-section .tsv-news-grid .tsv-news-card h3.tsv-news-card-title a,
.tsv-news-grid article.tsv-news-card .tsv-news-card-content h3 a {
    font-size: 1.075rem;
    font-weight: 600;
    color: #0c2941 !important;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.3s ease;
}

section.tsv-news-section .tsv-news-grid .tsv-news-card h3.tsv-news-card-title a:hover,
.tsv-news-grid article.tsv-news-card .tsv-news-card-content h3 a:hover {
    color: #257bc1 !important;
}

.tsv-news-excerpt {
    color: var(--tsv-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tsv-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tsv-primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tsv-news-readmore svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.tsv-news-readmore:hover {
    color: var(--tsv-accent);
}

.tsv-news-readmore:hover svg {
    transform: translateX(5px);
}

.tsv-news-footer {
    text-align: center;
    margin-top: 50px;
}

/* Responsive News Grid */
@media (max-width: 1024px) {
    .tsv-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .tsv-news-section {
        padding: 60px 0;
    }

    .tsv-news-header h2 {
        font-size: 2rem;
    }

    .tsv-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }

    .tsv-news-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .tsv-news-section {
        padding: 40px 0;
    }

    .tsv-news-header {
        margin-bottom: 30px;
    }

    .tsv-news-header h2 {
        font-size: 1.75rem;
    }

    .tsv-news-card-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Sponsoren - Grid & Klapp-Details
   ========================================================================== */

.tsv-sponsor-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tsv-sponsor-section-header {
    margin-bottom: 30px;
}

.tsv-sponsor-section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tsv-primary) !important;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--tsv-primary-light);
    display: inline-block;
}

.tsv-sponsor-section + .tsv-sponsor-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e2e8f0;
}

.tsv-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tsv-sponsor-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid #0c2941;
}

.tsv-sponsor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

/* Logo */
.tsv-sponsor-logo {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
}

.tsv-sponsor-logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hover-Bild Flip */
.tsv-sponsor-logo.has-hover {
    position: relative;
}

.tsv-sponsor-logo.has-hover .tsv-sponsor-logo-front,
.tsv-sponsor-logo.has-hover .tsv-sponsor-logo-back {
    transition: opacity 0.4s ease;
}

.tsv-sponsor-logo.has-hover .tsv-sponsor-logo-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.tsv-sponsor-logo.has-hover:hover .tsv-sponsor-logo-front {
    opacity: 0;
}

.tsv-sponsor-logo.has-hover:hover .tsv-sponsor-logo-back {
    opacity: 1;
}

.tsv-sponsor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tsv-light);
}

.tsv-sponsor-placeholder svg {
    width: 50px;
    height: 50px;
    fill: rgba(12, 41, 65, 0.2);
}

/* Name */
.tsv-sponsor-name {
    padding: 15px 15px 10px;
    width: 100%;
    flex: 1;
}

.tsv-sponsor-name a,
.tsv-sponsor-name span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tsv-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tsv-sponsor-name a:hover {
    color: var(--tsv-primary-light);
}

/* Details-Button (öffnet Modal) */
.tsv-sponsor-toggle {
    background: none !important;
    border: none !important;
    border-top: 1px solid #eef2f7 !important;
    padding: 12px 15px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s ease;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    color: var(--tsv-primary-light) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.tsv-sponsor-toggle:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
    color: var(--tsv-accent) !important;
}

/* ==========================================================================
   Sponsor Modal
   ========================================================================== */

.tsv-sponsor-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tsv-sponsor-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.tsv-sponsor-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 14, 22, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tsv-sponsor-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.tsv-sponsor-modal.is-active .tsv-sponsor-modal-content {
    transform: translateY(0) scale(1);
}

/* Schließen-Button */
.tsv-sponsor-modal-close {
    position: absolute !important;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 70px !important;
    height: 36px !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.tsv-sponsor-modal-close:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    transform: none !important;
    box-shadow: none !important;
}

.tsv-sponsor-modal-close svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* Modal-Header */
.tsv-sponsor-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eef2f7;
}

.tsv-sponsor-modal-logo {
    width: 240px;
    height: 180px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsv-sponsor-modal-logo img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tsv-sponsor-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tsv-primary) !important;
    margin: 0;
}

/* Modal-Body */
.tsv-sponsor-modal-body {
    padding: 25px 30px;
}

.tsv-sponsor-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--tsv-text-dark);
    text-align: left;
}

.tsv-sponsor-detail-row:last-child {
    margin-bottom: 0;
}

.tsv-sponsor-detail-row > svg {
    width: 20px;
    height: 20px;
    fill: var(--tsv-primary-light);
    flex-shrink: 0;
    margin-top: 1px;
}

.tsv-sponsor-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tsv-text-muted);
    margin-bottom: 2px;
}

.tsv-sponsor-detail-row a {
    color: var(--tsv-primary-light);
    text-decoration: none;
    word-break: break-all;
}

.tsv-sponsor-detail-row a:hover {
    color: var(--tsv-accent);
}

/* Modal-Footer */
.tsv-sponsor-modal-footer {
    padding: 0 30px 25px;
    text-align: center;
}

.tsv-sponsor-modal-btn {
    display: inline-block;
    background: var(--tsv-primary-light) !important;
    color: #fff !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: all 0.3s ease !important;
}

.tsv-sponsor-modal-btn:hover {
    background: var(--tsv-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 125, 175, 0.4);
}

/* Body scroll lock */
body.tsv-modal-open {
    overflow: hidden;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .tsv-sponsor-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .tsv-sponsor-modal-header {
        padding: 25px 20px 15px;
    }

    .tsv-sponsor-modal-body {
        padding: 20px;
    }

    .tsv-sponsor-modal-footer {
        padding: 0 20px 20px;
    }
}

/* Responsive: Sponsoren-Grid */
@media (max-width: 1024px) {
    .tsv-sponsor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tsv-sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .tsv-sponsor-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Sponsor-Leiste (Startseite)
   ========================================================================== */

.tsv-sponsor-leiste-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.tsv-sponsor-leiste-header h3 {
    font-size: 1.5rem;
    color: var(--tsv-primary) !important;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Marquee-Container */
.tsv-sponsor-marquee {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tsv-sponsor-marquee-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: tsv-marquee-scroll var(--marquee-speed, 30s) linear infinite;
}

.tsv-sponsor-marquee:hover .tsv-sponsor-marquee-track {
    animation-play-state: paused;
}

@keyframes tsv-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tsv-sponsor-leiste-item {
    flex: 0 0 auto;
}

.tsv-sponsor-leiste-item a {
    display: block;
}

.tsv-sponsor-leiste-item img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.tsv-sponsor-leiste-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.tsv-sponsor-leiste-footer {
    margin-top: 25px;
}

.tsv-sponsor-leiste-link {
    color: var(--tsv-primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.tsv-sponsor-leiste-link:hover {
    color: var(--tsv-accent);
}

@media (max-width: 768px) {
    .tsv-sponsor-marquee-track {
        gap: 30px;
    }

    .tsv-sponsor-leiste-item img {
        max-height: 45px;
    }
}

/* Header-Logo ausblenden */
.custom-logo-link, .site-logo-img { display: none !important; }

/* Home-Icon im Menu */
.menu-item-home a {
    display: flex !important;
    align-items: center;
    padding: 2px 10px !important;
}
.menu-item-home svg {
    color: var(--tsv-text-light);
    transition: all 0.3s ease;
}
.menu-item-home a:hover svg {
    color: #ffffff;
}

/* Menu zentriert */
.main-header-bar .main-header-bar-navigation {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}
.main-header-bar .ast-nav-menu {
    justify-content: center !important;
}

/* Menu zentriert - Astra Override */
.ast-main-header-bar-alignment {
    display: flex !important;
    justify-content: center !important;
}
.site-navigation {
    flex-grow: 0 !important;
}
.main-navigation {
    display: flex !important;
    justify-content: center !important;
}
.main-header-menu {
    justify-content: center !important;
}
.ast-builder-grid-row-layout-default .ast-builder-grid-row {
    justify-content: center !important;
}

/* Menu zentriert - kompletter Override */
.ast-primary-header-bar .site-primary-header-wrap > .ast-builder-grid-row,
.main-header-bar > .ast-container {
    display: flex !important;
    justify-content: center !important;
}
.main-header-bar > .ast-container > .ast-flex {
    justify-content: center !important;
    width: 100% !important;
}
/* Logo-Bereich komplett entfernen (nimmt sonst links Platz) */
.ast-site-identity, .site-branding, .ast-builder-layout-element.ast-header-html-1 {
    display: none !important;
}
/* Navigation volle Breite, zentriert */
.ast-flex-grow-1 {
    flex-grow: 0 !important;
}
.main-header-bar-navigation {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}
#ast-hf-menu-1 {
    justify-content: center !important;
    width: 100% !important;
}


/* Gestapelte Karten (Kontakt + Social Media) */
.sport-card-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sport-card-compact {
    flex: 1;
}

.sport-card-compact .sport-card-header {
    padding: 12px 15px;
}

.sport-card-compact .sport-card-header h3 {
    font-size: 16px;
}

.sport-card-compact .sport-card-body {
    padding: 12px 15px;
}

.sport-card-compact .info-list li {
    padding: 6px 0;
}



/* Mobile: Akkordeon-Stil */
@media (max-width: 900px) {
    .tsv-woche-grid { grid-template-columns: 1fr; gap: 0; }
    .tsv-woche-tag { min-height: auto; border-bottom: 1px solid #e5e7eb; }
    .tsv-woche-tag:last-child { border-bottom: none; }
    .tsv-tag-header { text-align: left; padding: 10px 12px; }
    .tsv-tag-events { padding: 0 12px 10px; }
    .tsv-tag-leer { display: none; }
    .tsv-woche-tag:not(:has(.tsv-woche-event)) { display: none; }
}



@media (max-width: 700px) {
    .tsv-kw-row { flex-direction: column; }
    .tsv-kw-label { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 15px; }
    .tsv-kw-events { flex-direction: column; align-items: stretch; }
    .tsv-kw-event { justify-content: flex-start; }
}


@media (max-width: 600px) {
    .tsv-kw-row { flex-direction: column; }
    .tsv-kw-label { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 12px; }
    .tsv-kw-event { flex-wrap: wrap; gap: 6px; }
    .tsv-kw-tag { min-width: 60px; }
    .tsv-kw-zeit { min-width: auto; }
}



@media (max-width: 600px) {
    .tsv-kw-row { flex-direction: column; }
    .tsv-kw-label { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 12px; }
    .tsv-kw-event { flex-wrap: wrap; gap: 6px; }
    .tsv-kw-tag { min-width: 60px; }
    .tsv-kw-zeit { min-width: auto; }
}




/* alte KW-Grid Media Queries entfernt – jetzt in KW-Grid Terminliste unten */


/* KW-Grid Terminliste - wie Wochenplan */
.tsv-kw-grid-liste { display: flex; flex-direction: column; gap: 20px; }
.tsv-kw-block { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.tsv-kw-block.tsv-kw-aktuell { box-shadow: 0 0 0 2px var(--tsv-primary, #15446b); }
.tsv-kw-block-header { display: flex; align-items: center; gap: 15px; padding: 12px 20px; background: linear-gradient(135deg, #0c2941 0%, #15446b 100%); color: #fff; }
.tsv-kw-nr { font-weight: 700; font-size: 1.1rem; background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 6px; }
.tsv-kw-range { font-size: 0.85rem; opacity: 0.9; }
.tsv-kw-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #e5e7eb; gap: 1px; }
.tsv-kw-day-col { background: #fff; min-height: 80px; display: flex; flex-direction: column; overflow: hidden; }
.tsv-kw-day-col.tsv-kw-leer { background: #fafafa; }
.tsv-kw-day-col.tsv-kw-heute { background: #f0f7ff; }
.tsv-kw-day-head { padding: 8px 10px; font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e5e7eb; text-align: center; }
.tsv-kw-heute .tsv-kw-day-head { background: #15446b; color: #fff; }
.tsv-kw-day-events { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tsv-kw-ev { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: #f5f5f5 !important; color: #222 !important; border: none; border-left: 4px solid #888; border-radius: 6px; cursor: pointer; text-align: left; font-family: inherit; transition: background 0.2s; width: 100%; }
.tsv-kw-ev:hover { background: #ebebeb !important; }
.tsv-kw-ev-time { font-size: 0.7rem; color: #555 !important; font-weight: 500; }
.tsv-kw-ev-title { font-size: 0.8rem; color: #222 !important; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }

@media (max-width: 900px) {
    .tsv-kw-days-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 0.85em; }
    .tsv-kw-day-head { padding: 6px 4px; font-size: 0.65rem; }
    .tsv-kw-day-events { padding: 6px; gap: 4px; }
    .tsv-kw-ev { padding: 6px 8px; }
    .tsv-kw-ev-time { font-size: 0.65rem; }
    .tsv-kw-ev-title { font-size: 0.7rem; }
}
@media (max-width: 600px) {
    .tsv-kw-days-grid { display: flex; flex-direction: column; gap: 0; background: #fff; }
    .tsv-kw-day-col { min-height: auto; border-bottom: 1px solid #e5e7eb; }
    .tsv-kw-day-col:last-child { border-bottom: none; }
    .tsv-kw-day-col.tsv-kw-leer { display: none; }
    .tsv-kw-day-head { text-align: left; padding: 10px 12px; }
}

