/* Allgemeine Einstellungen */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

/* ===================== */
/* Login-Seite           */
/* ===================== */

.login-body {
    background: #f3f4f6;
    min-height: 100vh;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Login-Box */
.login-container {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    max-width: 380px;
    width: 100%;
    box-sizing: border-box;
}

.login-container h1 {
    margin-top: 0;
    font-size: 1.4rem;
    text-align: center;
    color: #111827;
}

.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Formularfelder allgemein */
.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #374151;
}

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
}

.field input[type="text"]:focus,
.field input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    width: auto;
}

/* Fehler & Footer */
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    color: #9ca3af;
}

/* ===================== */
/* Dashboard             */
/* ===================== */

.dashboard-body {
    background: #f9fafb;
    min-height: 100vh;
}

/* Header oben */
.dashboard-header {
    background: #111827;
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
}

.header-user {
    font-size: 0.9rem;
}

.logout-link {
    color: #f97373;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Hauptbereich */
.dashboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
    box-sizing: border-box;
}

.dashboard-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.dashboard-intro {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Kacheln / Tiles im Dashboard */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Responsiv: auf kleineren Bildschirmen weniger Spalten */
@media (max-width: 900px) {
    .tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    display: block;
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #111827;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    border: 1px solid #e5e7eb;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
    background: #f9fafb;
}

.tile h2 {
    margin: 0.4rem 0 0.4rem;
    font-size: 1.15rem;
}

.tile p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* kleines Label über dem Titel */
.tile-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

/* ===================== */
/* Dokumente             */
/* ===================== */

.docs-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* linker Block (Titel + Breadcrumb) */
.docs-header-main {
    flex: 1 1 260px;
    min-width: 260px;
}

/* rechter Block mit Formularen – nebeneinander */
.docs-actions {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    justify-content: flex-end;
}

/* jedes Formular nimmt die Hälfte (bzw. passt sich an) */
.inline-form {
    display: flex;
    flex: 1 1 200px;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Textfeld im Ordner-Formular darf schön breit sein */
.inline-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.inline-form input[type="text"],
.inline-form input[type="file"] {
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Meldungen */
.messages {
    margin-bottom: 1rem;
}

.msg {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.msg-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.msg-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Tabelle mit Dateien */
.docs-list {
    margin-top: 0.5rem;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.docs-table th,
.docs-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.docs-table th {
    background: #f3f4f6;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table a {
    color: #2563eb;
    text-decoration: none;
}

.docs-table a:hover {
    text-decoration: underline;
}

.row-parent td {
    background: #f9fafb;
    font-style: italic;
}

/* ===================== */
/* Upload Drag & Drop    */
/* ===================== */

.file-input-hidden {
    display: none;
}

.dropzone {
    border: 2px dashed #9ca3af;
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
    background: #f9fafb;
    text-align: center;
    max-width: 100%;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.dropzone-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.dropzone-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.dropzone.dragover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* ===================== */
/* Modal für Dokumente   */
/* ===================== */

.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.modal-dialog {
    position: relative;
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 0.9rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1010;
}

.modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    z-index: 1011;
}

.modal-close:hover {
    color: #111827;
}

.modal-frame {
    border: none;
    width: 100%;
    height: 100%;
}

/* ===================== */
/* Aktionen (Icons)      */
/* ===================== */

.action-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-form {
    display: inline;
    margin: 0;
}

/* generische Icon-Buttons (für Lösch-Mülltonne) */
.icon-btn {
    border: none;
    background: transparent;
    padding: 0.15rem 0.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
}

.icon-btn-danger {
    color: #dc2626;
}

.icon-btn-danger:hover {
    background: #fee2e2;
}

/* Download-Icon-Link */
.icon-link {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.15rem 0.3rem;
    border-radius: 999px;
    color: #2563eb;
}

.icon-link:hover {
    background: #eff6ff;
}

/* ===================== */
/* Mitglied anlegen      */
/* und bearbeiten        */
/* ===================== */

.member-card {
    background: #ffffff;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.75rem;
    margin-top: 1rem;
}

.member-form {
    margin: 0;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
}

.member-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #111827;
}

/* Textarea im Field */
.field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
}

.field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
}

/* Rollen-Box */
.roles-box {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 0.9rem 0.75rem;
    background: #f9fafb;
}

.roles-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 0.6rem;
}

.roles-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.roles-item {
    font-size: 0.9rem;
    color: #111827;
}

.roles-item input[type="checkbox"] {
    margin-right: 0.4rem;
}

/* Sonstiges mit eigenem Eingabefeld */
.roles-item-sonstiges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.roles-item-sonstiges input[type="text"] {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
}

.roles-item-sonstiges input[type="text"]:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Aktionen unter dem Formular */
.member-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

/* ===================== */
/* Mitgliederliste       */
/* ===================== */

.member-list-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.member-list-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.member-list-search input[type="text"] {
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    min-width: 220px;
}

.member-list-search input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
}

