/* =========================================================
   DIGITAL DEN — ADMINISTRATION
   ========================================================= */

.nfl-status-panel { margin-bottom: 24px; }
.interest-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 220px; }
.interest-editor label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.interest-editor input { accent-color: var(--accent); }
.interest-save { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: transparent; color: var(--text-primary); cursor: pointer; }
.interest-save:disabled { opacity: .6; cursor: wait; }
.interest-message { width: 100%; color: var(--text-muted); font-size: 12px; white-space: normal; }
.nfl-status-panel button { padding: 10px 16px; border: 1px solid var(--text-muted); border-radius: 6px; background: transparent; color: var(--text-primary); cursor: pointer; }
.nfl-status-panel button:disabled { opacity: .6; cursor: wait; }
#nfl-status-values { padding: 0 24px 20px; }
.nfl-status-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.nfl-status-grid dt, .nfl-status-note { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.nfl-status-grid dd { margin: 8px 0 0; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .nfl-status-grid { grid-template-columns: 1fr; gap: 16px; } .nfl-status-panel .admin-panel-header { align-items: flex-start; flex-wrap: wrap; } }


/* =========================================================
   1. GRUNDLAYOUT
   ========================================================= */

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
}

.admin-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 70px;
}


/* =========================================================
   2. LADE- UND ZUGRIFFSZUSTÄNDE
   ========================================================= */

.access-denied {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 13px;
}

.status-message {
    padding: 30px 24px;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.6;
}

.status-message.error {
    color: var(--danger);
}


/* =========================================================
   3. SEITENKOPF
   ========================================================= */

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 30px;
}

.admin-header > div {
    min-width: 0;
}

.admin-header h1 {
    margin: 0;

    color: var(--text-primary);

    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;

    letter-spacing: -0.03em;
}

.admin-header p {
    max-width: 650px;

    margin: 9px 0 0;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.6;
}

.back-link {
    flex-shrink: 0;

    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--bg-card);

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.back-link:hover {
    color: var(--accent);

    border-color: rgba(16, 185, 129, 0.45);

    background: var(--accent-soft);

    transform: translateY(-1px);
}


/* =========================================================
   4. ADMIN-NAVIGATION
   ========================================================= */

.admin-tabs {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;
    padding: 6px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: rgba(18, 24, 36, 0.82);
}

