.vfb-jahr-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.vfb-monat-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    text-align:center;
    text-decoration:none;
    color:#222;
    font-weight:600;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.vfb-monat-card:hover{
    transform:translateY(-2px);
}

/* Monatsansicht */

.vfb-kalender-app{
    max-width:900px;
    margin:0 auto;
}

.vfb-monat-header h2{
    text-align:center;
    margin:20px 0;
    font-size:32px;
    font-weight:700;
}

.vfb-kalender-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
}

.vfb-wochentag{
    text-align:center;
    font-weight:700;
    padding:10px 0;
}

.vfb-tag{
    background:#fff;
    border-radius:12px;
    min-height:70px;
    padding:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.vfb-tag.leer{
    background:transparent;
    box-shadow:none;
}

.vfb-tag span{
    font-weight:600;
}

.app-kalender-card{
    background:#ffffff;
    border-radius:20px;
    padding:20px;
    margin-bottom:18px;

    box-shadow:0 6px 20px rgba(0,0,0,.08);

    border-left:6px solid #00695c;
}

.app-kalender-card h3{
    margin:0 0 12px;
    color:#07163f;
    font-size:24px;
}

.app-kalender-card p{
    margin:6px 0;
    line-height:1.5;
    color:#444;
}

.vfb-kalender-liste{
    max-width:1000px;
    margin:0 auto;
    padding:20px;
}

@media (max-width:768px){

    .app-kalender-card{
        padding:18px;
        border-radius:16px;
    }

    .app-kalender-card h3{
        font-size:20px;
    }

    .app-kalender-card p{
        font-size:15px;
    }
}

.app-calendar{
    max-width:1000px;
    margin:0 auto;
    padding:18px;
    background:#fff;
}

.app-calendar-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.app-calendar-year{
    background:#f4f4f4;
    color:#111;
    text-decoration:none;
    padding:8px 14px;
    border-radius:18px;
    font-weight:700;
}

.app-calendar-actions{
    display:flex;
    gap:14px;
    font-size:22px;
}

.app-calendar-month{
    margin:0 0 18px;
    font-size:42px;
    color:#111;
}

.app-calendar-weekdays,
.app-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
}

.app-calendar-weekdays div{
    text-align:center;
    font-weight:700;
    font-size:13px;
    color:#555;
    padding-bottom:8px;
}

.app-calendar-day{
    min-height:92px;
    border-top:1px solid #e6e6e6;
    padding:8px 4px;
    box-sizing:border-box;
}

.app-calendar-day.empty{
    background:#fafafa;
}

.app-calendar-number{
    text-align:center;
    font-weight:800;
    font-size:20px;
    margin-bottom:6px;
}

.app-calendar-number.today{
    width:34px;
    height:34px;
    line-height:34px;
    background:#f04444;
    color:#fff;
    border-radius:50%;
    margin:0 auto 6px;
}