.member-list-reset {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
}

.member-list-reset:hover {
    text-decoration: underline;
}

.member-list-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.member-list-wrapper {
    margin-top: 0.5rem;
}

.member-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.member-list-table th,
.member-list-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.member-list-table th {
    background: #f3f4f6;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.member-list-table tr:last-child td {
    border-bottom: none;
}

.member-list-small {
    font-size: 0.85rem;
    color: #4b5563;
}

.member-list-edit-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: #2563eb;
    white-space: nowrap;
}

.member-list-edit-link:hover {
    text-decoration: underline;
}

/* ===================== */
/* Belegungsplan / Kalender */
/* ===================== */

.calendar-wrapper {
    background: #ffffff;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.25rem 1.25rem;
    margin-top: 1rem;
}

.calendar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.calendar-nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
}

.calendar-nav-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.calendar-weekdays > div {
    text-align: center;
    padding: 0.2rem 0;
}

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

.calendar-day {
    position: relative;
    min-height: 60px;
    background: #f9fafb;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    padding: 0.35rem 0.45rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
}

.calendar-day-empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.calendar-day-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.85rem;
}

.calendar-day-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

/* heute markieren */
.calendar-day-today {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Tag mit Einträgen */
.calendar-day-has-entries {
    background: #eef2ff;
}

/* aktuell ausgewählter Tag */
.calendar-day-selected {
    background: #dbeafe;
}

/* Hover-Effekt */
.calendar-day:not(.calendar-day-empty):hover {
    background: #e5f0ff;
    border-color: #2563eb;
}

/* Tages-Details */
.day-detail {
    margin-top: 1.75rem;
}

.day-detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.day-detail-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #111827;
}

.day-detail-sub {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.day-detail-actions {
    display: flex;
    align-items: center;
}

/* Layout: Liste links, Formular rechts (auf groß), untereinander auf klein */
.day-entry-layout {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1.2fr);
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .day-entry-layout {
        grid-template-columns: 1fr;
    }
}

/* Karten mit Einträgen */
.day-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.day-entry-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.day-entry-time {
    font-weight: 600;
    color: #111827;
}

.day-entry-title {
    margin-top: 0.1rem;
    font-weight: 500;
    color: #111827;
}

.day-entry-desc {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.day-entry-meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.day-entry-empty {
    font-size: 0.9rem;
    color: #6b7280;
    padding: 0.5rem 0.2rem;
}

/* Formular rechts */
.day-entry-form-wrapper {
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.8rem 0.9rem 0.9rem;
}

.day-entry-form-wrapper h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: #111827;
}

.day-entry-form .field {
    margin-bottom: 0.7rem;
}

/* Raumzeile im Belegungs-Eintrag */
.day-entry-room {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #111827;
    font-weight: 500;
}

/* Raumzeile im Belegungs-Eintrag */
.day-entry-room {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #111827;
    font-weight: 500;
}