.admin-tab {
    min-height: 38px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    color: var(--text-muted);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.admin-tab:hover {
    color: var(--text-primary);

    background: rgba(255, 255, 255, 0.035);
}

.admin-tab.active {
    color: var(--accent);

    border-color: rgba(16, 185, 129, 0.30);

    background: var(--accent-soft);
}

.admin-view {
    display: block;
}

.admin-view[hidden] {
    display: none !important;
}


/* =========================================================
   5. ALLGEMEINE PANELS
   ========================================================= */

.admin-panel {
    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background: rgba(18, 24, 36, 0.94);

    box-shadow:
        0 18px 45px -30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.admin-panel + .admin-panel {
    margin-top: 20px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border-color);
}

.admin-panel-header > div {
    min-width: 0;
}

.admin-panel-header h2 {
    margin: 0;

    color: var(--text-primary);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 650;
}

.admin-panel-header p {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 12.5px;
    line-height: 1.5;
}


/* =========================================================
   6. FORMULARFELDER
   ========================================================= */

.admin-input,
.admin-select {
    width: 100%;
    min-height: 40px;

    padding: 0 12px;

    outline: none;

    border: 1px solid var(--border-color);
    border-radius: 9px;

    background: #0d121c;

    color: var(--text-primary);

    font-family: var(--font-body);
    font-size: 12.5px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.admin-input::placeholder {
    color: #566174;
}

.admin-input:hover,
.admin-select:hover {
    border-color: #2c3a55;
}

.admin-input:focus,
.admin-select:focus {
    border-color: var(--accent);

    background: #0f1520;

    box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-select {
    cursor: pointer;
}

.admin-input:disabled,
.admin-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* =========================================================
   7. BENUTZERVERWALTUNG
   ========================================================= */

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.user-list {
    width: 100%;

    border-collapse: collapse;
}

.user-list th,
.user-list td {
    padding: 16px 24px;

    border-bottom: 1px solid var(--border-color);

    text-align: left;
    vertical-align: middle;
}

.user-list th {
    background: rgba(255, 255, 255, 0.015);

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.user-list td {
    color: var(--text-primary);

    font-size: 13px;
}

.user-list tbody tr {
    transition: background-color 0.16s ease;
}

.user-list tbody tr:hover {
    background: rgba(255, 255, 255, 0.018);
}

.user-list tr:last-child td {
    border-bottom: none;
}


/* ---------------------------------------------------------
   Rollen-Badge
   --------------------------------------------------------- */

.role-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border: 1px solid rgba(16, 185, 129, 0.30);
    border-radius: 999px;

    background: var(--accent-soft);

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}


/* ---------------------------------------------------------
   Rollen-Dropdown
   --------------------------------------------------------- */

.role-dropdown {
    position: relative;

    width: 150px;
}

.role-dropdown-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 9px 12px;

    border: 1px solid var(--border-color);
    border-radius: 8px;

    background: #0d121c;

    color: var(--text-primary);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.role-dropdown-button:hover {
    border-color: rgba(16, 185, 129, 0.45);

    background: #0f1520;
}

.role-dropdown.open .role-dropdown-button {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px var(--accent-soft);
}

.role-dropdown-arrow {
    color: var(--accent);

    font-size: 9px;

    transition: transform 0.18s ease;
}

.role-dropdown.open .role-dropdown-arrow {
    transform: rotate(180deg);
}

.role-dropdown-menu {
    position: absolute;
    z-index: 100;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;

    padding: 5px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: #121824;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.48);
}

.role-dropdown-option {
    width: 100%;

    display: block;

    padding: 9px 10px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: var(--text-primary);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.role-dropdown-option:hover,
.role-dropdown-option.active {
    color: var(--accent);

    background: var(--accent-soft);
}

.role-dropdown.loading {
    opacity: 0.5;
    pointer-events: none;
}


/* =========================================================
   8. NFL-NEWS — FILTERLEISTE
   ========================================================= */

.nfl-admin-toolbar {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(150px, 1fr)
        minmax(145px, 0.9fr)
        minmax(150px, 0.9fr)
        minmax(175px, 1fr);

    gap: 10px;

    padding: 18px 24px;

    border-bottom: 1px solid var(--border-color);

    background: rgba(255, 255, 255, 0.012);
}

.nfl-admin-count {
    flex-shrink: 0;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   9. NFL-NEWS — ARTIKELÜBERSICHT
   ========================================================= */

.nfl-article-list {
    display: flex;
    flex-direction: column;
}

.nfl-admin-article {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: start;

    gap: 24px;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border-color);

    cursor: pointer;

    content-visibility: auto;
    contain-intrinsic-size: auto 110px;

    transition:
        background-color 0.16s ease;
}

.nfl-admin-article:last-child {
    border-bottom: none;
}

.nfl-admin-article:hover {
    background: rgba(255, 255, 255, 0.025);
}

.nfl-admin-article:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.nfl-admin-title {
    margin: 0 0 7px;

    color: var(--text-primary);

    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.nfl-admin-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px 12px;

    margin-bottom: 12px;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
}

.nfl-admin-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.nfl-admin-id {
    flex-shrink: 0;

    padding-top: 2px;

    color: #64748b;

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.admin-empty {
    padding: 50px 24px;

    color: var(--text-muted);

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   10. CHIPS
   ========================================================= */

.admin-chip {
    min-height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border: 1px solid var(--border-color);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;
}

.admin-chip.safe {
    color: #34d399;

    border-color: rgba(52, 211, 153, 0.28);

    background: rgba(52, 211, 153, 0.08);
}

.admin-chip.spoiler {
    color: #f87171;

    border-color: rgba(248, 113, 113, 0.30);

    background: rgba(248, 113, 113, 0.09);
}


/* =========================================================
   11. NFL-ARTIKELMODAL
   ========================================================= */

.admin-modal[hidden] {
    display: none;
}

.admin-modal {
    position: fixed;
    z-index: 1000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

.admin-modal-backdrop {
    position: absolute;

    inset: 0;

    /*
       Kein backdrop-filter.

       Das Abdunkeln reicht optisch aus und verhindert,
       dass der Browser beim Scrollen permanent die gesamte
       Seite hinter dem Modal weichzeichnen muss.
    */

    background: rgba(0, 0, 0, 0.78);
}

.admin-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(820px, 100%);
    max-height: calc(100vh - 64px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: 18px;

    background: var(--bg-card);

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.50);

    /*
       Modal erhält einen eigenen Rendering-Bereich.
       Das reduziert unnötige Neuberechnungen außerhalb
       des Dialogs.
    */

    contain: layout paint;
}

.admin-modal-header {
    flex: 0 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding: 22px 24px;

    border-bottom: 1px solid var(--border-color);

    background: var(--bg-card);
}

.admin-modal-header h2 {
    margin: 4px 0 0;

    font-size: 20px;
}

.admin-modal-eyebrow {
    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-modal-close {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);
    border-radius: 9px;

    background: transparent;

    color: var(--text-primary);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background-color 0.15s ease;
}

.admin-modal-close:hover {
    border-color: var(--accent);

    background: var(--accent-soft);

    color: var(--accent);
}

.admin-modal-content {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 24px;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.admin-modal-open {
    overflow: hidden;
}


/* =========================================================
   12. ARTIKELDETAILS
   ========================================================= */

.nfl-detail-section + .nfl-detail-section {
    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--border-color);
}

.nfl-detail-section h3 {
    margin: 0 0 14px;

    font-size: 14px;
    line-height: 1.4;
}

.nfl-detail-topline {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 16px;
}

.nfl-detail-topline .admin-chip,
.nfl-detail-section .admin-chip {
    min-height: 28px;

    padding: 0 10px;

    font-size: 11px;
}

.nfl-detail-title {
    margin: 0 0 24px !important;

    font-size: 22px !important;
    line-height: 1.4;
}

.nfl-detail-description {
    margin: -8px 0 24px;

    padding: 16px 18px;

    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;

    background: rgba(255, 255, 255, 0.02);

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.7;
}

.nfl-detail-description.empty {
    color: var(--text-muted);

    border-left-color: var(--border-color);

    font-style: italic;
}

.nfl-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.nfl-detail-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 14px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-primary);

    font-size: 13px;
    line-height: 1.5;
}

.nfl-detail-label {
    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nfl-detail-input {
    width: 100%;

    margin-top: 2px;
}

.nfl-detail-empty {
    color: var(--text-muted);

    font-size: 13px;
}

.nfl-detail-source-link {
    display: inline-flex;

    color: var(--accent);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.nfl-detail-source-link:hover {
    text-decoration: underline;
}


/* =========================================================
   13. DETAILBEREICH-ÜBERSCHRIFTEN
   ========================================================= */

.nfl-detail-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.nfl-detail-section-header h3 {
    margin-bottom: 4px;
}

.nfl-detail-section-description {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.5;
}

.nfl-team-selection-count {
    flex: 0 0 auto;

    padding: 5px 9px;

    border: 1px solid var(--border-color);
    border-radius: 999px;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   14. TEAM-AUSWAHL
   ========================================================= */

.nfl-team-selector {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 8px;
}

.nfl-team-option {
    min-width: 0;
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    border: 1px solid var(--border-color);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.02);

    color: var(--text-muted);

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.nfl-team-option:hover {
    border-color: rgba(255, 255, 255, 0.20);

    background: rgba(255, 255, 255, 0.04);

    color: var(--text-primary);
}

.nfl-team-option.selected {
    border-color: var(--accent);

    background: var(--accent-soft);

    color: var(--text-primary);
}

.nfl-team-option-code {
    flex: 0 0 auto;

    min-width: 29px;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.nfl-team-option-name {
    min-width: 0;

    overflow: hidden;

    color: inherit;

    font-size: 11px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   15. SPIEL-AUSWAHL
   ========================================================= */

.nfl-game-selector-toolbar {
    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr);

    gap: 10px;

    margin-bottom: 12px;
}

.nfl-game-selector {
    max-height: 360px;

    display: flex;
    flex-direction: column;

    gap: 7px;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 4px;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.nfl-game-option {
    width: 100%;
    min-height: 58px;

    display: grid;

    grid-template-columns:
        24px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border: 1px solid var(--border-color);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.02);

    color: var(--text-muted);

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.nfl-game-option:hover {
    border-color: rgba(255, 255, 255, 0.20);

    background: rgba(255, 255, 255, 0.04);

    color: var(--text-primary);
}

.nfl-game-option.selected {
    border-color: var(--accent);

    background: var(--accent-soft);

    color: var(--text-primary);
}

.nfl-game-option-check {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);
    border-radius: 6px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 700;
}

.nfl-game-option.selected .nfl-game-option-check {
    border-color: var(--accent);
}

.nfl-game-option-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nfl-game-option-main strong {
    color: var(--text-primary);

    font-size: 12px;
}

.nfl-game-option-main span {
    color: var(--text-muted);

    font-size: 10px;
}

.nfl-game-option-id {
    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 9px;

    white-space: nowrap;
}


/* =========================================================
   16. DETAILANSICHT — AKTIONEN
   ========================================================= */

.nfl-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--border-color);
}

.nfl-detail-actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.nfl-edit-status {
    color: var(--text-muted);

    font-size: 12px;
}

.nfl-edit-status.success {
    color: #34d399;
}

.nfl-edit-status.error {
    color: #f87171;
}


/* ---------------------------------------------------------
   Primärer Button
   --------------------------------------------------------- */

.admin-primary-button {
    min-height: 40px;

    padding: 0 16px;

    border: 1px solid var(--accent);
    border-radius: 9px;

    background: var(--accent);

    color: #07110e;

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        filter 0.15s ease,
        opacity 0.15s ease;
}

.admin-primary-button:hover {
    filter: brightness(1.08);
}

.admin-primary-button:disabled {
    opacity: 0.55;

    cursor: wait;
}


/* ---------------------------------------------------------
   Sekundärer Button
   --------------------------------------------------------- */

.admin-secondary-button {
    min-height: 40px;

    padding: 0 16px;

    border: 1px solid var(--border-color);
    border-radius: 9px;

    background: transparent;

    color: var(--text-primary);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease;
}

.admin-secondary-button:hover {
    border-color: var(--accent);

    background: var(--accent-soft);

    color: var(--accent);
}

.admin-secondary-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/* =========================================================
   17. FOCUS / TASTATURBEDIENUNG
   ========================================================= */

.admin-tab:focus-visible,
.back-link:focus-visible,
.role-dropdown-button:focus-visible,
.role-dropdown-option:focus-visible,
.admin-input:focus-visible,
.admin-select:focus-visible,
.admin-modal-close:focus-visible,
.admin-primary-button:focus-visible,
.admin-secondary-button:focus-visible,
.nfl-team-option:focus-visible,
.nfl-game-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* =========================================================
   18. RESPONSIVE — MITTLERE BILDSCHIRME
   ========================================================= */

@media (max-width: 1100px) {

    .nfl-admin-toolbar {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .nfl-admin-toolbar > :first-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   19. RESPONSIVE — TABLET / MOBIL
   ========================================================= */

@media (max-width: 760px) {

    .admin-container {
        width: min(100% - 24px, 760px);

        padding-top: 24px;
    }

    .admin-header {
        flex-direction: column;

        margin-bottom: 24px;
    }

    .back-link {
        align-self: flex-start;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tab {
        flex: 1;
    }

    .admin-panel-header {
        padding: 18px;
    }

    .user-list th,
    .user-list td {
        padding: 14px 16px;

        white-space: nowrap;
    }

    .nfl-admin-toolbar {
        grid-template-columns: 1fr;

        padding: 16px;
    }

    .nfl-admin-toolbar > :first-child {
        grid-column: auto;
    }

    .nfl-admin-article {
        gap: 12px;

        padding: 18px;
    }

    .admin-modal {
        padding: 12px;
    }

    .admin-modal-dialog {
        max-height: calc(100vh - 24px);

        border-radius: 14px;
    }

    .admin-modal-header {
        padding: 18px;
    }

    .admin-modal-content {
        padding: 18px;
    }

    .nfl-detail-grid {
        grid-template-columns: 1fr;
    }

    .nfl-detail-section-header {
        flex-direction: column;

        gap: 8px;
    }

    .nfl-team-selector {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .nfl-game-selector-toolbar {
        grid-template-columns: 1fr;
    }

    .nfl-game-option {
        grid-template-columns:
            24px
            minmax(0, 1fr);
    }

    .nfl-game-option-id {
        display: none;
    }

    .nfl-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nfl-detail-actions-right {
        align-items: stretch;
        flex-direction: column;
    }
}


/* =========================================================
   20. RESPONSIVE — KLEINE HANDYS
   ========================================================= */

@media (max-width: 480px) {

    .admin-container {
        width: min(100% - 16px, 480px);
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-tabs {
        gap: 4px;

        padding: 4px;
    }

    .admin-tab {
        padding: 0 10px;

        font-size: 12px;
    }

    .admin-panel {
        border-radius: 12px;
    }

    .admin-panel-header {
        align-items: flex-start;

        padding: 16px;
    }

    .nfl-admin-article {
        grid-template-columns: 1fr;
    }

    .nfl-admin-id {
        grid-row: 1;

        padding: 0;
    }

    .nfl-team-selector {
        grid-template-columns: 1fr;
    }

    .nfl-detail-title {
        font-size: 19px !important;
    }
}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .admin-tab,
    .back-link,
    .role-dropdown-button,
    .role-dropdown-arrow,
    .role-dropdown-option,
    .user-list tbody tr,
    .nfl-admin-article,
    .admin-modal-close,
    .admin-primary-button,
    .admin-secondary-button,
    .nfl-team-option,
    .nfl-game-option {
        transition: none;
    }
}
