body {

}

/* Hintergrundbild nur für die Login-Seite */
.custom-login-page {
    background: url('https://lukas.ml-bkf.de/sys/img/hintergrund.jpg') no-repeat center center fixed;
    background-size: cover;
}

body:not(.custom-login-page) {
    background: white !important;
}



/* Header fixieren, volle Breite setzen, Höhe anpassen */
.site-header {
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000; /* Höchste Priorität, damit nichts darüber liegt */
}

/* Header-Überschrift (Lukas-Fahrplanportal) auf Arial setzen */
.header-title {
    font-family: Arial, sans-serif !important;
    font-size: 20px; /* Falls die Schrift noch zu groß oder zu klein ist, hier anpassen */
    font-weight: bold;
    text-align: center;
    color: #333;
    display: block; /* Stellt sicher, dass es nicht als Inline-Element behandelt wird */
    margin-top: 10px;
}



/* Abstand nach unten für den Inhalt, damit der Header nicht verdeckt */
body {
    padding-top: 60px;
}

/* Logo & Titel exakt auf gleicher Höhe */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    vertical-align: middle;
}

/* Menü-Button im Header an richtiger Position */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 50px; /* Positioniert den Button exakt am rechten Rand */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* Sicherstellen, dass der Menü-Button sich im sichtbaren Bereich befindet */
@media (min-width: 769px) {
    .menu-toggle {
        right: 50px; /* Stellt sicher, dass der Button nicht zu weit rechts liegt */
        max-width: calc(100% - 40px); /* Verhindert, dass er außerhalb des Viewports rutscht */
    }
}

/* Sicherstellen, dass der Button in kleineren Displays richtig bleibt */
@media (max-width: 768px) {
    .menu-toggle {
        right: 30px;
    }
}


/* Standardmäßig das Menü ausblenden */
#menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 250px; /* Menü um 10px verbreitert */
    min-width: 250px;
    padding: 5px 0;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Falls .active hinzugefügt wird, Menü sichtbar machen */
#menu.active {
    display: block;
}

/* Navigationselemente */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Einzelne Menüeinträge */
nav ul li {
    position: relative;
}

/* Standard-Trennlinie leicht eingerückt, bündig mit Text */
nav ul li:not(.menu-divider)::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 15px; /* Jetzt beginnt die Trennlinie bündig mit dem Text */
    width: calc(100% - 30px); /* Passt die Breite an, damit die Linie korrekt abschließt */
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* ❌ Entfernt doppelte Linien über .menu-divider */
nav ul li:has(+ .menu-divider)::after {
    display: none !important;
}

/* ❌ Entfernt doppelte Linien über dem ersten Element */
nav ul li:first-child::after {
    display: block !important; /* Stellt sicher, dass die Linie DA ist */
}

/* Dickere Trennlinie beginnt GANZ VORNE */
.menu-divider {
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    margin: 10px 0; /* Entfernt die Einrückung → beginnt vorne */
    pointer-events: none; /* Verhindert Hover-Effekt */
}

/* Links im Menü */
nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: block;
    padding: 10px 15px;
    transition: background 0.2s ease-in-out;
}

/* Hover-Effekt auf ganze Zeile (aber nicht für .menu-divider) */
nav ul li:hover:not(.menu-divider) {
    background: rgba(0, 0, 0, 0.05);
}

/* Admin-Control-Panel-Link hervorheben */
nav ul li a[href*="acp/index.php"] {
    color: #ff4500;
}




/* Login-Box */
#login-form {
    max-width: 350px;
    position: relative;
    transform: translateY(50%);
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Einheitliche Breite für Eingabefelder */
#login-form input[type="text"],
#login-form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Button exakt gleich breit wie die Eingabefelder */
#login-form button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto 0 auto;
    padding: 10px;
    background: #007bff;
    color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

#login-form button:hover {
    background: #0056b3;
}

/* Checkbox und Label Styling */
#login-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
}

#login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Passwort vergessen Link */
#login-form .forgot-password {
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#login-form .forgot-password a {
    color: #007bff;
    text-decoration: none;
}

