/* ==========================================
   ALLGEMEINES STYLING (IFRAME KONTEXT)
   ========================================== */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background: transparent; 
    color: #333; 
    margin: 0; 
    padding: 5px;
}

/* ==========================================
   KALENDER NAVIGATION (VOR / ZURÜCK)
   ========================================== */
.calendar-navigation { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
}

.calendar-navigation h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    text-align: center;
}

/* Navigations-Buttons */
.btn-nav { 
    background: #007bff; 
    color: #fff; 
    padding: 10px 18px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-nav:hover { 
    background: #0056b3; 
    transform: translateY(-1px);
}

.btn-nav:active {
    transform: translateY(0);
}

/* ==========================================
   KALENDER GRID (2 MONATE NEBENEINANDER)
   ========================================== */
.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* Genau 2 Spalten nebeneinander auf Desktop */
    gap: 25px; 
    max-width: 100%;
}

/* Monats-Box */
.month-box { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    padding: 20px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.month-title { 
    text-align: center; 
    font-weight: bold; 
    margin-bottom: 18px; 
    font-size: 1.15rem; 
    color: #1a202c;
}

/* Tage-Raster */
.days-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center; 
    gap: 6px; 
}

/* Wochentags-Header (Mo, Di, Mi...) */
.day-name { 
    font-weight: 600; 
    color: #718096; 
    font-size: 0.85rem; 
    padding-bottom: 8px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Einzelne Tage-Zellen */
.day { 
    padding: 10px 0; 
    border-radius: 6px; 
    font-size: 0.9rem; 
    font-weight: 500;
}

/* Leere Zellen am Monatsanfang */
.day.empty { 
    background: transparent; 
}

/* Freie Tage */
.day.free { 
    background: #e6fffa; 
    color: #234e52; 
    border: 1px solid #b2f5ea;
}

/* Gebuchte / Belegte Tage */
.day.booked { 
    background: #fff5f5; 
    color: #742a2a; 
    border: 1px solid #fed7d7;
    text-decoration: line-through; 
    font-weight: 600;
    opacity: 0.8;
}

/* ==========================================
   RESPONSIVE ANPASSUNGEN (MOBILGERÄTE)
   ========================================== */
@media (max-width: 768px) {
    .calendar-navigation h2 {
        font-size: 1.1rem;
    }
    
    .btn-nav {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .calendar-grid { 
        grid-template-columns: 1fr; /* Wechselt auf Smartphones automatisch zu 1 Spalte */
        gap: 15px;
    }
    
    .month-box {
        padding: 15px;
    }
    
    .day {
        padding: 8px 0;
        font-size: 0.85rem;
    }
}
