/* assets/styles.css */

:root {
    --primary-red: #e2190c;
    --accent-teal: #00ffc2;
    --light-blue: #c9ceff;
    --dark-gray: #252525;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #3a3a3a 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.logo {
    display: flow;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
}

/* Mobile User Info */
.mobile-user-info {
    display: none;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent-teal);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
}

.btn-login {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-login:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.btn-register {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-register:hover {
    background-color: #c0100a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 25, 12, 0.3);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    white-space: nowrap;
}

.user-name {
    font-weight: 600;
    margin-right: 0.5rem;
}

.btn-logout {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-teal);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #3a3a3a 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(226,25,12,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    display: block;
    color: var(--accent-teal);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-hero {
    background-color: var(--accent-teal);
    color: var(--dark-gray);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-hero:hover {
    background-color: #00e0b0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 194, 0.3);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--dark-gray);
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.prizes {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.prize-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.prize-image {
    height: 200px;
    background: var(--light-gray); /* Fallback-Hintergrund */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild wird zugeschnitten um Container zu füllen */
    transition: transform 0.3s ease;
}

.prize-card:hover .prize-image img {
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}

/* Fallback für fehlende Bilder */
.prize-image::before {
    content: "🖼️";
    font-size: 3rem;
    color: var(--white);
    position: absolute;
    z-index: 1;
    display: none; /* Standardmäßig ausgeblendet */
}

.prize-image:has(img[src=""])::before,
.prize-image:not(:has(img))::before {
    display: flex; /* Zeige Fallback-Icon wenn kein Bild */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4d40 100%);
}

.prize-content {
    padding: 1.5rem;
}

.prize-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.prize-content p {
    color: #666;
    margin-bottom: 1rem;
}

.prize-value {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4d40 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-cta {
    background-color: var(--accent-teal);
    color: var(--dark-gray);
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-cta:hover {
    background-color: #00e0b0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Calendar Section */
.calendar-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
    min-height: 70vh;
}

.calendar-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.day {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
}

.day::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.day:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.day.disabled {
    background: linear-gradient(135deg, #cccccc 0%, #aaaaaa 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.day.disabled:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.day.opened {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00e0b0 100%);
}

.day.today {
    border: 3px solid var(--accent-teal);
    box-shadow: 0 0 20px rgba(0, 255, 194, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(0, 255, 194, 0.6); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 194, 0.8); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 194, 0.6); }
}

.day-number {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.day-snowflake {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Banner Placeholder */
.banner-placeholder {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4d40 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Question Section */
.question-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.question {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.options {
    margin: 1rem 0;
}

.option {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option:hover {
    background-color: #e9e9e9;
}

.option input {
    margin-right: 0.5rem;
}

.submission-message {
    padding: 1.5rem;
    background-color: #f0f8f0;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
    display: none;
}

.success-message {
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Access Denied */
.access-denied {
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.access-denied h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.access-denied p {
    margin-bottom: 2rem;
    color: #666;
}

/* Auth Section */
.auth-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(226, 25, 12, 0.2);
    outline: none;
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #c0100a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 25, 12, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .logo-image {
        height: 80px;
    }

    /* Mobile User Info anzeigen */
    .mobile-user-info {
        display: block;
        order: 2;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    nav {
        order: 5;
        flex-basis: 100%;
        display: none;
        margin-top: 1rem;
    }

    nav.active {
        display: flow;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .auth-buttons {
        order: 4;
        flex-basis: 100%;
        display: none;
        justify-content: center;
        margin-top: 1rem;
    }

    .auth-buttons.active {
        display: flex;
    }

    /* User Info auf Desktop ausblenden auf Mobile */
    .user-info .user-name {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .calendar {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-column {
        min-width: 100%;
    }

    .auth-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 550px) {
    .logo-image {
        height: 35px;
    }

    .mobile-user-info {
        max-width: 100px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .calendar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo::before {
    content: "Winterkalender";
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    display: none; /* Standardmäßig ausgeblendet */
}

/* Fallback falls Bild nicht geladen wird */
.logo-image[src=""] + .logo::before,
.logo-image:not([src]) + .logo::before {
    display: block;
}
/* Alternative: Logo links überlappend */
.logo-left {
    position: absolute;
    top: -30px;
    left: 20px;
    z-index: 1001;
    background: transparent;
}

.logo-left .logo-image {
    height: 400px;
    width: auto;
    max-width: 550px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Header-Inhalt für links überlappendes Logo anpassen */
.header-content-left {
    padding-left: 140px; /* Platz für das Logo auf der linken Seite */
    padding-top: 20px;
}

@media (max-width: 768px) {
    .logo-left {
        top: -25px;
        left: 15px;
    }

    .logo-left .logo-image {
        height: 70px;
        max-width: 200px;
    }

    .header-content-left {
        padding-left: 120px;
        padding-top: 15px;
    }
}