* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f4f5f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #061225;
}

/* HEADER */

.header {
    background-color: white;
    height: 62px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #061225;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
}

.logo:hover {
    color: #f20d18;
}

.logo-icon {
    color: #f20d18;
    font-size: 25px;
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav a:hover {
    color: #f20d18;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon {
    font-size: 22px;
    color: #334155;
}

.username {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.username:hover {
    color: #f20d18;
}

.login-link {
    background-color: #f20d18;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.login-link:hover {
    background-color: #c90009;
    color: white;
}

/* HERO */

.hero-section {
    height: 520px;
    background:
            linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
            url("../images/cinema-hero.jpg");

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: white;
    padding: 0 20px;
}

.hero-badge {
    background-color: #f20d18;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.hero-content h1 {
    font-size: 52px;
    margin: 18px 0 10px 0;
    font-weight: 800;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

.btn-red {
    background-color: #f20d18;
    color: white;
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-red:hover {
    background-color: #c90009;
}

.btn-outline {
    color: white;
    border: 1px solid white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline:hover {
    background-color: white;
    color: #061225;
}

/* MOVIES */

.movie-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 55px 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.section-title a {
    color: #f20d18;
    text-decoration: none;
    font-weight: bold;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.movie-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.movie-image {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.movie-one {
    background-image: url("../images/movie1.jpg");
}

.movie-two {
    background-image: url("../images/movie2.jpg");
}

.movie-three {
    background-image: url("../images/movie3.jpg");
}

.movie-four {
    background-image: url("../images/movie4.jpg");
}

.rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #0f172a;
    color: white;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: bold;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.movie-info p {
    margin: 0;
    color: #536173;
    font-size: 13px;
}

.movie-info hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 14px 0;
}

.movie-info span {
    color: #64748b;
    font-size: 13px;
}

.showtimes {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.showtimes button {
    border: none;
    background-color: #f1f5f9;
    padding: 9px 13px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}

.showtimes button:hover {
    background-color: #f20d18;
    color: white;
}

/* FOOTER */

.footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 35px 20px 20px 20px;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer h3 {
    margin: 0;
    color: #061225;
}

.footer p {
    color: #64748b;
    margin: 6px 0 0 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #f20d18;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
}

/* Admin-Verwaltungsblock im Footer (nur für Admins sichtbar) */
.footer-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-admin-title {
    margin: 0 0 2px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f20d18;
}

.footer-admin a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.footer-admin a:hover {
    color: #f20d18;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .header {
        height: auto;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .hero-section {
        height: 430px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* LOGIN PAGE */

.login-page {
    min-height: calc(100vh - 58px);
    background: #f4f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* Kantiges, helles Panel mit rotem Akzentbalken links */
.login-card {
    position: relative;
    width: 430px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #f20d18;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 12px 35px rgba(6, 18, 37, 0.1);
}

/* Kopfbereich als eigener Block mit Trennlinie */
.login-logo {
    text-align: left;
    padding: 28px 34px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafb;
}

.login-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: #f20d18;
    font-size: 22px;
    border-radius: 4px;
    background: rgba(242, 13, 24, 0.08);
    border: 1px solid rgba(242, 13, 24, 0.25);
}

.login-logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #061225;
}

.login-logo p {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

/* Formular sitzt in eigenem Block mit Innenabstand */
.login-form,
.login-bottom {
    padding: 0 34px;
}

.login-error {
    margin: 24px 34px 0;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 3px solid #f20d18;
    padding: 12px 14px;
    border-radius: 3px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 26px;
}

.login-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
}

.login-group input {
    width: 100%;
    padding: 12px 14px;
    color: #061225;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-group input::placeholder {
    color: #9ca3af;
}

.login-group input:focus {
    border-color: #f20d18;
    box-shadow: inset 0 0 0 1px #f20d18;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 2px;
}

.login-options div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.login-options input[type="checkbox"] {
    accent-color: #f20d18;
}

.login-options a {
    color: #f20d18;
    text-decoration: none;
    font-weight: 600;
}

.login-options a:hover {
    color: #c90009;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    margin-top: 6px;
    background: #f20d18;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.15s;
}

.login-btn:hover {
    background: #c90009;
}

.login-bottom {
    margin-top: 24px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.login-bottom p {
    margin: 0 0 6px 0;
    color: #64748b;
    font-size: 13px;
}

.login-bottom a {
    color: #f20d18;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-decoration: none;
}

.login-bottom a:hover {
    color: #c90009;
    text-decoration: underline;
}

@media (max-width: 500px) {
    .login-card {
        width: 100%;
    }

    .login-logo {
        padding: 24px 22px 20px;
    }

    .login-form,
    .login-bottom {
        padding-left: 22px;
        padding-right: 22px;
    }

    .login-error {
        margin-left: 22px;
        margin-right: 22px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ERROR PAGE */

.error-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.error-card {
    max-width: 520px;
    background-color: white;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.error-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.error-card h1 {
    font-size: 70px;
    color: #f20d18;
    margin: 0;
    font-weight: 900;
}

.error-card h2 {
    font-size: 28px;
    margin: 10px 0;
    color: #061225;
}

.error-card p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 25px;
}

.error-btn {
    display: inline-block;
    background-color: #f20d18;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.error-btn:hover {
    background-color: #c90009;
}

/* ===================================================================
   ADMIN / VERWALTUNG (Filme, Säle, Vorführungen) + Kinoprogramm
   =================================================================== */

.admin-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

/* Kopfzeile: Titel links, Buttons rechts */
.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-head h1 {
    margin: 0;
    font-size: 26px;
    color: #061225;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: #e5e7eb;
    color: #061225;
}

.btn-primary {
    background: #f20d18;
    color: white;
}

.btn-primary:hover {
    background: #c90009;
}

.btn-light {
    background: white;
    border-color: #d1d5db;
    color: #334155;
}

.btn-light:hover {
    border-color: #f20d18;
    color: #f20d18;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #f20d18;
    color: white;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Tabelle */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.admin-table th {
    background: #061225;
    color: white;
    text-align: left;
    padding: 13px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-table td {
    padding: 12px 14px;
    border-top: 1px solid #eef0f3;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fafafb;
}

.admin-table .thumb {
    width: 42px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Badges für Status */
.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-on  { background: #dcfce7; color: #166534; }
.badge-off { background: #fee2e2; color: #991b1b; }
.badge-grey { background: #e5e7eb; color: #334155; }

/* Meldungen */
.alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success { background: #dcfce7; color: #166534; border-color: #16a34a; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #f20d18; }

/* Formular-Karte */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 760px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f20d18;
    box-shadow: 0 0 0 3px rgba(242, 13, 24, 0.15);
}

/* Mehrfachauswahl (Genres / Untertitel) als Checkbox-Liste */
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.checkbox-list input {
    width: auto;
    accent-color: #f20d18;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

/* ---- Saalplan (visuelles Raster) ---- */
.seatmap {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background: #0f172a;
    padding: 22px;
    border-radius: 12px;
    margin-top: 8px;
}

.screen-bar {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    letter-spacing: 3px;
    border-bottom: 3px solid #475569;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.seat-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.seat-row .row-label {
    width: 18px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.seat {
    width: 26px;
    height: 26px;
    border-radius: 6px 6px 3px 3px;
    border: none;
    cursor: pointer;
    font-size: 10px;
    color: white;
    padding: 0;
}

/* Sitz-Kategorien (Farben) */
.seat-standard { background: #3b82f6; }
.seat-vip      { background: #f59e0b; }
.seat-disabled { background: #10b981; }
.seat-blocked  { background: #6b7280; }

.seat-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 14px 0;
    font-size: 13px;
    color: #334155;
}

.seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

/* Filterleiste (Kinoprogramm) */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 22px;
}

.filter-bar .form-group {
    margin-bottom: 0;
}

/* ---- Film-Detailseite (öffentlich, nur Anzeige) ---- */
.film-detail {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.film-detail-poster {
    width: 260px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.film-detail-info {
    flex: 1;
    min-width: 280px;
}

.film-detail-info h1 {
    margin: 0 0 12px 0;
    font-size: 30px;
    color: #061225;
}

.film-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.film-detail-desc {
    color: #334155;
    line-height: 1.6;
}

.film-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.film-detail-table td {
    padding: 9px 0;
    border-top: 1px solid #eef0f3;
    font-size: 14px;
    vertical-align: top;
}

.film-detail-table td:first-child {
    color: #64748b;
    font-weight: 700;
    width: 170px;
}

/* Filmkarten: Titel/Poster als Link */
.movie-info h3 a {
    color: inherit;
    text-decoration: none;
}

.movie-info h3 a:hover {
    color: #f20d18;
}

/* ---- Buchung: Saalplan + Zusammenfassung ---- */
.booking-layout {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.booking-seats {
    flex: 1;
    min-width: 300px;
}

/* Sitz-Farbcode laut Vorgabe: grau = belegt, grün = frei, gold = VIP */
.seat.bseat-frei   { background: #22c55e; }
.seat.bseat-vip    { background: #eab308; color: #3f2d00; }
.seat.bseat-belegt { background: #6b7280; cursor: not-allowed; }

/* ausgewählter Sitz */
.seat.is-selected {
    background: #f20d18;
    box-shadow: 0 0 0 2px #fff inset;
}

/* damit das Klicken über das Label funktioniert */
.seat label, label.seat { cursor: pointer; }

/* Zusammenfassung rechts */
.booking-summary {
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.booking-summary h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.booking-summary .sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    color: #334155;
}

.booking-summary .sum-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.booking-summary button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Profil ---- */
.profile-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f20d18;
}

.profile-card h2 {
    margin: 0 0 6px 0;
    color: #061225;
}