
/* Story Section Base Styles */
.story-section {
    padding: 0px 0 100px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/bg002.jpg') no-repeat;
    background-size: cover;
    opacity: 0.04;
    filter: grayscale(0.5);
    z-index: 0;
}

/* Story Tabs Navigation */
.story-tabs {
    position: relative;
    z-index: 1;
    margin-top: 70px;
}

.story-nav-wrapper {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.story-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

.story-tab-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
    flex: 1;
    position: relative;
}

.story-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.story-tab-btn .tab-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 5px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.story-tab-btn .tab-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.6;
    transition: all 0.5s ease;
    letter-spacing: -1px;
    min-width: 50px;
}

.story-tab-btn .tab-text {
    opacity: 0.7;
    transition: all 0.5s ease;
}

.story-tab-btn .tab-text h3 {
    font-size: 1.2rem;
    margin: 0 0 3px;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.5s ease;
}

.story-tab-btn .tab-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.story-tab-btn:hover .tab-number,
.story-tab-btn:hover .tab-text {
    opacity: 1;
}

.story-tab-btn:hover .tab-text h3 {
    color: var(--accent-color);
}

.story-tab-btn.active {
    transform: translateY(-5px);
}

.story-tab-btn.active::after {
    height: 3px;
    background-color: var(--accent-color);
}

.story-tab-btn.active .tab-number {
    color: var(--accent-color);
    opacity: 1;
}

.story-tab-btn.active .tab-text {
    opacity: 1;
}

.story-tab-btn.active .tab-text h3 {
    color: var(--accent-color);
    font-weight: 700;
}

/* Progress bar */
.progress-container {
    margin-bottom: 50px;
    position: relative;
}

.progress-bar {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    margin-bottom: 15px;
}

.progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.5s ease;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-label.active {
    color: var(--accent-color);
    opacity: 1;
    font-weight: 600;
}

/* Tab Content */
.story-tab-content {
    position: relative;
}

.story-tab-pane {
    display: none;
    animation: fadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.story-tab-pane.active {
    display: block;
}

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

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 600px;
}

/* Story Image Styles */
.story-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.story-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.parallax-container:hover .story-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 30, 0.3), rgba(26, 26, 30, 0.8));
}

.story-quote {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    padding: 20px 30px;
    background-color: rgba(26, 26, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
}

.story-quote span {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    display: block;
    color: var(--text-color);
}

.story-quote::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Story Content Styles */
.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content-inner {
    max-width: 90%;
}

.story-title {
    font-size: 2.4rem;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #d0c57e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Story Features */
.story-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.story-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: rgba(208, 197, 126, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    transition: all 0.5s ease;
}

.feature-icon.highlight {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Story Insights - Psychological Facts */
.story-insight {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.story-insight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.7;
}

.insight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: rgba(208, 197, 126, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.insight-content h4 {
    font-size: 0.9rem;
    margin: 0 0 5px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Story Navigation */
.story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.story-navigation span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.next-step-btn, .prev-step-btn, .restart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.next-step-btn {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.next-step-btn span {
    color: var(--secondary-color);
}

.prev-step-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.restart-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.next-step-btn:hover, .restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prev-step-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Timeline Style for Umsetzung Tab */
.story-timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background-color: rgba(208, 197, 126, 0.3);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-point {
    position: absolute;
    top: 5px;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-color);
    z-index: 1;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--text-color);
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Interactive Elements for Planung Tab */
.story-interactive {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.interactive-states {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.state {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.state.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.interactive-display {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.interactive-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-image.active {
    opacity: 1;
}

.interactive-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Testimonial Style */
.story-testimony {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimony-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(208, 197, 126, 0.3);
}

.testimony-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimony-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 10px;
    position: relative;
    font-style: italic;
}

.testimony-content p::before {
    content: '"';
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 0;
    position: relative;
    top: 5px;
}

.testimony-content p::after {
    content: '"';
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 0;
    position: relative;
    top: 5px;
    margin-left: 5px;
}

.testimony-author {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Gallery style for Erlebnis Tab */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 30, 0.3);
    transition: background-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    background-color: rgba(26, 26, 30, 0.1);
}

/* CTA Container */
.cta-container {
    background-color: rgba(208, 197, 126, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid rgba(208, 197, 126, 0.2);
}

.cta-container h4 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--accent-color);
    font-weight: 700;
}

.cta-container p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

/* Highlighted Features */
.story-features-highlight .feature-text h4 {
    color: var(--accent-color);
}

/* Mobile Optimizations */
@media (max-width: 1200px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-image-container {
        height: 400px;
    }
    
    .story-content-inner {
        max-width: 100%;
    }
    
    .story-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .story-section {
        padding: 80px 0;
    }
    
    .story-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .story-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .story-tab-btn {
        flex: 0 0 auto;
        min-width: 200px;
    }
    
    .progress-container {
        display: none;
    }
    
    .story-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .story-section {
        padding: 60px 0;
    }

    .story-section::before {
    
        opacity: 0.08;
       
    }
    
    .story-tab-btn .tab-inner {
        padding: 15px;
    }
    
    .story-tab-btn .tab-number {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .story-tab-btn .tab-text h3 {
        font-size: 1rem;
    }
    
    .story-tab-btn .tab-text span {
        font-size: 0.8rem;
    }
    
    .story-title {
        font-size: 1.8rem;
    }
    
    .story-paragraph {
        font-size: 1rem;
    }
    
    .interactive-states {
        flex-wrap: wrap;
    }
    
    .gallery-item {
        aspect-ratio: auto;
        height: 120px;
    }
    
    .story-navigation {
        flex-wrap: wrap;
    }
    
    .prev-step-btn, .next-step-btn, .restart-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .story-tab-btn {
        min-width: 160px;
    }
    
    .story-tab-btn .tab-number {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .story-quote {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 15px;
    }
    
    .story-quote span {
        font-size: 1rem;
    }
    
    .story-feature {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .story-insight {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .story-testimony {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-text h4 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
}
