/* Adventskalender Styles */

* {
    box-sizing: border-box;
}

.adventskalender-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.adventskalender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tuerchen {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tuerchen:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tuerchen.geoeffnet {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    position: relative;
}

.tuerchen.geoeffnet::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #00a32a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.tuerchen.gesperrt {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    cursor: not-allowed;
}

.tuerchen.gesperrt:hover {
    transform: none;
}

.tuerchen-nummer {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tuerchen-oeffnen {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
}

.tuerchen-geschlossen {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75em;
    text-align: center;
    line-height: 1.3;
}

.tuerchen-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

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

.modal-inhalt {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-schliessen {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-schliessen:hover,
.modal-schliessen:focus {
    color: #000;
}

.modal-inhalt h2 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 2em;
    clear: both;
    padding-top: 10px;
}

.modal-inhalt p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.modal-inhalt img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-inhalt video,
.modal-inhalt iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #c41e3a;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.kontakt-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.kontakt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.kontakt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#kontakt-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

#kontakt-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#kontakt-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quiz-antworten {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.quiz-antwort {
    padding: 15px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.quiz-antwort:hover {
    background: #e0e0e0;
    border-color: #c41e3a;
}

.quiz-antwort.richtig {
    background: #d4edda;
    border-color: #28a745;
    cursor: default;
}

.quiz-antwort.falsch {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .adventskalender-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .tuerchen-nummer {
        font-size: 2em;
    }
    
    .modal-inhalt {
        margin: 10% 5%;
        padding: 20px;
    }
    
    .modal-inhalt h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .adventskalender-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .tuerchen-oeffnen {
        font-size: 0.75em;
        padding: 5px 10px;
    }
    
    .tuerchen-geschlossen {
        font-size: 0.65em;
    }
}