.bic-calendar-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    background: #fff;
    color: #222;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.bic-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #ddd;
}

.bic-calendar-title {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
}

.bic-navigation {
    display: flex;
    gap: 8px;
}

.bic-navigation a {
    display: inline-block;
    padding: 8px 13px;
    text-decoration: none;
    color: #333;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.bic-navigation a:hover {
    background: #e5e5e5;
}

.bic-weekdays,
.bic-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bic-weekdays {
    background: #eee;
    border-bottom: 1px solid #ccc;
}

.bic-weekday {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #ccc;
}

.bic-weekday:last-child {
    border-right: 0;
}

.bic-day {
    min-height: 130px;
    padding: 7px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

.bic-day:nth-child(7n) {
    border-right: 0;
}

.bic-empty {
    background: #f7f7f7;
}

.bic-today {
    background: #fffbea;
}

.bic-day-number {
    display: inline-block;
    min-width: 25px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.bic-today .bic-day-number {
    padding: 4px 7px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    text-align: center;
}

.bic-event {
    display: block;
    margin: 3px 0;
    padding: 5px 6px;
    border-left: 4px solid #4472c4;
    background: #e9f0fb;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
}


.dhVergangenheit{
            border-left: 4px solid #979797;
            background: #e1e1e1;
            font-family:'Roboto', sans-serif;
    font-size: 14px;
 
}


.dhBelegt{
            border-left: 4px solid #fa0505;
            background: #ffdbdb;
            font-family:'Roboto', sans-serif;
    font-size: 14px;
 
}

.dhFrei{
             border-left: 4px solid #48e443;
            background: #dcffdc;
            font-family:'Roboto', sans-serif;
     font-size: 14px;

}



.bic-event-title {
    font-weight: bold;
}

.bic-event-time {
    color: #555;
    margin-right: 4px;
}

.bic-calendar-info {
    padding: 10px 20px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #ddd;
}

.bic-error {
    margin: 20px 0;
    padding: 15px;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 5px;
}

@media (max-width: 800px) {
    .bic-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bic-day {
        min-height: 100px;
        padding: 4px;
    }

    .bic-weekday {
        padding: 7px 2px;
        font-size: 12px;
    }

    .bic-event {
        padding: 3px;
        font-size: 10px;
    }

    .bic-event-time {
        display: none;
    }
}

@media print {
    .bic-calendar-wrapper {
        box-shadow: none;
        border: 0;
    }

    .bic-navigation {
        display: none;
    }

    .bic-day {
        min-height: 120px;
    }
}
