@import url("https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&display=swap");

/* 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;
    justify-content: center;
    /* align-items: center;  REMOVE */
    padding: 40px 16px;
    margin-bottom: 0;
}

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

/* neu */


/* neu 11.01.26 */
.carehome-title{

    display: block;
    margin: -10px auto 20px auto;
    text-align: center;
    width: fit-content;
    max-width: 90%;


    font-family: "Mountains of Christmas", cursive !important;
    font-weight: 700;
    font-size: clamp(2.1rem, 7vw, 3.6rem);
    line-height: 1.1;


    color: #ffe9c4 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);


    white-space: normal;
    overflow: visible;
}

.calendar{

    padding-top: clamp(20px, 4vw, 40px);


    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-radius: 90px 90px 20px 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: grid;
    /* Automatische Spalten: Mindestens 280px breit, sonst aufteilen */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; /* Etwas mehr Luft zwischen den Karten */
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.door-card {
    /* Leicht transparentes Weiß für edleren Look */
    background: rgba(255, 255, 255, 0.96);
    /* Dunkelblaue Schrift passend zum Footer (#0d223b) für guten Kontrast */
    color: #0d223b;

    border-radius: 16px; /* Etwas runder, passend zum Glas-Container */
    padding: 24px;

    /* Weicherer, bläulicher Schatten statt hartem Schwarz */
    box-shadow: 0 10px 25px rgba(6, 16, 25, 0.3);

    transition: all 0.3s ease;
    border-left: 6px solid #c0392b; /* Weihnachtsrot am Rand */
    border-top: 1px solid rgba(255,255,255,0.4);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.door-card:hover {
    transform: translateY(-8px);
    /* Beim Hover stärkerer Schatten und ein feiner goldener Schein passend zur Navbar */
    box-shadow: 0 15px 35px rgba(6, 16, 25, 0.4), 0 0 15px rgba(255, 213, 138, 0.2);
    border-left-color: #d63031; /* Etwas helleres Rot beim Hover */
}

.door-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.door-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c0392b;
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* Eckiger mit Radius wirkt moderner */
    box-shadow: 0 2px 5px rgba(192, 57, 43, 0.15);
}

.door-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #0d223b; /* Dunkles Blau für Titel */
}

.door-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #eff2f5; /* Neutrales Grau */
    color: #636e72;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-open {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