.app-calendar-events{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.app-calendar-event{
    font-size:11px;
    font-weight:700;
    padding:3px 7px;
    border-radius:8px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.event-training{background:#ffe37a;}
.event-ligaspiel{background:#b9d4ff;}
.event-turnier{background:#ffd0a3;}
.event-vorstand{background:#e3b7ff;}
.event-veranstaltung{background:#ffb3b3;}
.event-sonstiges{background:#d8dbe2;}

.app-calendar-legend{
    margin-top:22px;
    padding:14px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    font-size:14px;
}

.app-calendar-legend span{
    display:flex;
    align-items:center;
    gap:6px;
}

.app-calendar-legend i{
    width:12px;
    height:12px;
    border-radius:50%;
    display:inline-block;
}

.legend-training{background:#ffe37a;}
.legend-ligaspiel{background:#3d7df2;}
.legend-turnier{background:#ff9838;}
.legend-vorstand{background:#b845e5;}
.legend-veranstaltung{background:#f04444;}
.legend-sonstiges{background:#9aa0aa;}

    .app-calendar{
        padding:14px 12px;
    }

    .app-calendar-month{
        font-size:34px;
        margin-bottom:14px;
    }

    .app-calendar-day{
    min-height:92px;
    padding:8px 4px;
    box-sizing:border-box;
}

    .app-calendar-number{
        font-size:16px !important;
        margin-bottom:4px;
    }

    .app-calendar-number.today{
        width:30px;
        height:30px;
        line-height:30px;
        font-size:16px !important;
    }

    .app-calendar-event{
        font-size:8px !important;
        padding:2px 5px;
        border-radius:7px;
        max-width:100%;
    }

    .app-calendar-legend{
        font-size:13px;
        gap:10px 14px;
    }
}

/* ==========================================
   Kalender mit Spaltenlinien
========================================== */

.app-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);

    border-top:1px solid #e5e5e5;
    border-left:1px solid #e5e5e5;
}

.app-calendar-day{
    min-height:90px;

    padding:6px;

    border-right:1px solid #e5e5e5;
    border-bottom:1px solid #e5e5e5;

    box-sizing:border-box;
}

.app-calendar-number{
    text-align:center;
}
/* Wochentage exakt über den Kalenderspalten */

.app-calendar-weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);

    border-left:1px solid #e5e5e5;
    border-top:1px solid #e5e5e5;
}

.app-calendar-weekdays div{
    text-align:center;
    font-weight:700;
    color:#555;

    padding:8px 0;

    border-right:1px solid #e5e5e5;
    border-bottom:1px solid #e5e5e5;

    box-sizing:border-box;
}

/* Kalender direkt darunter ohne doppelte obere Linie */

.app-calendar-grid{
    border-top:none !important;
}


@media(max-width:768px){

    .app-calendar-events{
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        gap:4px;
        margin-top:8px;
    }

    .app-calendar-event{
        width:10px !important;
        height:10px !important;
        min-width:10px !important;
        padding:0 !important;
        border-radius:50% !important;
        overflow:hidden !important;
    }

    .app-calendar-event .event-text{
        display:none !important;
    }
}

/* Kategorie-Punkt + Team-Quadrat */

.app-calendar-event{
    display:flex;
    align-items:center;
    gap:4px;
    background:transparent !important;
    padding:2px 0 !important;
}

.event-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    flex:0 0 10px;
}

.event-square{
    width:10px;
    height:10px;
    border-radius:2px;
    display:inline-block;
    flex:0 0 10px;
}

/* Kategorien rund */

.event-training{background:#ffe37a;}
.event-ligaspiel{background:#3d7df2;}
.event-turnier{background:#ff9838;}
.event-vorstand{background:#b845e5;}
.event-veranstaltung{background:#f04444;}
.event-sonstiges{background:#9aa0aa;}

/* Teams eckig */

.team-vfb-rheydt-1{background:#1f5eff;}
.team-vfb-rheydt-2{background:#2ecc71;}
.team-vfb-rheydt-3{background:#ff9838;}
.team-vfb-rheydt-4{background:#e53935;}
.team-vfb-rheydt-5{background:#f4d03f;}
.team-vfb-rheydt-6{background:#8e44ad;}
.team-seniorenliga{background:#8b5a2b;}

@media(max-width:768px){

    .app-calendar-event{
        justify-content:center;
        gap:3px;
    }

    .event-dot,
    .event-square{
        width:8px !important;
        height:8px !important;
        flex-basis:8px !important;
    }

    .app-calendar-event .event-text{
        display:none !important;
    }
}

.app-calendar-day{
    cursor:pointer;
}

.app-calendar-day.selected{
    background:#f7fbff;
}

.app-day-view{
    margin-top:20px;
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
}

.app-day-view h3{
    margin:0 0 14px;
    color:#07163f;
}

.app-day-event{
    padding:14px 0;
    border-bottom:1px solid #eee;
}

.app-day-event:last-child{
    border-bottom:none;
}

.app-day-event-title{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:8px;
}

.app-day-event-meta{
    color:#444;
    line-height:1.6;
}
/* Team-Quadrate in der Legende anzeigen */
.app-calendar-legend .event-square{
    width:12px !important;
    height:12px !important;
    min-width:12px !important;
    border-radius:2px !important;
    display:inline-block !important;
}

.app-calendar-legend .event-square{
    width:12px !important;
    height:12px !important;
    min-width:12px !important;
    border-radius:2px !important;
    display:inline-block !important;
}


.team-vfb-rheydt-1,
.team-vfb-rheydt-2,
.team-vfb-rheydt-3,
.team-vfb-rheydt-4,
.team-vfb-rheydt-5,
.team-vfb-rheydt-6{
    background:red !important;
    width:12px !important;
    height:12px !important;
    display:inline-block !important;
}

