/* Grunddesign & Farben (Modern Dark Mode) */
:root {
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --accent: #e50914; 
    --accent-hover: #b80710;
    --text-color: #f5f5f5;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.5;
}

/* Header & Logo */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container img { height: 45px; width: auto; display: block; }
header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Menü Links (FAQ, Forum, etc.) */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--accent);
}

/* Buttons & Links */
.btn-admin, .btn-logout, form button, .btn-back {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
}

form button { background-color: var(--accent); color: white; border: none; }
form button:hover { background-color: var(--accent-hover); }
.btn-admin, .btn-back { background-color: #333; color: #fff; }
.btn-admin:hover, .btn-back:hover { background-color: #444; }
.btn-logout { background-color: rgba(255, 82, 82, 0.1); color: #ff5252; }
.btn-logout:hover { background-color: rgba(255, 82, 82, 0.2); }

/* Formular-Elemente */
.form-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    border: 1px solid #2a2a2a;
}
.form-section h3 { margin-bottom: 15px; }

.request-form {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    gap: 12px;
    align-items: center;
}

form input, form select {
    padding: 12px;
    background: #2d2d2d;
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    outline: none;
}
form input:focus, form select:focus { border-color: var(--accent); }

/* Tabellen-Design für PC (Desktop) */
h3 { margin-bottom: 15px; font-weight: 600; }

.table-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 15px; }
th {
    background: #252525;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
tr:last-child td { border-bottom: none; }

/* Status-Badges */
.status-offen, .status-in-bearbeitung, .status-bestätigt, .status-abgelehnt, .status-aufgeschoben {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}
.status-offen { background: rgba(255, 255, 255, 0.1); color: #fff; }
.status-aufgeschoben { background: rgba(255, 152, 0, 0.15); color: #ff9800; }
.status-in-bearbeitung { background: rgba(33, 150, 243, 0.15); color: #2196f3; }
.status-bestätigt { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.status-abgelehnt { background: rgba(244, 67, 54, 0.15); color: #f44336; }

.admin-select { padding: 6px 10px; background: #252525; font-size: 14px; }

/* --- DIE PERFEKTE CARD-ANSICHT FÜR SMARTPHONES --- */
@media (max-width: 768px) {
    body { padding: 15px; }
    header { flex-direction: column; align-items: flex-start; }
    header nav { width: 100%; justify-content: flex-start; gap: 10px; }

    .request-form { grid-template-columns: 1fr; gap: 15px; }

    .table-container { background: transparent; border: none; }
    table, tbody, th, td, tr { display: block; }
    thead { display: none; }
    
    tr {
        position: relative; 
        border-radius: 14px;
        padding: 18px;
        padding-bottom: 40px; 
        margin-bottom: 18px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        display: flex;
        flex-wrap: wrap;
        align-items: center; 
    }

    /* KUGELSICHERE FARBEN */
    tr.row-film { background: linear-gradient(135deg, #111e2e 0%, #172436 100%); border: 1px solid #1f354d; }
    tr.row-serie { background: linear-gradient(135deg, #1e122b 0%, #251836 100%); border: 1px solid #34204d; }
    tr.row-fehler { background: linear-gradient(135deg, #2b1111 0%, #361717 100%); border: 1px solid #4d2020; }
    tr { background: var(--card-bg); border: 1px solid var(--border-color); }

    td { border: none; padding: 0; }

    /* --- GEMEINSAME BASICS (Für User & Admin) --- */
    td:nth-of-type(2) {
        order: 1; width: 50%; font-size: 17px; font-weight: 800; text-transform: uppercase;
        color: #fff; margin-bottom: 10px; 
    }
    td:nth-of-type(3) {
        order: 3; width: auto; font-size: 20px; font-weight: 700; color: #fff; margin-right: 8px; line-height: 1.2;
    }
    td:nth-of-type(4) {
        order: 4; width: auto; font-size: 14px; color: rgba(255,255,255,0.4); font-weight: 500; align-self: flex-end; padding-bottom: 2px;
    }
    td:nth-of-type(1) {
        position: absolute; bottom: 14px; right: 18px; color: rgba(255, 255, 255, 0.4); font-size: 12px; font-style: italic; letter-spacing: 0.5px;
    }
    td:empty { display: none !important; }

    /* --- SPEZIELL FÜR DIE USER-ANSICHT --- */
    .table-container:not(.admin-table-container) td:nth-of-type(5) {
        order: 2; width: 50%; display: flex; justify-content: flex-end; margin-bottom: 10px;
    }
    .table-container:not(.admin-table-container) td:nth-of-type(5)::before { display: none; }
    
    .table-container:not(.admin-table-container) td:nth-of-type(6) {
        order: 5; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.1); display: flex; flex-direction: column;
    }
    .table-container:not(.admin-table-container) td:nth-of-type(6)::before {
        content: "Hinweis vom Admin:"; color: rgba(255,255,255,0.4); font-size: 12px; margin-bottom: 4px;
    }

    /* --- SPEZIELL FÜR DIE ADMIN-ANSICHT FIXES --- */
    .admin-table-container td:nth-of-type(2) { width: 100%; margin-bottom: 4px; padding-right: 50px; }
    .admin-table-container td:nth-of-type(7) { position: absolute; top: 14px; right: 14px; width: auto; padding: 0; }
    .admin-table-container td:nth-of-type(5) { order: 5; width: 100%; margin-top: 15px; display: block; }
    .admin-table-container td:nth-of-type(5) select { width: 100%; padding: 10px; margin: 0; }
    .admin-table-container td:nth-of-type(6) {
        order: 6; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.1); display: flex; flex-direction: column;
    }
    .admin-table-container td:nth-of-type(6)::before { content: "Hinweis eintragen:"; color: rgba(255,255,255,0.4); font-size: 12px; margin-bottom: 6px; }
    .admin-table-container td:nth-of-type(6) form { display: flex; gap: 8px; width: 100%; }
    .admin-table-container td:nth-of-type(6) input { flex-grow: 1; width: auto; margin: 0; }
    .admin-table-container td:nth-of-type(6) button { margin: 0; padding: 0 15px; }
}

/* ========================================= */
/* --- LOGIN SCREEN STYLES --- */
/* ========================================= */
body.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* MOBILE FIRST: Hochformatiges Bild laden */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/splashscreen_mobile.png');
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #111; 
    font-family: sans-serif;
    position: relative;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px; 
    padding: 20px;
    box-sizing: border-box;
    margin-top: 8vh; 
}

.login-logo { display: none; } /* Mobile First: Logo versteckt */

@media (min-width: 768px) {
    body.login-body {
        /* Desktop: Normales Bild */
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/splashscreen.png');
        background-position: center; 
    }
    .login-logo {
        display: block; 
        position: absolute;
        top: 30px;
        left: 40px;
        width: 150px;
        margin-bottom: 0; 
        filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.8));
    }
}

.login-card {
    background: rgba(0, 0, 0, 0.6); 
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    text-align: center;
}

.login-card h2 { color: #fff; margin-top: 0; margin-bottom: 25px; font-size: 28px; }

.login-card input {
    width: 100%; padding: 15px; margin-bottom: 20px; border: none;
    border-radius: 5px; background: #333; color: #fff; font-size: 16px; box-sizing: border-box;
}

.login-card input::placeholder { color: #aaa; }

.login-card button {
    width: 100%; padding: 15px; background-color: #e50914; color: white; border: none;
    border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer;
    transition: background 0.2s ease-in-out; display: flex; justify-content: center;
    align-items: center; text-align: center;
}

.login-card button:hover { background-color: #f40612; }

.error {
    background: #e87c03; color: white; padding: 10px; border-radius: 4px;
    margin-bottom: 20px; font-size: 14px;
}

/* ========================================= */
/* --- FAQ BEREICH STYLES --- */
/* ========================================= */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #252525;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #444;
    transform: translateY(-2px);
}

.faq-item h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}
