@import url("forms.css");

/* =========================================================
   TTC ST. LEON-ROT – FRONTEND
   Bereinigte Fassung
   ========================================================= */


/* =========================================================
   1. VARIABLEN / BASIS
   ========================================================= */

:root{
    --ttc-blue:#0a3d91;
    --ttc-blue-light:#2467c9;
    --ttc-navy:#06255b;
    --ttc-ink:#10213f;

    --text:#172833;
    --muted:#687984;
    --line:#dfe7ec;
    --soft:#f5f7fb;
    --white:#fff;

    --shadow:0 18px 55px rgba(15,45,67,.10);

    /*
     * Kompatibilitätsvariablen für allgemeine Seiten,
     * die noch die älteren Variablennamen verwenden.
     */
    --navy:var(--ttc-navy);
    --navy2:#173f59;
    --blue:var(--ttc-blue);
    --teal:#156e6b;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;

    background:#fff;
    color:var(--text);

    font:
        16px/1.6
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
}

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

a{
    color:inherit;
}

img{
    max-width:100%;
}


/* =========================================================
   2. ALLGEMEINE KOMPONENTEN
   ========================================================= */

.section{
    padding:64px 0;
}

.card{
    padding:26px;

    border:1px solid var(--line);
    border-radius:10px;

    background:#fff;

    box-shadow:var(--shadow);
}

.grid2{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.prose{
    max-width:760px;

    color:#50636f;

    font-size:17px;
    line-height:1.7;
}

.prose img{
    height:auto;
}

button{
    padding:11px 17px;

    border:0;
    border-radius:5px;

    background:var(--ttc-blue);
    color:#fff;

    font:inherit;
    font-weight:750;

    cursor:pointer;
}

input,
textarea,
select{
    max-width:100%;

    padding:11px 12px;

    border:1px solid #cbd7de;
    border-radius:6px;

    background:#fff;

    font:inherit;
}

main.section a{
    color:var(--ttc-blue);
}


/* =========================================================
   3. DEV-KENNZEICHNUNG
   ========================================================= */

.dev-environment-bar{
    position:relative;
    z-index:1000;

    width:100%;

    padding:5px 12px;

    background:#f59e0b;
    color:#17202a;

    text-align:center;

    font-size:10px;
    font-weight:900;
    line-height:1.2;
    letter-spacing:.12em;
}


/* =========================================================
   4. HEADER / NAVIGATION
   ========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:50;

    background:rgba(255,255,255,.97);

    backdrop-filter:blur(12px);

    box-shadow:0 1px 0 rgba(6,37,91,.09);
}

.nav{
    height:86px;

    display:flex;
    align-items:center;
    gap:30px;
}

.brand{
    display:flex;
    align-items:center;
    gap:13px;

    text-decoration:none;
    line-height:1.1;
}

.ttc-brand img{
    width:52px;
    height:62px;

    object-fit:contain;

    border-radius:0;
}

.brand span{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.ttc-brand strong{
    color:#0a1f46;

    font-size:26px;
    font-weight:850;
    line-height:.9;
    letter-spacing:.04em;
}

.ttc-brand small{
    color:#153267;

    font-size:12px;
    font-weight:800;
    line-height:1.15;
}

.main-nav{
    margin-left:auto;

    display:flex;
    align-items:center;
    gap:28px;
}

.main-nav a{
    color:#112342;

    text-decoration:none;

    font-size:13px;
    font-weight:800;
}

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

.menu-toggle{
    display:none;

    margin-left:auto;
    padding:4px;

    border:0;

    background:transparent;
    color:var(--ttc-navy);

    font-size:27px;
    line-height:1;
}


/* =========================================================
   5. FOOTER
   ========================================================= */

.ttc-footer{
    padding:25px 0 17px;

    background:var(--ttc-navy);
    color:#fff;
}

.ttc-footer-grid{
    display:grid;
    grid-template-columns:1.35fr 1fr 1fr 1fr;
    gap:26px;
}

.ttc-footer-grid > div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.ttc-footer strong{
    font-size:12px;
}

.ttc-footer span,
.ttc-footer a{
    color:#e4edff;

    text-decoration:none;

    font-size:12px;
}

.ttc-footer a:hover{
    color:#fff;
    text-decoration:underline;
}

.ttc-footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:20px;

    margin-top:22px;
    padding-top:14px;

    border-top:1px solid rgba(255,255,255,.13);
}

