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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background mit Theme-Bild */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: -1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.story-container {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 110px !important;
    padding-bottom: 3rem !important;
    min-height: 100vh !important;
}

/* Story Card (Start-Seite) */
.story-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
}

.story-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.story-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--badge-bg);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.badge-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.story-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--description-bg);
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.8;
    border-left: 4px solid var(--primary-color);
}

/* Buttons */
.btn-start {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--button-text);
    background: var(--button-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 20px var(--button-shadow);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--button-shadow);
}

.btn-start:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-start:hover .btn-arrow {
    transform: translateX(5px);
}

/* Story Header */
.story-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn-restart {
    padding: 0.5rem 1rem;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    transform: scale(1.05);
}

/* Story Content */
.story-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 100%;
    position: relative;
    z-index: 1;
}

.story-text {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 2rem;
    min-height: 200px;
    white-space: pre-wrap;
}

/* Choices */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--choice-bg);
    border: 2px solid var(--choice-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(20px);
}

.choice-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.choice-btn:hover {
    background: var(--choice-hover-bg);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--button-shadow);
}

.choice-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--button-text);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.choice-text {
    flex: 1;
    color: var(--text-color);
}

/* Loading */
.loading-indicator {
    text-align: center;
    padding: 3rem;
}

.spinner,
.spinner-large {
    border: 3px solid var(--spinner-bg);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Progress Container */
.progress-container {
    margin-top: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--spinner-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

.progress-text {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
}

/* Button Error State */
.btn-start.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
    .container {
        padding: 1rem;
    }
    
    .story-card,
    .story-content {
        padding: 1.5rem;
    }
    
    .story-title {
        font-size: 1.75rem;
    }
    
    .story-text {
        font-size: 1.05rem;
    }
    
    .story-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
}
