body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #111;
    color: #eee;
}

/* Formulare */
form {
    max-width: 400px;
}

form label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="date"],
form input[type="time"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 4px;
    background: #222;
    color: #eee;
    border: 1px solid #444;
}

/* Buttons */
button {
    padding: 8px 16px;
    background: #0078d4;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
	width: 100%;
    box-sizing: border-box;
}

button:hover {
    background: #005fa3;
}

/* Tabellen */
table {
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 8px;
    border: 1px solid #444;
}

table.ereignis-liste { border-collapse: collapse; width: 100%; }
table.ereignis-liste th, table.ereignis-liste td { border: 1px solid #ccc; padding: 8px; }
table.ereignis-liste tbody tr:hover { background: #666; cursor: pointer; }
table.ereignis-liste tr { transition: background 0.15s ease; }

a {
    color: #8cc7ff;
    text-decoration: none;
    transition: color 0.2s ease, 
                text-decoration-color 0.2s ease,
                background-color 0.2s ease;
}


a:visited { color: #7ab5ee; }
a:hover {
	color: #b5dbff;
    text-decoration: underline;
    text-decoration-color: #b5dbff;
}
a:focus {
    outline: none;
    background-color: rgba(140, 199, 255, 0.25);
    border-radius: 3px;
}

a:active {
    color: #d0e8ff;
    text-decoration: underline;
}

p.info { color:darkgreen; }
p.warnung { color:red; }

.nav {
    padding: 10px;
    background: #2a2a2a; /* dunkles Grau */
    margin-bottom: 20px;
    color: #eee;
}

.nav a {
    color: #9cf;
    text-decoration: none;
    margin-right: 6px;
}

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

.nav .nav-right {
    float: right;
    color: #ccc;
}

.nav .sep {
    margin: 0 6px;
    color: #666;
}

/* Kalender */
.kalender-jahr {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.kalender-monat {
    border: 1px solid #444;
    padding: 10px;
    flex: 1 1 260px;
    max-width: 400px;
}

.kalender-monat h2 {
    text-align: center;
    margin-top: 0;
}

.kalender-monat table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.kalender-monat th,
.kalender-monat td {
    border: 1px solid #555;
    text-align: center;
    padding: 4px;
    font-size: 0.9em;
}

/* Wochentage */
.wochentag {
    font-weight: bold;
}

.samstag {
    color: #6f6;
}

.sonntag {
    color: #f66;
}

/* Tage */
.tag-leer {
    background: #222;
}

.tag {
    height: 32px;
}

.tag a {
    margin-left: 4px;
}

.kalender-navigation {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.kalender-navigation a {
    padding: 5px 10px;
    text-decoration: none;
    color: #9cf;
}

@media (prefers-color-scheme: light) {
    body {
        background: #fff;
        color: #000;
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="email"],
    form input[type="date"],
    form input[type="time"],
    form input[type="number"],
    form select,
    form textarea {
        background: #fff;
        color: #000;
        border: 1px solid #ccc;
    }

    table th, table td {
        border: 1px solid #ccc;
    }

    .nav {
        background: #eee;
        color: #000;
    }

    .nav a {
        color: #0078d4;
    }

    .nav .nav-right {
        color: #333;
    }

    .kalender-monat {
        border: 1px solid #ccc;
    }

    .kalender-monat th,
    .kalender-monat td {
        border: 1px solid #ddd;
    }

    .tag-leer {
        background: #f9f9f9;
    }

    .kalender-navigation a {
        color: #0078d4;
    }
}
