/* ============================
   Global Styles & Reset
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Stevie Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================
   Schneeflocken (optional behalten)
   ============================ */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: #e3f2fd;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; font-size: 1.5rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 18s; animation-delay: 1s; font-size: 1.3rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 14s; animation-delay: 3s; font-size: 1.6rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 16s; animation-delay: 5s; font-size: 1.4rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: 2s; font-size: 1.7rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: 4s; font-size: 1.5rem; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 17s; animation-delay: 1s; font-size: 1.3rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 3s; font-size: 1.6rem; }

@keyframes fall {
    0% { top: -10%; opacity: 0.6; }
    100% { top: 110%; opacity: 0.2; }
}

/* ============================
   Header
   ============================ */
.header {
    width: 100%;
    background: #2b2b2b;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   Main Content Container
   ============================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================
   Intro Section
   ============================ */
.intro-section {
    text-align: center;
    padding: 3rem 0 2rem;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.presented {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666666;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: #ffffff;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Stevie Sans', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #CC0000 0%, #AA0000 100%);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ============================
   Mystery Section (Ziege + Text)
   ============================ */
.mystery-section {
    padding: 3rem 0;
}

.mystery-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.mystery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mystery-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.mystery-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.instagram-link {
    margin-top: 2rem;
}

.instagram-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Stevie Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
}

.instagram-link a svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================
   How It Works Section
   ============================ */
.how-it-works {
    padding: 3rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
}

.steps-container {
    display: grid;
	color: #ff8d8d;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    background: #ff8d8d;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.step-number {
    background: #ff0000;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
}

.dont-miss {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin: 2rem auto;
    max-width: 900px;
}

.excitement-title {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    margin: 3rem 0 2rem;
}

/* ============================
   Calendar Section - Full Width Background
   ============================ */
.calendar-section {
    padding: 3rem 2rem 4rem;
    background: #d8e8f0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.door {
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.door-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.door:not(.future):hover {
    transform: translateY(-8px) scale(1.05);
    filter: brightness(1.1);
}

.door.future {
    cursor: not-allowed;
    opacity: 0.4;
    filter: grayscale(100%);
}

.door.today {
    animation: pulseCalendar 2s ease-in-out infinite;
}

@keyframes pulseCalendar {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================
   Modal/Pop-Up
   ============================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.modal-header {
    padding: 3rem 3rem 0;
    text-align: center;
}

.modal-animation {
    display: none;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-body h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.modal-body h2::before {
    content: '🎁 ';
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-body h2 + p {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ============================
   Messages
   ============================ */
.message {
    display: none;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
}

.message.show {
    display: block;
    animation: fadeInScale 0.5s ease;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.success-message::before {
    content: '✓ ';
    font-weight: 700;
    margin-right: 0.5rem;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.error-message::before {
    content: '⚠ ';
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ============================
   Form Styling
   ============================ */
.participation-form {
    display: block;
}

.participation-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Stevie Sans', sans-serif;
    transition: all 0.2s ease;
    background: #fff;
    color: #1f2937;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #374151;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.checkbox-label span {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}

.checkbox-label a {
    color: #3b82f6;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #2563eb;
}

.submit-button {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Stevie Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================
   Game Section - Neues Design
   ============================ */
.game-section {
    background: #fafafa;
    padding: 4rem 2rem;
    margin-top: 0;
    border-top: 2px solid #e0e0e0;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.5rem;
    font-family: 'Stevie Sans', sans-serif;
}

.game-subtitle {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.game-wrapper {
    position: relative;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: grab;
    border: 2px solid #e0e0e0;
}

.game-wrapper:active {
    cursor: grabbing;
}

#game-canvas {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#game-score {
    position: absolute;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5em;
    font-weight: 900;
    font-family: 'Stevie Sans', sans-serif;
    color: white;
    text-shadow: 
        1px 1px 0 #07133A,
        2px 2px 0 #07133A,
        3px 3px 0 #07133A,
        4px 4px 0 #07133A,
        5px 5px 0 #07133A,
        6px 6px 0 #07133A,
        7px 7px 0 #07133A;
    pointer-events: none;
    z-index: 10;
}

#game-intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    font-family: 'Stevie Sans', sans-serif;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    transition: opacity 2s;
    pointer-events: none;
    z-index: 10;
}

#game-perfect {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 2s;
    color: #FF0000;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Stevie Sans', sans-serif;
    pointer-events: none;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#game-restart {
    width: 140px;
    height: 140px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border: 4px solid white;
    font-weight: bold;
    font-family: 'Stevie Sans', sans-serif;
    font-size: 1.2em;
    display: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

#game-restart:hover {
    background: linear-gradient(135deg, #CC0000 0%, #AA0000 100%);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

/* ============================
   Footer
   ============================ */
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 2.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 0.8rem;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-links .separator {
    color: #999;
    margin: 0 0.5rem;
}

.footer-copyright {
    color: #666;
    font-size: 0.95rem;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInModal {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================
   Responsive Design - Tablet
   ============================ */
@media (max-width: 1024px) {
    .mystery-container {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .step:nth-child(4),
    .step:nth-child(5) {
        grid-column: span 1;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

/* ============================
   Responsive Design - Mobile
   ============================ */
@media (max-width: 768px) {
    .main-content {
        padding: 0 1.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .mystery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mystery-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .instagram-link {
        margin-top: 1.5rem;
        text-align: center;
    }

    .instagram-link a {
        font-size: 1rem;
        padding: 0.9rem 1.8rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .calendar-section {
        margin: 1 -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .excitement-title {
        font-size: 1.6rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.6rem;
    }

    /* Game Mobile */
    .game-section {
        padding: 3rem 1.5rem;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .game-wrapper {
        padding: 1.5rem;
    }

    #game-canvas {
        height: 400px;
    }

    #game-score {
        font-size: 3em;
        top: 3rem;
    }

    #game-intro {
        font-size: 1em;
        padding: 1.5rem;
    }

    #game-perfect {
        font-size: 2rem;
    }

    #game-restart {
        width: 110px;
        height: 110px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-title {
        font-size: 1.6rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .mystery-image {
        max-width: 180px;
    }

    .instagram-link a {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        gap: 0.6rem;
    }

    .instagram-link a svg {
        width: 20px;
        height: 20px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    #game-canvas {
        height: 350px;
    }

    #game-score {
        font-size: 2.5em;
    }
}

