/* =========================================
1. SCHRIFTARTEN & FARBEN
   ========================================= */
@font-face {
    font-family: 'cute';
    src: url("fonts/MountainsofChristmas-Bold.ttf");
}

@font-face {
    font-family: 'top';
    src: url("fonts/MountainsofChristmas-Bold.ttf");
}

@font-face {
    font-family: 'verspielt';
    src: url("fonts/MountainsofChristmas-Bold.ttf");
}

:root {
    --primary: #e28ba4;
    --primary-dark: #124466;
    --accent: #ff6b81;
    --bg-page: #fdf8f9;
    --bg-section: #ffffff;
    --text-main: #4a4a4a;
    --shadow-soft: 0 10px 25px rgba(226, 139, 164, 0.15);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
2. BASIS-STYLES
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'top', sans-serif;
    line-height: 1.6;
}

h1, h2 {
    color: var(--primary);
    font-family: 'top', sans-serif;
    text-align: center;
    margin-top: 0;
}

h1 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 30px;
}

/* =========================================
3. HEADER & NAVIGATION
   ========================================= */
.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--primary);
}

header {
    padding: 15px 10px 5px;
}

nav {
    padding-bottom: 12px;
}

.navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    font-family: 'verspielt', cursive;
    font-size: 24px;
}

.navbar li::before {
    content: "❄️ ";
    font-size: 18px;
    vertical-align: middle;
}

.navbar a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.25s ease;
    display: inline-block;
}

.navbar a:hover {
    color: var(--accent);
    transform: translateY(-2px) scale(1.05);
}

/* =========================================
4. HAUPTBEREICH & SEKTIONEN
   ========================================= */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#date,
#türchen,
#cards,
#impressum-bereich {
    scroll-margin-top: 160px;
    background-color: var(--bg-section);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: var(--shadow-soft);
}

/* =========================================
5. DATUM / TIMER
   ========================================= */
#date {
    background: linear-gradient(115deg, #d1f9ff 0%, #ffffff 100%);
    border: 1px solid rgba(226, 139, 164, 0.3);
}

#timer {
    text-align: center;
    color: var(--primary-dark);
    font-size: clamp(32px, 5vw, 48px);
    font-family: 'cute', cursive;
}

/* =========================================
6. TÜRCHEN, POLAROIDS & RÄTSEL
   ========================================= */
#pakete {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 18px;
}

.polaroid {
    background-color: white;
    padding: 15px 15px 30px 15px;
    box-shadow: var(--shadow-card);
    border: 1px solid #f2f2f2;
    border-radius: 4px;
    width: 260px;
    margin: 0;
    transform: rotate(-2deg);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
    text-align: center;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 15px 30px rgba(226, 139, 164, 0.3);
    z-index: 10;
}

.polaroid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 12px;
}

.polaroid figcaption {
    font-family: 'verspielt', cursive;
    color: var(--text-main);
    font-size: 17px;
}

/* Rätsel direkt im Polaroid */
.raetsel-box {
    width: 100%;
    padding: 10px 5px;
    text-align: center;
}

.tuerchen-nummer {
    display: block;
    font-family: 'top', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.raetsel-frage {
    font-family: 'verspielt', cursive;
    font-size: 19px;
    color: var(--text-main);
    margin: 10px 0 15px;
}

.raetsel-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-family: 'top', sans-serif;
    font-size: 16px;
    text-align: center;
    outline: none;
    margin-bottom: 12px;
}

.raetsel-box input:focus {
    box-shadow: 0 0 0 3px rgba(226, 139, 164, 0.25);
}

.raetsel-box button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'top', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.raetsel-box button:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.fehler-text {
    color: var(--accent);
    font-size: 14px;
    margin: 10px 0 0;
    min-height: 20px;
}

/* Versteckte Elemente */
.versteckt {
    display: none;
}

/* Einblend-Animation wenn das Türchen aufgeht */
.aufgedeckt {
    animation: aufploppen 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes aufploppen {
    0% {
        opacity: 0;
        transform: scale(0.85) rotate(-6deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-2deg);
    }
}

/* Kleines Wackeln bei falscher Antwort */
.wackeln {
    animation: schuetteln 0.35s ease;
}

@keyframes schuetteln {
    0%, 100% { transform: translateX(0) rotate(-2deg); }
    25% { transform: translateX(-6px) rotate(-2deg); }
    75% { transform: translateX(6px) rotate(-2deg); }
}

/* =========================================
7. KARTEN-BEREICH
   ========================================= */
#cards {
    text-align: center;
}

.einleitung {
    background-color: #fff0f4;
    color: var(--primary-dark);
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 30px;
}

#karten-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 18px;
}

.card {
    background-color: #fff9fa;
    border: 1px solid rgba(226, 139, 164, 0.25);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: var(--shadow-card);
    width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(226, 139, 164, 0.25);
}

/* =========================================
8. IMPRESSUM
   ========================================= */
#impressum-bereich {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 15px;
    color: #777;
    background-color: transparent;
    box-shadow: none;
}

#impressum-bereich h2 {
    font-size: 24px;
}

#impressum-bereich p {
    max-width: 650px;
    margin: 10px auto;
}