.ttc-footer-bottom span:last-child{
    display:flex;
    gap:18px;
}


/* =========================================================
   6. MODALS
   ========================================================= */

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

.event-modal{
    position:fixed;
    inset:0;
    z-index:1000;

    display:grid;
    place-items:center;

    padding:20px;
}

.event-modal-backdrop{
    position:absolute;
    inset:0;

    background:rgba(5,25,40,.72);

    backdrop-filter:blur(3px);
}

.event-modal-dialog{
    position:relative;
    z-index:1;

    width:min(680px,100%);
    max-height:min(82vh,780px);

    overflow:auto;

    padding:28px;

    border-radius:18px;

    background:#fff;

    box-shadow:0 28px 90px rgba(0,0,0,.28);
}

.event-modal-close{
    position:absolute;
    top:14px;
    right:16px;

    width:38px;
    height:38px;

    padding:0;

    border:0;
    border-radius:50%;

    background:#eef4f7;
    color:#0f2d43;

    font-size:25px;
    line-height:1;
}

.event-modal-kicker{
    display:block;

    margin-bottom:7px;

    color:var(--ttc-blue);

    text-transform:uppercase;
    letter-spacing:.1em;

    font-size:12px;
    font-weight:850;
}

.event-modal-dialog h3{
    margin:0 45px 8px 0;

    color:var(--ttc-ink);

    font-size:26px;
}

.event-modal-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;

    margin:0 0 20px;

    color:#5d7383;

    font-size:14px;
}

.event-modal-body,
.news-modal-body{
    color:#29485d;

    line-height:1.65;
}

.event-modal-body{
    white-space:pre-wrap;
}

.news-modal-body img{
    max-width:100%;
    height:auto;
}

.news-modal-link{
    margin:22px 0 0;
}

body.modal-open{
    overflow:hidden;
}


/* =========================================================
   7. DARK MODE
   ========================================================= */

