/*
Theme Name: TuS Sörgenloch
Theme URI: https://www.tus-soergenloch.de
Author: TuS Sörgenloch 1953 e.V.
Description: Vereinswebseite TuS Sörgenloch
Version: 1.2.6
Text Domain: tus-soergenloch
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
    --color-primary:     #1a3a2a;   /* Dunkelgrün */
    --color-secondary:   #2d6a4f;   /* Mittelgrün */
    --color-accent:      #e8c84a;   /* Gold */
    --color-bg:          #f8f7f2;   /* Warmweiß */
    --color-bg-alt:      #eef0eb;   /* Leicht getönter Hintergrund */
    --color-bg-dark:     #111c16;
    --color-text:        #1e2d25;
    --color-text-light:  #5a7060;
    --color-border:      #d4dbd6;
    --color-white:       #ffffff;

    --font-display:      'Playfair Display', Georgia, serif;
    --font-body:         'Source Sans 3', 'Helvetica Neue', sans-serif;

    --space-xs:   0.5rem;
    --space-sm:   1rem;
    --space-md:   2rem;
    --space-lg:   4rem;
    --space-xl:   8rem;

    --max-width:  1200px;
    --radius:      6px;
    --radius-card: 14px;
    --radius-pill: 50px;
    --transition:  0.25s ease;
    --shadow-card: 0 2px 12px rgba(26,58,42,0.08);
    --shadow-hover: 0 16px 40px rgba(26,58,42,0.16);
}

/* =========================================================
   ANKÜNDIGUNGS-BANNER
   ========================================================= */
.site-banner {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 200;
}
.site-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.site-banner--info    { background: #1a5f8a; color: #fff; }
.site-banner--warning { background: var(--color-accent); color: var(--color-primary); }
.site-banner--success { background: #2d6a4f; color: #fff; }
.site-banner a        { color: inherit; text-decoration: underline; }
.site-banner__close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.1rem 0.3rem;
    flex-shrink: 0;
}
.site-banner__close:hover { opacity: 1; }

/* =========================================================
   DARK MODE
   ========================================================= */
[data-theme="dark"] {
    --color-bg:         #0d1810;
    --color-text:       #ddeee3;
    --color-text-light: #a8ccb4;   /* deutlich heller für Lesbarkeit */
    --color-border:     #2d4a38;
    --color-white:      #1a2e22;   /* Karten-Hintergrund */
    --color-secondary:  #5fbc82;   /* Links: helles Grün statt dunkles */
    --color-accent-light: #152e1a; /* Hinweis-Boxen Hintergrund */
    --color-bg-alt:       #111e16; /* Leicht getönter Hintergrund */
}
[data-theme="dark"] .notice--success { color: var(--color-text) !important; }
[data-theme="dark"] .notice--warning { background: #2a1f08 !important; border-color: #8a6820 !important; color: var(--color-text) !important; }

/* ── Basis ── */
[data-theme="dark"] body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ── Überschriften: Primary-Dunkelgrün → Gold ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--color-accent);
}

/* ── Links ── */
[data-theme="dark"] a                   { color: var(--color-secondary); }
[data-theme="dark"] a:hover             { color: var(--color-accent); }

