/* style.css */
:root {
    --primary: #007bff;
    --bg: #f8f9fa;
    --card: #ffffff;
    --border: #dee2e6;
    --text: #333;
}

body {
    background-color: var(--bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.kalender-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* NAVIGATION */
.kalender-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.kalender-nav select, .btn {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* JAHRES-GRID (3 oder 4 Monate pro Zeile) */
.jahr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mini-monat-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-monat-card:hover {
    background: #f0f7ff;
}

.mini-monat-card h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    text-align: center;
    color: var(--primary);
}

/* DAS TAG-GRID (Universal) */
.tag-grid, .tag-grid-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.wochentag-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    padding-bottom: 5px;
}

/* UNTERSCHIED MONAT vs JAHR */
/* Große Ansicht */
.tag-zelle {
    background: white;
    border: 1px solid #f0f0f0;
    min-height: 80px;
    padding: 5px;
    position: relative;
}

/* Mini Ansicht (für das Jahr) */
.tag-grid-mini .tag-zelle {
    min-height: 25px;
    font-size: 0.75rem;
    padding: 2px;
}

.tag-heute {
    background: #fff9c4 !important;
    font-weight: bold;
}

.tag-mit-termin {
    background: #e3f2fd;
    color: var(--primary);
    font-weight: bold;
}

.termin-badge {
    font-size: 0.65rem;
    background: var(--primary);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    display: block;
    margin-top: 5px;
}

/* DETAIL / TAG ANSICHT */
.detail-view {
    max-width: 600px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.termin-karte {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
}

.termin-form {
    margin-top: 30px;
    padding: 20px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Farben für alle Grids (Monat UND Jahr) */
.tag-zelle.tag-rot,
.tag-zelle[style*="color: red"] {
    color: #e74c3c !important;
    font-weight: bold;
}

.tag-zelle.tag-heute {
    background-color: #f1c40f !important;
    border-radius: 50%;
}

.tag-zelle.tag-mit-termin {
    background-color: #3498db !important;
    color: white !important;
    border-radius: 4px;
}

/* Speziell für die Mini-Ansicht in der Jahresübersicht */
.tag-grid-mini .tag-zelle {
    font-size: 0.7em;
    padding: 2px;
    text-align: center;
}
