:root {
    --bg-color: #0f0f1a;
    --text-color: #ffffff;
    --accent-color: #ff3e83;
    --accent-secondary: #ffb347;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Quiz Overlay */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.quiz-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.quiz-container {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    min-height: 400px; /* Verhindert das Springen des Layouts */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
    width: 100%;
}

.quiz-step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Einheitlicher Abstand zwischen allen Elementen */
    width: 100%;
}

.quiz-step h2 {
    font-family: var(--font-heading);
    margin: 0; /* Reset margins for perfect centering */
    color: var(--accent-secondary);
}

.quiz-step p {
    margin: 0; /* Reset margins for perfect centering */
    opacity: 0.8;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.quiz-options button {
    width: 100%;
    max-width: 300px;
}

button {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border: none;
    color: white;
    padding: 18px 40px;
    border-radius: 18px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 180px; /* Garantiert eine schöne Breite auch bei kurzen Texten */
    box-shadow: 0 5px 15px rgba(255, 62, 131, 0.2);
}

button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 62, 131, 0.4);
}

button.error {
    animation: shake 0.4s ease;
    background: #e74c3c;
}

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

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #6c5ce7;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.accent {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* Timeline */
.timeline-container {
    padding: 100px 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), var(--accent-secondary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 150px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-content {
    width: 45%;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.timeline-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content.left {
    margin-right: auto;
    padding-right: 50px;
    text-align: right;
}

.timeline-content.right {
    margin-left: auto;
    padding-left: 50px;
}

.image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.text-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.text-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

/* Footer */
.final-message {
    padding: 150px 0;
    text-align: center;
}

.final-message h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
}

.heart {
    font-size: 3rem;
    margin-top: 30px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    h1 { font-size: 2.8rem; }
    .subtitle { font-size: 1.1rem; }
    
    .timeline-line { 
        left: 30px; 
    }
    
    .timeline-dot { 
        left: 30px; 
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        padding-bottom: 20px;
    }

    .timeline-item {
        margin-bottom: 120px; /* Mehr Platz zwischen den Jahren */
    }

    .image-wrapper {
        margin-bottom: 15px;
    }

    .text-box {
        padding: 20px;
    }

    .final-message h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 0 20px; }
    .timeline-line, .timeline-dot { left: 25px; }
    .timeline-content { 
        width: calc(100% - 60px);
        margin-left: 60px !important; 
    }
    .timeline-item { margin-bottom: 100px; }
}