/* ── Sections ── */
[data-theme="dark"] .section--gray      { background-color: #111e16; }
[data-theme="dark"] .section--dark      { background-color: #0a1410; }
[data-theme="dark"] .page-header        { background-color: #091310; }

/* ── Cards ── */
[data-theme="dark"] .card {
    background: var(--color-white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
[data-theme="dark"] .card__title,
[data-theme="dark"] .card h3            { color: var(--color-accent); }
[data-theme="dark"] .card p,
[data-theme="dark"] .card li            { color: var(--color-text); }
[data-theme="dark"] .card__role         { color: var(--color-text-light); }

/* ── News-Cards ── */
[data-theme="dark"] .news-card          { background: var(--color-white); }
[data-theme="dark"] .news-card__title   { color: var(--color-accent); }
[data-theme="dark"] .news-card__meta,
[data-theme="dark"] .news-card__excerpt { color: var(--color-text-light); }
[data-theme="dark"] .news-card__link    { color: var(--color-secondary); }
[data-theme="dark"] .news-card:hover .news-card__link { color: var(--color-accent); }

/* ── Section-Header Label (war --color-secondary dunkelgrün) ── */
[data-theme="dark"] .section-header__label { color: var(--color-accent); opacity: 0.75; }
[data-theme="dark"] .section--dark .section-header__label { color: var(--color-accent); opacity: 1; }

/* ── Texte in entry-content ── */
[data-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li  { color: var(--color-text); }
[data-theme="dark"] .entry-content h3  { color: var(--color-accent); }

/* ── Page-Header ── */
[data-theme="dark"] .page-header                { color: #ddeee3; }
[data-theme="dark"] .page-header h1             { color: var(--color-accent); }
[data-theme="dark"] .page-header__breadcrumb    { color: rgba(221,238,227,0.55); }
[data-theme="dark"] .page-header__booking-cta   { color: #1a3a2a; }
[data-theme="dark"] .schnupper-box__text strong { color: var(--color-accent); }

/* ── Hero (immer dunkler Hintergrund, Text muss hell bleiben) ── */
[data-theme="dark"] .hero           { color: #ddeee3; }
[data-theme="dark"] .hero h1        { color: var(--color-accent); }   /* Gold = einheitlich */
[data-theme="dark"] .hero__eyebrow  { color: var(--color-accent); }
[data-theme="dark"] .hero__lead     { color: rgba(221,238,227,0.8); }

/* ── Navigation: main-nav a overrides --color-white which is dark in dark mode ── */
[data-theme="dark"] .main-nav a           { color: var(--color-text); }
[data-theme="dark"] .main-nav a:hover     { color: var(--color-accent); }
[data-theme="dark"] .main-nav > ul > li.current-menu-item > a,
[data-theme="dark"] .main-nav > ul > li.current-page-ancestor > a { color: var(--color-accent); }
[data-theme="dark"] .main-nav ul ul       { background: #1a3228; }
[data-theme="dark"] .main-nav ul ul a     { color: var(--color-text); }
[data-theme="dark"] .main-nav ul ul a:hover { color: var(--color-accent); }
/* Mobile open menu */
[data-theme="dark"] .main-nav.is-open > ul > li > a { color: var(--color-text); }
[data-theme="dark"] .main-nav.is-open ul ul a        { color: var(--color-text-light); }

/* ── Tabellen ── */
[data-theme="dark"] .wp-table          { color: var(--color-text); }
[data-theme="dark"] .wp-table thead tr { background-color: #1a3a2a; }
[data-theme="dark"] .wp-table th       { background-color: #1a3a2a; color: #ddeee3; }
/* Target td directly to beat the light-mode .wp-table tr:nth-child(even) td rule */
[data-theme="dark"] .wp-table tr:nth-child(even) td { background: #111e16; }
[data-theme="dark"] .wp-table tr:nth-child(odd)  td { background: var(--color-bg); }
[data-theme="dark"] .wp-table td       { color: var(--color-text); border-bottom-color: var(--color-border); }
[data-theme="dark"] .tz-day-group td   { color: var(--color-accent); border-top-color: transparent; background: rgba(232,200,74,0.1) !important; }

/* Mobile responsive table – Karten-Layout im Dark Mode ── */
/* Karte selbst */
[data-theme="dark"] .wp-table--responsive tr       { background: #1a2e22; border-color: #2d4a38; }
/* Alle Zellen: einheitlicher Hintergrund (kein Zebrastreifen in der Karte) */
[data-theme="dark"] .wp-table--responsive td        { background: #1a2e22 !important; border-bottom-color: #2d4a38; color: var(--color-text); }
/* Spalten-Label (::before) → Gold für guten Kontrast */
[data-theme="dark"] .wp-table--responsive td::before { color: var(--color-accent) !important; opacity: 0.8; }
/* Erster td = Karten-Header → etwas dunkler absetzen */
[data-theme="dark"] .wp-table--responsive tr:not(.tz-day-group) td:first-child { background: #152819 !important; color: #ddeee3; }
[data-theme="dark"] .wp-table--responsive tr:not(.tz-day-group) td:first-child a { color: var(--color-accent); }

/* ── Formulare ── */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #152419;
    color: var(--color-text);
    border-color: var(--color-border);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--color-text-light); }
[data-theme="dark"] label { color: var(--color-text); }

/* ── Buttons ── */
/* btn--primary: Gold-Hintergrund → dunkles Grün als Text bleibt (Kontrast sehr gut) */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--primary:hover       { color: var(--color-primary) !important; }
[data-theme="dark"] .btn--outline {
    color: var(--color-text);
    border-color: var(--color-text-light);
}
[data-theme="dark"] .btn--green {
    background-color: #2a6b45;
    color: #fff;
}
[data-theme="dark"] .btn--green:hover { background-color: #35885a; }

/* ── Downloads ── */
[data-theme="dark"] .dl-item          { color: var(--color-text); }
[data-theme="dark"] .dl-item:hover    { background: #1a2e22; color: var(--color-accent); }
[data-theme="dark"] .download-link    { color: var(--color-secondary); }

/* ── Accordion (Aktuelles) ── */
[data-theme="dark"] .accordion-item                          { border-bottom-color: var(--color-border); }
[data-theme="dark"] .accordion-item__header                  { background: var(--color-white); color: var(--color-text); }
[data-theme="dark"] .accordion-item__header:hover            { background: #1f3828; }
[data-theme="dark"] .accordion-item__header[aria-expanded="true"] { background: #1a3228; border-bottom-color: var(--color-border); }
[data-theme="dark"] .accordion-item__title                   { color: var(--color-accent); }
[data-theme="dark"] .accordion-item__body                    { background: var(--color-white); }
[data-theme="dark"] .accordion-item__footer                  { border-top-color: var(--color-border); }
/* Inline-Farben aus importierten Beiträgen überschreiben */
[data-theme="dark"] .entry-content *    {
    color: var(--color-text) !important;
    background-color: transparent !important;
}
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4   { color: var(--color-accent) !important; }
[data-theme="dark"] .entry-content a           { color: var(--color-secondary) !important; }
[data-theme="dark"] .entry-content a.btn       { color: var(--color-primary) !important; background-color: var(--color-accent) !important; }
[data-theme="dark"] .entry-content a.btn:hover { background-color: #f5dd6a !important; }
[data-theme="dark"] .kurs-form__field label        { color: var(--color-text); }
[data-theme="dark"] .entry-content blockquote      { background: #152419; color: var(--color-text); }
[data-theme="dark"] .tz-table .tz-row.is-even td  { background: #111e16 !important; }
[data-theme="dark"] .kurs-form__field input,
[data-theme="dark"] .kurs-form__field select,
[data-theme="dark"] .kurs-form__field textarea {
    background: #152419;
    color: var(--color-text);
    border-color: var(--color-border);
}

/* ── Divider / Borders ── */
[data-theme="dark"] hr,
[data-theme="dark"] .section-header__line { background-color: var(--color-border); }

/* ── Header / Logo / Nav-Utilities (sitzen auf dunklem Header-Bg) ── */
[data-theme="dark"] .site-logo__name          { color: #ddeee3; }
[data-theme="dark"] .menu-toggle              { color: #ddeee3; }
/* GTranslate: immer auf dunklem Header – Text hell halten */
[data-theme="dark"] .gtranslate_wrapper .gt-current-lang { color: #ddeee3 !important; }
[data-theme="dark"] .gtranslate_wrapper .gt_option a     { color: #ddeee3 !important; }

/* ── section--dark Inhalte: --color-white als Textfarbe → hell ── */
[data-theme="dark"] .section--dark            { color: #ddeee3; }
[data-theme="dark"] .section--dark p,
[data-theme="dark"] .section--dark li         { color: #a8ccb4; }

/* ── Footer Logo-Name (dunkles Footer-Bg) ── */
[data-theme="dark"] .site-footer__brand .site-logo__name { color: #ddeee3; }

/* ── Mobile Tabellen-Zeilenheader (dunkelgrüner Bg) ── */
[data-theme="dark"] .wp-table--responsive tr:not(.tz-day-group) td:first-child       { color: #ddeee3; }
[data-theme="dark"] .wp-table--responsive tr:not(.tz-day-group) td:first-child a     { color: var(--color-accent); }

/* ── Download-Gruppenüberschriften ── */
[data-theme="dark"] .dl-group__title          { color: #ddeee3; }

/* ── Aktuelles-Filterleiste ── */
[data-theme="dark"] .aktuelles-filter         { background: #111e16; border-color: var(--color-border); }
[data-theme="dark"] .aktuelles-filter__label  { color: var(--color-text-light); }
[data-theme="dark"] .aktuelles-filter__select { background: #1a2e22; color: var(--color-text); border-color: var(--color-border); }

/* ── Filter-Buttons (inaktiv: var(--color-white) bg wird dunkel; aktiv: var(--color-primary) bg) ── */
[data-theme="dark"] .filter-btn               { background: #1e3526; border-color: #3a5c46; color: var(--color-text); }
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active        { background: #2d6a4f; border-color: #2d6a4f; color: #ffffff; }

/* ── Scroll-to-top Button ── */
[data-theme="dark"] .scroll-top               { color: var(--color-accent); }

/* ── Mobile Bottom-Bar ── */
[data-theme="dark"] .mobile-bottom-bar__item  { color: rgba(221,238,227,0.75); }
[data-theme="dark"] .mobile-bottom-bar__item:hover,
[data-theme="dark"] .mobile-bottom-bar__item.is-active { color: var(--color-accent); }

/* ── Site-Banner Links ── */
[data-theme="dark"] .site-banner a            { color: rgba(255,255,255,0.9); }

/* ── Alle Text-Stellen die var(--color-primary) als Textfarbe verwenden ─────
   In light mode: Dunkelgrün auf hellem Grund = gut
   In dark mode:  Dunkelgrün auf dunklem Grund = unsichtbar → Sekundärgrün oder Gold
   ─────────────────────────────────────────────────────────────────────────── */

/* a:hover – Gold statt dunklem Grün */
[data-theme="dark"] a:hover                    { color: var(--color-accent); }

/* Karten-Titel (nicht schon explizit gehandhabt) */
[data-theme="dark"] .card__title               { color: var(--color-accent); }
[data-theme="dark"] .news-card__title          { color: var(--color-accent); }

/* Termine / Kalender */
[data-theme="dark"] .termine-month__title      { color: var(--color-accent); }
[data-theme="dark"] .termin-card__title        { color: var(--color-accent); }
[data-theme="dark"] .termin-card__meta         { color: var(--color-text-light); }

/* Kurs-Einträge */
[data-theme="dark"] .kurs-eintrag__title       { color: var(--color-accent); }
[data-theme="dark"] .kurs-eintrag__table td:first-child { color: var(--color-text-light); }
[data-theme="dark"] .kurs-cta-banner__title    { color: var(--color-accent); }
[data-theme="dark"] .kurs-cta-card strong      { color: var(--color-text); }

/* Historie */
[data-theme="dark"] .historie-card__title      { color: var(--color-accent); }

/* Kommentare */
[data-theme="dark"] .comment-author            { color: var(--color-text); }

/* Download-Hover: dl-item bekommt #1a2e22 bg → dunkler text unsichtbar */
[data-theme="dark"] .dl-item:hover             { background: #2d4a38; color: var(--color-text); }
[data-theme="dark"] .download-link:hover       { color: var(--color-accent); }

/* tz-day-group im mobilen Card-Layout: gold bg + dunkelgrüner Text = Kontrast OK */
[data-theme="dark"] .wp-table--responsive tr.tz-day-group td { background: var(--color-accent) !important; color: var(--color-primary) !important; }

/* Dark Mode Toggle Button (footer context – inherits footer link style) */
.dark-mode-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    line-height: inherit;
    transition: color var(--transition);
    vertical-align: baseline;
}
.dark-mode-toggle:hover { color: var(--color-accent); }

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Skip-Link (Barrierefreiheit + SEO) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Hexen Intro ────────────────────────────────────────────────────────────── */
.hexen-intro {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.hexen-intro__text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}
.hexen-intro__foto {
    flex: 0 0 38%;
    max-width: 420px;
}
.hexen-intro__foto img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .hexen-intro {
        flex-direction: column;
    }
    .hexen-intro__foto {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

/* ── KidsClub Intro-Layout ──────────────────────────────────────────────────── */
.kidsclub-intro {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.kidsclub-intro__text {
    flex: 1;
}
.kidsclub-intro__logo {
    flex: 0 0 36%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kidsclub-intro__logo img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 600px) {
    .kidsclub-intro {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .kidsclub-intro__logo {
        flex: none;
        width: 160px;
    }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.4rem; margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.container--wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-lg) 0;
}

.section--dark {
    background-color: var(--color-primary);
    background-image: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(45,106,79,0.6) 0%, transparent 70%);
    color: var(--color-white);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-prices {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.cta-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.cta-price__amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.cta-price__label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-accent);
}

.section--gray {
    background-color: #eef0eb;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
    background-color: rgba(26, 58, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.2);
    /* needed for mobile nav dropdown */
    overflow: visible;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__wappen {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.site-logo__sub {
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Header Utils (Sprachschalter + Dark Mode) */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Hauptnavigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.main-nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-page-ancestor > a {
    color: var(--color-accent);
    border-bottom-color: transparent;
}

/* Dropdown */
.main-nav li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary);
    border-top: none;
    margin-top: 6px;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 0.5rem;
}

/* Unsichtbare Brücke über dem Dropdown damit Hover nicht abbricht */
.main-nav ul ul::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.main-nav li:hover > ul {
    display: flex;
}

/* Parent-Link auch bei offenem Dropdown klickbar halten */
.main-nav li:has(> ul) > a {
    pointer-events: all;
}

/* Eltern-Items: Gold-Unterlinie nur beim Hover */
.main-nav > ul > li:has(> ul) > a:hover {
    border-bottom-color: var(--color-accent);
}

.main-nav ul ul a {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.75rem;
    border-bottom: none;
    border-left: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.main-nav ul ul a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-accent);
}

.nav-subtitle {
    font-size: 0.72rem;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.main-nav ul ul a:hover .nav-subtitle {
    opacity: 0.85;
}

/* KidsClub als Orange-Pill */
.main-nav ul ul li.nav-separator-above > a {
    display: inline-flex !important;
    flex-direction: column !important;
    background: rgba(240, 140, 0, 0.22) !important;
    color: #f5a000 !important;
    border-radius: 20px !important;
    padding: 4px 14px !important;
    margin: 4px 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    border-top: none !important;
    transition: background 0.2s, color 0.2s;
}
.main-nav ul ul li.nav-separator-above > a:hover {
    background: rgba(240, 140, 0, 0.45) !important;
    color: #fff !important;
}

/* Mega-Menu-Elternelement */
.main-nav .has-mega-menu > a {
    border-bottom-width: 2px;
}

/* ── Mega-Menu (Sportangebote Desktop) ──────────────────────────── */
.main-nav .has-mega-menu > ul {
    min-width: 480px;
    padding: 0.75rem;
    gap: 0.15rem;
}

.main-nav .has-mega-menu:hover > ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.main-nav .has-mega-menu > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    border-left: none;
    font-size: 0.9rem;
    white-space: normal;
    transition: background var(--transition), color var(--transition);
}

.main-nav .has-mega-menu > ul > li > a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-accent);
    border-left: none;
    padding-left: 0.75rem;
}

.nav-sport-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

/* ── GTranslate Sprachschalter ──────────────────────────────────── */
.gtranslate_wrapper {
    display: flex;
    align-items: center;
}

/* Switcher-Stil: aktuell gewählte Sprache */
/* Plugin-JS setzt width ohne !important → unsere Regel gewinnt */
.gtranslate_wrapper .gt_switcher_wrapper,
.gtranslate_wrapper .gt_switcher {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    width: 42px !important;
    min-width: 42px !important;
    overflow: visible !important;
}

/* Ausgewählte Sprache: nur Flagge, kein Text, kein Rahmen, kein Pfeil */
.gtranslate_wrapper .gt_switcher .gt_selected {
    width: 42px !important;
    background: none !important;
}
.gtranslate_wrapper .gt_switcher .gt_selected a {
    width: 34px !important;
    min-width: 0 !important;
    padding: 2px 4px !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0 !important;        /* Sprachname ausblenden */
    line-height: 0 !important;
}
.gtranslate_wrapper .gt_switcher .gt_selected a img {
    width: 24px !important;
    height: 24px !important;
}
.gtranslate_wrapper .gt_switcher .gt_selected a::after {
    display: none !important;       /* Pfeil-Icon ausblenden */
}

/* Dropdown: kompakt, nur Fahnen */
.gtranslate_wrapper .gt_switcher .gt_option {
    width: 44px !important;
    min-width: 0 !important;
    right: 0 !important;
    left: auto !important;
}
.gtranslate_wrapper .gt_switcher .gt_option a {
    font-size: 0 !important;        /* Sprachnamen im Dropdown ausblenden */
    padding: 4px !important;
    display: flex !important;
    justify-content: center !important;
}
.gtranslate_wrapper .gt_switcher .gt_option a img {
    width: 24px !important;
    height: 24px !important;
}

.gtranslate_wrapper .gt_current_lang,
.gtranslate_wrapper .gt-current-lang {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: var(--color-white) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0.3rem 0 !important;   /* gleicher Abstand wie nav-Links → Strich hat Luft */
    background: none !important;
    border: none !important;
    border-bottom: none !important;
    white-space: nowrap;
}

.gtranslate_wrapper .gt_current_lang:hover,
.gtranslate_wrapper .gt-current-lang:hover {
    color: var(--color-accent) !important;
    border-bottom: none !important;
}

/* Nav-border-bottom von GTranslate-Links fernhalten */
.gtranslate_wrapper a,
.gtranslate_wrapper a:hover {
    border-bottom: none !important;
}

/* Dropdown-Hintergrund – nur sichtbar wenn geöffnet */
.gtranslate_wrapper .gt_switcher .gt_option {
    background: rgba(26, 58, 42, 0.97) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

.gtranslate_wrapper .gt_switcher .gt_option a:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* Mobil: im ausgeklappten Menü */
@media (max-width: 768px) {
    .gtranslate_wrapper {
        padding: 0.75rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-accent);
    color: var(--color-white);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: var(--radius);
    line-height: 1;
}

/* Submenu toggle button (mobiler Pfeil) */
.submenu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.submenu-toggle span {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background-color: var(--color-bg-dark);
    background-image:
        linear-gradient(160deg, rgba(10,25,16,0.88) 0%, rgba(26,58,42,0.80) 100%),
        var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: var(--space-xl) 0 calc(var(--space-xl) + var(--space-md));
    position: relative;
    overflow: hidden;
}


.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.hero__lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: var(--space-md);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.hero__stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding-top: var(--space-md);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn--primary:hover {
    background-color: #f5dd6a;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,200,74,0.35);
}

.btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--green {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn--green:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,58,42,0.25);
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

/* Kompakte Card-Variante für Info-/Listen-Inhalte */
.card--compact {
    padding: 1.1rem 1.25rem;
}

.card--compact .card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
}

.card--compact .card__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card--compact p {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
}

.card--compact p:last-child {
    margin-bottom: 0;
}

/* Personen-Karte mit Foto-Platzhalter */
.card--person {
    align-items: center;
    text-align: center;
}

.card__photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0;
    flex-shrink: 0;
}

.card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}
.card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card--person .card__title {
    margin-bottom: 0.15rem;
}

.card__role {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin: 0;
}

/* Bulletpoints in Cards einrücken */
.card ul, .card ol {
    padding-left: 1.25rem;
    margin: 0.4rem 0 0.5rem;
}
.card li {
    margin-bottom: 0.2rem;
}

.card--compact ul {
    gap: 0.35rem !important;
}

.card--cta {
    background: linear-gradient(135deg, #eef2ee 0%, #e4ece6 100%);
    border-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
}

.card--cta .card__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c9a82e 100%);
    font-size: 1.2rem;
}

/* =========================================================
   NEWS / POSTS
   ========================================================= */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.news-card__image {
    aspect-ratio: 16 / 9;
    background-color: var(--color-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.04);
}

.news-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__meta {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.news-card__excerpt {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    flex: 1;
}

.news-card__link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    transition: gap var(--transition), color var(--transition);
}

.news-card__link::after {
    content: '→';
    transition: transform var(--transition);
}

.news-card:hover .news-card__link {
    color: var(--color-primary);
}

.news-card:hover .news-card__link::after {
    transform: translateX(3px);
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
    margin-bottom: var(--space-lg);
}

.section-header--center {
    text-align: center;
}

.section-header__label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section--dark .section-header__label {
    color: var(--color-accent);
}

.section-header__line {
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 0.75rem;
}

.section-header--center .section-header__line {
    margin: 0.75rem auto 0;
}

/* =========================================================
   TABLE (Trainingszeiten etc.)
   ========================================================= */
.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.wp-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.wp-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.wp-table tr:nth-child(even) td {
    background: #f0f2ee;
}

/* =========================================================
   PAGE CONTENT (WP Editor output)
   ========================================================= */
/* Inline-Schriftarten aus importierten Beiträgen überschreiben */
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content span,
.entry-content div { font-family: var(--font-body) !important; font-size: inherit !important; }
.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4  { font-family: var(--font-display) !important; font-size: revert !important; }

.entry-content h2 { margin-top: var(--space-md); }
.entry-content h3 { margin-top: var(--space-md); color: var(--color-secondary); }
.entry-content ul, .entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}
.entry-content li { margin-bottom: 0.25rem; }
/* Post-Navigation (Vorheriger / Nächster Beitrag) */
.post-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.post-nav__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 45%;
    min-width: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background var(--transition), border-color var(--transition);
    overflow: hidden;
}
.post-nav__item:hover {
    background: var(--color-bg-light);
    border-color: var(--color-secondary);
}
.post-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}
.post-nav__arrow {
    color: var(--color-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.post-nav__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 600px) {
    .post-nav__item {
        flex: 1 1 100%;
    }
    .post-nav__item--next {
        justify-content: flex-start;
        text-align: left;
    }
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--space-sm) var(--space-md);
    background: #f0f2ee;
    font-style: italic;
    margin: var(--space-md) 0;
}

/* =========================================================
   PAGE HEADER (Unterseiten)
   ========================================================= */
.page-header {
    background-color: var(--color-primary);
    background-image:
        linear-gradient(160deg, rgba(10,25,16,0.65) 0%, rgba(26,58,42,0.55) 100%),
        var(--page-bg, none);
    background-size: cover;
    background-position: center;
    padding: var(--space-lg) 0 var(--space-md);
    color: var(--color-white);
}

.page-header h1 {
    color: var(--color-white);
}

.page-header__breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-xs);
}

.page-header__breadcrumb a {
    color: var(--color-accent);
}
.page-header__with-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header__booking-cta {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--color-accent);
    color: #1a3a2a;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: 2rem;
    font-size: .9rem;
    line-height: 1.3;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.page-header__booking-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.page-header__booking-cta strong { display: block; font-weight: 700; }
.page-header__booking-cta small  { display: block; font-size: .78rem; opacity: .75; }
.page-header__booking-cta-icon   { font-size: 1.5rem; line-height: 1; }

/* =========================================================
   SÖRGENBEACH TEASER
   ========================================================= */
.beach-teaser {
    background: linear-gradient(90deg, #0d1f2b 0%, #0d2b1f 100%);
    border-top: 2px solid rgba(255,255,255,.12);
    border-bottom: 2px solid var(--color-accent);
    padding: 1rem 0;
}
.beach-teaser .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.beach-teaser__meta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.beach-teaser__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent, #e8b84b);
    white-space: nowrap;
}
.beach-teaser__text { color: rgba(255,255,255,.85); flex: 1; min-width: 200px; font-size: .95rem; }
.beach-teaser__btn { flex-shrink: 0; white-space: nowrap; }

/* Pulse-Punkt vor dem Text */
.beach-teaser__pulse {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,.3);
}
/* Zustands-Farben */
.beach-teaser--live    { border-top-color: #50c878; background: linear-gradient(90deg, #0a2e18 0%, #0d3d1e 100%); }
.beach-teaser--live    .beach-teaser__pulse { background: #50c878; animation: pulse-live 1.4s ease-in-out infinite; }
.beach-teaser--community { border-top-color: #50c878; background: linear-gradient(90deg, #0a2e18 0%, #0d3d1e 100%); }
.beach-teaser--community .beach-teaser__pulse { background: #50c878; animation: pulse-live 1.4s ease-in-out infinite; }
.beach-teaser--social  { border-top-color: #e8b84b; background: linear-gradient(90deg, #1f1600 0%, #2b1e00 100%); }
.beach-teaser--social  .beach-teaser__pulse { background: #e8b84b; animation: pulse-live 2s ease-in-out infinite; }
.beach-teaser--training { border-top-color: #7b9ef0; }
.beach-teaser--training .beach-teaser__pulse { background: #7b9ef0; }
.beach-teaser--free    { border-top-color: var(--color-accent, #e8b84b); }
.beach-teaser--free    .beach-teaser__pulse { background: var(--color-accent, #e8b84b); }
.beach-teaser--full    .beach-teaser__pulse { background: rgba(255,255,255,.2); }

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(80,200,120,.6); }
    50%       { box-shadow: 0 0 0 6px rgba(80,200,120,0); }
}


/* =========================================================
   BEACH-BUCHUNG VERFÜGBARKEIT
   ========================================================= */
.beach-avail {
    max-width: 100%;
    margin: 0 0 var(--space-md);
}

.beach-avail__heading {
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    margin-bottom: .6rem;
}

/* ── Desktop: Karten-Layout ─────────────────────────────── */
.beach-avail__cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .4rem;
}
.beach-avail__day {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .5rem;
    padding: .5rem .35rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.beach-avail__day--full { opacity: .5; }
.beach-avail__day--today { border-color: rgba(255,255,255,.28); }
.beach-avail__day--today .beach-avail__weekday { color: #fff; }
.beach-avail__day--focus { border-color: rgba(232,184,75,.55); box-shadow: 0 0 0 1px rgba(232,184,75,.25); }
.beach-avail__day--focus .beach-avail__weekday { color: #e8b84b; }
/* Focus-Jump Lücke (Desktop) */
.beach-avail__gap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    min-width: 20px;
    border-left: 1px dashed rgba(255,255,255,.18);
    border-right: 1px dashed rgba(255,255,255,.18);
}
.beach-avail__gap-label {
    font-size: .58rem;
    line-height: 1.3;
    color: rgba(255,255,255,.32);
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: .04em;
    white-space: nowrap;
}
.beach-avail__day-label { display: flex; flex-direction: column; gap: .1rem; }
.beach-avail__slots { display: flex; flex-direction: column; gap: .2rem; margin: .25rem 0; }
.beach-avail__slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem .45rem;
    border-radius: .3rem;
    font-size: .65rem;
    min-height: 40px;
}
.beach-avail__slot--free    { background: rgba(50,200,80,.18); }
.beach-avail__slot--taken   { background: rgba(200,50,50,.22); }
.beach-avail__slot--blocked { background: rgba(90,120,220,.22); }
.beach-avail__slot--past    { background: rgba(255,255,255,.04); opacity: .4; }
.beach-avail__slot--clickable { cursor: pointer; transition: background .15s; }
.beach-avail__slot--clickable:hover { background: rgba(50,200,80,.38); }
.beach-avail__slot--clickable:focus-visible { outline: 2px solid var(--color-accent); }
.beach-avail__slot-time { color: rgba(255,255,255,.6); font-size: .9rem; }
.beach-avail__slot-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.beach-avail__slot--free    .beach-avail__slot-dot { background: #4dc87a; }
.beach-avail__slot--taken   .beach-avail__slot-dot { background: #e05555; }
.beach-avail__slot--blocked .beach-avail__slot-dot { background: #7b9ef0; }
.beach-avail__slot--social { background: rgba(232,184,75,.15); }
.beach-avail__slot--social .beach-avail__slot-dot { background: #e8b84b; }
.beach-avail__slot-social-icon { font-size: .68rem; line-height: 1; }
.beach-avail__cell--social { border-left: 2px solid rgba(232,184,75,.55); }
.beach-avail__slot--community {
    background: rgba(0,188,212,.1);
    border: 1px dashed rgba(0,188,212,.45);
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .05rem;
    position: relative;
    overflow: visible;
}
.beach-avail__slot--community .beach-avail__slot-time {
    font-weight: 600;
    color: rgba(255,255,255,.8);
}
.beach-avail__cell--community {
    background: rgba(0,188,212,.12);
    border: 1px dashed rgba(0,188,212,.4);
    position: relative;
    cursor: pointer;
    overflow: visible;
}
.beach-avail__cell--community::after {
    content: '🏐';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
}
.beach-avail__free-count { font-size: .75rem; color: #0f2318; background: #4dc87a; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; display: inline-block; line-height: 1.4; }
.beach-avail__free-count--full { color: rgba(255,255,255,.3); font-weight: 400; font-size: .8rem; }

/* ── Mobil: Heatmap-Matrix (sichtbar via Media Query am Ende des Blocks) ─── */
.beach-avail__table {
    display: none;
    gap: 0;
    align-items: stretch;
}

/* Feste Zeitspalte links ───────────────────────────────── */
.beach-avail__timecol {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 36px;
    padding-right: 4px;
}
.beach-avail__timecol-header { height: 38px; flex-shrink: 0; }
.beach-avail__timecol-footer { height: 24px; flex-shrink: 0; }
.beach-avail__timelabel {
    height: 20px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: .58rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.3);
    flex-shrink: 0;
    letter-spacing: -.01em;
}

/* Scrollbare Tagesspalten ──────────────────────────────── */
.beach-avail__dayscroll {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding-bottom: 4px;
    /* Scrollbar unsichtbar aber funktional */
    scrollbar-width: none;
}
.beach-avail__dayscroll::-webkit-scrollbar { display: none; }

/* Eine Tagesspalte ─────────────────────────────────────── */
.beach-avail__daycol {
    flex: 1 1 0;
    min-width: 52px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: .4rem;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    transition: background .2s;
}
/* Heute: leicht hervorgehoben */
.beach-avail__daycol--today {
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
/* Fokus-Tag */
.beach-avail__daycol--focus {
    background: rgba(232,184,75,.1);
    box-shadow: inset 0 0 0 1px rgba(232,184,75,.3);
}
.beach-avail__daycol--focus .beach-avail__weekday { color: #e8b84b; }
/* Focus-Jump Lücke (Mobil) */
.beach-avail__gap-col {
    flex: 0 0 18px;
    min-width: 18px;
    display: flex;
    align-items: stretch;
    border-left: 1px dashed rgba(255,255,255,.15);
    border-right: 1px dashed rgba(255,255,255,.15);
}
.beach-avail__gap-col-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.beach-avail__gap-col-label {
    font-size: .52rem;
    color: rgba(255,255,255,.3);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Tag-Header */
.beach-avail__daycol-header {
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 0;
    padding: 0 2px;
}
.beach-avail__weekday {
    font-size: .75rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1;
}
.beach-avail__daycol--today .beach-avail__weekday { color: #fff; }
.beach-avail__date {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    line-height: 1;
}

/* Zellen-Bereich: Padding erzeugt den Abstand */
.beach-avail__daycol-cells {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px 3px 0;
    flex: 1;
}

/* Einzelne Zelle */
.beach-avail__cell {
    height: 28px;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: transform .12s ease, filter .12s ease;
}
.beach-avail__cell--free {
    background: linear-gradient(135deg, rgba(60,210,90,.55) 0%, rgba(40,170,70,.35) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.beach-avail__cell--taken {
    background: linear-gradient(135deg, rgba(210,60,60,.5) 0%, rgba(160,40,40,.3) 100%);
}
.beach-avail__cell--blocked {
    background: linear-gradient(135deg, rgba(100,130,230,.45) 0%, rgba(70,100,200,.28) 100%);
}
.beach-avail__cell--past {
    background: rgba(255,255,255,.06);
}
.beach-avail__cell--clickable {
    cursor: pointer;
}
.beach-avail__cell--clickable:hover {
    transform: scaleY(1.08);
    filter: brightness(1.4);
}
.beach-avail__cell--clickable:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

/* Tag-Footer: Pill-Badge */
.beach-avail__daycol-footer {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px 3px;
    flex-shrink: 0;
}
.beach-avail__free-count {
    font-size: .55rem;
    font-weight: 700;
    color: #0f2318;
    background: #4dc87a;
    border-radius: 999px;
    padding: 1px 5px;
    white-space: nowrap;
    line-height: 1.6;
}
.beach-avail__free-count--full {
    color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.05);
    font-weight: 400;
}

/* Legende ──────────────────────────────────────────────── */
.beach-avail__legend {
    display: flex;
    gap: .85rem;
    margin-top: .65rem;
    font-size: .68rem;
    color: rgba(255,255,255,.38);
    align-items: center;
    flex-wrap: wrap;
}
.beach-avail__hint {
    margin: .5rem 0 0;
    font-size: .75rem;
    color: rgba(255,255,255,.3);
    line-height: 1.5;
}
.beach-avail__hint strong { color: rgba(0,188,212,.7); font-weight: 600; }
.beach-avail__legend-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.beach-avail__legend-dot--free      { background: rgba(60,210,90,.7); }
.beach-avail__legend-dot--taken     { background: rgba(210,60,60,.7); }
.beach-avail__legend-dot--social    { background: rgba(232,184,75,.8); }
.beach-avail__legend-dot--community { background: rgba(0,188,212,.85); border: 1px dashed rgba(0,188,212,.6); }
.beach-avail__legend-dot--blocked   { background: rgba(100,130,230,.7); }

/* Desktop: new mobile view stays hidden */
.beach-mobile { display: none; }

@media (max-width: 680px) {
    /* Switch to tab+list layout on mobile */
    .beach-avail__cards { display: none; }
    .beach-avail__table { display: none; }
    .beach-mobile       { display: block; }

    /* ── Tab strip ── */
    .beach-mobile__tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        background: rgba(255,255,255,.06);
        border-radius: 12px;
        padding: 4px;
        margin-bottom: 10px;
    }
    .beach-mobile__tabs::-webkit-scrollbar { display: none; }
    .beach-mobile__tab {
        flex: 1;
        min-width: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 7px 4px 5px;
        background: none;
        border: none;
        color: rgba(255,255,255,.5);
        cursor: pointer;
        border-radius: 9px;
        transition: background .15s, color .15s;
        gap: 1px;
    }
    .beach-mobile__tab-wd   { font-size: .65rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .06em; }
    .beach-mobile__tab-date { font-size: .75rem; font-weight: 500; line-height: 1.2; opacity: .85; }
    .beach-mobile__tab-dot  { width: 5px; height: 5px; border-radius: 50%; margin-top: 3px; }
    .beach-mobile__tab-dot--free { background: #4dc87a; }
    .beach-mobile__tab-dot--full { background: #e05555; }
    .beach-mobile__tab--today { color: rgba(255,255,255,.75); }
    .beach-mobile__tab--focus { color: #e8b84b; }
    .beach-mobile__tab--active { background: rgba(255,255,255,.14); color: #fff; }
    .beach-mobile__tab--active.beach-mobile__tab--focus { background: rgba(232,184,75,.18); color: #e8b84b; }

    /* ── Panels ── */
    .beach-mobile__panel { display: none; }
    .beach-mobile__panel--active { display: block; }
    .beach-mobile__panel-meta {
        display: flex;
        align-items: center;
        gap: .5rem;
        font-size: .8rem;
        color: rgba(255,255,255,.4);
        min-height: 1.4rem;
        margin-bottom: 8px;
    }
    .beach-mobile__frei { color: #4dc87a; font-weight: 700; }
    .beach-mobile__weather { font-size: .8rem; }

    /* ── Slot rows ── */
    .beach-mobile__slots { display: flex; flex-direction: column; gap: 6px; }
    .beach-mobile__slot {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 14px;
        border-radius: 10px;
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.75);
        font-size: .88rem;
        position: relative;
        border-left: 3px solid transparent;
    }
    .beach-mobile__slot-time {
        font-size: .75rem;
        font-weight: 700;
        color: rgba(255,255,255,.35);
        min-width: 34px;
        flex-shrink: 0;
    }
    .beach-mobile__slot-label { flex: 1; }
    .beach-mobile__slot-arrow { font-size: .9rem; color: rgba(255,255,255,.3); flex-shrink: 0; }

    /* Status variants */
    .beach-mobile__slot--free     { background: rgba(50,200,80,.14);   border-left-color: rgba(77,200,122,.55); }
    .beach-mobile__slot--taken    { background: rgba(200,50,50,.12);   opacity: .75; }
    .beach-mobile__slot--blocked  { background: rgba(90,120,220,.12);  opacity: .7; }
    .beach-mobile__slot--past     { background: rgba(255,255,255,.03); opacity: .3; }
    .beach-mobile__slot--community-row { background: rgba(0,188,212,.12); border-left-color: rgba(0,188,212,.45); color: rgba(255,255,255,.85); }

    .beach-mobile__slot--clickable { cursor: pointer; }
    .beach-mobile__slot--clickable:hover  { background: rgba(50,200,80,.26); }
    .beach-mobile__slot--clickable:active { background: rgba(50,200,80,.35); }
    .beach-mobile__slot--community-row { cursor: pointer; }
    .beach-mobile__slot--community-row:hover { background: rgba(0,188,212,.22); }

    /* Dabei badge inline */
    .beach-mobile__dabei-count {
        display: inline-block;
        font-size: .7rem;
        background: rgba(0,188,212,.22);
        color: rgba(0,188,212,.95);
        border-radius: 999px;
        padding: 1px 7px;
        margin-left: 5px;
        font-weight: 600;
    }

    /* Dabei popout in mobile context */
    .beach-mobile__slot--community-row .beach-dabei-popout {
        width: auto;
        left: 0; right: 0;
        top: calc(100% + 4px);
    }
    .beach-mobile__slot--community-row .beach-dabei-popout::before { left: 16px; }

    /* Formular */
    .beach-booking__row--half { grid-template-columns: 1fr; }
    .beach-booking { max-width: 100%; }
    .beach-booking__form { padding: var(--space-sm); gap: .65rem; }
    .beach-booking__group { padding: .6rem; gap: .5rem; }
}


/* =========================================================
   BEACH-BUCHUNG FORMULAR
   ========================================================= */
/* Side-by-side layout: avail left, form right */
.beach-booking-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: hidden;
}

.beach-booking {
    max-width: 640px;
    margin: 0 auto;
}
.beach-booking__form {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg, 1rem);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    color-scheme: dark;
}
.beach-booking__group {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .75rem;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.beach-booking__row { display: flex; flex-direction: column; gap: .35rem; }
.beach-booking__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.beach-booking__label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.65); }
.beach-booking__input {
    width: 100%;
    min-width: 0;
    padding: .65rem .9rem;
    border-radius: var(--radius, .5rem);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.beach-booking__input:focus { outline: none; border-color: var(--color-accent); }
.beach-booking__input[type="date"] { color-scheme: dark; min-height: 3rem; }
.beach-booking__input option { background: #1a3a2a; color: #fff; }
.beach-booking__input option:disabled { color: rgba(255,255,255,.35); }
.beach-booking__submit { width: 100%; margin-top: .25rem; }
.beach-booking__submit:disabled { opacity: .5; cursor: not-allowed; }
.beach-booking__hint { font-size: .8rem; color: rgba(255,255,255,.4); text-align: center; margin: 0; line-height: 1.5; }
.beach-booking__hint-small { font-size: .75rem; color: rgba(255,255,255,.3); margin: .2rem 0 0; }

/* ── Dabei-Badge + Popout ──────────────────────────────────────────────────── */
.beach-dabei-badge {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    background: rgba(0,188,212,.85);
    color: #fff;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}
.beach-dabei-badge--cell {
    top: 2px;
    right: 2px;
    font-size: .55rem;
    padding: 1px 3px;
}
.beach-dabei-popout {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 210px;
    background: #0f2318;
    border: 1px solid rgba(0,188,212,.5);
    border-radius: .75rem;
    padding: .85rem 1rem 1rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
/* Caret pointing up */
.beach-dabei-popout::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #0f2318;
    border-left: 1px solid rgba(0,188,212,.5);
    border-top: 1px solid rgba(0,188,212,.5);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}
.beach-avail__cell--community .beach-dabei-popout {
    left: auto;
    right: 0;
    top: calc(100% + 6px);
}
.beach-avail__cell--community .beach-dabei-popout::before {
    left: auto;
    right: 18px;
}
.beach-dabei-popout__title {
    font-size: .68rem;
    color: rgba(255,255,255,.35);
    margin-bottom: .5rem;
    white-space: nowrap;
    letter-spacing: .02em;
}
.beach-dabei-popout__count {
    margin-bottom: .65rem;
}
.beach-dabei__count {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(0,188,212,.95);
}
.beach-dabei__actions { display: flex; flex-direction: column; gap: .45rem; }
.beach-dabei__btn {
    width: 100%;
    font-size: .82rem;
    padding: .5rem .75rem;
    background: rgba(0,188,212,.18);
    border: 1px solid rgba(0,188,212,.5);
    border-radius: .45rem;
    color: rgba(0,188,212,1);
    cursor: pointer;
    transition: background .15s;
    font-weight: 600;
    letter-spacing: .02em;
}
.beach-dabei__btn:hover { background: rgba(0,188,212,.3); }
.beach-dabei__picker {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.05);
    border-radius: .4rem;
    padding: .35rem .4rem;
}
.beach-dabei__minus, .beach-dabei__plus {
    width: 26px; height: 26px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .3rem;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.beach-dabei__minus:hover, .beach-dabei__plus:hover { background: rgba(255,255,255,.2); }
.beach-dabei__num {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
}
.beach-dabei__confirm {
    flex-shrink: 0;
    width: 30px; height: 26px;
    background: rgba(0,188,212,.85);
    border: none;
    border-radius: .3rem;
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.beach-dabei__confirm:hover { background: rgba(0,188,212,1); }
.beach-dabei__confirm:disabled { opacity: .5; cursor: wait; }
.beach-dabei__done {
    font-size: .82rem;
    color: rgba(0,188,212,.9);
    font-weight: 700;
    text-align: center;
    padding: .25rem 0;
}
.beach-dabei__share {
    display: block;
    text-align: center;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    padding: .35rem 0 .1rem;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: .3rem;
    transition: color .15s;
}
.beach-dabei__share:hover { color: rgba(255,255,255,.8); }
.beach-avail__slot-community-label {
    font-size: .75rem;
    color: rgba(0,188,212,.8);
    letter-spacing: .01em;
    line-height: 1.2;
    white-space: normal;
}
.beach-booking__label--check {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    font-weight: 500;
}
.beach-booking__check {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #e8b84b;
    flex-shrink: 0;
}
/* .beach-booking__fairness entfernt – Inhalt im hint-Text zusammengefasst */
.beach-rules {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .5rem;
    overflow: hidden;
}
.beach-rules__summary {
    padding: .6rem .85rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .02em;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    user-select: none;
}
.beach-rules__summary::-webkit-details-marker { display: none; }
.beach-rules__summary::after { content: '›'; margin-left: auto; font-size: 1rem; transition: transform .2s; }
details.beach-rules[open] .beach-rules__summary::after { transform: rotate(90deg); }
.beach-rules__body {
    padding: .75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.beach-rules__list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    line-height: 1.5;
}
.beach-rules__list strong { color: rgba(255,255,255,.75); }
.beach-booking__notice {
    padding: .65rem .9rem;
    border-radius: var(--radius, .5rem);
    font-size: .9rem;
    font-weight: 500;
}
.beach-booking__notice--error { background: rgba(220,50,50,.2); border: 1px solid rgba(220,50,50,.4); color: #ffaaaa; }
.beach-booking__notice--success { background: rgba(50,180,80,.2); border: 1px solid rgba(50,180,80,.4); color: #aaffbb; }
.beach-booking__success {
    text-align: center;
    padding: var(--space-md);
    color: #fff;
}
.beach-booking__success-icon { font-size: 3rem; margin-bottom: .5rem; }
.beach-booking__success h3 { color: var(--color-accent); margin-bottom: .5rem; }
.beach-booking__success p { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.beach-booking__ics-link {
    display: inline-block;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
    transition: color .15s, border-color .15s;
}
.beach-booking__ics-link:hover { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
.beach-avail__weather {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.45);
    margin-top: .15rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .beach-booking__row--half { grid-template-columns: 1fr; }
    .beach-teaser .container { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .beach-teaser__text { min-width: 0; font-size: .9rem; }
    .beach-teaser__btn  { align-self: flex-start; }
}


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-lg) 0 var(--space-md);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.site-footer__brand .site-logo__name {
    color: var(--color-white);
}

.site-footer__desc {
    font-size: 0.9rem;
    margin-top: var(--space-sm);
    color: rgba(255,255,255,0.5);
}

.site-footer h4 {
    font-family: var(--font-display);
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 0.4rem;
}

.site-footer a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: var(--space-sm);
}


/* =========================================================
   RESPONSIVE TABLES – scroll wenn zu breit
   ========================================================= */
/* display:table + width:100% → Zellen dehnen sich auf volle Breite aus.
   Für horizontales Scrollen auf Tablets übernimmt der Container. */
.wp-table {
    display: table;
    width: 100%;
    border-radius: var(--radius);
}

/* Tablet (769px–1023px): Container scrollt wenn Tabelle breiter als Viewport */
@media (min-width: 769px) and (max-width: 1023px) {
    .section .container:has(.wp-table) {
        overflow-x: auto;
    }
}

/* Tabelle innerhalb einer Card: volle Breite, kein Scroll-Wrapper nötig */
.card .wp-table {
    display: table;
    overflow-x: visible;
    border-radius: 0;
    width: 100%;
}

/* Wrapper-Klasse für externe overflow-Kontrolle */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-card);
    margin-bottom: var(--space-sm);
}

/* ── Trainingszeiten-Tabelle ────────────────────────────────────────────────*/
.tz-table {
    display: table;
    width: 100%;
    table-layout: auto;
    overflow-x: visible;
    border-radius: var(--radius);
}
.tz-row.hidden { display: none; }

/* CSS-nth-child für tz-table deaktivieren – Striping läuft per JS (restripeTable) */
.tz-table tr:nth-child(even) td { background: transparent; }
.tz-table .tz-row.is-even td   { background: #f0f2ee; }

/* Tages-Trennzeile (Desktop) – Trennlinie + Label-Stil, kein Farbblock */
.tz-day-group td {
    background: rgba(26,58,42,0.08) !important;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.6rem 1rem;
    border: none;
    border-top: 2px solid transparent;
}
.tz-day-group:first-child td {
    border-top: none;
}
.tz-day-group.hidden { display: none; }

/* ── Responsive Tables: einheitliches Karten-Layout auf Mobil ───────────────
   Klasse wird per JS gesetzt (.wp-table--responsive), gilt für ALLE Tabellen */
@media (max-width: 768px) {
    .wp-table--responsive {
        display: block;
        overflow-x: visible;
        min-width: 0 !important;
    }
    .wp-table--responsive thead { display: none; }
    .wp-table--responsive tbody { display: flex; flex-direction: column; gap: 0.5rem; }

    .wp-table--responsive tr {
        display: block;
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--color-border);
        background: var(--color-white);
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .wp-table--responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.4rem 0.75rem;
        border: none;
        border-bottom: 1px solid var(--color-border);
        font-size: 0.88rem;
        background: var(--color-white);
    }
    .wp-table--responsive tr td:last-child { border-bottom: none; }
    .wp-table--responsive td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Erste Zeile: dunkelgrüner Header (nicht bei tz-day-group) */
    .wp-table--responsive tr:not(.tz-day-group) td:first-child {
        background: var(--color-primary);
        color: var(--color-white);
        font-weight: 700;
        border-bottom: none;
    }
    .wp-table--responsive tr:not(.tz-day-group) td:first-child a {
        color: var(--color-white);
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .wp-table--responsive tr:not(.tz-day-group) td:first-child::before {
        color: rgba(255,255,255,0.55);
    }
    /* Zweite Zeile: kein oberer Trennstrich (direkt unter dem grünen Header) */
    .wp-table--responsive tr:not(.tz-day-group) td:nth-child(2) {
        border-top: none;
    }

    .wp-table--responsive tr.hidden { display: none; }

    /* Tages-Trennzeile: kein Karten-Layout, voller Separator */
    .wp-table--responsive tr.tz-day-group {
        display: block;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-top: 0.75rem;
    }
    .wp-table--responsive tr.tz-day-group td {
        display: block;
        background: var(--color-accent);
        color: var(--color-primary);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 0.3rem 0.75rem;
        border: none;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .wp-table--responsive tr.tz-day-group td::before { display: none; }
    /* Erster tz-row nach einem day-group: abgerundete Ecken oben entfernen */
    .wp-table--responsive tr.tz-day-group + tr.tz-row {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    /* Letzter tz-row vor dem nächsten day-group: untere Ecken runden */
    .wp-table--responsive tr.tz-day-group ~ tr.tz-row:not(:has(+ tr.tz-row:not(.hidden))) {
        border-radius: 0 0 var(--radius) var(--radius);
    }
}

/* =========================================================
   RESPONSIVE – TABLET (max 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .site-logo__name { font-size: 1.1rem; }
}

/* =========================================================
   RESPONSIVE – MOBIL (max 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* ── Spacing reduzieren ─────────────────────────────── */
    :root {
        --space-lg: 2.5rem;
        --space-xl: 4rem;
    }
    .section { padding: 2.5rem 0; }
    .page-header { padding: 2rem 0 1.5rem; }
    .section-header { margin-bottom: 1.5rem; }

    /* ── Navigation ─────────────────────────────────────── */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 1.3rem;
    }

    .main-nav { display: none; }
    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        border-top: 3px solid var(--color-accent);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    }

    /* Top-Level-Liste */
    .main-nav.is-open > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    /* Jedes Top-Level-Item */
    .main-nav.is-open > ul > li {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    /* Top-Level-Link */
    .main-nav.is-open > ul > li > a {
        flex: 1;
        display: block;
        padding: 1rem 1.5rem;
        border: none !important;
        font-size: 1.05rem;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.02em;
        text-align: left;
        transition: color 0.15s;
    }

    .main-nav.is-open > ul > li > a:hover,
    .main-nav.is-open > ul > li.current-menu-item > a,
    .main-nav.is-open > ul > li.current-page-ancestor > a {
        color: var(--color-accent);
    }

    /* Pfeil-Button: rechts, kein Separator */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        flex-shrink: 0;
        align-self: stretch;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        font-size: 1.1rem;
        color: rgba(255,255,255,0.3);
        cursor: pointer;
        transition: color 0.15s;
    }

    .submenu-toggle:hover,
    .submenu-toggle[aria-expanded="true"] {
        color: var(--color-accent);
    }

    /* Untermenü */
    .main-nav.is-open ul ul {
        position: static;
        display: none;
        flex-direction: column;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 0.4rem 0 0.4rem 1.5rem;
        background: rgba(0,0,0,0.2);
        flex-basis: 100%;
        gap: 0;
    }

    .main-nav.is-open ul ul.is-open { display: flex; }
    .main-nav.is-open ul ul li { border: none; }

    .nav-subtitle { display: none; }

    .main-nav ul ul a {
        font-size: 0.9rem;
        font-weight: 400;
        padding: 0.65rem 1.5rem;
        border: none;
        color: rgba(255,255,255,0.55);
        display: block;
        transition: color 0.15s;
    }

    .main-nav ul ul a:hover {
        color: var(--color-accent);
    }

    /* Header Utils auf Mobil */
    .main-nav { display: none; flex-direction: column; }
    .header-utils {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.5rem 1.5rem 0.75rem;
        margin-left: 0;
        gap: 0.75rem;
        border: none;
    }
    /* Letztes Menü-Item: kein Trennstrich nach unten */
    .main-nav.is-open > ul > li:last-child { border-bottom: none; }
    /* GTranslate-Dropdown clippen damit kein Rand/Linie durchscheint */
    .main-nav .gtranslate_wrapper { overflow: hidden; }

    /* Mobile: Hover-Dropdowns deaktiviert */
    .main-nav li:hover > ul { display: none; }
    .main-nav .has-mega-menu:hover > ul { display: none; }
    .main-nav.is-open .has-mega-menu > ul.is-open {
        display: flex;
        grid-template-columns: none;
        min-width: 0;
        padding: 0.4rem 0 0.4rem 1.5rem;
    }

    .main-nav.is-open .has-mega-menu > ul > li > a {
        padding: 0.65rem 1.5rem;
        border-radius: 0;
    }

    .main-nav.is-open .has-mega-menu > ul > li > a:hover {
        padding-left: 1.5rem;
        background: none;
        color: var(--color-accent);
    }

    /* ── Hero ───────────────────────────────────────────── */
    .hero { padding: 2.5rem 0 3rem; }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__actions .btn {
        text-align: center;
        justify-content: center;
    }

    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1.5rem;
    }
    .hero__stat-value { font-size: 1.75rem; }

    /* ── Grids ───────────────────────────────────────────── */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    /* ── Footer ─────────────────────────────────────────── */
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* ── CTA prices ─────────────────────────────────────── */
    .cta-prices { gap: 1rem; }

    /* ── Kursanmeldung Formular ─────────────────────────── */
    .kurs-form__grid { grid-template-columns: 1fr; }

    /* ── Termine ─────────────────────────────────────────── */
    .termin-card {
        grid-template-columns: 52px 1fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .termin-card:nth-child(n) > :last-child {
        grid-column: 2;
    }
    .termine-toolbar { flex-direction: column; align-items: flex-start; }

    /* ── Logo Text kürzen ────────────────────────────────── */
    .site-logo__name { font-size: 1rem; }
}

/* =========================================================
   RESPONSIVE – KLEINES MOBIL (max 480px)
   ========================================================= */
@media (max-width: 480px) {
    :root { --space-md: 1.25rem; }
    .container { padding: 0 1rem; }

    h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); }

    .hero { padding: 2rem 0 2.5rem; }
    .hero__stats { gap: 0.75rem 1rem; }
    .hero__stat-value { font-size: 1.5rem; }
    .hero__lead { font-size: 1rem; }

    /* Buttons volle Breite auf sehr kleinen Screens */
    .btn { padding: 0.7rem 1.25rem; font-size: 0.88rem; }

    /* CTA Preise: 3 nebeneinander auch auf kleinen Screens */
    .cta-prices { gap: 0.5rem; }
    .cta-price__amount { font-size: 1.6rem; }

    /* Karten etwas kompakter */
    .card { padding: 1.25rem; }
    .news-card__body { padding: 1.25rem; }

    /* Termine-Filter: scrollen statt umbrechen */
    .termine-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
    .filter-btn { flex-shrink: 0; }
    .aktuelles-filter__pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }

    /* Logo: nur Wappen auf sehr kleinen Screens */
    .site-logo__name { display: none; }
}

/* =========================================================
   RESPONSIVE – SEHR KLEINES MOBIL (max 360px)
   ========================================================= */
@media (max-width: 360px) {
    .container { padding: 0 0.75rem; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .cta-prices { justify-content: space-around; }
}

/* =========================================================
   DOWNLOAD-GRUPPE (Dokumente-Sektion)
   ========================================================= */
.dl-group {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dl-group__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dl-group__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.dl-group__title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-white);
    margin: 0;
}

.dl-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), color var(--transition);
    font-size: 0.92rem;
}

.dl-list li:last-child .dl-item {
    border-bottom: none;
}

.dl-item:hover {
    background: #f0f5f0;
    color: var(--color-primary);
}

.dl-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-secondary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background var(--transition);
}

.dl-item:hover .dl-item__icon {
    background: var(--color-primary);
}

.dl-item__name {
    flex: 1;
    font-weight: 500;
}

.dl-item__type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    background: #eef0eb;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Legacy: alter download-link Stil */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition), gap var(--transition);
}
.download-link:hover {
    color: var(--color-primary);
    gap: 0.6rem;
}

/* =========================================================
   NOTICE BOXES (Formular-Feedback)
   ========================================================= */
.notice-box {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.95rem;
    line-height: 1.5;
}
.notice-box--success {
    background: #edf7ef;
    border: 1px solid #a3d9ac;
    color: #1e5c28;
}
.notice-box--error {
    background: #fdf2f2;
    border: 1px solid #f5b8b8;
    color: #922;
}

/* =========================================================
   KURSANMELDUNG FORM
   ========================================================= */
.kurs-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
.kurs-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.kurs-form__field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}
.kurs-form__field input,
.kurs-form__field select,
.kurs-form__field textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 6px);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.kurs-form__field input:focus,
.kurs-form__field select:focus,
.kurs-form__field textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(74,140,93,0.15);
}
.kurs-form__field textarea { resize: vertical; }
@media (max-width: 600px) {
    .kurs-form__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCORDION NEWS
   ========================================================= */
.accordion-news {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

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

.accordion-item__header {
    width: 100%;
    background: var(--color-white);
    border: none;
    padding: var(--space-md);
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem var(--space-sm);
    align-items: start;
    transition: background var(--transition);
}

.accordion-item__header:hover {
    background: #f8faf8;
}

.accordion-item__header[aria-expanded="true"] {
    background: #f0f5f1;
    border-bottom: 1px solid var(--color-border);
}

.accordion-item__meta {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.accordion-item__date {
    font-size: 0.78rem;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
}

.accordion-item__cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    background: rgba(45,106,79,0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.accordion-item__title {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.accordion-item__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.25s ease;
    line-height: 1;
}

.accordion-item__header[aria-expanded="true"] .accordion-item__arrow {
    transform: rotate(90deg);
}

.accordion-item__body {
    padding: var(--space-md);
    background: var(--color-white);
    animation: accordion-open 0.2s ease;
}

@keyframes accordion-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.accordion-item__image {
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-item__image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.accordion-item__footer {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

/* ── Aktuelles: Hero + Grid ──────────────────────────────────────────────── */
.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Hero: volle Breite über alle 3 Spalten */
.news-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    background: var(--color-white);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
}

.news-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.news-hero__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.news-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-hero:hover .news-hero__image img {
    transform: scale(1.04);
}

.news-hero__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.news-hero__cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-secondary);
    background: rgba(45,106,79,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.news-hero__date {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.news-hero__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-primary);
    line-height: 1.25;
    margin: 0 0 var(--space-sm);
}

.news-hero__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero__link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: auto;
    transition: color var(--transition);
}

.news-hero:hover .news-hero__link {
    color: var(--color-primary);
}

/* news-card als Link */
a.news-card {
    text-decoration: none;
    color: inherit;
}

/* Placeholder wenn kein Bild */
.news-card__image--placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #435650;
    overflow: hidden;
}

.news-card__image--placeholder .placeholder-wappen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.72;
    pointer-events: none;
    filter: brightness(2) saturate(0.45) grayscale(0.2);
}

.news-card__image--placeholder .placeholder-icon {
    position: absolute;
    bottom: 0.75rem;
    left: 0.85rem;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.6;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* Dark mode */
[data-theme="dark"] .news-hero        { background: var(--color-white); border-color: var(--color-border); }
[data-theme="dark"] .news-hero__title { color: var(--color-accent); }
[data-theme="dark"] .news-hero__link  { color: var(--color-secondary); }

/* Responsive */
@media (max-width: 900px) {
    .aktuelles-grid { grid-template-columns: repeat(2, 1fr); }
    .news-hero       { grid-template-columns: 1fr; }
    .news-hero__body { padding: var(--space-md); }
    .news-hero__title { font-size: 1.3rem; }
}

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

/* Kommentare */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
    margin-bottom: var(--space-sm);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.comment-form .submit {
    margin-top: var(--space-xs);
}

.comment-form input[type="submit"] {
    width: auto;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.comment-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.comment {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author { font-weight: 700; color: var(--color-primary); }
.comment-metadata { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 0.5rem; }

/* Kurs-CTA Startseite */
.section--accent {
    background: var(--color-secondary);
    color: #fff;
}

.section--accent .section-header__label {
    color: rgba(255,255,255,0.7);
}

.section--accent h2 {
    color: #fff;
}

.section--accent .section-header__line {
    background: rgba(255,255,255,0.3);
}

/* ── Kurs-CTA Banner ──────────────────────────────────────────────── */
.kurs-cta-banner {
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-card);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    background: linear-gradient(160deg, rgba(232,200,74,0.07) 0%, transparent 60%);
    max-width: 760px;
    margin: 0 auto;
}

.kurs-cta-banner__badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.kurs-cta-banner__title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.kurs-cta-banner__intro {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.kurs-cta-banner__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* ── Kurs-CTA Leerfall ────────────────────────────────────────────── */
.kurs-cta-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding: var(--space-sm) 0;
    color: var(--color-text-light);
}

.kurs-cta-empty__icon {
    font-size: 2rem;
    line-height: 1;
}

.kurs-cta-empty p {
    margin: 0;
    max-width: 480px;
}

/* ── Kurs-Kacheln (im Banner, heller Hintergrund) ─────────────────── */
.kurs-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.kurs-cta-card {
    background: rgba(232,200,74,0.1);
    border: 1px solid rgba(232,200,74,0.35);
    border-radius: var(--radius-card);
    padding: 0.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 140px;
}

.kurs-cta-card strong {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.kurs-cta-card span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.btn--outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Cookie-Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--space-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.88rem;
    flex: 1;
    min-width: 200px;
    color: rgba(255,255,255,0.9);
}

.cookie-banner__text a {
    color: var(--color-accent);
}

.cookie-banner__btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Aktuelles – Filterleiste */
.aktuelles-filter {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt, #f7f7f5);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.aktuelles-filter__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.aktuelles-filter__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.aktuelles-filter__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    white-space: nowrap;
    min-width: 5rem;
}

.aktuelles-filter__select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0.35rem 2rem 0.35rem 0.9rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.aktuelles-filter__select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.aktuelles-filter__hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.aktuelles-filter__hint a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Termine-Seite */
.termine-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.termine-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Vergangene Termine – aufklappbarer Bereich */
.termine-past-section {
    margin-top: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.termine-past-section > summary {
    list-style: none;
}

.termine-past-section > summary::-webkit-details-marker {
    display: none;
}

.termine-past-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg);
    user-select: none;
    transition: background var(--transition), color var(--transition);
}

.termine-past-toggle:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.termine-past-toggle__icon {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
    display: inline-block;
}

.termine-past-section[open] .termine-past-toggle__icon {
    transform: rotate(90deg);
}

.termine-past-toggle__count {
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.15rem;
}

.termine-past-body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-top: 1px solid var(--color-border);
}

.termine-month__title--past {
    opacity: 0.65;
}

[data-theme="dark"] .termine-past-section { border-color: var(--color-border); }
[data-theme="dark"] .termine-past-toggle  { background: #111e16; color: var(--color-text-light); }
[data-theme="dark"] .termine-past-toggle:hover { background: #1a2e22; color: var(--color-text); }
[data-theme="dark"] .termine-past-body    { border-top-color: var(--color-border); }

.termine-month__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: var(--space-md) 0 var(--space-sm);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.termine-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.termin-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: start;
    gap: var(--space-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-sm) var(--space-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.termin-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.termin-card.hidden { display: none; }

/* Vergangene Termine: ausgegraut, kein Hover */
.termin-card.past {
    opacity: 0.42;
    filter: grayscale(0.4);
    pointer-events: none;
}
.termin-card.past .termin-card__date {
    background: var(--color-text-light);
}

/* Abwechselnde Hintergrundfarbe (wird per JS gesteuert) */
.termin-card.is-even {
    background: var(--color-bg-light);
}

.termin-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-primary);
    border-radius: 8px;
    padding: 0.4rem;
    color: white;
}

.termin-card__day {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.termin-card__mon {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.termin-card__wday {
    font-size: 0.78rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.termin-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0 0 0.25rem;
}

.termin-card__loc {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 0.2rem;
}

.termin-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin: 0 0 0.4rem;
}

/* gemeinsame Basis aller drei Termin-Action-Buttons */
.termin-ical-btn,
.termin-share-btn--action,
.termin-anmelden-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.termin-ical-btn {
    color: var(--color-secondary);
    text-decoration: none;
    background: none;
    border: 1px solid rgba(45,106,79,0.3);
}
.termin-ical-btn:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.termin-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    background: rgba(45,106,79,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.termin-share-btn--action {
    color: var(--color-text-light);
    background: none;
    border: 1px solid var(--color-border);
}
.termin-share-btn--action:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-text-light);
}

/* Share-Dropdown */
.termin-share-wrap { position: relative; }

.termin-share-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    min-width: 170px;
    z-index: 200;
    overflow: hidden;
}
.termin-share-menu[hidden] { display: none; }

.termin-share-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}
.termin-share-menu__item:hover { background: var(--color-bg-light); }
.termin-share-menu__item--wa  { color: #128C7E; }
.termin-share-menu__copied    { color: var(--color-secondary) !important; }

@media (max-width: 600px) {
    .termin-card { grid-template-columns: 52px 1fr; }
    .termin-card__cat { display: none; }
    .termine-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ── Kurs-Eintrag (Kurse-Seite) ─────────────────────────────────────────── */
.kurs-eintrag {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.kurs-eintrag__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.kurs-eintrag__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0;
}
.kurs-eintrag__desc {
    margin: 0 0 0.75rem;
    color: var(--color-text);
    font-size: 0.97rem;
    line-height: 1.6;
}
.kurs-eintrag__table {
    display: table !important;
    width: 100%;
    overflow-x: visible !important;
}
.kurs-eintrag__table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border);
}
.kurs-eintrag__table tr:last-child td { border-bottom: none; }
.kurs-eintrag__table td:first-child {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    width: 30%;
}

/* Kurs-Badge */
.kurs-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}
.kurs-badge--open {
    background: rgba(45,106,79,0.12);
    color: var(--color-secondary);
}
.kurs-badge--closed {
    background: rgba(0,0,0,0.06);
    color: var(--color-text-light);
}

/* =========================================================
   STICKY MITGLIED-TAB (Desktop)
   ========================================================= */
.mitglied-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-primary) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    padding: 1.25rem 0.55rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 3px 0 16px rgba(0,0,0,0.2);
    z-index: 800;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.mitglied-tab:hover {
    box-shadow: 5px 0 24px rgba(0,0,0,0.3);
    opacity: 0.9;
}


/* Auf Mobilgeräten: Tab ausblenden, Bottom-Bar übernimmt */
@media (max-width: 768px) {
    .mitglied-tab { display: none; }
}

/* =========================================================
   SCROLL-TO-TOP
   ========================================================= */
.scroll-top {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    z-index: 900;
}
.scroll-top:not([hidden]) { display: flex; }
.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top:hover { background: var(--color-accent); color: var(--color-primary); }

@media (max-width: 768px) {
    .scroll-top { bottom: 4.5rem; right: 0.75rem; }
}

/* =========================================================
   MOBILE BOTTOM-BAR
   ========================================================= */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Body-Padding damit Inhalt nicht hinter der Bar verschwindet */
    body { padding-bottom: 64px; }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--color-primary);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
        z-index: 950;
    }

    .mobile-bottom-bar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        color: rgba(255,255,255,0.5);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color 0.15s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-bar__item:hover,
    .mobile-bottom-bar__item.is-active {
        color: var(--color-accent);
    }

    .mobile-bottom-bar__icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-bottom-bar__label {
        line-height: 1;
    }

    /* CTA-Item: Akzentfarbe Hintergrund */
    .mobile-bottom-bar__item--cta {
        background: var(--color-accent);
        color: var(--color-primary) !important;
        font-weight: 700;
    }

    .mobile-bottom-bar__item--cta:hover,
    .mobile-bottom-bar__item--cta.is-active {
        color: var(--color-primary) !important;
        opacity: 0.88;
    }
}

/* =========================================================
   HISTORIE
   ========================================================= */
.historie-intro {
    max-width: 740px;
}
.historie-intro__text {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}
.historie-intro__note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Intro + TOC auf der Chronik-Seite */
.chronik-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 740px;
    margin-bottom: var(--space-md);
}
.chronik-toc {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 740px;
}
.chronik-toc__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin: 0;
}
.chronik-toc__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chronik-toc__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    background: rgba(74,140,93,0.08);
    border: 1px solid rgba(74,140,93,0.22);
    border-radius: 999px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chronik-toc__links a:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    text-decoration: none;
}
.chronik-toc__links a.chronik-toc__link--abteilungen {
    color: var(--color-accent, #e8b84b);
    background: rgba(232,184,75,.08);
    border-color: rgba(232,184,75,.3);
    margin-left: 1.5rem;
}
.chronik-toc__links a.chronik-toc__link--abteilungen:hover {
    background: var(--color-accent, #e8b84b);
    border-color: var(--color-accent, #e8b84b);
    color: #1a2e1a;
}
.chronik-toc__num {
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.45;
    line-height: 1;
}

/* Kapitel-Layout */
.chronik-chapter__header {
    margin-bottom: var(--space-md);
}
.chronik-chapter__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}
.chronik-chapter__header h2 {
    margin: 0;
}

/* Fließtext-Typografie für lange Chroniktexte */
.chronik-prose {
    max-width: 740px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.chronik-prose p {
    margin-bottom: 1.25em;
}
.chronik-prose p:last-child {
    margin-bottom: 0;
}

.historie-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: var(--space-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.historie-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}
.historie-card__year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(74,140,93,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    align-self: flex-start;
}
.historie-card__icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.historie-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}
.historie-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.historie-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 0.25rem;
}

/* =========================================================
   ERFOLGE-HERO (Frank Schmitt / große Einzelauszeichnung)
   ========================================================= */
.erfolg-hero {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    max-width: 820px;
    margin: 0 auto;
}

.erfolg-hero__medal {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

.erfolg-hero__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin: 0 0 0.4rem;
}

.erfolg-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-accent);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.erfolg-hero__lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin: 0 0 var(--space-sm);
    line-height: 1.6;
}

.erfolg-hero__match {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255,255,255,0.06);
    border-left: 3px solid var(--color-accent);
    padding: 0.6rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: var(--space-sm);
}

.erfolg-hero__match-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.erfolg-hero__match-score {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .erfolg-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .erfolg-hero__match {
        border-left: none;
        border-top: 3px solid var(--color-accent);
        border-radius: 0 0 var(--radius) var(--radius);
        align-items: center;
    }
}

/* =========================================================
   SPORT-LIST (Sportangebote-Verzeichnis)
   ========================================================= */
.sport-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.sport-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

.sport-list__item:last-child {
    border-bottom: none;
}

.sport-list__item:hover {
    background: #f5f7f5;
}
[data-theme="dark"] .sport-list__item:hover {
    background: #1a2e22;
}

.sport-list__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
    line-height: 1;
}

.sport-list__body {
    flex: 1;
}

.sport-list__body h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.sport-list__body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.sport-list__arrow {
    font-size: 1.1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    font-weight: 700;
}

.sport-list__separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: var(--space-md) 0 var(--space-sm);
}
.sport-list__separator::before,
.sport-list__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.sport-list__separator span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* =========================================================
   ICAL-BUTTON
   ========================================================= */
.ical-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 20px;
    background: rgba(232,200,74,0.12);
    color: var(--color-secondary);
    border: 1px solid rgba(232,200,74,0.35);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1.3;
}
.ical-btn:hover {
    background: rgba(232,200,74,0.25);
    color: var(--color-primary);
    border-color: var(--color-accent);
}
.ical-btn::before { content: '📅'; font-size: 0.75rem; }

/* Im mobilen Card-Modus: kompakt bleiben */
@media (max-width: 768px) {
    .ical-btn {
        display: inline-flex;
        width: auto;
    }
}

[data-theme="dark"] .ical-btn {
    color: var(--color-accent);
    background: rgba(232,200,74,0.08);
    border-color: rgba(232,200,74,0.25);
}
[data-theme="dark"] .ical-btn:hover {
    background: rgba(232,200,74,0.18);
    color: var(--color-accent);
}

/* =========================================================
   FOTO-GALERIE & LIGHTBOX
   ========================================================= */
/* =========================================================
   TERMIN-ANMELDUNGS-MODAL
   ========================================================= */
.ta-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ta-modal[hidden] { display: none; }

.ta-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.ta-modal__box {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-md);
}

.ta-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.ta-modal__close:hover { background: var(--color-border); }

.ta-modal__header { margin-bottom: var(--space-sm); }

.ta-modal__pre {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-secondary);
    margin: 0 0 0.25rem;
}

.ta-modal__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 0.3rem;
    padding-right: 2rem;
}

.ta-modal__meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

.ta-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
}

.ta-field { display: flex; flex-direction: column; gap: 0.3rem; }
.ta-field--full { grid-column: 1 / -1; }

.ta-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

.ta-field input,
.ta-field textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition);
    font-family: var(--font-body);
}

.ta-field input:focus,
.ta-field textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.ta-modal__hinweis {
    font-size: 0.78rem;
    color: var(--color-text-light);
    background: var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-bottom: var(--space-sm);
}

.ta-modal__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ta-modal__error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: #fdf0f0;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius);
    color: #c0392b;
    font-size: 0.85rem;
}

.ta-modal__success {
    text-align: center;
    padding: var(--space-sm) 0;
}

.ta-modal__success h3 {
    margin: 0.5rem 0 0.4rem;
    color: var(--color-primary);
}

.ta-modal__success p { color: var(--color-text-light); margin-bottom: var(--space-sm); }

/* Anmelden-Button am Termin */
.termin-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.termin-anmelden-btn {
    background: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid transparent;
}
.termin-anmelden-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(232,200,74,0.4);
}

@media (max-width: 600px) {
    .ta-modal__grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .ta-modal__box    { background: #111e16; }
[data-theme="dark"] .ta-modal__title  { color: var(--color-accent); }
[data-theme="dark"] .ta-modal__hinweis { background: #1a2e22; }
[data-theme="dark"] .ta-field input,
[data-theme="dark"] .ta-field textarea { background: #152419; border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .ta-modal__error  { background: #2a1010; border-color: #5c2020; color: #f08080; }
[data-theme="dark"] .ta-modal__success h3 { color: var(--color-accent); }

/* =========================================================
   OPTION A: NÄCHSTE-TERMINE-STRIPE
   ========================================================= */
.termin-stripe {
    background: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding: 0.55rem 0;
    font-size: 0.85rem;
}

.termin-stripe .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.termin-stripe__label {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.termin-stripe__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--transition);
}

.termin-stripe__item:hover { color: var(--color-accent); }

.termin-stripe__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.termin-stripe__date {
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
}

.termin-stripe__title { white-space: nowrap; }

.termin-stripe__loc {
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.termin-stripe__all {
    margin-left: auto;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.8rem;
    transition: opacity var(--transition);
}

.termin-stripe__all:hover { opacity: 0.7; color: var(--color-accent); }

@media (max-width: 768px) {
    .termin-stripe__loc,
    .termin-stripe__all { display: none; }
    .termin-stripe__item + .termin-stripe__item { display: none; }
}

[data-theme="dark"] .termin-stripe { background: #091310; }
[data-theme="dark"] .termin-stripe__item { color: rgba(221,238,227,0.8); }
[data-theme="dark"] .termin-stripe__item:hover { color: var(--color-accent); }

/* =========================================================
   SHARE BAR
   ========================================================= */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

.share-bar__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
}

.share-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    min-width: 9rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.share-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-bar__btn:active { transform: translateY(0); }

.share-bar__btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.share-bar__btn--facebook {
    background: #1877F2;
    color: #fff;
}

.share-bar__btn--copy {
    background: var(--color-border);
    color: var(--color-text);
}

.share-bar__btn--copy.is-copied {
    background: var(--color-secondary);
    color: #fff;
}

[data-theme="dark"] .share-bar {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .share-bar__btn--whatsapp,
[data-theme="dark"] .share-bar__btn--whatsapp:hover,
[data-theme="dark"] .share-bar__btn--facebook,
[data-theme="dark"] .share-bar__btn--facebook:hover { color: #fff; }

[data-theme="dark"] .share-bar__btn--copy {
    background: rgba(255,255,255,0.12);
    color: var(--color-text);
}

[data-theme="dark"] .share-bar__btn--copy.is-copied { color: #fff; }

@media (max-width: 480px) {
    .share-bar { gap: 0.4rem; }
    .share-bar__btn { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
}

/* =========================================================
   SCROLL-REVEAL ANIMATION
   ========================================================= */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
}

.reveal--visible {
    animation: reveal-up 0.55s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal--visible { animation: none; opacity: 1; transform: none; }
}

/* =========================================================
   FOTO-GALERIE
   ========================================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.photo-grid__item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card);
    aspect-ratio: 4 / 3;
    background: var(--color-primary);
    cursor: zoom-in;
}

.photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s;
    opacity: 0.92;
}

.photo-grid__item:hover img {
    transform: scale(1.04);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: opacity 0.2s;
}

.lightbox__caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next,
.lightbox__slideshow {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s;
    z-index: 10001;
}

.lightbox__close     { top: 1.25rem; right: 1.25rem; font-size: 1rem; }
.lightbox__prev      { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next      { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__slideshow { bottom: 1.25rem; right: 1.25rem; font-size: 0.9rem; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__slideshow:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 600px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .lightbox__prev { left: 0.25rem; }
    .lightbox__next { right: 0.25rem; }
}

/* ── Verein-Galerie-Vorschau ─────────────────────────────────────────────── */
.verein-galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.verein-galerie-grid__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-secondary);
}

.verein-galerie-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.verein-galerie-grid__item:hover img {
    transform: scale(1.05);
}

.verein-galerie-grid__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.verein-galerie-grid__item:hover .verein-galerie-grid__caption {
    opacity: 1;
}

/* ── Pagination (Aktuelles) ─────────────────────────────────────────────── */
.tus-pagination {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
}
.tus-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}
.tus-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.tus-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
}
.tus-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}
.tus-pagination .page-numbers.dots {
    background: none;
    pointer-events: none;
    color: var(--color-text-light);
}
.tus-pagination a.prev.page-numbers,
.tus-pagination a.next.page-numbers {
    font-weight: 600;
    padding: 0 1rem;
    border: 1.5px solid var(--color-primary);
}
.tus-pagination a.prev.page-numbers:hover,
.tus-pagination a.next.page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ── Sponsor-Strip (Footer) ──────────────────────────────────────────────── */
.sponsor-strip {
    background: var(--color-bg, #fff);
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 1rem 0;
}
.sponsor-strip .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.sponsor-strip__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    white-space: nowrap;
}
.sponsor-strip__logos {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}
.sponsor-strip__item {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 80px;
}
.sponsor-strip__img {
    max-height: 36px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(.55);
    transition: filter .2s;
}
a.sponsor-strip__item:hover .sponsor-strip__img {
    filter: grayscale(0) opacity(1);
}

/* ── Sponsor-Grid (Startseite) ───────────────────────────────────────────── */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem 3rem;
    margin-top: var(--space-md);
}
.sponsor-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    width: 150px;
    padding: 1.25rem 1rem 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-card, 10px);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
a.sponsor-grid__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.sponsor-grid__logo-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.sponsor-grid__img {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}
.sponsor-grid__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.2;
}

/* ── Sponsor-Karussell (Startseite, >6 Sponsoren) ───────────────────────── */
.sponsor-carousel-wrap { position: relative; }

.sponsor-carousel-active .sponsor-carousel__page {
    opacity: 0;
    position: absolute;
    top: 0; left: 0; right: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.sponsor-carousel-active .sponsor-carousel__page.is-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.sponsor-carousel-active .sponsor-carousel__page.is-out {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* ── Sponsor-Ticker (Footer, >5 Sponsoren) ──────────────────────────────── */
.sponsor-ticker {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.sponsor-ticker__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: sponsor-ticker 25s linear infinite;
}
.sponsor-ticker:hover .sponsor-ticker__track {
    animation-play-state: paused;
}
@keyframes sponsor-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ── Schnuppertraining-Hinweis ──────────────────────────────────────────────── */
.section--schnupper {
    padding-top: var(--space-md);
    background: var(--color-bg-alt);
}
.schnupper-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text);
}
.schnupper-box__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}
.schnupper-box__text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}
.schnupper-box__text a {
    color: var(--color-accent);
    word-break: break-all;
}

/* ── Like-Button ─────────────────────────────────────────────────────────── */
.post-like {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: var(--space-md) 0;
}
.post-like__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 2rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: border-color .2s, color .2s, transform .15s;
}
.post-like__btn:hover {
    border-color: #e05a6a;
    color: #e05a6a;
    transform: scale(1.04);
}
.post-like__btn.liked {
    border-color: #e05a6a;
    color: #e05a6a;
    background: rgba(224,90,106,.07);
}
.post-like__btn.liked .post-like__heart {
    fill: #e05a6a;
    stroke: #e05a6a;
}
.post-like__btn.liked .post-like__heart {
    animation: tus-like-pop .3s ease;
}
@keyframes tus-like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.post-like__label {
    color: var(--color-text-light);
    font-size: 0.9rem;
}
.post-like__count:empty { display: none; }

/* ── Datenschutz TOC ─────────────────────────────────────────────────────── */
.dsgvo-toc {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.dsgvo-toc__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin: 0 0 0.5rem;
}
.dsgvo-toc__list {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.875rem;
    line-height: 1.8;
}
.dsgvo-toc__list a { color: var(--color-accent); text-decoration: none; }
.dsgvo-toc__list a:hover { text-decoration: underline; }
@media (max-width: 600px) { .dsgvo-toc__list { columns: 1; } }

/* ── Erfolge & Chronik Timeline ─────────────────────────────────────────── */
.erfolge-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 2rem;
}
.erfolge-timeline::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--color-border);
}
.erfolge-timeline__item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    position: relative;
}
.erfolge-timeline__item::before {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
}
.erfolge-timeline__item--highlight::before {
    background: #f5b800;
    width: 14px;
    height: 14px;
    left: -1.65rem;
    top: 0.25rem;
}
.erfolge-timeline__year {
    min-width: 4rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent);
    padding-top: 0.1rem;
}
.erfolge-timeline__content strong { display: block; margin-bottom: 0.2rem; }
.erfolge-timeline__content p { margin: 0; font-size: 0.9rem; color: var(--color-text-light); }

/* ── Chronik Meilenstein-Timeline ───────────────────────────────────────── */
.chronik-milestones {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 5rem;
    max-width: 680px;
}
.chronik-milestones::before {
    content: '';
    position: absolute;
    left: 4.4rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: var(--color-border);
}
.chronik-milestones__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    position: relative;
}
.chronik-milestones__year {
    position: absolute;
    left: -5rem;
    width: 4rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
}
.chronik-milestones__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
    flex-shrink: 0;
    position: absolute;
    left: -0.6rem;
}
.chronik-milestones__dot--gold { background: #f5b800; }
.chronik-milestones__text { font-size: 0.9rem; }

/* ── Beach Platzregeln Accordion ────────────────────────────────────────── */
.platzregeln-accordion { border: none; }
.platzregeln-accordion__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.platzregeln-accordion__summary::-webkit-details-marker { display: none; }
.platzregeln-accordion__toggle {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.platzregeln-accordion[open] .platzregeln-accordion__toggle { transform: rotate(90deg); }

/* ── Toast-Benachrichtigung ───────────────────────────────────────────────── */
.tus-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #2d5a27;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-card, 8px);
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
    text-align: center;
}
.tus-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.tus-toast--error {
    background: #a33;
}

/* ── Termine: Ansicht-Umschalter ─────────────────────────────────────────── */
.termine-view-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}
.termine-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 99px;
    background: #fff;
    color: var(--color-text-light);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.termine-view-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light, #e8f5e9);
    font-weight: 600;
}

/* ── Kalender-Grid ───────────────────────────────────────────────────────── */
.kal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
}
.kal-nav__label {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.kal-nav__btn {
    width: 2.2rem;
    height: 2.2rem;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}
.kal-nav__btn:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light, #e8f5e9);
}
/* Outer card */
#kal-grid {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card, 8px);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Weekday header */
.kal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--color-bg-alt, #f5f7f4);
    border-bottom: 2px solid var(--color-border);
}
.kal-wday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-light);
    padding: 0.55rem 0;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Week rows: flat grid + position:relative for absolute bars */
.kal-week {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}
.kal-week:last-child { border-bottom: none; }

.kal-day {
    min-height: 5rem;
    padding: 0.4rem 0.5rem calc(var(--bar-zone, 0px) + 0.45rem) 0.4rem;
    border-right: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    transition: background .12s;
}
.kal-week > .kal-day:nth-child(7) { border-right: none; }
.kal-day--empty        { background: #f9faf8; cursor: default; }
.kal-day--past         { background: #f7f8f6; }
.kal-day--past .kal-day__num { color: #bbb; font-weight: 500; }
.kal-day--today        { background: var(--color-accent-light, #edf7ed); }
.kal-day:not(.kal-day--empty):hover { background: #f0fbf0; }
.kal-day--selected     { box-shadow: inset 0 0 0 2px var(--color-accent); }

.kal-day__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: 50%;
    line-height: 1;
}
.kal-day--today .kal-day__num {
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
}

/* Event bars: absolutely positioned within .kal-week */
.kal-event-bar {
    position: absolute;
    height: 18px;
    line-height: 18px;
    font-size: 0.68rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: 3px;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: filter .12s, box-shadow .12s;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    /* left, width, bottom set by JS */
}
.kal-event-bar:hover,
.kal-event-bar--active   { filter: brightness(1.1); box-shadow: 0 2px 5px rgba(0,0,0,.18); z-index: 1; }
.kal-event-bar--cont     { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.kal-event-bar--cont-r   { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.kal-event-bar--past     { opacity: 0.45; }

/* ── Kalender Detail-Panel ───────────────────────────────────────────────── */
.kal-detail {
    margin-top: var(--space-md);
    border: 1.5px solid var(--color-accent);
    border-radius: var(--radius-card, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.kal-detail__item {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--color-border);
    background: #fff;
}
.kal-detail__item:first-child { border-top: none; }
.kal-detail__header {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    margin-bottom: 0.55rem;
    letter-spacing: .02em;
}
.kal-detail__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.kal-detail__meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}
.kal-detail__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}
.kal-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
    align-items: center;
}

/* Heute-Button im Kalender-Nav */
.kal-nav__today {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border: 1.5px solid var(--color-border);
    border-radius: 99px;
    background: #fff;
    color: var(--color-text-light);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.kal-nav__today:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ── Kalender Dark Mode ──────────────────────────────────────────────────── */
[data-theme="dark"] #kal-grid {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
[data-theme="dark"] .kal-weekdays {
    background: #0e1e14;
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .kal-wday {
    color: var(--color-accent);
    opacity: 0.7;
}
[data-theme="dark"] .kal-week {
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .kal-day {
    background: #0f1c14;
    border-right-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .kal-day--empty {
    background: #0a1510;
}
[data-theme="dark"] .kal-day--past {
    background: #0a1510;
}
[data-theme="dark"] .kal-day--past .kal-day__num {
    color: #3a5442;
}
[data-theme="dark"] .kal-day--today {
    background: #162b1c;
}
[data-theme="dark"] .kal-day:not(.kal-day--empty):hover {
    background: #1a3222;
}
[data-theme="dark"] .kal-day__num {
    color: var(--color-text);
}
[data-theme="dark"] .kal-day--selected {
    box-shadow: inset 0 0 0 2px var(--color-accent);
}
[data-theme="dark"] .kal-detail {
    border-color: rgba(232,200,74,0.4);
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
[data-theme="dark"] .kal-detail__item {
    background: #111e16;
    border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .kal-detail__title {
    color: var(--color-text);
}
[data-theme="dark"] .kal-event-bar {
    color: #1a2e22;
}
[data-theme="dark"] .kal-detail__header {
    color: #1a2e22;
}
[data-theme="dark"] .kal-nav__btn {
    border-color: rgba(255,255,255,0.15);
    color: var(--color-text);
    background: transparent;
}
[data-theme="dark"] .kal-nav__btn:hover {
    border-color: var(--color-accent);
    background: rgba(232,200,74,0.08);
}
[data-theme="dark"] .kal-nav__today {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: var(--color-text);
}
[data-theme="dark"] .kal-nav__today:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
[data-theme="dark"] .kal-day--today .kal-day__num {
    color: #1a2e22;
}
[data-theme="dark"] .termine-view-btn {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: var(--color-text);
}
[data-theme="dark"] .termine-view-btn.active {
    background: rgba(232,200,74,0.12);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobil: nur Liste, View-Switcher komplett weg */
@media (max-width: 700px) {
    .termine-view-switch { display: none; }
    #termine-kalender    { display: none !important; }
    #termine-liste       { display: block !important; }
}
