/* Allgemein */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Hauptinhalt */
main.content {
    flex: 1;
    text-align: center;
    padding: 80px 20px;
}

/* Header */
.header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 15px;
    display: flex;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 -3px 10px rgba(0, 170, 255, 0.6);
}

/* Navigation Buttons */
.nav {
    display: flex;
    gap: 20px;
}

.nav-button {
    text-decoration: none;
    display: inline-block;
    background: transparent;
    border: 2px solid #444;
    padding: 10px 20px;
    color: #bbb;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: #00aaff;
    color: #00aaff;
    box-shadow: 0 0 10px #00aaff;
}

.nav-button.active {
    border-color: #00aaff;
    color: #00aaff;
    box-shadow: 0 0 15px #00aaff;
    text-decoration: none;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    position: relative;
    box-shadow: inset 0 3px 10px rgba(0, 170, 255, 0.6);
}

/* Hintergrundbild */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/earth.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}

/* Login-Container */
#login-container {
    width: 350px;
    max-width: 90%;
    margin: 50px auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* wichtig für z-index */
    z-index: 10;
}

/* Login-Container */
#login-container {
    width: 400px; /* vorher 350px, jetzt etwas breiter */
    max-width: 90%;
    margin: 50px auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Obere Buttons im Login-Container */
.top-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.top-button {
    flex: 1;
    padding: 3px 0; /* noch dünner */
    background-color: #2c2c2c;
    border: 2px solid #4e4e4e;
    border-radius: 6px;
    color: #eee;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.top-button:hover {
    border-color: #2244db; /* leichtes Hover */
    color: #fff;
}

.top-button.active {
    background-color: #002244; /* dunkelblau bei aktiv */
    border-color: #003c79;
    color: #fff;
}

/* Statusbox */
.response-box {
    width: 100%;
    min-height: 1.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: monospace;
    background: #0a0a0a;
    color: #ff4d4d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.response-box.success { color: #4dff4d; }
.response-box.error   { color: #ff4d4d; }
.response-box.info    { color: #FFD700; }

/* Login-Formular */
#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 11;
}

#loginForm input {
    width: 100%;
    max-width: 200px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    font-size: 14px;
    margin: 0 auto;
}

#loginForm button[type="submit"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 0;
    background-color: #002244;
    border: 2px solid #00aaff;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#loginForm button[type="submit"]:hover {
    background-color: #003366;
}

/* Register-Formular */
#registerForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 11;
}

#registerForm input {
    width: 100%;
    max-width: 200px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    font-size: 14px;
    margin: 0 auto;
}

#registerForm button[type="submit"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 0;
    background-color: #002244;
    border: 2px solid #00aaff;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#registerForm button[type="submit"]:hover {
    background-color: #003366;
}

/* Passwort vergessen Formular */
#forgotForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 11;
}

#forgotForm input {
    width: 100%;
    max-width: 200px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    font-size: 14px;
    margin: 0 auto;
}

#forgotForm button[type="submit"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 0;
    background-color: #002244;
    border: 2px solid #00aaff;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 10px auto;
    transition: all 0.3s ease;
}

#forgotForm button[type="submit"]:hover {
    background-color: #003366;
}

/* Wartungsmodus Blink-Icon */
.blink {
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}