/* Auswahl der Räume (Radio-Buttons als Chips) */
.room-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.room-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.85rem;
    cursor: pointer;
}

.room-option input[type="radio"] {
    margin: 0;
}

.room-option span {
    line-height: 1.2;
}

/* leicht hervorheben, wenn ausgewählt */
.room-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #1d4ed8;
}

/* ===================== */
/* Mitgliederliste       */
/* ===================== */

.member-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.member-list-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.member-list-sort-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.member-list-sort-select {
    font-size: 0.85rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.4rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

/* Tabellenlayout */
.member-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.member-table thead th {
    text-align: left;
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    white-space: nowrap;
}

.member-table tbody td {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.member-table tbody tr:hover {
    background: #f9fafb;
}

/* Ausgetretene Mitglieder: leicht ausgegraut, ganz unten regelt SQL */
.member-row-exited {
    background: #f9fafb;
    color: #6b7280;
    opacity: 0.7;
}

.member-row-exited .btn {
    opacity: 0.9;
}

/* Status-Badges */
.member-status {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.member-status-active {
    background: #dcfce7;
    color: #166534;
}

.member-status-exited {
    background: #e5e7eb;
    color: #4b5563;
}

/* Kontakt & Rollen */
.member-contact-line {
    line-height: 1.2;
}

.member-contact-empty {
    color: #9ca3af;
    font-size: 0.85rem;
}

.member-name {
    font-weight: 500;
    color: #111827;
}

.member-roles {
    font-size: 0.85rem;
    color: #4b5563;
}

/* Links im Button-Style ohne Unterstreichung */
a.btn,
a.btn-small {
    text-decoration: none;
}

a.btn:hover,
a.btn-small:hover {
    text-decoration: none;
}

/* Kalender-Farben: grün für freie Tage, kräftiger bei Belegung, rot bei Blockierung */

.calendar-day {
    background: #ecfdf3; /* leicht grün für Tage ohne Einträge */
    border-color: #bbf7d0;
}

.calendar-day-has-entries {
    background: #ffedd5;      /* helles Orange */
    border-color: #fb923c;    /* kräftiger Orange-Rand */
}

.calendar-day-has-entries .calendar-day-number,
.calendar-day-has-entries .calendar-day-count {
    color: #c2410c;           /* dunkleres Orange für die Zahl */
}

.calendar-day-blocked {
    background: #fee2e2; /* rötlich für blockierten Tag */
    border-color: #dc2626;
}


.calendar-day-blocked .calendar-day-number {
    color: #b91c1c;
}

/* Info-Boxen zur Tagesblockierung */

.day-block-info {
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #7f1d1d;
    font-size: 0.9rem;
}

.day-block-info-soft {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.day-block-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.day-block-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.block-reason-input {
    min-width: 0;
    flex: 1 1 200px;
    padding: 0.25rem 0.45rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.85rem;
}

/* Roter Button für Blockieren / Entsperren */

.btn-danger {
    background: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #7f1d1d;
}

/* ================================== */
/* Dashboard-Kacheln (Reparatur-Block) */
/* ================================== */

.dashboard-container {
    max-width: 1100px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #111827;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    border-color: #cbd5f5;
}

.card-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.card-text {
    font-size: 0.9rem;
    margin: 0;
    color: #6b7280;
}

/* Überschrift / Intro (falls noch nicht gestylt) */
.dashboard-intro {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 0.35rem;
}


.file-dropzone {
    border: 2px dashed #cbd5f5;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: background 0.1s ease, border-color 0.1s ease;
}

.file-dropzone-over {
    background: #eef2ff;
    border-color: #6366f1;
}

.file-list {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.attachment-pill {
    padding: 0.25rem 0;
}
.email-attachments {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.9rem;
}
.email-attachments .attachment-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}
.email-attachments .attachment-list li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.email-attachments .attachment-name {
    font-weight: 500;
}
.email-attachments .attachment-size {
    font-size: 0.8rem;
    color: #6b7280;
}
