/**
 * Edelweiss Product Booking Calendar – CSS
 *
 * Styles für Admin-Cards (Buchungskalender-Tab im Produktmanager)
 * und Frontend-Kalender (wird in späteren Prompts ergänzt).
 *
 * Mobile-First: Grundlage ist die mobile Darstellung, Desktop-Erweiterungen per Breakpoints.
 */

/* ══════════════════════════════════════════════
   Admin: Allgemeine Card-Styles
   ══════════════════════════════════════════════ */

.edelweiss-booking-calendar-editor {
    max-width: 900px;
}

.edelweiss-bcal-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5em;
}

.edelweiss-bcal-card h3 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-size: 14px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   Admin: Status-Badges
   ══════════════════════════════════════════════ */

.edelweiss-bcal-badge-active {
    background: #edf7ed;
    color: #1e4620;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
}

.edelweiss-bcal-badge-warning {
    background: #fff8e1;
    color: #7c6900;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
}

.edelweiss-bcal-badge-none {
    background: #fde8e8;
    color: #8b0000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
}

/* ══════════════════════════════════════════════
   Admin: View-Mode Button-Group
   ══════════════════════════════════════════════ */

.edelweiss-bcal-view-mode-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 360px;
}

.edelweiss-bcal-view-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #f7f7f7;
    color: #2c3338;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-align: center;
}

.edelweiss-bcal-view-mode-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6fc;
}

.edelweiss-bcal-view-mode-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 600;
}

.edelweiss-bcal-view-mode-btn input[type="radio"] {
    display: none;
}

/* Desktop: 4 Spalten nebeneinander */
@media (min-width: 600px) {
    .edelweiss-bcal-view-mode-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ══════════════════════════════════════════════
   Admin: Quantity-Selector
   ══════════════════════════════════════════════ */

.edelweiss-bcal-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.edelweiss-bcal-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #f7f7f7;
    color: #2c3338;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    line-height: 1;
    padding: 0;
}

.edelweiss-bcal-qty-btn:hover {
    background: #e0e0e0;
}

.edelweiss-bcal-qty-btn:active {
    background: #d0d0d0;
}

.edelweiss-bcal-qty-input {
    width: 52px;
    height: 44px;
    border: none;
    border-left: 1px solid #ccd0d4;
    border-right: 1px solid #ccd0d4;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #2c3338;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
    padding: 0;
}

.edelweiss-bcal-qty-input::-webkit-outer-spin-button,
.edelweiss-bcal-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ══════════════════════════════════════════════
   Admin: Toggle-Switch
   ══════════════════════════════════════════════ */

.edelweiss-bcal-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.edelweiss-bcal-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.edelweiss-bcal-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccd0d4;
    border-radius: 26px;
    transition: background-color 0.2s ease;
}

.edelweiss-bcal-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.edelweiss-bcal-toggle input:checked + .edelweiss-bcal-toggle-slider {
    background-color: #2271b1;
}

.edelweiss-bcal-toggle input:checked + .edelweiss-bcal-toggle-slider::before {
    transform: translateX(22px);
}

.edelweiss-bcal-toggle input:focus + .edelweiss-bcal-toggle-slider {
    box-shadow: 0 0 0 2px #2271b1;
}

/* ══════════════════════════════════════════════
   Admin: Einstellungen-Card Felder
   ══════════════════════════════════════════════ */

.edelweiss-bcal-field {
    margin-bottom: 1.5em;
}

.edelweiss-bcal-field > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.edelweiss-bcal-field .description {
    color: #646970;
    font-style: italic;
    font-size: 12px;
}

/* ══════════════════════════════════════════════
   Admin: Zuordnungs-Tabelle Responsive
   ══════════════════════════════════════════════ */

