/* Simon Portfolio Avatar - Frontend Styles */

/* CSS Variables are injected via PHP */
:root {
    --spa-background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    --spa-accent-color: #6366f1;
    --spa-particles-color: #6366f1;
    
    /* v13.4.0 Apple SF Pro Font Stack */
    --spa-font-stack: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spa-greeting-font: var(--spa-font-stack);
    --spa-name-font: var(--spa-font-stack);
    
    /* Legacy sizes */
    --spa-greeting-size: 18px;
    --spa-greeting-color: #1a1a2e;
    --spa-name-size: 32px;
    --spa-name-color: #ffffff;
    --spa-title-size: 14px;
    --spa-title-color: rgba(255,255,255,0.6);
}

/* Main Container */
.spa-avatar-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--spa-background);
    overflow: hidden;
}

.spa-avatar-container.spa-custom-height {
    height: var(--spa-height, 100vh);
}

/* Particles Layer */
.spa-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spa-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--spa-particles-color);
    border-radius: 50%;
    opacity: 0;
    animation: spa-float 8s infinite ease-in-out;
}

@keyframes spa-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* Glow Effect */
.spa-glow {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--spa-accent-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 0;
    animation: spa-glow-pulse 4s ease-in-out infinite;
}

@keyframes spa-glow-pulse {
    0%, 100% { opacity: 0.15; transform: translate(50%, -50%) scale(1); }
    50% { opacity: 0.25; transform: translate(50%, -50%) scale(1.2); }
}

/* Split Layout - 50/50 */
.spa-split-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    z-index: 1;
}

