/* ============================================================
   13. Admin - Bereich (optimierter Feinschliff)
   ============================================================ */

.admin-card {
    margin-top: 20px;
    border: 1px solid #ffcccc;      /* vorher #2d3e50 → jetzt sanft rot */
    border-radius: 10px;
    overflow: hidden;
    background: #fdd9dc;            /* ganz leichtes Rot */
    padding: 20px;                  /* etwas mehr Luft */
    margin-bottom: 25px;            /* Leerzeile unter der Karte */
}

/* Abschnittsstruktur */
.admin-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e0e4ea;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;            /* Leerzeile zwischen Sektionen */
}

/* Buttons */
.admin-btn {
    background: #2d3e50;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.admin-btn:hover {
    background: #1c2733;
    transform: translateY(-1px);
}

/* Popup */
/* Popup Hintergrund */
.admin-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Popup Fenster */
.admin-popup-inner {
    background: #f8f9fb;
    padding: 26px 24px 34px;
    border-radius: 12px;
    width: 320px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative; /* wichtig für X-Button */
}

/* X-Button oben rechts */
.admin-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #2d3e50;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.admin-close-btn:hover {
    opacity: 1;
}

/* Label → Input enger */
.admin-popup-inner label {
    margin-bottom: 4px;
    font-weight: 600;
}

/* Inputs & Selects */
.admin-popup-inner input,
.admin-popup-inner select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9cdd4;
    border-radius: 6px;
    font-size: 15px;
}

/* Speichern-Button */
.admin-btn-primary {
    background: #2d3e50;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.admin-btn-primary:hover {
    background: #1c2733;
    transform: translateY(-1px);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Label → Input */
}



/* ---------------------------------------------*/
/* Terminliste im Admin-Bereich */
.admin-termin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef2f7;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d6dde7;
    font-size: 13px;
}

/* Aktionen pro Termin */
.admin-termin-actions {
    display: flex;
    gap: 6px;
}

/* Bearbeiten */
.admin-edit-btn {
    background: #f0ad4e;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-edit-btn:hover {
    background: #ec971f;
}

/* Absage */
.admin-cancel-btn {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-cancel-btn:hover {
    background: #c9302c;
}

/* Löschen */
.admin-delete-btn {
    background: #5a6268;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-delete-btn:hover {
    background: #444b50;
}

.admin-termin-item.event-cancelled span {
    color: #ff4d4d;
    font-weight: bold;
}

.danger-btn {
    background: #b30000;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.danger-btn:hover {
    background: #cc0000;
}

.admin-edit-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.admin-edit-inputs label {
    font-size: 13px;
    color: #2d3e50;
    font-weight: 600;
}

.admin-edit-inputs input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #c9cdd4;
    border-radius: 6px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.admin-section h4 {
    border-bottom: 2px solid #b30000;
    padding-bottom: 4px;
    margin-bottom: 12px;
}

/* Mitgliederbereich: Buttons exakt wie Terminbereich erzwingen */
/* Admin: Termin- und Mitgliederlisten optisch angleichen */

/* Mitglieder-Buttons wie Termin-Buttons */
.admin-edit-btn,
.admin-delete-btn {
    background: #d2ddea !important;      /* heller Hintergrund wie Termin */
    border: 1px solid #3e5d84 !important; /* gleiche Rahmenfarbe */
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2d3e50 !important;            /* Icon-Farbe */
}

/* Hover-Effekt wie im Terminbereich */
.admin-edit-btn:hover,
.admin-delete-btn:hover {
    background: #dce3ec !important;       /* leicht dunkler */
}

.mitglied-kader-row {
    display: flex;
    justify-content: center;   /* zentriert die ganze Zeile */
    align-items: center;       /* Haken + Text vertikal mittig */
    gap: 8px;
    margin: 12px 0 20px 0;
}

.mitglied-kader-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    transform: translateY(0); /* falls vorher 1px drin war */
}

.mitglied-kader-row label {
    line-height: 18px;
}

.admin-popup-buttons {
    display: flex;
    justify-content: space-between;  /* links / rechts */
    width: 100%;
    margin-top: 20px;
}
/* PopUp- Fenster_Mitglieder __________________________ */
/* Popup-Layout deaktiviert Grid */
#admin-mitglied-popup .admin-popup-inner {
    display: block !important;
    background: #1D4A7A;        /* Hintergrund wie "Nächstes Training" */
    padding: 20px;
    border-radius: 10px;
    color: #fff;                /* Text hell */
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Überschrift mittig + farbig */
#admin-mitglied-popup #admin-mitglied-popup-title {
    text-align: center;
    color: #F2C94C;             /* hellblau */
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 20px;
}

/* Abstand zwischen den Gruppen (Label + Input) */
#admin-mitglied-popup .admin-popup-inner > label {
    margin-top: 12px;
}

#admin-mitglied-popup .admin-popup-inner > label:first-of-type {
    margin-top: 0;
}

/* Inputs weiß lassen */
#admin-mitglied-popup .admin-popup-inner input {
    background: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Labels gelb wie gewünscht */
#admin-mitglied-popup .admin-popup-inner label {
    color: #D6E7FF;             /* Gelb */
    font-weight: 500;
}

/* Checkbox-Zeile zentriert */
.mitglied-kader-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px 0;
}

.mitglied-kader-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.mitglied-kader-row label {
    line-height: 18px;
}

.mitglieder-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.danger-btn {
    background: #c62828;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.danger-btn:hover {
    background: #b71c1c;
}