/* --- AGENDA-KOMPONENTEN --- */
.month-links button { width: 120px; padding: 0.5rem; cursor: pointer; border: 1px solid var(--border-color-medium); border-radius: 4px; background-color: var(--bg-month-button); color: var(--text-primary); transition: background-color 0.3s; white-space: nowrap; flex-shrink: 0; }
.month-links button:hover { background-color: var(--bg-month-button-hover); }
.active-month { background-color: var(--bg-month-button-active) !important; font-weight: bold; border-color: #f0c420; }

/* KORREKTUR: .generate-icon wird zu .generate-week-btn */
.generate-week-btn {
    padding: 0 1rem !important; /* Wichtig, um die Höhe des Buttons anzugleichen */
    gap: 0.5rem;
}
.generate-week-btn .material-symbols-outlined {
    font-size: 1.2em;
}
.generate-week-btn span {
    line-height: 1; /* Verhindert Zeilenumbruch im Button */
}
.generate-week-btn.loading .material-symbols-outlined { 
    animation: spin 1s linear infinite; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.week-card { background-color: var(--bg-table-container); border: 1px solid var(--border-color-light); border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 4px 12px var(--shadow-color); }
.week-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color-light); }
.week-title-group { display: flex; align-items: baseline; gap: 1rem; }
.week-number { font-size: 1.2rem; font-weight: bold; color: var(--text-secondary); }
.themenwoche-label { font-size: 1.2rem; font-weight: bold; color: var(--text-themenwoche); cursor: text; }
.themenwoche-label:focus { outline: 2px dashed var(--text-themenwoche); }
.week-days-header { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0.5rem 1.5rem; background-color: var(--bg-sidebar); color: var(--text-secondary); font-weight: bold; font-size: 0.9rem; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background-color: var(--border-color-light); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.day-card { background-color: var(--bg-table-container); padding: 1rem; min-height: 180px; display: flex; flex-direction: column; cursor: pointer; }
.day-card:hover { 
    outline: 2px solid var(--border-hover);
    outline-offset: -1px;
    z-index: 10; 
}
.day-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.day-date { font-weight: bold; color: var(--text-secondary); }
.day-status-icons { display: flex; gap: 0.25rem; color: var(--text-tertiary); }
.day-image-preview { height: 60px; width: 100%; margin-bottom: 0.75rem; border-radius: 4px; overflow: hidden; background-color: var(--bg-week-label); }
.day-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.day-image-preview img.is-placeholder { opacity: 0.6; }
.day-card-body { flex-grow: 1; }
.daily-title { font-size: 0.95rem; color: var(--text-primary); line-height: 1.4; }
.saisonale-themen-container { margin-top: 0.5rem; }
.highlight-event { display: block; font-size: 0.8em; color: var(--text-highlight-event); font-weight: bold; }
.day-card.card-freigegeben { background-color: var(--bg-freigegeben); }
.day-card.card-not-freigegeben { background-color: var(--bg-not-freigegeben); }
.day-card.current-day { box-shadow: inset 0 0 0 2px var(--bg-today-button); }
.day-card.highlight { border-left: 4px solid var(--text-highlight-event); }