/* Content Area (Left) - KOMPLETT GLASS BACKGROUND */
.spa-content-area {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    
    /* v10.0 NO SCROLL - fixed height slider */
    overflow: hidden;
    height: 100vh;
    
    /* Full Glass Background für gesamten linken Bereich */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.spa-content-wrapper {
    width: 100%;
    max-width: 680px; /* Optimal reading width */
    padding: 0;
    position: relative;
}

/* Kein separater Glass Container mehr - Bereich IST glass */
.spa-glass-container {
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Header Info */
.spa-header-info {
    margin-bottom: 80px;
    opacity: 0;
    animation: spa-fade-in 1s ease-out 0.5s forwards;
}

@keyframes spa-fade-in {
    to { opacity: 1; }
}

/* v9.0 CLEAN Text Reveal - ONLY Fade, NO Transform! */
@keyframes spa-text-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.spa-name-large {
    font-family: var(--spa-name-font);
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.05; /* Tighter für Headlines */
    letter-spacing: -0.04em; /* Optical adjustment */
}

.spa-title-large {
    font-family: var(--spa-name-font);
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em; /* Spaced für Caps */
}

/* ============================================
   STORY SECTIONS - v11.0 CLEAN HORIZONTAL SLIDER
   ============================================ */

.spa-story-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.spa-story-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 120px 0px;
    display: flex;
    align-items: flex-start;        /* v13.2.2 FLEX-START prevents jumping */
    flex-direction: column;
    justify-content: flex-start;    /* v13.2.2 FLEX-START prevents jumping */
    
    /* v11.2 All hidden by default */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease;
    
    /* v12.1.1 Allow headline to overflow during animation */
    overflow: visible;
}

/* v11.2 First section visible by default (until JS loads) */
.spa-story-section:first-child {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* v11.0 Active Section - centered */
.spa-story-section.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* v11.0 Previous sections - offscreen left */
.spa-story-section.previous {
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
/* v12.1 PLAY STORY BUTTON */
.spa-play-story-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-left: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--spa-accent-color);
}

.spa-play-story-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.spa-play-story-btn svg {
    animation: pulse 2s infinite;
}

.spa-play-story-btn span {
    font-family: var(--spa-name-font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* Section Number */
/* Section Title - Plakativer Stil */
/* ============================================
   PROFESSIONAL MICROTYPOGRAPHY
   ============================================ */

/* Section Title - Display Typography */
.spa-section-title {
    /* v13.4.0 Apple SF Pro Display Headline */
    font-family: var(--spa-font-stack);
    font-size: 80px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 0 0.4em 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
    
    /* Gradient text */
    background: linear-gradient(135deg, #ffffff 0%, var(--spa-accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    opacity: 0;
    transition: font-size 0.4s ease;
    position: relative;
    z-index: auto;
}

.spa-section-title.revealed {
    /* v13.0.2 DISABLED - No animation during typewriter! */
    animation: none !important;
}

/* Subheadline if needed */
.spa-section-subtitle {
    font-family: var(--spa-name-font);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin: -0.3em 0 1.2em 0; /* Negative top for tight coupling */
    line-height: 1.35;
    letter-spacing: -0.015em;
}

/* Section Text - Body Typography */
.spa-section-text {
    margin-bottom: 3em;
    /* v8.4 Ready for typewriter - starts visible */
    opacity: 1;
}

.spa-section-text.fade-in {
    /* v13.0.2 DISABLED - No animation during typewriter! */
    animation: none !important;
}

.spa-section-text p {
    /* v13.4.0 Apple SF Pro Display Copy */
    font-family: var(--spa-font-stack);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.381002381;
    letter-spacing: 0.011em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.4em 0;
    max-width: 68ch;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Last paragraph - No bottom margin */
.spa-section-text p:last-child {
    margin-bottom: 0;
}

/* Drop cap - Editorial style (optional) */
/* v13.0 NO DROP CAP - smooth typewriter */
.spa-section-text p:first-of-type::first-letter {
    /* Disabled for smooth typewriter effect */
}

/* Strong emphasis - Hierarchical weight */
.spa-section-text strong,
.spa-section-text b {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Italic emphasis - Subtle distinction */
.spa-section-text em,
.spa-section-text i {
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.005em; /* Slight positive for italics */
}

/* ============================================
   v13.3.0 APPLE MUSIC KARAOKE MODE
   ============================================ */
.spa-karaoke-word {
    display: inline-block;
    color: rgba(255, 255, 255, 0.25);
    filter: blur(0.5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    transform-origin: center;
}

.spa-karaoke-word.active {
    color: #ffffff;
    filter: blur(0);
    text-shadow: 
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 40px rgba(99, 102, 241, 0.3);
    transform: scale(1.08);
    font-weight: 500;
}

.spa-karaoke-word.spoken {
    color: rgba(255, 255, 255, 0.9);
    filter: blur(0);
    transform: scale(1);
}

/* Wort-Animation - Typewriter Reveal Effect */
.spa-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bounce */
    margin: 0 8px 0 0;
}

.spa-word.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.spa-word.speaking {
    color: var(--spa-accent-color);
    transform: scale(1.15);
    text-shadow: 
        0 0 40px rgba(99, 102, 241, 1),
        0 3px 12px rgba(0, 0, 0, 0.9);
}

.spa-word.spoken {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Media Container */
.spa-section-media {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.95);
    animation: spa-media-reveal 0.8s ease-out 0.6s forwards;
}

@keyframes spa-media-reveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spa-section-media img,
.spa-section-media video {
    width: 100%;
    height: auto;
    display: block;
}

.spa-section-media video {
    cursor: pointer;
}

/* Avatar Area (Right) */
.spa-avatar-area {
    position: sticky !important; /* Sticky bleibt auch bei Multi-Avatar */
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Container für Multi-Avatar System */
    overflow: hidden;
    transition: opacity 0.5s ease;
}

/* v8.0: Empty state when no avatar */
.spa-avatar-area.spa-empty {
    opacity: 0;
    pointer-events: none;
}

.spa-avatar-area.spa-empty::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}


#spa-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Audio Waveform Indicator */
.spa-audio-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spa-audio-indicator.playing {
    opacity: 1;
}

.spa-audio-bar {
    width: 4px;
    height: 24px;
    background: var(--spa-accent-color);
    border-radius: 4px;
    animation: spa-audio-wave 0.5s ease-in-out infinite alternate;
}

.spa-audio-bar:nth-child(1) { animation-delay: 0s; }
.spa-audio-bar:nth-child(2) { animation-delay: 0.1s; }
.spa-audio-bar:nth-child(3) { animation-delay: 0.2s; }
.spa-audio-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes spa-audio-wave {
    0% { height: 8px; }
    100% { height: 24px; }
}

/* Controls */
.spa-controls {
    position: fixed;
    bottom: 120px; /* Über Footer Info */
    left: 40px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.spa-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.spa-btn:hover {
    background: var(--spa-accent-color);
    transform: scale(1.1);
}

.spa-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Section Navigation with Thumbnails - v10.1 HIDDEN (use dots instead) */
.spa-sections-nav-thumbnails {
    display: none !important;
}

.spa-section-thumb {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    flex-shrink: 0;
}

.spa-section-thumb:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.spa-section-thumb.active {
    border-color: var(--spa-accent-color);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.spa-section-thumb img,
.spa-section-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spa-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spa-thumb-number {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--spa-name-font);
}

.spa-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    font-family: var(--spa-name-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spa-section-thumb:hover .spa-thumb-label,
.spa-section-thumb.active .spa-thumb-label {
    opacity: 1;
}

/* Loading State */
/* v8.1 Premium Loading Screen - Full Screen Overlay */
/* ============================================
   v15.0.0 BLUR-TO-SHARP LOADING SCREEN
   ============================================ */

.spa-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.spa-loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Blur Background Image */
.spa-loading-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--spa-loading-bg, url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><rect fill="%23111" width="400" height="400"/><circle cx="200" cy="200" r="100" fill="%23222"/></svg>'));
    background-size: cover;
    background-position: center;
    filter: blur(50px);
    opacity: 0.3;
    transition: filter 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

/* Loading Content - Centered */
.spa-loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

/* Name & Position - AFTER percentage */
.spa-loading-info {
    margin-top: 40px;
}

.spa-loading-name {
    font-family: var(--spa-name-font);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.spa-loading-position {
    font-family: var(--spa-name-font);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Big Percentage Number - MASSIVE & BOLD */
.spa-loading-percent {
    font-family: var(--spa-name-font);
    font-size: 200px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.08em;
    line-height: 0.85;
    text-shadow: 
        0 0 80px rgba(255, 255, 255, 0.3),
        0 20px 100px rgba(0, 0, 0, 0.8);
    font-variant-numeric: tabular-nums;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
}

/* v11.2 SLIDER NAVIGATION */
/* ============================================
   NAVIGATION - Große Pfeile + Dots
   ============================================ */

/* Große Pfeil-Navigation */
.spa-nav-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.spa-nav-arrow {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--spa-accent-color);
    transform: scale(1.1);
}

.spa-nav-arrow.disabled {
    opacity: 0;
    pointer-events: none;
}

.spa-nav-arrow svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Dots Navigation - centered bottom */
.spa-nav-dots {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 16px;
}

.spa-nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.spa-nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--spa-accent-color);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-nav-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

.spa-nav-dot.active {
    width: 14px;
    height: 14px;
    background: transparent;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-left: auto;
}

/* Progress Fill */
.spa-loading-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--spa-accent-color), #ffffff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Percentage Display */

/* Responsive */
@media (max-width: 1024px) {
    .spa-loading {
        padding: 40px;
    }
    
    .spa-loading-name {
        font-size: 48px;
    }
    
    .spa-loading-position {
        font-size: 16px;
    }
    
    .spa-loading-progress {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .spa-loading {
        padding: 30px 20px;
    }
    
    .spa-loading-name {
        font-size: 36px;
    }
    
    .spa-loading-position {
        font-size: 14px;
    }
    
    .spa-loading-progress {
        width: 200px;
    }
}

/* OLD Loading (entfernt) */
.spa-loading-spinner,
.spa-loading-text {
    display: none;
}

@keyframes spa-spin {
    to { transform: rotate(360deg); }
}


/* Responsive */
@media (max-width: 1400px) {
    .spa-split-layout {
        grid-template-columns: 1fr 45%;
    }
    
    .spa-content-area {
        padding: 60px 40px 60px 80px;
    }
}

@media (max-width: 1024px) {
    .spa-split-layout {
        display: block;
        position: relative;
        height: 100vh;
        overflow: hidden;
    }
    
    .spa-content-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 30vh;
        height: auto;
        padding: 40px 20px;
        padding-bottom: 60px; /* Extra space before avatar */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .spa-avatar-area {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30vh;
        min-height: 200px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(20px);
        pointer-events: none; /* Allow clicks through to content */
    }
    
    .spa-avatar-area canvas {
        pointer-events: all; /* But allow avatar interaction */
    }
    
    /* Play Story Button - higher and visible */
    .spa-play-story-btn {
        position: relative;
        z-index: 15;
        margin-bottom: 40px !important;
    }
    
    /* Skills Buttons - also higher */
    .spa-skill-showcase-container {
        position: relative;
        z-index: 15;
        margin-bottom: 40px !important;
    }
    
    .spa-controls {
        left: 20px;
        bottom: calc(30vh + 20px);
        z-index: 20;
    }
    
    .spa-sections-nav-thumbnails {
        position: fixed;
        bottom: calc(30vh + 10px);
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 16px;
        gap: 12px;
        z-index: 20;
    }
    
    .spa-section-thumb {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .spa-content-area {
        bottom: 25vh;
        padding: 30px 20px;
        padding-bottom: 80px; /* More space before avatar */
    }
    
    .spa-avatar-area {
        height: 25vh;
        min-height: 180px;
    }
    
    .spa-header-info {
        margin-bottom: 30px;
    }
    
    .spa-section-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    
    .spa-section-text {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }
    
    /* Play Button even higher on small screens */
    .spa-play-story-btn {
        margin-bottom: 60px !important;
    }
    
    /* Skills even higher */
    .spa-skill-showcase-container {
        margin-bottom: 60px !important;
    }
    
    .spa-controls {
        left: 20px;
        bottom: calc(25vh + 20px);
    }
    
    .spa-sections-nav-thumbnails {
        bottom: calc(25vh + 10px);
        padding: 8px 12px;
        gap: 8px;
    }
    
    .spa-section-thumb {
        width: 80px;
        height: 60px;
        border-width: 2px;
    }
    
    .spa-thumb-number {
        font-size: 24px;
    }
    
    .spa-thumb-label {
        font-size: 9px;
        padding: 6px;
    }
}

/* Cases Button - Glass Style */
.spa-cases-button {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    
    /* Apple Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    
    font-family: var(--spa-name-font);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.spa-cases-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.spa-cases-button svg {
    width: 18px;
    height: 18px;
}

/* Cases Modal - Apple Glass Style */
.spa-cases-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spa-cases-modal.active {
    display: flex;
}

.spa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: spa-fade-in-backdrop 0.3s ease;
}

@keyframes spa-fade-in-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spa-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    
    /* Apple Glassmorphism - WEISS */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 0;
    
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    
    animation: spa-modal-scale-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes spa-modal-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header mit Bild */
.spa-modal-header {
    position: relative;
    width: 100%;
}

.spa-modal-media {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    position: relative;
}

.spa-modal-media img,
.spa-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spa-modal-media:empty {
    display: none;
}

/* Modal Body - Scrollable */
.spa-modal-body {
    padding: 48px;
    overflow-y: auto;
    flex: 1;
}

.spa-modal-title {
    font-family: var(--spa-name-font);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 40px 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--spa-accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spa-cases-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spa-case-item {
    padding: 24px;
    
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    
    transition: all 0.3s ease;
}

.spa-case-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
}

.spa-case-name {
    font-family: var(--spa-name-font);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.spa-case-description {
    font-family: var(--spa-greeting-font);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer Info - Name & Titel unten links */
.spa-footer-info {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 15;
    pointer-events: none;
}

.spa-name-footer {
    font-family: var(--spa-name-font);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.spa-title-footer {
    font-family: var(--spa-name-font);
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.spa-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    z-index: 100;
    
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: all 0.3s ease;
}

.spa-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.spa-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
}

/* Section Background Overlay */
.spa-avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
}

.spa-avatar-container[data-section-background]::before {
    opacity: 1;
}

/* Content & Avatar über Background */
.spa-content-area,
.spa-avatar-area {
    position: relative;
    z-index: 1;
}

/* Video Background Container */
.spa-background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 1; /* Sofort sichtbar */
    transform: translateX(0);
    /* Transition entfernt */
}

.spa-background-video-container.active {
    opacity: 1;
}

.spa-background-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Parallax Background Effect */
.spa-avatar-container::before,
.spa-background-video-container {
    transform: translateZ(0);
    will-change: transform;
}

.spa-content-area.parallax-scroll .spa-avatar-container::before,
.spa-content-area.parallax-scroll .spa-background-video-container {
    transition: transform 0.1s ease-out;
}

/* Case Gallery Grid */
.spa-case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    width: 100%;
}

.spa-case-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-case-item:hover {
    transform: translateY(-8px);
}

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

.spa-case-placeholder {
    background: linear-gradient(135deg, var(--spa-accent-color), rgba(99, 102, 241, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.spa-case-placeholder span {
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

.spa-case-item:hover .spa-case-image {
    transform: scale(1.1);
}

.spa-case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.spa-case-item:hover .spa-case-overlay {
    transform: translateY(0);
}

.spa-case-name {
    font-family: var(--spa-name-font);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.spa-case-desc {
    font-family: var(--spa-greeting-font);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .spa-case-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   HYBRID CONTENT BLOCKS
   ============================================ */

.spa-content-blocks {
    margin: 40px 0;
    width: 100%;
}

.spa-block {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.spa-block img,
.spa-block video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.spa-block-caption {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* TEXT ONLY Layout */
.spa-layout-text_only {
    /* Kein spezielles Layout - nur Text */
}

/* BENTO GRID Layout - Default Content Layout */
.spa-bento-grid,
.spa-layout-bento_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    grid-auto-rows: 220px;
    margin-top: 3em; /* Em-based spacing */
}

.spa-bento-grid .spa-block:nth-child(1),
.spa-layout-bento_grid .spa-block:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
}

.spa-bento-grid .spa-block:nth-child(2),
.spa-layout-bento_grid .spa-block:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.spa-bento-grid .spa-block:nth-child(3),
.spa-layout-bento_grid .spa-block:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
}

.spa-bento-grid .spa-block:nth-child(4),
.spa-layout-bento_grid .spa-block:nth-child(4) {
    grid-column: span 3;
    grid-row: span 1;
}

.spa-bento-grid .spa-block:nth-child(5),
.spa-layout-bento_grid .spa-block:nth-child(5) {
    grid-column: span 3;
    grid-row: span 1;
}

.spa-bento-grid .spa-block:nth-child(n+6),
.spa-layout-bento_grid .spa-block:nth-child(n+6) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Block Container - Subtle glass effect */
.spa-bento-grid .spa-block,
.spa-layout-bento_grid .spa-block {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.spa-bento-grid .spa-block:hover,
.spa-layout-bento_grid .spa-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.spa-bento-grid .spa-block img,
.spa-bento-grid .spa-block video,
.spa-layout-bento_grid .spa-block img,
.spa-layout-bento_grid .spa-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Text blocks im Grid */
.spa-block-text-content {
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .spa-bento-grid,
    .spa-layout-bento_grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 16px;
    }
    
    .spa-bento-grid .spa-block,
    .spa-layout-bento_grid .spa-block {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* CAROUSEL Layout */
.spa-layout-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.spa-layout-carousel::-webkit-scrollbar {
    height: 8px;
}

.spa-layout-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.spa-layout-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.spa-layout-carousel .spa-block {
    min-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* VIDEO HERO Layout */
.spa-layout-video_hero .spa-block-video:first-child {
    margin-bottom: 200px;
}

.spa-layout-video_hero .spa-block-video:first-child video {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
}

/* CASE GRID Layout */
.spa-layout-case_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.spa-layout-case_grid .spa-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.spa-layout-case_grid .spa-block:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

/* MIXED Layout */
.spa-layout-mixed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spa-layout-mixed .spa-block-image,
.spa-layout-mixed .spa-block-video {
    max-width: 100%;
}

.spa-layout-mixed .spa-block-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--spa-accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .spa-layout-bento_grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .spa-layout-bento_grid .spa-block {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .spa-layout-carousel .spa-block {
        min-width: 280px;
    }
    
    .spa-layout-case_grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SHOW CONTENT BUTTON
   ============================================ */

.spa-show-content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    margin: 30px 0 40px 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
    min-width: 220px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.spa-show-content-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.spa-show-content-btn:active {
    transform: translateY(-1px);
}

.spa-show-content-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.spa-show-content-btn.active svg {
    transform: rotate(180deg);
}

.spa-content-blocks {
    animation: slideDown 0.4s ease-out;
}

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

/* ============================================
   MULTI-AVATAR SYSTEM
   ============================================ */

.spa-section-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.spa-section-avatar.active {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
}

.spa-section-avatar.exiting {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
    opacity: 0;
}

.spa-section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ============================================
   GLASSMORPHISM PROFESSIONAL DESIGN
   ============================================ */

/* Subtle text shadow for depth */
.spa-glass-container h2,
.spa-glass-container h3 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Links in Text */
.spa-section-text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 0.2em;
    transition: all 0.2s ease;
}

.spa-section-text a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

/* Quotes - Professional style */
.spa-section-text blockquote {
    margin: 2em 0;
    padding-left: 1.5em;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

/* Lists - Clean spacing */
.spa-section-text ul,
.spa-section-text ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.spa-section-text li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* Responsive Glassmorphism */
@media (max-width: 1200px) {
    .spa-story-section {
        padding: 100px 60px;
    }
    
    .spa-section-text p {
        max-width: 65ch;
    }
}

@media (max-width: 900px) {
    .spa-split-layout {
        grid-template-columns: 1fr; /* Stack vertical */
    }
    
    .spa-content-area {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .spa-story-section {
        padding: 80px 40px;
    }
    
    .spa-content-wrapper {
        max-width: 100%;
    }
    
    .spa-section-text p {
        font-size: clamp(16px, 2.5vw, 19px);
        line-height: 1.7;
    }
    
    /* Disable drop cap on mobile */
    .spa-section-text p:first-of-type::first-letter {
        font-size: inherit;
        float: none;
        margin: 0;
        font-weight: inherit;
    }
    
    /* Avatar below content on mobile */
    .spa-avatar-area {
        position: relative;
        height: 60vh;
    }
}

@media (max-width: 600px) {
    .spa-story-section {
        padding: 60px 24px;
    }
    
    .spa-section-title {
        font-size: clamp(32px, 8vw, 42px);
        margin-bottom: 0.5em;
    }
    
    .spa-section-text p {
        line-height: 1.65;
        max-width: 100%;
    }
}

/* Scrollbar Styling für Glassmorphism */
.spa-content-area::-webkit-scrollbar {
    width: 8px;
}

.spa-content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.spa-content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.spa-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}



/* ============================================
   v14.0.0 MORPHING PLAY BUTTON
   ============================================ */

.spa-play-morphing-container {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-play-glass-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-play-glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.spa-play-glass-btn:active {
    transform: scale(0.98);
}

.spa-play-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.spa-play-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Morphing animation */
.spa-play-morphing-container.morphing {
    bottom: 200px;
    transform: translate(-50%, 0);
}

.spa-play-morphing-container.morphing .spa-play-glass-btn {
    padding: 12px 20px;
    background: rgba(30, 30, 30, 0.85);
}

.spa-play-morphing-container.morphing .spa-play-icon {
    width: 44px;
    height: 44px;
}

.spa-play-morphing-container.morphing .spa-play-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Controls when morphed */
.spa-audio-controls.morphed {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   v14.1.0 AUDIO CONTROLS - GLASS STYLE
   ============================================ */

.spa-audio-controls {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.spa-audio-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

.spa-audio-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    flex-shrink: 0;
}

.spa-audio-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.spa-audio-btn:active {
    transform: scale(0.95);
}

.spa-audio-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.spa-audio-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.spa-audio-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.spa-audio-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.spa-audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.9));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.spa-audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .spa-audio-controls {
        bottom: 100px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .spa-audio-wrapper {
        padding: 10px 16px;
    }
    
    .spa-audio-info {
        min-width: 0;
        flex: 1;
    }
}

/* ============================================
   v14.2.0 SKIP BUTTON
   ============================================ */

.spa-audio-skip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.spa-audio-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateX(2px);
}

.spa-audio-skip:active {
    transform: translateX(0) scale(0.98);
}

.spa-audio-skip svg {
    flex-shrink: 0;
}

/* Mobile - Icon only */
@media (max-width: 768px) {
    .spa-audio-skip span {
        display: none;
    }
    
    .spa-audio-skip {
        padding: 10px;
        min-width: 38px;
        justify-content: center;
    }
}

/* ============================================
   v14.3.0 CONTENT BLOCKS - APPLE GLASS STYLE
   ============================================ */

.spa-content-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

.spa-block {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 1 / 1;  /* Square! */
}

.spa-block:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.spa-block img,
.spa-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spa-block-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spa-block:hover .spa-block-caption {
    opacity: 1;
}

/* Grid variations */
.spa-block:nth-child(3n+1) {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .spa-content-blocks {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }
    
    .spa-block:nth-child(3n+1) {
        grid-column: span 1;
    }
}

/* ============================================
   v14.3.0 MEDIA MODAL - FULLSCREEN GLASS
   ============================================ */

.spa-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-media-modal.active {
    opacity: 1;
}

.spa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.spa-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spa-media-modal.active .spa-modal-content {
    transform: scale(1);
}

.spa-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.spa-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.spa-modal-close:active {
    transform: scale(0.95);
}

.spa-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 100px);
}

.spa-modal-media img,
.spa-modal-media video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spa-modal-caption {
    margin-top: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .spa-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 16px;
        border-radius: 16px;
    }
    
    .spa-modal-media {
        max-height: calc(95vh - 80px);
    }
    
    .spa-modal-close {
        top: 8px;
        right: 8px;
    }
}

/* ============================================
   v14.5.0 GALLERY NAVIGATION
   ============================================ */

.spa-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
}

.spa-modal-prev {
    left: 20px;
}

.spa-modal-next {
    right: 20px;
}

.spa-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.spa-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.spa-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .spa-modal-nav {
        width: 48px;
        height: 48px;
    }
    
    .spa-modal-prev {
        left: 10px;
    }
    
    .spa-modal-next {
        right: 10px;
    }
    
    .spa-modal-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* v16.3.0 Skill Showcase CTA Button */
.spa-skill-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 40px 20px;
}

.spa-skill-cta-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--spa-name-font);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.spa-skill-cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.spa-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.spa-cta-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.spa-cta-text {
    white-space: nowrap;
}

/* v16.5.0 Text-based CTA Link */
.spa-skill-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 8px 0;
    font-family: var(--spa-name-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--spa-accent-color, #6366f1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.spa-skill-cta-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 28px;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-skill-cta-link:hover {
    gap: 12px;
}

.spa-skill-cta-link:hover::after {
    transform: scaleX(1);
}

.spa-cta-arrow {
    width: 20px;
    height: 20px;
    color: currentColor;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-skill-cta-link:hover .spa-cta-arrow {
    transform: translateX(4px);
}

.spa-cta-text {
    white-space: nowrap;
}

/* Fade-in animation after speech */
@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spa-skill-cta-link.visible {
    animation: ctaFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* v24.3.0 Hide skills until story is played */
.spa-skill-buttons-hidden .spa-skill-showcase-container {
    display: none !important;
}

.spa-skill-buttons-visible .spa-skill-showcase-container {
    display: block !important;
    animation: fadeInUp 0.6s ease-out;
}

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

/* v24.4.0 EMERGENCY FIX: Ensure all sections are visible */
.spa-story-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.spa-story-section.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.spa-story-section:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

.spa-section-title,
.spa-section-text {
    opacity: 1 !important;
    visibility: visible !important;
}

/* v24.7.0 Mobile: Allow content scrolling between sections */
@media (max-width: 1024px) {
    .spa-story-section {
        position: relative;
        display: block;
        min-height: auto;
        padding: 20px 0;
    }
    
    .spa-story-section:not(.active) {
        display: block !important;
        opacity: 0.5;
        pointer-events: none;
    }
    
    .spa-story-section.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* ========================================

/* ========================================
   LANDING ANIMATION: CLEAN REVEAL v24.12.0
   NO GLOW - nur saubere Fade/Slide Animationen
   ======================================== */

/* Initial Hidden State */
.spa-landing-initial .spa-section-title {
    opacity: 0;
    transform: translateY(20px);
}

.spa-landing-initial .spa-section-text {
    opacity: 0;
    transform: translateY(30px);
}

.spa-landing-initial .spa-play-story-btn {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.spa-landing-initial .spa-avatar-area {
    opacity: 0;
    transform: scale(0.95);
}

/* Reveal Animations */
.spa-animate-title {
    animation: spaRevealFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.spa-animate-text {
    animation: spaRevealFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.spa-animate-button {
    animation: spaRevealFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.spa-animate-avatar {
    animation: spaRevealScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

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

@keyframes spaRevealScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
