/* Basis-Reset zur sauberen Layout-Grundlage */
*, *::before, *::after {
    box-sizing: border-box;
}


html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #061019;
    color: #f8f9fa;
}

/* Inhaltsbereich für den Adventskalender */
main {
    flex: 1;
    display: flex;
    flex-direction: column; /* WICHTIG: Sorgt dafür, dass Anleitung und Türchen untereinander sind */
    align-items: center;    /* Zentriert alles mittig */
    padding: 40px 16px;
    margin-bottom: 0;
    position: relative;
    isolation: isolate;
}

/* Hintergrundbild für die Winterkulisse */
main{
    /* background: url("../images/xmas.webbp") center/cover no-repeat; */
    position: relative;
    isolation: isolate;
}

/* Container um den Kalender – wirkt wie eine Karte vor dem Hintergrund */
.calendar{
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(5, 15, 35, 0.82);
    backdrop-filter: blur(4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}


/* Navigationsleiste – fixiert und optisch abgesetzt */
header {
    position: sticky;
    top: 0;
    z-index: 11000;
}

.navbar {
    background: linear-gradient(90deg, #071427, #0d223b);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffe9c4 !important;
}

.navbar-brand:hover {
    color: #ffdd99 !important;
}

.nav-link {
    color: #fff3da !important;
    font-weight: 500;
    position: relative;
    padding-inline: 0.9rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd58a, #ffefc6);
    transform: translateX(-50%);
    transition: width 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: #ffe8c2 !important;
}

.nav-link.active {
    color: #ffdd99 !important;
}

/* Heller Footer für gute Lesbarkeit der rechtlichen Links */
footer {
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(235,242,255,0.75));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #0d223b;
}

footer .nav-link {
    font-size: 0.9rem;
    color: #0d223b !important;
}

footer .nav-link:hover {
    color: #5c3d00 !important;
}

footer p {
    font-size: 0.8rem;
    opacity: 1;
    color: #0d223b;
}


.village-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.grid-container {
    display: flex;          /* Flexbox statt Grid */
    flex-direction: column; /* Untereinander anordnen */
    gap: 30px;              /* Abstand zwischen den Türchen */
    padding: 20px 0;
    width: 100%;            /* Volle Breite nutzen */
    max-width: 800px;       /* Maximale Lesebreite (sieht bei viel Text besser aus) */
    margin: 0 auto;
}

.door-card {
    /* Schlichter weißer Hintergrund */
    background: #ffffff;
    color: #333; /* Dunkelgrauer Text statt hartem Schwarz */

    /* Minimalistischer Rahmen statt Schatten */
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Weniger stark abgerundet */
    padding: 25px;

    /* Kein Schatten mehr (oder ein extrem subtiler) */
    box-shadow: none;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05);  <- Alternativ: ganz leichter Schatten */

    /* WICHTIG: Die alten Ränder entfernen */
    border-left: none;
    border-top: 1px solid #e0e0e0;

    height: auto;
    transition: border-color 0.3s ease;
}

/* Beim Hover nur der Rahmen etwas dunkler */
.door-card:hover {
    transform: none; /* Kein Hüpfen mehr */
    box-shadow: none;
    border-color: #b0b0b0;
}

/* Neue Klasse für den Inhalt */

.door-content-body {
    /* Keine Linie oben, da der Header schon eine Linie unten hat */
    border-top: none;
    padding-top: 0;
    margin-top: 0;

    font-size: 1rem;
    line-height: 1.7; /* Gute Lesbarkeit für längere Texte */
    color: #444;
}
.door-header {
    display: flex;
    /* Elemente an der Textlinie ausrichten */
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px; /* Abstand zwischen Titel-Gruppe und Status */
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.door-number {
    /* Box-Styling komplett entfernen */
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    border-radius: 0;

    /* Schlichte Textdarstellung */
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d; /* Neutrales Grau */
    margin-right: 5px;
}
/* Ein kleines Präfix vor die Nummer, damit es klarer ist (Optional) */
.door-number::before {
    content: "Nr. ";
    font-weight: 400;
}
.door-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #2c3e50;
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
}
.door-status {
    /* Hintergrund und Rahmen entfernen */
    background-color: transparent !important;
    border: none !important;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #95a5a6; /* Standard Grau */
    display: inline-block;
}

/* Nur die Textfarbe ändert sich dezent */
.status-open {
    color: #27ae60 !important; /* Ein dezentes Grün für "geöffnet" */
}
