/* === GRUNDFORMATE === */
:root {
    --primary: #1a3a23;      /* Dunkelgrün (Weihnachtsbaum) */
    --secondary: #c41e3a;    /* Rot (Weihnachtskugel) */
    --accent: #f9d67c;       /* Gold (Geschenkband) */
    --light: #f8f4e9;        /* Elfenbein (Schnee) */
    --shadow: rgba(0, 0, 0, 0.25);
    --glow: rgba(255, 215, 0, 0.6);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	 /*background: linear-gradient(to bottom, #00416a, #e4e5e6);
    /* background: linear-gradient(135deg, #0a2540, #1a3a23); */
	background:  linear-gradient(rgba(0, 65, 106, 0.7), rgba(228, 229, 230, 0.7)),
    url('../img/background-trees.jpg') no-repeat center center fixed;
    color: var(--light);
    overflow-x: hidden;
	background-size: cover;
    /* background-image: url('../img/background-trees.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;*/
    min-height: 100vh;
    padding: 0;
    position: relative;
}

/* === SCHNEEFLOCKEN-ANIMATION (VERBESSERT) === */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: fall linear infinite;
    user-select: none;
    opacity: 0.7;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* === HEADER === */
h1 {
    font-family: 'Georgia', serif;
    font-size: 3.5em;
    font-weight: bold;
    margin: 40px 0 20px;
    text-shadow: 0 0 15px var(--glow), 0 0 30px rgba(255,215,0,0.3);
    letter-spacing: -1px;
    color: var(--light);
    padding: 20px;
    background: rgba(26, 58, 35, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
	text-align: center;
}

.caption {
  font-style: italic;
  color: var(--accent);
  margin-top: 10px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

		
/* === CALENDAR GRID === */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 20px;
    background: rgba(248, 244, 233, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 30px;
}

/* === TÜRCHEN STIL === */
.door {
    height: 140px;
    background: linear-gradient(145deg, #8b4513, #5d2c0e);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--light);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.door::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.door:hover::before {
    opacity: 1;
}

.door:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

.door.locked {
    background: linear-gradient(145deg, #555, #333);
    cursor: not-allowed;
    opacity: 0.6;
    filter: brightness(0.8);
}

.door.locked::after {
    content: 'Noch nicht frei';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.38em;
    color: #ffcc80;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.door.opened {
    background: linear-gradient(145deg, #c41e3a, #8b0000);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.door.opened::after {
    content: '🎁 Geöffnet';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.38em;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes glow {
    from { box-shadow: 0 8px 20px rgba(196, 30, 58, 0.5); }
    to { box-shadow: 0 15px 40px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.5); }
}

.door-number {
    z-index: 2;
    font-size: 1.8em;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25), rgba(26, 58, 35, 0.9)),
                url('../img/modal-bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    color: #fff;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.25), 0 0 80px rgba(255, 215, 0, 0.15);
    border: 3px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: modalFadeIn 0.9s ease-out, modalGlow 2s ease-in-out infinite alternate;
}
		/* === GESPERRTES TÜCHEN LAYER === */
.locked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; /* wird per JS sichtbar */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.4s ease;
}

.locked-message {
  background: rgba(26, 58, 35, 0.95);
  color: var(--light);
  border: 2px solid var(--accent);
  border-radius: 15px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  max-width: 400px;
  animation: popIn 0.3s ease;
}

.locked-message p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.locked-message button {
  background: var(--secondary);
  border: none;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.locked-message button:hover {
  background: #a01a2e;
  box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === GOLDENER GLANZEFFEKT ÜBER DEM MODAL === */
.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 223, 128, 0) 0%,       /* transparent */
    rgba(255, 223, 128, 0.25) 35%,   /* hellgoldener Schein */
    rgba(255, 255, 200, 0.55) 50%,   /* gold-weißlicher Kern */
    rgba(255, 223, 128, 0.25) 65%,   /* sanft auslaufend */
    rgba(255, 223, 128, 0) 100%      /* wieder transparent */
  );
  transform: skewX(-25deg);
  animation: none;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
  mix-blend-mode: screen; /* lässt das Licht schön mit dem Hintergrund verschmelzen */
  filter: blur(1px);
}

/* ✨ Glanzeffekt aktivieren, wenn das Modal sichtbar ist */
#modal.show .modal-content::before,
#impressum-modal.show .modal-content::before,
#datenschutz-modal.show .modal-content::before {
  animation: shine 1.8s ease forwards;
}

/* Keyframes für den diagonalen Lichtverlauf */
@keyframes shine {
  0% {
    left: -120%;
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  40% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.6;
  }
  100% {
    left: 160%;
    opacity: 0;
  }
}


/* ✨ Sanftes Einblenden & Aufleuchten beim Öffnen */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

/* 💫 Pulsierender goldener Glow-Verlauf (dauerhaft sanftes Glühen) */
@keyframes modalGlow {
    0% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.3),
                    inset 0 0 30px rgba(255, 215, 0, 0.2);
        background-position: center;
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6),
                    inset 0 0 60px rgba(255, 215, 0, 0.4);
        background-position: 80% 20%;
    }
    100% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.4),
                    inset 0 0 40px rgba(255, 215, 0, 0.25);
        background-position: center;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transition: color 0.3s;
    z-index: 10;
}

.close:hover {
    color: #ffcc80;
    text-shadow: 0 0 20px var(--glow);
}

.modal-content h2 {
    font-family: 'Georgia', serif;
    font-size: 2.5em;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.modal-content h3 {
    font-family: 'Georgia', serif;
    font-size: 2em;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}		
.modal-content img {
    max-width: 75%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin: 15px 0;
    color: #f8f4e9;
}

.modal-content a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--secondary);
    color: var(--light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(196, 30, 58, 0.5);
    transition: all 0.3s;
}

.modal-content a:hover {
    background: #a01a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.7);
}

/* === Gutscheincode === */
.modal-content .coupon {
    background: rgba(255, 215, 0, 0.15);
    border: 1px dashed var(--accent);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow);
}

/* === MOBILE === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
        margin: 20px 0 15px;
    }
    .calendar {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .door {
        height: 110px;
        font-size: 2em;
    }
    .door-number {
        font-size: 2.2em;
    }
    .modal-content {
        padding: 25px;
        font-size: 0.9em;
    }
}

/* === BESONDERE EFFEKTE === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/glow.png') no-repeat center center;
    background-size: 120%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* === WILLKOMMENS-TEXT === */
.welcome {
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    font-size: 1.3em;
    color: #f8f4e9;
    font-style: italic;
    padding: 20px;
    background: rgba(26, 58, 35, 0.3);
    border-radius: 15px;
    border-left: 5px solid var(--accent);
}

/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
    padding: 20px;
}
		
/* ❄️ Schneeflocken */
.snowflake {
  position: fixed;
  top: -10px;
  color: white;
  font-size: 1em;
  opacity: 0.9;
  pointer-events: none;
  z-index: 9999;
  animation: fall linear forwards;
}

/* Fall-Animation mit leichter Seitwärtsbewegung und Drehung */
@keyframes fall {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateX(20px) translateY(25vh) rotate(90deg);
  }
  50% {
    transform: translateX(-15px) translateY(50vh) rotate(180deg);
  }
  75% {
    transform: translateX(15px) translateY(75vh) rotate(270deg);
  }
  100% {
    transform: translateX(-10px) translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

		
/* === FOOTER LINKS === */
.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--glow);
}

/* Modale Fenster wiederverwenden (aus vorhandenem Modal-Stil) */
.modal-content h2 {
  color: var(--accent);
  margin-bottom: 15px;
}