html[data-theme="dark"]{
    --text:#edf2f5;
    --muted:#aab8c1;
    --line:#34434c;
    --soft:#191f23;
    --white:#20272c;
    --shadow:0 18px 55px rgba(0,0,0,.22);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .ttc-site{
    background:#12171a;
    color:#edf2f5;
}

html[data-theme="dark"] .site-header{
    background:rgba(11,41,64,.97);

    box-shadow:0 1px 0 rgba(255,255,255,.08);
}

html[data-theme="dark"] .ttc-brand strong,
html[data-theme="dark"] .ttc-brand small,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .menu-toggle{
    color:#fff;
}

html[data-theme="dark"] .ttc-brand small{
    color:#c9d8e1;
}

html[data-theme="dark"] .main-nav a:hover{
    color:#53b5ff;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .ttc-card{
    border-color:#34434c;

    background:#20272c;
}

html[data-theme="dark"] .ttc-card h2,
html[data-theme="dark"] .ttc-training-row strong{
    color:#f3f7fa;
}

html[data-theme="dark"] .ttc-card-intro,
html[data-theme="dark"] .ttc-training-row small,
html[data-theme="dark"] .ttc-paper-row span,
html[data-theme="dark"] .ttc-paper-row small{
    color:#aab8c1;
}

html[data-theme="dark"] .ttc-paper-row time{
    background:#293136;
    color:#8ccaff;
}

html[data-theme="dark"] .ttc-paper-row strong{
    color:#8ccaff;
}

html[data-theme="dark"] .ttc-values h3{
    color:#f3f7fa;
}

html[data-theme="dark"] .ttc-values p{
    color:#aab8c1;
}

html[data-theme="dark"] .ttc-values article + article::before{
    background:#34434c;
}

html[data-theme="dark"] .ttc-news-notice{
    border-color:#496170;
    border-left-color:#1689e3;

    background:#20272c;

    box-shadow:0 12px 32px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ttc-news-copy > strong{
    color:#f3f7fa;
}

html[data-theme="dark"] .ttc-news-copy p{
    color:#c0cbd1;
}

html[data-theme="dark"] .ttc-next-paper{
    border-color:#496170;

    background:#20272c;

    box-shadow:0 15px 40px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ttc-next-paper strong{
    color:#f3f7fa;
}

html[data-theme="dark"] .ttc-next-paper small{
    color:#c0cbd1;
}

html[data-theme="dark"] .event-modal-backdrop{
    background:rgba(0,0,0,.76);
}

html[data-theme="dark"] .event-modal-dialog{
    background:#20272c;

    box-shadow:0 28px 90px rgba(0,0,0,.48);
}

html[data-theme="dark"] .event-modal-close{
    background:#303a40;
    color:#fff;
}

html[data-theme="dark"] .event-modal-dialog h3{
    color:#f3f7fa;
}

html[data-theme="dark"] .event-modal-meta,
html[data-theme="dark"] .event-modal-body,
html[data-theme="dark"] .news-modal-body{
    color:#c0cbd1;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
    border-color:#43535c;

    background:#293136;
    color:#edf2f5;
}

/* =========================================================
   8. SEHR KLEINE SMARTPHONES
   ========================================================= */

@media(max-width:520px){

    .ttc-footer-grid{
        grid-template-columns:1fr;
    }

    .ttc-footer-bottom span:last-child{
        gap:12px;
    }
}


@media(max-width:390px){

    .ttc-hero h1{
        font-size:36px;
    }

    .ttc-claim{
        font-size:22px;
    }

    .ttc-lead{
        font-size:13px;
    }
}


/* =========================================================
   v1.21 – Startseiten-Backend
   ========================================================= */

.start-mobile-fields{
    margin-top:8px;
    padding:16px;

    display:grid;
    gap:12px;

    border:1px solid #dfe7ec;
    border-radius:10px;

    background:#f7f9fc;
}

.start-mobile-fields > strong{
    color:var(--ttc-navy);
    font-size:14px;
}

.start-mobile-fields > small{
    margin-top:-8px;
    color:#687984;
    font-size:12px;
}

.start-values-grid-four{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

@media(max-width:760px){
    .start-values-grid-four{
        grid-template-columns:minmax(0,1fr);
    }
}


/* =========================================================
   v1.22 – Visuelle Icon-Auswahl im Startseiten-Backend
   ========================================================= */

.start-icon-field{
    display:grid;
    gap:8px;
}

.start-icon-field-label{
    color:var(--admin-navy,var(--ttc-navy));
    font-size:14px;
    font-weight:750;
}

.start-icon-picker{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
}

.start-icon-option{
    position:relative;

    min-width:0;

    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px !important;

    padding:10px 7px;

    border:1px solid #d7e1e8;
    border-radius:9px;

    background:#fff;

    cursor:pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.start-icon-option:hover{
    border-color:#9bbbd3;

    background:#f8fbfd;
}

.start-icon-option input{
    position:absolute;

    width:1px !important;
    height:1px !important;

    opacity:0;
    pointer-events:none;
}

.start-icon-preview{
    width:48px;
    height:48px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(8,113,201,.11) 0%,
            rgba(8,113,201,.05) 58%,
            rgba(8,113,201,0) 72%
        );

    color:var(--ttc-blue);
}

.start-icon-preview svg{
    width:36px;
    height:36px;

    fill:none;
    stroke:currentColor;
    stroke-width:2.5;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.start-icon-name{
    min-height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#526778;

    text-align:center;

    font-size:10px;
    font-weight:700;
    line-height:1.2;
}

.start-icon-option:has(input:checked){
    border-color:var(--ttc-blue);

    background:#f1f6fd;

    box-shadow:
        0 0 0 2px rgba(10,61,145,.08),
        0 7px 18px rgba(10,61,145,.08);
}

.start-icon-option:has(input:checked) .start-icon-preview{
    background:#e7f0fc;
    color:var(--ttc-blue);
}

.start-icon-option:has(input:checked) .start-icon-name{
    color:var(--ttc-blue);
}

.start-icon-option:has(input:focus-visible){
    outline:3px solid rgba(10,61,145,.16);
    outline-offset:2px;
}

@media(max-width:900px){
    .start-icon-picker{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:520px){
    .start-icon-picker{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .start-icon-option{
        padding:9px 5px;
    }
}

/* Haupticons basieren auf der konsistenten Tabler-Line-Formsprache (MIT). */


/* =========================================================
   v1.32 – Trainingszeiten analog Altpapier
   ========================================================= */

.ttc-heading-paddle{
    width:26px;
    height:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 26px;
    color:var(--ttc-blue);
}

.ttc-heading-paddle svg{
    width:26px;
    height:26px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}


/* =========================================================
   v1.34 – Verein / Vorstand
   ========================================================= */

.ttc-club-page{
    padding-bottom:48px;
}

.ttc-club-intro{
    padding:46px 0 38px;
    background:linear-gradient(135deg,#061f4f 0%,#0a3d91 100%);
    color:#fff;
}

.ttc-club-intro .section-kicker{
    color:#78adf5;
}

.ttc-club-intro h1{
    margin:6px 0 10px;
    color:#fff;
    font-size:42px;
    line-height:1.05;
}

.ttc-club-intro p{
    max-width:620px;
    margin:0;
    color:#dce8fb;
    font-size:14px;
    line-height:1.6;
}

.ttc-board-section{
    padding-top:40px;
}

.ttc-board-section h2{
    margin:5px 0 18px;
    color:var(--ttc-ink);
    font-size:27px;
}

.ttc-board-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}

.ttc-board-person{
    min-width:0;
    display:flex;
    align-items:center;
    gap:14px;
    padding:17px;
    border:1px solid #e0e6ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 28px rgba(17,49,97,.06);
}

.ttc-board-avatar{
    width:60px;
    height:60px;
    flex:0 0 60px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:50%;
    background:#edf3fb;
    color:var(--ttc-blue);
    font-size:17px;
    font-weight:850;
}

.ttc-board-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ttc-board-person-copy{
    min-width:0;
}

.ttc-board-role{
    display:block;
    margin-bottom:3px;
    color:var(--ttc-blue);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.ttc-board-person h3{
    margin:0;
    color:var(--ttc-ink);
    font-size:17px;
}

.ttc-board-person a{
    display:inline-block;
    max-width:100%;
    margin-top:5px;
    overflow-wrap:anywhere;
    color:#65758b;
    font-size:11px;
    text-decoration:none;
}

.board-group-field{
    display:grid;
    gap:6px;
    margin-top:14px;
}

.board-group-label{
    color:var(--admin-navy,var(--ttc-navy));
    font-size:14px;
    font-weight:750;
}

.board-group-field .checkline{
    min-height:30px;
}

.board-group-field small{
    color:#748298;
    font-size:11px;
}

.board-group-badge{
    display:inline-flex;
    width:max-content;
    margin-top:4px;
    padding:3px 7px;
    border-radius:999px;
    background:#edf3fb;
    color:var(--ttc-blue);
    font-size:10px;
    font-weight:800;
}

@media(max-width:900px){
    .ttc-board-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .ttc-club-intro{
        padding:34px 0 29px;
    }

    .ttc-club-intro h1{
        font-size:32px;
    }

    .ttc-board-section{
        padding-top:30px;
    }

    .ttc-board-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .ttc-board-person{
        padding:14px;
    }

    .ttc-board-avatar{
        width:54px;
        height:54px;
        flex-basis:54px;
    }
}


/* =========================================================
   v1.35 – Vereinsdaten
   ========================================================= */

.ttc-club-facts{
    display:flex;
    gap:12px;
    flex-wrap:wrap;

    padding-top:22px;
}

.ttc-club-fact{
    min-width:220px;

    display:grid;
    gap:3px;

    padding:14px 17px;

    border:1px solid #dfe6ef;
    border-radius:11px;

    background:#fff;

    box-shadow:0 8px 22px rgba(17,49,97,.05);
}

.ttc-club-fact span{
    color:#718096;

    text-transform:uppercase;
    letter-spacing:.04em;

    font-size:9px;
    font-weight:800;
}

.ttc-club-fact strong{
    color:var(--ttc-ink);

    font-size:14px;
    line-height:1.35;
}

@media(max-width:620px){
    .ttc-club-facts{
        display:grid;
        grid-template-columns:1fr;
        gap:9px;
    }

    .ttc-club-fact{
        min-width:0;
    }
}


/* =========================================================
   v1.37 – Highlights Vereinsseite
   ========================================================= */

.ttc-highlights-section{
    padding-top:38px;
}

.ttc-highlights-section h2{
    margin:5px 0 18px;
    color:var(--ttc-ink);
    font-size:27px;
}





@media(max-width:760px){
    .ttc-highlights-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .ttc-highlights-section{
        padding-top:30px;
    }
}


/* =========================================================
   v1.38 – Fakten / Highlights
   ========================================================= */

.ttc-club-facts-section{
    padding-top:30px;
}

.ttc-club-facts-section h2{
    margin:0 0 14px;

    color:var(--ttc-ink);

    font-size:27px;
}

.ttc-club-facts-section .ttc-club-facts{
    padding-top:0;
}



@media(max-width:760px){
    .ttc-club-facts-section{
        padding-top:24px;
    }

    .ttc-club-facts-section h2{
        font-size:23px;
    }

    .ttc-highlights-grid{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   v1.39 – Highlights wie Fakten
   ========================================================= */

.ttc-highlights-facts{
    padding-top:0;
}

.ttc-highlights-facts .ttc-club-fact{
    flex:1 1 220px;
}

.ttc-highlights-facts .ttc-club-fact strong{
    font-weight:700;
}

@media(max-width:620px){
    .ttc-highlights-facts .ttc-club-fact{
        width:100%;
    }
}


/* =========================================================
   v1.40 – Fakten & Highlights einheitliches 4er-Grid
   ========================================================= */

.ttc-club-facts,
.ttc-highlights-facts{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.ttc-club-fact,
.ttc-highlights-facts .ttc-club-fact{
    min-width:0;
    width:auto;
    flex:none;
}

@media(max-width:900px){
    .ttc-club-facts,
    .ttc-highlights-facts{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .ttc-club-facts,
    .ttc-highlights-facts{
        grid-template-columns:minmax(0,1fr);
        gap:9px;
    }

    .ttc-highlights-facts .ttc-club-fact{
        width:auto;
    }
}


/* =========================================================
   v1.41 – TTC Dark Mode
   Navy-/Blau-Farbwelt auf Basis der realen Startseite
   ========================================================= */

.theme-toggle{
    width:38px;
    height:38px;
    flex:0 0 38px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    margin-left:2px;
    padding:0;

    border:1px solid rgba(10,61,145,.14);
    border-radius:50%;

    background:#f5f8fd;
    color:var(--ttc-blue);

    font-size:20px;
    line-height:1;

    box-shadow:none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.theme-toggle:hover{
    background:#edf4ff;
    border-color:rgba(10,61,145,.28);
    transform:translateY(-1px);
}


/* ---------- Dark palette ---------- */

html[data-theme="dark"]{
    --ttc-blue:#3f8cff;
    --ttc-blue-light:#67a6ff;
    --ttc-navy:#061a36;
    --ttc-ink:#f4f7fb;

    --text:#e8eef7;
    --muted:#9eafc5;
    --line:#20364f;
    --soft:#091a2d;
    --white:#0c2037;

    --shadow:0 18px 55px rgba(0,0,0,.24);

    --navy:var(--ttc-navy);
    --navy2:#0d2c4d;
    --blue:var(--ttc-blue);
    --teal:#43a9b2;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.ttc-site{
    background:#061426;
    color:var(--text);
}


/* ---------- Header ---------- */

html[data-theme="dark"] .site-header{
    background:rgba(5,18,34,.97);
    box-shadow:0 1px 0 rgba(115,153,199,.16);
}

html[data-theme="dark"] .ttc-brand strong,
html[data-theme="dark"] .ttc-brand small,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .menu-toggle{
    color:#f6f9fd;
}

html[data-theme="dark"] .ttc-brand small{
    color:#c1d0e2;
}

html[data-theme="dark"] .main-nav a:hover{
    color:#4d96ff;
}

html[data-theme="dark"] .theme-toggle{
    border-color:#1b3858;
    background:#091d34;
    color:#4d96ff;
}

html[data-theme="dark"] .theme-toggle:hover{
    border-color:#31577e;
    background:#102945;
}


/* ---------- Hero bleibt TTC-blau, nur etwas nächtlicher ---------- */

html[data-theme="dark"] .ttc-hero{
    background:
        linear-gradient(
            118deg,
            #031225 0%,
            #062652 52%,
            #0a3f86 100%
        );
}

html[data-theme="dark"] .ttc-hero.has-photo::before{
    background:
        linear-gradient(
            90deg,
            #031225 0%,
            #062652 39%,
            rgba(6,38,82,.93) 50%,
            rgba(5,31,61,.55) 74%,
            rgba(3,18,37,.24) 100%
        );
}

html[data-theme="dark"] .ttc-claim{
    color:#5598ff;
}


/* ---------- News / nächste Sammlung ---------- */

html[data-theme="dark"] .ttc-news-notice,
html[data-theme="dark"] .ttc-next-paper{
    border-color:#213a56;
    background:#0b1f35;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
}

html[data-theme="dark"] .ttc-news-notice{
    border-left-color:#3f8cff;
}

html[data-theme="dark"] .ttc-news-symbol{
    background:#102d50;
    color:#6aa8ff;
}

html[data-theme="dark"] .ttc-news-copy > strong,
html[data-theme="dark"] .ttc-next-paper strong{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-news-copy p,
html[data-theme="dark"] .ttc-next-paper small{
    color:#a9b8ca;
}

html[data-theme="dark"] .ttc-next-icon{
    background:#0d3b83;
}


/* ---------- Leitmotive ---------- */

html[data-theme="dark"] .ttc-values{
    background:#061426;
}

html[data-theme="dark"] .ttc-values h3{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-values p{
    color:#9eafc5;
}

html[data-theme="dark"] .ttc-value-icon{
    background:
        radial-gradient(
            circle,
            rgba(63,140,255,.17) 0%,
            rgba(63,140,255,.065) 58%,
            rgba(63,140,255,0) 73%
        );
}

html[data-theme="dark"] .ttc-value-icon svg{
    stroke:#4d96ff;
}

html[data-theme="dark"] .ttc-values article + article::before{
    background:#20364f;
}


/* ---------- Trainingszeiten / Altpapier ---------- */

html[data-theme="dark"] .ttc-maincards{
    background:#061426;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .ttc-card{
    border-color:#20364f;
    background:#0b1f35;
    box-shadow:0 16px 42px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ttc-card h2{
    color:#579aff;
}

html[data-theme="dark"] .ttc-card-intro{
    color:#9eafc5;
}

html[data-theme="dark"] .ttc-training-row,
html[data-theme="dark"] .ttc-paper-row{
    border-color:#20364f;
}

html[data-theme="dark"] .ttc-training-row strong{
    color:#f2f6fb;
}

html[data-theme="dark"] .ttc-training-row span{
    color:#d7e1ee;
}

html[data-theme="dark"] .ttc-training-row small,
html[data-theme="dark"] .ttc-paper-row span,
html[data-theme="dark"] .ttc-paper-row small{
    color:#9eafc5;
}

html[data-theme="dark"] .ttc-paper-row time{
    background:#102945;
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-paper-row strong{
    color:#579aff;
}


/* ---------- Allgemeine Inhaltsseiten / Verein ---------- */

html[data-theme="dark"] main.section,

/* =========================================================
   Vereinsseite – Gründung
   ========================================================= */

.ttc-founding-content{
    width:100%;
    color:#50636f;
    font-size:17px;
    line-height:1.7;
}

.ttc-founding-content > :first-child{
    margin-top:0;
}

.ttc-founding-content > :last-child{
    margin-bottom:0;
}

html[data-theme="dark"] .ttc-founding-content{
    color:var(--text);
}

html[data-theme="dark"] .ttc-club-page{
    background:#061426;
}

html[data-theme="dark"] .prose{
    color:#b5c3d4;
}

html[data-theme="dark"] main.section a{
    color:#67a6ff;
}

html[data-theme="dark"] .ttc-club-fact,
html[data-theme="dark"] .ttc-board-card{
    border-color:#20364f;
    background:#0b1f35;
    box-shadow:0 12px 32px rgba(0,0,0,.16);
}

html[data-theme="dark"] .ttc-club-fact span,
html[data-theme="dark"] .ttc-board-card p,
html[data-theme="dark"] .ttc-board-card small{
    color:#9eafc5;
}

html[data-theme="dark"] .ttc-club-fact strong,
html[data-theme="dark"] .ttc-club-facts-section h2,
html[data-theme="dark"] .ttc-highlights-section h2,
html[data-theme="dark"] .ttc-board-card h3{
    color:#f4f7fb;
}


/* ---------- Formulare / Modals ---------- */

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
    border-color:#29445f;
    background:#0e2742;
    color:#edf3fa;
}

html[data-theme="dark"] .event-modal-backdrop{
    background:rgba(1,8,16,.82);
}

html[data-theme="dark"] .event-modal-dialog{
    border:1px solid #20364f;
    background:#0b1f35;
    box-shadow:0 28px 90px rgba(0,0,0,.55);
}

html[data-theme="dark"] .event-modal-close{
    background:#102945;
    color:#fff;
}

html[data-theme="dark"] .event-modal-dialog h3{
    color:#f4f7fb;
}

html[data-theme="dark"] .event-modal-meta,
html[data-theme="dark"] .event-modal-body,
html[data-theme="dark"] .news-modal-body{
    color:#b5c3d4;
}


/* ---------- Footer ---------- */

html[data-theme="dark"] .ttc-footer{
    background:#04142a;
    border-top-color:#18334f;
}

html[data-theme="dark"] .ttc-footer,
html[data-theme="dark"] .ttc-footer a,
html[data-theme="dark"] .ttc-footer span{
    color:#d8e3f0;
}

html[data-theme="dark"] .ttc-footer strong{
    color:#f5f8fc;
}

html[data-theme="dark"] .ttc-footer-bottom{
    border-top-color:#18334f;
}


/* ---------- Mobile ---------- */

@media(max-width:800px){
    .theme-toggle{
        margin-left:auto;
    }

    .menu-toggle{
        margin-left:0 !important;
    }

    html[data-theme="dark"] .main-nav{
        background:#071a2e;
        box-shadow:0 18px 35px rgba(0,0,0,.38);
    }
}

@media(max-width:390px){
    .theme-toggle{
        width:34px;
        height:34px;
        flex-basis:34px;
        font-size:18px;
    }
}


/* =========================================================
   v1.42 – Kontaktbereich oberhalb Footer
   ========================================================= */

.ttc-contact-strip{
    padding:28px 0;

    border-top:1px solid #e0e6ef;

    background:#f7f9fc;
}

.ttc-contact-strip-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:42px;
}

.ttc-contact-block{
    min-width:0;

    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
}

.ttc-contact-block strong{
    margin-bottom:5px;

    color:var(--ttc-ink);

    font-size:13px;
    font-weight:800;
}

.ttc-contact-block span,
.ttc-contact-block a{
    color:#53657d;

    font-size:12px;
    line-height:1.55;
    text-decoration:none;
}

.ttc-contact-block a:hover{
    color:var(--ttc-blue);
    text-decoration:underline;
}

.ttc-footer{
    padding-top:0;
}

.ttc-footer-bottom-only{
    margin-top:0;
    padding-top:17px;
}


/* Dark Mode */

html[data-theme="dark"] .ttc-contact-strip{
    border-top-color:#18334f;

    background:#061a36;
}

html[data-theme="dark"] .ttc-contact-block strong{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-contact-block span,
html[data-theme="dark"] .ttc-contact-block a{
    color:#b4c2d3;
}

html[data-theme="dark"] .ttc-contact-block a:hover{
    color:#67a6ff;
}


/* =========================================================
   v1.42 – kumulative Dark-Mode-Korrekturen
   ========================================================= */

/* Desktop: Vereinsname im Hero auf einer Zeile */
@media(min-width:801px){
    .ttc-hero-copy{
        max-width:none;
        width:auto;
    }

    .ttc-hero h1{
        width:max-content;
        max-width:none;
        white-space:nowrap;
    }
}


/* Info-Symbol im Dark Mode */
html[data-theme="dark"] .ttc-news-symbol{
    background:#0d3b83;
    color:#fff;
}


/* Recycling-Symbol: Textfarbe konsistent */
html[data-theme="dark"] .ttc-next-icon{
    background:#0d3b83;
    color:#fff;

    font-family:
        "Arial Unicode MS",
        "Noto Sans Symbols 2",
        "Segoe UI Symbol",
        sans-serif;

    -webkit-font-smoothing:antialiased;
}


/* Vorstandskarten im Dark Mode */
html[data-theme="dark"] .ttc-board-person{
    border-color:#20364f;

    background:#0b1f35;

    box-shadow:0 12px 32px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ttc-board-role{
    color:#579aff;
}

html[data-theme="dark"] .ttc-board-person h3{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-board-person a{
    color:#a9b8ca;
}

html[data-theme="dark"] .ttc-board-person a:hover{
    color:#67a6ff;
}

html[data-theme="dark"] .ttc-board-avatar{
    background:#102945;
    color:#579aff;
}

html[data-theme="dark"] .ttc-board-avatar img{
    opacity:1;
}

html[data-theme="dark"] .ttc-board-section h2{
    color:#f4f7fb;
}


@media(max-width:760px){
    .ttc-contact-strip{
        padding:24px 0;
    }

    .ttc-contact-strip-grid{
        grid-template-columns:1fr;
        gap:22px;
    }
}


/* Globale Grid-Hilfe (wird auch außerhalb des Frontend-Spielplans verwendet) */
.cms-grid.four{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

@media(max-width:1000px){
    .cms-grid.four{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:520px){
    .cms-grid.four{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   UMGEBUNGS-KENNZEICHNUNG
   ========================================================= */
.environment-banner{
  position:relative;
  z-index:10000;
  width:100%;
  padding:7px 12px;
  background:#f6c344;
  color:#17212b;
  border-bottom:1px solid rgba(0,0,0,.18);
  text-align:center;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
}

[data-theme="dark"] .environment-banner{
  background:#f6c344;
  color:#17212b;
}


/* =========================================================
   IMPRESSUM – Vertretung des Vereins
   ========================================================= */
.imprint-representation{
  margin:28px 0;
}
.imprint-representation-intro{
  margin:0 0 18px;
  color:var(--muted);
}
.imprint-representatives{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:4px 0 22px;
  border-bottom:1px solid var(--line);
}
.imprint-representative{
  min-width:0;
  padding:4px 26px;
}
.imprint-representative:first-child{
  padding-left:14px;
}
.imprint-representative + .imprint-representative{
  border-left:1px solid var(--line);
}
.imprint-representative strong,
.imprint-representative span{
  display:block;
}
.imprint-representative strong{
  color:var(--text);
}
.imprint-representative span{
  margin-top:5px;
  color:var(--muted);
  font-size:.92rem;
}
.imprint-representation-rule{
  margin:20px 0 0;
  padding:7px 0 7px 14px;
  border:0;
  border-left:3px solid var(--ttc-blue-light);
  border-radius:0;
  background:transparent;
  color:var(--muted);
}
.imprint-representation-rule strong{
  color:var(--text);
}
html[data-theme="dark"] .imprint-representation-rule{
  background:transparent;
}
@media(max-width:720px){
  .imprint-representatives{
    grid-template-columns:1fr;
    padding-bottom:16px;
  }
  .imprint-representative,
  .imprint-representative:first-child{
    padding:10px 14px;
  }
  .imprint-representative + .imprint-representative{
    border-left:0;
    border-top:1px solid var(--line);
  }
  .imprint-representation-rule{
    margin-top:16px;
  }
}



/* =========================================================
   IMPRESSUM – kompaktere Hierarchie
   ========================================================= */
.imprint-card > h3{
  margin:30px 0 12px;
}
.imprint-card > h3:first-child{
  margin-top:0;
}
.imprint-card > p{
  margin-top:0;
  margin-bottom:18px;
}
.imprint-card .imprint-representation{
  margin:30px 0;
}
.imprint-card .imprint-representation h3{
  margin:0 0 12px;
}
.imprint-card .imprint-representation-intro{
  margin:0 0 14px;
}
.imprint-card .imprint-representatives{
  padding:2px 0 14px;
  border-bottom:0;
}
.imprint-card .imprint-representative{
  padding:4px 26px;
}
.imprint-card .imprint-representative:first-child{
  padding-left:14px;
}
.imprint-card .imprint-representative strong{
  color:inherit;
  font-weight:700;
}
.imprint-card .imprint-representative span{
  margin-top:4px;
}
.imprint-card .imprint-representation-rule{
  margin:16px 0 0;
  padding:7px 0 7px 14px;
}
.imprint-card .imprint-representation-rule strong{
  color:inherit;
}

@media(max-width:720px){
  .imprint-card > h3{
    margin-top:26px;
  }
  .imprint-card .imprint-representation{
    margin:26px 0;
  }
  .imprint-card .imprint-representatives{
    padding-bottom:10px;
  }
}

/* =========================================================
   PHASE 2 – DESKTOP-TYPOGRAFIE
   Nur Desktop; Tablet/Mobil bleiben unverändert.
   ========================================================= */
@media (min-width: 901px){
    .main-nav a{
        font-size:15px;
    }
}

/* =========================================================
   PHASE 2b – DESKTOP / FOOTER & KONTAKTBEREICH
   Mobile Darstellung bleibt unverändert.
   ========================================================= */
@media (min-width: 901px){
    .ttc-contact-strip{
        padding:34px 0;
    }

    .ttc-contact-block{
        gap:5px;
    }

    .ttc-contact-block strong{
        margin-bottom:6px;
        font-size:15px;
    }

    .ttc-contact-block span,
    .ttc-contact-block a{
        color:#465a73;
        font-size:14px;
        line-height:1.6;
    }

    .ttc-footer-bottom{
        font-size:13px;
    }

    .ttc-footer-bottom span,
    .ttc-footer-bottom a{
        font-size:13px;
    }
}