@media (max-width: 600px) {
    .edelweiss-booking-calendar-editor .wp-list-table th:nth-child(1),
    .edelweiss-booking-calendar-editor .wp-list-table td:nth-child(1) {
        display: none;
    }

    .edelweiss-booking-calendar-editor .wp-list-table th,
    .edelweiss-booking-calendar-editor .wp-list-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════
   Admin: Save-Button
   ══════════════════════════════════════════════ */

.edelweiss-bcal-settings-card .button-primary {
    min-height: 44px;
    padding: 8px 24px;
    font-size: 13px;
}

/* ══════════════════════════════════════════════
   Admin: Modal Styles
   ══════════════════════════════════════════════ */

.edelweiss-bcal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.edelweiss-bcal-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.edelweiss-bcal-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ccd0d4;
    font-weight: 600;
    font-size: 14px;
}

.edelweiss-bcal-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.edelweiss-bcal-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #ccd0d4;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.edelweiss-bcal-modal-search {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.edelweiss-bcal-modal-activity {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    min-height: 44px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.edelweiss-bcal-modal-activity:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.edelweiss-bcal-modal-activity.selected {
    border-color: #2271b1;
    background: #e7f0f9;
}

/* ══════════════════════════════════════════════
   Admin: Notices
   ══════════════════════════════════════════════ */

.edelweiss-bcal-notice {
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    border-left-width: 4px;
    border-left-style: solid;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Kalender-Container & Grundstruktur
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #2c3338;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.edelweiss-bcal-main-heading {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 0 0;
    text-align: left;
    color: #2c3338;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Sticky Header (Navigation + View-Switcher)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e2e4e7;
    margin-bottom: 16px;
}

.edelweiss-bcal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Navigation ausblenden in Listen- und Buttons-Ansicht */
.edelweiss-bcal-container[data-view-mode="list"] .edelweiss-bcal-nav,
.edelweiss-bcal-container[data-view-mode="buttons"] .edelweiss-bcal-nav {
    display: none !important;
}

.edelweiss-bcal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ccd0d4;
    border-radius: 50%;
    background: #fff;
    color: #2c3338;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.edelweiss-bcal-nav-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6fc;
}

.edelweiss-bcal-nav-btn:active {
    background: #e0eaf5;
}

.edelweiss-bcal-current-period {
    font-size: 16px;
    font-weight: 600;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}

/* Day-Hints: Klickbare Datum-Links für nächsten/vorherigen Kurs-Tag */
.edelweiss-bcal-day-hint {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #c0bd3e;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.edelweiss-bcal-day-hint:hover {
    color: #fff;
    background: #adb023;
    text-decoration: none;
}

.edelweiss-bcal-day-hint.is-prev {
    order: -1;
}

.edelweiss-bcal-day-hint.is-next {
    order: 99;
}

/* View-Switcher: Segmented Control */
.edelweiss-bcal-view-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #f0f0f1;
    border-radius: 8px;
    padding: 4px;
}

.edelweiss-bcal-view-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #50575e;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.edelweiss-bcal-view-btn:hover {
    color: #2c3338;
    background: rgba(255, 255, 255, 0.5);
}

