/* 
 * Halloween Party - Düsteres Design
 * Schwarz, Blutrot, Giftgrün, Orange
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=IM+Fell+English+SC&display=swap');

/* === GRUNDLEGENDES STYLING === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    color: #cccccc;
    font-family: 'IM Fell English SC', serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Nebel-Hintergrund-Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(20,20,20,0) 0%, rgba(0,0,0,0.8) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(10,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
    z-index: -2;
    animation: fogMove 20s ease-in-out infinite;
}

@keyframes fogMove {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Spinnweben-Hintergrund */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L50,90 M10,50 L90,50 M20,20 L80,80 M80,20 L20,80" stroke="rgba(100,100,100,0.1)" stroke-width="0.5" fill="none"/></svg>');
    background-size: 200px 200px;
    z-index: -1;
    opacity: 0.3;
}

/* === CONTAINER === */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.scene {
    display: none;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(20, 0, 0, 0.9);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 
        0 0 30px rgba(139, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.8);
    animation: sceneEnter 0.8s ease-out;
}

.scene.active {
    display: block;
}

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

/* === ÜBERSCHRIFTEN === */
h1, h2 {
    font-family: 'Creepster', cursive;
    text-align: center;
    color: #ff0000;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #8b0000,
        2px 2px 4px #000000;
    margin-bottom: 30px;
    animation: flicker 3s infinite;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 3px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 0.9; }
    46% { opacity: 1; }
}

/* === TEXT === */
p, li {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #cccccc;
    text-shadow: 1px 1px 2px #000000;
}

.intro-text {
    font-size: 1.3rem;
    text-align: center;
    color: #aaaaaa;
    font-style: italic;
}

/* === BUTTONS === */
.btn-horror {
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
    border: 2px solid #ff0000;
    color: #ffffff;
    font-family: 'IM Fell English SC', serif;
    font-size: 1.3rem;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-horror:hover {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.7),
        inset 0 0 15px rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
}

/* Blut-Tropf-Effekt bei Hover */
.btn-horror::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 10px;
    height: 0;
    background: #8b0000;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.btn-horror:hover::after {
    height: 30px;
    opacity: 1;
    top: 100%;
    animation: bloodDrip 0.8s ease-out;
}

@keyframes bloodDrip {
    0% { top: -10px; height: 0; }
    50% { height: 20px; }
    100% { top: 100%; opacity: 0; }
}

.btn-secondary {
    background: rgba(50, 50, 50, 0.8);
    border: 2px solid #666;
    color: #999;
}

.btn-secondary:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: #888;
}

/* Button-Container */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* === ABSAGE-SZENE === */
.decline-scene {
    background: rgba(10, 0, 0, 0.95);
    animation: screenShake 0.5s ease-in-out, flicker 2s infinite;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-5px, 5px); }
    20%, 40%, 60%, 80% { transform: translate(5px, -5px); }
}

.blood-text {
    color: #ff0000;
    font-family: 'Nosifer', cursive;
    text-shadow: 
        2px 2px 4px #000000,
        0 0 20px #ff0000;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/* === FORMULAR === */
.form-horror {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border: 2px solid #8b0000;
    border-radius: 10px;
    margin: 30px 0;
}

.form-horror input[type="text"] {
    width: 100%;
    padding: 15px;
    background: rgba(20, 0, 0, 0.8);
    border: 2px solid #666;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'IM Fell English SC', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-horror input[type="text"]:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.form-horror label {
    display: block;
    margin-bottom: 10px;
    color: #ff6666;
    font-size: 1.2rem;
}

/* === BUFFET-LISTE === */
.buffet-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.buffet-item {
    background: rgba(20, 0, 0, 0.7);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.buffet-item:hover {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transform: translateX(5px);
}

.buffet-item.reserved {
    background: rgba(0, 50, 0, 0.5);
    border-color: #00ff00;
    cursor: not-allowed;
    opacity: 0.6;
}

.buffet-item.my-reservation {
    background: rgba(0, 100, 0, 0.7);
    border-color: #00ff00;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.buffet-item.my-reservation:hover {
    background: rgba(0, 120, 0, 0.8);
    border-color: #ff0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    transform: translateX(5px);
}

.buffet-item.my-reservation .buffet-item-name {
    color: #00ff00;
}

.buffet-item.my-reservation {
    background: rgba(0, 100, 0, 0.7);
    border-color: #00ff00;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.buffet-item.my-reservation:hover {
    background: rgba(0, 120, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    transform: translateX(5px);
}

.buffet-item-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6666;
    margin-bottom: 10px;
}

.buffet-item.reserved .buffet-item-name {
    color: #66ff66;
}

.buffet-recipe {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 3px solid #ff0000;
    border-radius: 5px;
    font-size: 1rem;
    color: #aaaaaa;
}

.buffet-recipe.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.reserved-by {
    color: #00ff00;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* === FINALE / INFO-BOX === */
.info-box {
    background: rgba(50, 0, 0, 0.8);
    border: 3px solid #ff0000;
    border-radius: 10px;
    padding: 40px;
    margin: 30px auto;
    text-align: center;
    min-height: 300px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-box h3 {
    color: #ff6666;
    font-family: 'Creepster', cursive;
    font-size: 2rem;
    margin-bottom: 30px;
}

.info-item {
    font-size: 1.3rem;
    margin: 20px 0;
    color: #ffffff;
    line-height: 1.6;
}

.info-item strong {
    color: #ff0000;
}

.stream-link {
    display: inline-block;
    margin-top: 20px;
    color: #00ff00;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.stream-link:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* === JUMPSCARE === */
.jumpscare {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: flashRed 0.5s ease-in-out;
}

.jumpscare.active {
    display: flex;
}

@keyframes flashRed {
    0%, 100% { background: #000000; }
    50% { background: #ff0000; }
}

.jumpscare img {
    max-width: 80%;
    max-height: 80%;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    p, li { font-size: 1rem; }
    .scene { padding: 20px; }
    .btn-horror { font-size: 1rem; padding: 12px 25px; }
    .button-group { flex-direction: column; }
}

/* === LOADING SPINNER === */
.loading {
    display: none;
    text-align: center;
    color: #ff0000;
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === ERFOLGS-NACHRICHT === */
.success-message {
    background: rgba(0, 100, 0, 0.8);
    border: 2px solid #00ff00;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.success-message.show {
    display: block;
}

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

/* === FEHLER-NACHRICHT === */
.error-message {
    background: rgba(100, 0, 0, 0.8);
    border: 2px solid #ff0000;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    display: none;
    animation: shake 0.5s ease-out;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}