/* Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

/* Container für Login und Register */
.login-container, .register-container {
    max-width: 400px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.8); /* Weiß mit Transparenz */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

/* Überschrift */
.login-container h2, .register-container h2 {
    margin-bottom: 20px;
    color: #444;
}

/* Formular-Gruppen */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

/* Einheitliche Eingabefelder */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="email"],
.register-container input[type="password"] {
    width: calc(100% - 20px); /* Einheitliche Breite */
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Buttons */
button {
    background: #fda085;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    width: 100%;
}

button:hover {
    background: #f6d365;
}

/* Links */
.links {
    margin-top: 20px;
    font-size: 14px;
}

.links a {
    color: #007BFF;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Fehleranzeige */
.error {
    background: #ffdddd;
    color: #d9534f;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d9534f;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
}

/* Dashboard-spezifisches Styling */
.dashboard-wrapper {
    display: flex; /* Flexbox für Seitenlayout */
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #333;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .menu li {
    margin-bottom: 15px;
}

.sidebar .menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar .menu a:hover {
    background: #f6d365;
}

.dashboard-container {
    flex: 1;
    margin: auto;
    max-width: 600px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Weiß mit Transparenz */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Responsive Ansicht */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        color: white;
        cursor: pointer;
        text-align: center;
        margin-bottom: 20px;
    }

    .dashboard-container {
        margin: 20px;
        padding: 20px;
    }
}