#login-form .forgot-password a:hover {
    text-decoration: underline;
}

/* Checkbox "Angemeldet bleiben" links bündig setzen */
#login-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.checkbox-label input {
    margin-right: 5px;
}

/* Passwort vergessen & Registrierung */
#login-form .login-links {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, sans-serif;
}

#login-form .login-links a {
    color: #007bff;
    text-decoration: none;
}

#login-form .login-links a:hover {
    text-decoration: underline;
}



/* 🔹 Registrierungsformular-Container */
.register-container {
    width: 500px;
    max-width: 90%; /* Anpassung für kleine Displays */
    margin: 80px auto 20px auto; /* Abstand nach unten für kleine Displays */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* 🔹 Mobile Ansicht - Abstand dynamisch anpassen */
@media (max-height: 700px) {
    .register-container {
        margin: 10px auto 10px auto; /* Reduziere den oberen Abstand */
        padding: 15px;
    }
}

@media (max-height: 500px) {
    .register-container {
        margin: 0px auto 5px auto; /* Noch kleinerer Abstand */
    }
}



/* 🔹 Titel */
.register-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 🔹 Tabelle für das Formular */
.register-table {
    width: 100%;
    border-collapse: collapse;
}

/* 🔹 Linke Spalte: Beschriftung */
.register-table td:first-child {
    width: 200px;
    font-weight: bold;
    text-align: left;
    font-size: 14px; /* Schriftgröße leicht verkleinert */
    padding: 10px 0;
}
/* Sicherstellen, in kleineren Displays richtig bleibt */
@media (max-width: 499px) {
    .register-table td:first-child {
        width: 45%;
    }
}

/* 🔹 Rechte Spalte: Eingabefelder */
.register-table td:last-child {
    width: 300px;
}
/* Sicherstellen, in kleineren Displays richtig bleibt */
@media (max-width: 499px) {
    .register-table td:last-child {
        width: 55%;
    }
}

/* 🔹 Eingabefelder */
.register-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 🔹 Checkbox-Gruppe */
.register-checkbox-group {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    gap: 8px;
    font-size: 14px;
    margin: 10px auto;
}
/* 🔹 Mobile Ansicht: Checkbox + Nutzungsbedingungen mittig ausrichten */
@media (max-width: 500px) {
    .register-checkbox-group {
        justify-content: center; /* Zentriert die Checkbox + Text */
        text-align: center; /* Falls nötig für zusätzliche Sicherheit */
    }
}

.register-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle; /* Checkbox auf Text-Höhe anpassen */
}

.register-checkbox-group label {
    align-items: center;
    gap: 5px;
}



/* 🔹 Registrierungs-Button */
.register-button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.register-button:hover {
    background: #0056b3;
}

/* 🔹 "Abbrechen"-Button (gleiche Größe & Stil wie "Registrieren", aber blau) */
.register-cancel-button {
    display: block;
    width: 100%;
    max-width: 300px;
 
    padding: 10px;
    background: #6c757d; /* Dunkleres Blau/Grau */
    color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none; /* Entfernt den Standard-Linkstil */
}

/* 🔹 Hover-Effekt für den "Abbrechen"-Button */
.register-cancel-button:hover {
    background: #545b62; /* Noch dunkler beim Hover */
}

/* Captcha-Container (sorgt für linke Ausrichtung) */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Captcha-Bild und Eingabefeld */
    justify-content: flex-start; /* Links ausrichten */
}

/* Captcha-Bild: Gleiche Höhe wie Eingabefelder */
.captcha-image {
    border-radius: 5px; /* Gleiche Rundung wie Eingabefelder */
    border: 1px solid #ccc; /* Feine Umrandung */
    padding: 5px;
    background: #f0f0f0; /* Heller Grauton */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Leichte Schatten */
}

.error-message {
    color: red;
    margin-top: 10px;
}

.error-message-container {
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    padding: 10px;
    background-color: #ffcccc; /* Sanftes Rot für Fehlermeldungen */
    color: #900; /* Dunkelrot für Text */
    border: 1px solid #900;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
}
