/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    min-height: 100vh; /* wichtig für dynamische Höhe */
}


/* Sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(to bottom, #f59f0a, #f6b144);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* automatisch mitwachsen */
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-logo img.logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-logo span {
    font-size: 20px;
    font-weight: bold;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 20px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    gap: 12px;
    transition: opacity 0.2s ease;
    padding: 10px;
    border-radius: 10px;
}

.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav li.active a {
    background-color: #e67e22;
    color: white;
}


/* Hauptbereich */
.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #fff;
}


h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Formulare */
form {
    margin-bottom: 30px;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Buttons */
button {
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

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

/* Listen */
.list {
    list-style: none;
    padding: 0;
}

.list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete {
    color: red;
    text-decoration: none;
    font-weight: bold;
}

.delete:hover {
    text-decoration: underline;
}

/* Login-Seite */
.login-container {
    margin: auto;
    width: 350px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.error {
    color: red;
    margin-bottom: 10px;
}