.edelweiss-bcal-view-btn.active {
    background: #fff;
    color: #2c3338;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Desktop: Buttons nebeneinander */
@media (min-width: 576px) {
    .edelweiss-bcal-view-switcher {
        flex-wrap: nowrap;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Loading-Spinner & Skeleton
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 200px;
    padding: 40px 0;
}

.edelweiss-bcal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e4e7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: edelweiss-bcal-spin 0.8s linear infinite;
}

@keyframes edelweiss-bcal-spin {
    to { transform: rotate(360deg); }
}

/* Loading-Skeleton Platzhalter */
.edelweiss-bcal-skeleton {
    background: linear-gradient(90deg, #f0f0f1 25%, #e8e8e9 50%, #f0f0f1 75%);
    background-size: 200% 100%;
    animation: edelweiss-bcal-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes edelweiss-bcal-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.edelweiss-bcal-skeleton-card {
    height: 140px;
    margin-bottom: 12px;
}

/* Empty-State */
.edelweiss-bcal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Content-Bereich – Animationen
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-content {
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.edelweiss-bcal-content > div {
    animation: edelweiss-bcal-fade-in 0.25s ease-out;
}

@keyframes edelweiss-bcal-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Event-Cards (Listenansicht)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edelweiss-bcal-event-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-left: 4px solid var(--event-color, #2271b1);
}

.edelweiss-bcal-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.edelweiss-bcal-event-card.is-booked-out {
    opacity: 0.6;
    border-left-color: #ccd0d4;
}

.edelweiss-bcal-event-card-date {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 6px;
}

.edelweiss-bcal-event-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.edelweiss-bcal-event-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    font-size: 13px;
    color: #50575e;
}

.edelweiss-bcal-event-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3338;
}

.edelweiss-bcal-event-card-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Verfügbarkeitsbalken
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-avail-bar {
    position: relative;
    height: 24px;
    background: #f0f0f1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.edelweiss-bcal-avail-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.4s ease;
}

/* Farben: grün >50%, gelb 20-50%, rot <20% */
.edelweiss-bcal-avail-bar-fill.is-green {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.edelweiss-bcal-avail-bar-fill.is-yellow {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.edelweiss-bcal-avail-bar-fill.is-red {
    background: linear-gradient(90deg, #f44336, #ef5350);
}

.edelweiss-bcal-avail-bar-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #2c3338;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* Verfügbarkeits-Badge (Kompaktanzeige – dezent) */
.edelweiss-bcal-avail-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 3px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
    white-space: nowrap;
}

.edelweiss-bcal-avail-badge.is-green {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.edelweiss-bcal-avail-badge.is-yellow {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.edelweiss-bcal-avail-badge.is-red {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.edelweiss-bcal-avail-badge.is-full {
    background: #f0f0f1;
    color: #646970;
}

/* Preis-Badge bei Aktivitäten */
.edelweiss-bcal-event-price-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 0 8px 0 6px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space: nowrap;
    background: #1d2327; /* Kontrastreich (Dunkelgrau/Schwarz) */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Quantity-Selector (Event-Card)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-qty-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.edelweiss-bcal-qty-selector .edelweiss-bcal-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f7f7f7;
    color: #2c3338;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.edelweiss-bcal-qty-selector .edelweiss-bcal-qty-btn:hover {
    background: #e0e0e0;
}

.edelweiss-bcal-qty-selector .edelweiss-bcal-qty-btn:active {
    background: #d0d0d0;
}

.edelweiss-bcal-qty-value {
    min-width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #2c3338;
    border-left: 1px solid #e2e4e7;
    border-right: 1px solid #e2e4e7;
    padding: 0 4px;
    line-height: 40px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Buchen-Button (CTA)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-book-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 1 1 auto;
    min-height: 32px;
    padding: 6px 16px;
    border: 2px solid #c0bd3e;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #c0bd3e;
    color: #1d2327;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.edelweiss-bcal-book-btn:hover {
    background: #adb023;
    border-color: #adb023;
}

.edelweiss-bcal-book-btn:active {
    transform: scale(0.98);
}

.edelweiss-bcal-book-btn:disabled,
.edelweiss-bcal-event-card.is-booked-out .edelweiss-bcal-book-btn {
    background: #ccd0d4;
    color: #646970;
    border-color: #ccd0d4;
    cursor: not-allowed;
}

/* "Mehr laden"-Button */
.edelweiss-bcal-load-more {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: #fff;
    color: #2271b1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.edelweiss-bcal-load-more:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

/* Pagination */
.edelweiss-bcal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}

.edelweiss-bcal-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    background: #fff;
    color: #2271b1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.edelweiss-bcal-page-btn:hover:not([disabled]):not(.active) {
    background: #f0f6fc;
    border-color: #2271b1;
}

.edelweiss-bcal-page-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    cursor: default;
}

.edelweiss-bcal-page-btn[disabled] {
    color: #ccd0d4;
    cursor: not-allowed;
    border-color: #e2e4e7;
}

.edelweiss-bcal-page-prev,
.edelweiss-bcal-page-next {
    font-size: 18px;
    font-weight: 700;
}

.edelweiss-bcal-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 40px;
    color: #646970;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Tagesansicht (Timeline)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-day-view {
    position: relative;
}

.edelweiss-bcal-day-header {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    padding: 8px 0 10px;
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 12px;
}

.edelweiss-bcal-timeline {
    position: relative;
    border-left: 2px solid #e2e4e7;
    margin-left: 32px;
}

.edelweiss-bcal-time-row {
    display: flex;
    align-items: flex-start;
    min-height: 36px;
    border-bottom: 1px solid #f0f0f1;
    position: relative;
}

.edelweiss-bcal-time-label {
    position: absolute;
    left: -38px;
    top: -8px;
    width: 32px;
    text-align: right;
    font-size: 12px;
    color: #646970;
    font-weight: 500;
}

.edelweiss-bcal-time-slot {
    flex: 1;
    min-height: 50px;
}

.edelweiss-bcal-day-events {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.edelweiss-bcal-day-event {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 6px;
    padding: 4px 0 4px 8px;
    color: #1d2327;
    font-size: 11px;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
    background: #f0f0f1;
    border-left: 3px solid #c0bd3e;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.edelweiss-bcal-day-event:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.edelweiss-bcal-day-event.is-booked-out {
    opacity: 0.55;
}

.edelweiss-bcal-day-event.is-multiday {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    min-height: 80px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-bottom: 24px;
}

.edelweiss-bcal-day-event.is-multiday::after {
    content: "• • •";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, rgba(240, 240, 241, 0) 0%, rgba(240, 240, 241, 1) 100%);
    text-align: center;
    font-size: 20px;
    line-height: 30px;
    color: #646970;
    letter-spacing: 2px;
}

.edelweiss-bcal-day-event.is-multiday .edelweiss-bcal-day-event-time {
    white-space: normal;
    flex-wrap: wrap;
    line-height: 1.4;
}

.edelweiss-bcal-day-event-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.edelweiss-bcal-day-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    font-weight: 600;
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 1px;
    white-space: nowrap;
}

.edelweiss-bcal-day-event-title {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edelweiss-bcal-day-event-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Wochenansicht (7-Spalten Grid)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-week-view {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.edelweiss-bcal-week-header {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    border-bottom: 2px solid #e2e4e7;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.edelweiss-bcal-week-time-col {
    font-size: 11px;
    color: #646970;
    padding: 4px 6px;
    text-align: right;
    border-right: 1px solid #e2e4e7;
    min-width: 50px;
}

.edelweiss-bcal-week-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 4px;
    border-right: 1px solid #f0f0f1;
}

.edelweiss-bcal-week-day-col.is-today {
    background: #f0f6fc;
}

.edelweiss-bcal-week-day-name {
    font-size: 11px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edelweiss-bcal-week-day-num {
    font-size: 16px;
    font-weight: 700;
    color: #2c3338;
}

.edelweiss-bcal-week-day-col.is-today .edelweiss-bcal-week-day-num {
    color: #fff;
    background: #2271b1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.edelweiss-bcal-week-grid {
    position: relative;
}

.edelweiss-bcal-week-row {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    min-height: 32px;
    border-bottom: 1px solid #f0f0f1;
}

.edelweiss-bcal-week-cell {
    border-right: 1px solid #f0f0f1;
    min-height: 32px;
}

.edelweiss-bcal-week-events {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    right: 0;
    pointer-events: none;
}

.edelweiss-bcal-week-event {
    position: absolute;
    border-radius: 4px;
    padding: 4px 6px;
    color: #fff;
    font-size: 11px;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.edelweiss-bcal-week-event:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.edelweiss-bcal-week-event.is-booked-out {
    opacity: 0.55;
}

.edelweiss-bcal-week-event-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.edelweiss-bcal-week-event-time {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
}

.edelweiss-bcal-week-event-title {
    display: block;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edelweiss-bcal-week-event-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-top: 3px;
    min-width: 0;
    max-width: 100%;
}

.edelweiss-bcal-book-btn-compact {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    min-height: 22px !important;
    border-radius: 0 3px 3px 0 !important;
    border-width: 1px !important;
    border-left: none !important;
    background: #c3c828 !important;
    color: #1d2327 !important;
    border-color: #c3c828 !important;
    white-space: nowrap;
    min-width: 0 !important;
    width: auto !important;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edelweiss-bcal-book-btn-compact:hover {
    background: #adb023 !important;
    border-color: #adb023 !important;
}

/* ── Quantity-Dropdown (Select) – Connected Button-Group ── */
.edelweiss-bcal-qty-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fafae0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d2327' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 6px center;
    background-size: 12px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 22px 12px 8px;
    min-height: 48px;
    min-width: 68px;
    max-width: 90px;
    border: 2px solid #c3c828;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    text-align-last: center;
}

.edelweiss-bcal-qty-select:focus {
    outline: none;
    border-color: #adb023;
    box-shadow: 0 0 0 1px #adb023;
}

.edelweiss-bcal-qty-select option {
    color: #1d2327;
    background: #fff;
    font-weight: 600;
}

/* Wochenansicht: Kompakte Connected-Group */
.edelweiss-bcal-week-event-actions .edelweiss-bcal-qty-select {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 16px 2px 6px;
    min-height: 22px;
    min-width: 36px;
    max-width: 44px;
    border-width: 1px;
    border-radius: 3px 0 0 3px;
    background-position: right 4px center;
    background-size: 8px;
}

/* Overlay-Actions: Connected Button-Group */
.edelweiss-bcal-overlay-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-top: 16px;
}

/* Tages-/Listen-/Overlay-Ansicht: Standard Connected-Group */
.edelweiss-bcal-day-event-actions .edelweiss-bcal-qty-select,
.edelweiss-bcal-event-card-actions .edelweiss-bcal-qty-select,
.edelweiss-bcal-overlay-actions .edelweiss-bcal-qty-select {
    font-size: 16px;
    font-weight: 700;
    min-width: 68px;
    max-width: 90px;
}

.edelweiss-bcal-day-event-actions .edelweiss-bcal-qty-select:focus,
.edelweiss-bcal-event-card-actions .edelweiss-bcal-qty-select:focus,
.edelweiss-bcal-overlay-actions .edelweiss-bcal-qty-select:focus {
    border-color: #adb023;
    box-shadow: 0 0 0 1px #adb023;
}

.edelweiss-bcal-qty-compact {
    gap: 2px !important;
}

.edelweiss-bcal-qty-compact .edelweiss-bcal-qty-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

.edelweiss-bcal-qty-compact .edelweiss-bcal-qty-value {
    font-size: 11px !important;
    min-width: 18px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Monatsansicht (7-Spalten Kalender-Grid)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-month-view {
    user-select: none;
}

.edelweiss-bcal-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 4px;
}

.edelweiss-bcal-month-day-name {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edelweiss-bcal-month-grid {
    display: flex;
    flex-direction: column;
}

.edelweiss-bcal-month-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.edelweiss-bcal-month-cell {
    min-height: 56px;
    padding: 4px;
    border-bottom: 1px solid #f0f0f1;
    border-right: 1px solid #f0f0f1;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.edelweiss-bcal-month-cell:hover {
    background: #f0f6fc;
}

.edelweiss-bcal-month-cell.is-empty {
    background: #fafafa;
    cursor: default;
}

.edelweiss-bcal-month-cell.is-today {
    background: #f0f6fc;
}

.edelweiss-bcal-month-cell.has-events {
    font-weight: 600;
}

.edelweiss-bcal-month-cell-num {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c3338;
    margin-bottom: 4px;
}

.edelweiss-bcal-month-cell.is-today .edelweiss-bcal-month-cell-num {
    color: #fff;
    background: #2271b1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Event-Dots */
.edelweiss-bcal-month-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.edelweiss-bcal-month-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.edelweiss-bcal-month-dot-more {
    font-size: 10px;
    color: #646970;
    font-weight: 600;
    line-height: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Event-Detail-Overlay
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100010;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: edelweiss-bcal-overlay-in 0.2s ease-out;
}

@keyframes edelweiss-bcal-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.edelweiss-bcal-overlay-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 20px;
    animation: edelweiss-bcal-slide-up 0.25s ease-out;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

@keyframes edelweiss-bcal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.edelweiss-bcal-overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f0f1;
    color: #2c3338;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.edelweiss-bcal-overlay-close:hover {
    background: #e0e0e0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Admin-Vorschau-Liste
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edelweiss-bcal-preview-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 12px;
    border: 1px solid #f0f0f1;
    border-radius: 6px;
    background: #fafafa;
}

.edelweiss-bcal-preview-item strong {
    flex-basis: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRONTEND: Buttons-Ansicht (Tages-Badge-Buttons)
   ══════════════════════════════════════════════════════════════════════════════ */

.edelweiss-bcal-buttons-view {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    justify-content: flex-start;
}

.edelweiss-bcal-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 80px;
    max-width: 100px;
    padding: 12px 14px 10px;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    font-family: inherit;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    background: none;
}

.edelweiss-bcal-date-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.edelweiss-bcal-date-badge:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Farb-Varianten */
.edelweiss-bcal-date-badge.is-green {
    background: #333333;
    border-color: #c3c828;
    color: #c3c828;
}

.edelweiss-bcal-date-badge.is-green:hover {
    border-color: #b1b524;
    background: #444444;
}

.edelweiss-bcal-date-badge.is-yellow {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-color: #ffa726;
    color: #e65100;
}

.edelweiss-bcal-date-badge.is-yellow:hover {
    border-color: #fb8c00;
    background: linear-gradient(135deg, #ffecb3, #ffe082);
}

.edelweiss-bcal-date-badge.is-red {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #ef5350;
    color: #c62828;
}

.edelweiss-bcal-date-badge.is-red:hover {
    border-color: #e53935;
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
}

.edelweiss-bcal-date-badge.is-booked-out {
    opacity: 0.6;
    cursor: default;
}

.edelweiss-bcal-date-badge.is-booked-out:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Badge Inhalte */
.edelweiss-bcal-date-badge-day {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.edelweiss-bcal-date-badge-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin: 2px 0;
}

.edelweiss-bcal-date-badge-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.edelweiss-bcal-date-badge-free {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    color: #000000;
    white-space: nowrap;
}

.edelweiss-bcal-date-badge-free.is-full {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
}

.edelweiss-bcal-date-badge-count {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    color: #ffffff;
    opacity: 1;
}

/* Buttons-Ansicht Pagination */
.edelweiss-bcal-buttons-pagination-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edelweiss-bcal-buttons-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.edelweiss-bcal-buttons-page-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    background: transparent;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edelweiss-bcal-buttons-page-btn:hover {
    background: rgba(195, 200, 40, 0.1);
    border-color: #c3c828;
    color: #333333;
}

.edelweiss-bcal-buttons-page-btn.active {
    background: #333333;
    color: #c3c828;
    border-color: #333333;
}

/* Zurück-Button (wenn von Buttons → Tagesansicht gewechselt) */
.edelweiss-bcal-back-to-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.edelweiss-bcal-day-nav-wrapper {
    display: flex;
    gap: 8px;
}

.edelweiss-bcal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edelweiss-bcal-back-btn:hover {
    background: #333333;
    border-color: #333333;
    color: #c3c828;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE: < 576px (Mobile)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .edelweiss-bcal-current-period {
        font-size: 14px;
        min-width: 120px;
    }

    .edelweiss-bcal-event-card {
        padding: 14px 12px;
    }

    /* Connected Button-Group: rechts ausrichten auf Mobile */
    .edelweiss-bcal-event-card-actions,
    .edelweiss-bcal-day-event-actions {
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }

    .edelweiss-bcal-event-card-actions .edelweiss-bcal-book-btn,
    .edelweiss-bcal-day-event-actions .edelweiss-bcal-book-btn {
        flex: 0 0 auto;
        min-width: 0;
        padding: 4px 8px;
        font-size: 11px;
        white-space: normal;
        max-width: 68px;
        text-align: center;
        line-height: 1.2;
    }

    .edelweiss-bcal-event-card-actions .edelweiss-bcal-qty-select,
    .edelweiss-bcal-day-event-actions .edelweiss-bcal-qty-select {
        min-width: 44px;
        max-width: 56px;
        font-size: 13px;
    }

    /* Verfügbarkeitsbalken auf Mobile ausblenden (Badge wird genutzt) */
    .edelweiss-bcal-avail-bar {
        display: none;
    }

    /* Wochenansicht: Touch-Scroll aktivieren */
    .edelweiss-bcal-week-view {
        min-width: 600px;
    }

    /* Day-Hints: unter der Navigation auf Mobile */
    .edelweiss-bcal-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .edelweiss-bcal-day-hint {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Monats-Zellen kompakter */
    .edelweiss-bcal-month-cell {
        min-height: 44px;
        padding: 3px;
    }

    .edelweiss-bcal-month-cell-num {
        font-size: 12px;
    }

    .edelweiss-bcal-month-dot {
        width: 6px;
        height: 6px;
    }

    /* Overlay: volle Breite */
    .edelweiss-bcal-overlay {
        padding: 0;
    }

    .edelweiss-bcal-overlay-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    /* Buttons-Ansicht: kompaktere Badges auf Mobile */
    .edelweiss-bcal-buttons-view {
        gap: 8px;
        justify-content: center;
    }

    .edelweiss-bcal-date-badge {
        min-width: 68px;
        max-width: 88px;
        padding: 10px 10px 8px;
    }

    .edelweiss-bcal-date-badge-num {
        font-size: 24px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE: 576px – 768px (Tablet)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 576px) and (max-width: 767.98px) {
    .edelweiss-bcal-list-view {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .edelweiss-bcal-load-more {
        grid-column: 1 / -1;
    }

    .edelweiss-bcal-book-btn {
        min-width: 140px;
    }

    .edelweiss-bcal-overlay {
        align-items: center;
        padding: 24px;
    }

    .edelweiss-bcal-overlay-content {
        border-radius: 12px;
        max-height: 80vh;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE: > 768px (Desktop)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .edelweiss-bcal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .edelweiss-bcal-nav {
        margin-bottom: 0;
    }

    .edelweiss-bcal-view-switcher {
        max-width: 340px;
    }

    .edelweiss-bcal-event-card {
        padding: 18px 20px;
        max-width: 50%;
    }

    /* Tagesansicht: Kursbox bis fast links zur Zeitskalierungslinie */
    .edelweiss-bcal-day-event {
        left: 4px;
        right: 50%;
    }

    .edelweiss-bcal-book-btn {
        min-width: 160px;
    }

    .edelweiss-bcal-month-cell {
        min-height: 72px;
        padding: 6px;
    }

    .edelweiss-bcal-overlay {
        align-items: center;
        padding: 32px;
    }

    .edelweiss-bcal-overlay-content {
        border-radius: 12px;
        max-height: 75vh;
        animation-name: edelweiss-bcal-fade-in;
    }
}
