/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* besser als fixed height */
    margin: 0;
    background-image: url("img/background_login.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Container */
.login-container {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    margin: 0 auto;
}

h2 {
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    font-weight: 600;
}

/* Einheitliche Inputs: Text, Email, Password */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font: inherit;
    background-color: #fff;
}

/* Fokuszustand */
.login-container input[type="text"]:focus,
.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 0 3px rgba(102, 175, 233, 0.25);
}

/* Buttons */
button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

button:hover {
    background-color: #218838;
}

/* Links */
.links {
    margin-top: 10px;
}

.links a {
    color: #007bff;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Fehlermeldung */
.error-msg {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.95rem;
}

/* Popup-Overlay */
.popup {
    display: none;            /* per JS auf 'flex' gesetzt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;  /* Flex-Centering */
    align-items: center;      /* Flex-Centering */
    z-index: 1000;
}

/* Popup-Box */
.popup-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    width: 320px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.popup-content h2 {
    text-align: center;
    margin-top: 0;
}

/* Close-Button im Popup */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Footer */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 6px 0;
}

/* Logo */
.logo {
    position: relative;
    text-align: center;
    z-index: 0;
    margin-bottom: 5px;
    margin-top: 5px;
}

/* (Die folgenden Klassen sind in deinem Projekt vorhanden; gelassen für Konsistenz) */
#sidebarContent { display: none; }
#sidebar.show { transform: translateX(0); }

#sidebarContent ul { list-style-type: none; padding: 0; }
#sidebarContent ul li { margin: 15px 0; }
#sidebarContent ul li a { color: white; text-decoration: none; }

#toggleSidebar {
    background-color: #444; color: white; border: none;
    padding: 10px; width: 100%; cursor: pointer; text-align: left;
}

#sidebar {
    background-color: #555; color: white; padding: 15px;
    position: fixed; top: 70px; left: 0; height: 100%; width: 200px;
    transform: translateX(-100%); transition: transform 0.3s ease;
}

/* Tabellen (falls gebraucht) */
table { width: 100%; border-collapse: collapse; }
table, th, td { border: 1px solid black; }
th, td { padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }
td { background-color: #fff; }

/* Popup-Karten (falls gebraucht) */
.popup-card {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.popup-card.selected {
    background-color: #cce5cc;
    border-color: #66b266;
}