:root {
  --color1: #1e1f23;
}


html, body {
    height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;

    background-image: url('assets/background.avif');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    color: #333;
    /* Optionale Optimierung, falls es auf anderen Seiten Inhalte gibt */
    overflow-x: hidden;
}

.termin-container, h1.titel, .logout {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

h1.titel {
    color: #000;
    text-align: center;
    padding: 25px 0;
    margin-top: 0;
    margin-bottom: 30px;
    border-radius: 6px;
    font-size: 2.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1.titel img, h1.titel .end {
  width: 80px;
}

h1.titel .text {
  width: 740px;
}

.logout {
    text-align: right;
    margin-bottom: 25px;
}
.logout a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transition: background-color 0.2s;
}
.logout a:hover {
    background-color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

.keine-termine {
    text-align: center;
    color: #6c757d;
    font-size: 1.1em;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.termin-karte {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #fff;
    transition: box-shadow 0.8s, border-left-color 0.2s, opacity 0.4s;
    opacity: 0.75;
}

.termin-karte:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-left-color: var(--color1);
    opacity: 1;
}

/* -------------------------------------- */
/* NEUES MINI-KALENDER-DESIGN */
/* -------------------------------------- */
.mini-kalender {
    display: flex;
    flex-direction: column;
    width: 60px;
    height: 60px;
    margin-right: 25px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    /* NEU: Verschiebt den Kalender etwas höher */
    margin-top: -5px;
}

.kalender-monat {
    background-color: #2980b9;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 0.5px;
    flex-grow: 0;
}

.kalender-tag {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 800;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* -------------------------------------- */

.termin-details {
    flex-grow: 1;
}

.termin-flyer img {
  width: 100px;
}

.termin-titel {
    font-size: 1.35em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.termin-meta {
    font-size: 0.95em;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.meta-datum {
    font-weight: 600;
    color: #555;
}

.meta-separator {
    margin: 0 8px;
    color: #ccc;
}

.meta-beschreibung {
    /* Standardfarbe, falls nicht anders definiert */
}

/* -------------------------------------- */
/* NEUER MODERN LOGIN BEREICH */
/* -------------------------------------- */

/* Container für Zentrierung */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Nutzt die volle Höhe des Viewports, um das Formular vertikal zu zentrieren */
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Die Login-Karte (Card) */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 45px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-card h1 {
    color: var(--color1); /* Oder eine andere Akzentfarbe */
    font-size: 1.8em;
    margin-bottom: 25px;
    margin-top: 15px;
    font-weight: 600;
}

/* Logo-Styling (Platzhalter) */
.login-logo {
    width: 80px; /* Größe nach Bedarf anpassen */
    height: auto;
    margin-bottom: 15px;
}

/* Formular und Elemente */
.login-card label {
    display: block;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.login-card input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Wichtig für die korrekte Breitenberechnung */
}

.login-card input[type="password"]:focus {
    border-color: #2c3e50; /* Akzentfarbe bei Fokus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

/* Login-Button */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3498db; /* Helle, ansprechende Farbe */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.login-button:hover {
    background-color: #2980b9; /* Dunklerer Ton beim Hover */
    transform: translateY(-1px);
}

/* Fehler-Meldung Styling */
.fehler-meldung {
    background-color: #fce4e4;
    color: #c0392b;
    border: 1px solid #c0392b;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: left;
    font-size: 0.95em;
}

/* Optional: Passwort vergessen Link */
.passwort-vergessen {
    margin-top: 20px;
    font-size: 0.9em;
}
.passwort-vergessen a {
    color: #2c3e50;
    text-decoration: none;
}
.passwort-vergessen a:hover {
    text-decoration: underline;
}

#footer {
  height: 100px;
}
