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

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --logo-dark: #1a1d29;
    --logo-blue: #6366f1;
    --secondary: #f59e0b;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Social Colors - alle bekommen das Logo-Blau */
    --social-primary: #6366f1;
    --twitter: #6366f1;
    --steam: #6366f1;
    --twitch: #6366f1;
    --youtube: #6366f1;
    --instagram: #6366f1;
    --discord: #6366f1;
    --email: #6366f1;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --logo-glow: 0 0 25px rgba(99, 102, 241, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
}

/* Desktop: Kein Scrolling */
@media (min-width: 769px) {
    html {
        overflow: hidden !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: visible;
    height: 100vh;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Desktop: Overflow visible für Glow-Effekte */
@media (min-width: 769px) {
    body {
        overflow: visible !important;
        padding: 0 100px 100px 100px;
        margin: 0 -100px -100px -100px;
        min-height: calc(100vh + 200px);
    }
}

/* Main Content Layout */
.main-content {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* Desktop: Overflow visible für 3D Glow-Effekte */
@media (min-width: 769px) {
    .main-content {
        overflow: visible !important;
        max-width: 1800px;
        margin: 0 auto;
        padding: 0;
        height: 100vh;
    }
    
    .socials {
        margin: var(--spacing-md) -150px var(--spacing-lg) -150px;
        padding: 30px 150px;
        position: relative;
        z-index: 9999;
    }
    
    .socials-list {
        margin: 0 -50px;
        padding: 30px 50px;
    }
}

.background {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, var(--spacing-xl));
    margin-top: clamp(2vh, 8vh, 12vh);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    max-height: 50vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);

}

.header-logo {
    margin-bottom: clamp(0.25rem, 1vw, var(--spacing-sm));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(80px, 12vw, 200px);
}

#threejs-coin-container {
    width: clamp(120px, 15vw, 200px);
    height: clamp(120px, 15vw, 200px);
    margin: 0 auto;
    cursor: pointer;
    filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.5));
    transition: filter 0.3s ease;
    /* Mobile Touch Highlight entfernen */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    outline: none;
}

#threejs-coin-container:hover {
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.7));
}

@keyframes simpleCoinSpin {
    0% { 
        transform: rotateY(0deg) rotateX(15deg);
    }
    25% { 
        transform: rotateY(90deg) rotateX(10deg);
    }
    50% { 
        transform: rotateY(180deg) rotateX(5deg);
    }
    75% { 
        transform: rotateY(270deg) rotateX(10deg);
    }
    100% { 
        transform: rotateY(360deg) rotateX(15deg);
    }
}

.greeting {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 2vw, var(--spacing-sm));
    line-height: 1.1;
}

.name {
    background: linear-gradient(
        45deg,
        var(--logo-dark),
        var(--logo-blue),
        #ffffff,
        var(--primary-light),
        var(--logo-blue),
        var(--logo-dark),
        var(--logo-blue),
        #ffffff
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        flowingGradient 4s ease-in-out infinite,
        gentleFloat 6s ease-in-out infinite,
        glowPulse 3s ease-in-out infinite;
    position: relative;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Mobile Touch Highlight entfernen */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    outline: none;
}

/* Cooler Hover-Effekt für BiigToastie Text */
.name:hover,
.name.touch-active {
    transform: scale(1.08) translateY(-4px) rotateY(2deg);
    text-shadow: 
        0 0 30px rgba(99, 102, 241, 1),
        0 0 60px rgba(99, 102, 241, 0.6),
        0 0 90px rgba(99, 102, 241, 0.3);
    filter: 
        drop-shadow(0 0 25px rgba(99, 102, 241, 0.7))
        drop-shadow(0 0 50px rgba(99, 102, 241, 0.4));
    animation: nameHoverPulse 1.5s ease-in-out infinite;
    position: relative;
}

.name:hover::after,
.name.touch-active::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
    animation: sparkleFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes nameHoverPulse {
    0%, 100% { 
        text-shadow: 
            0 0 30px rgba(99, 102, 241, 1),
            0 0 60px rgba(99, 102, 241, 0.6),
            0 0 90px rgba(99, 102, 241, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(99, 102, 241, 1),
            0 0 80px rgba(99, 102, 241, 0.8),
            0 0 120px rgba(99, 102, 241, 0.5);
    }
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-3px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(-5px) rotate(180deg) scale(1);
    }
    75% { 
        transform: translateY(-3px) rotate(270deg) scale(1.1);
    }
}

.intro {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--logo-blue);
    font-weight: 400;
    margin-top: clamp(0.5rem, 2vw, var(--spacing-lg));
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    line-height: 1.6;
}

/* Intro Wort-für-Wort Animationen */
.intro-word {
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0.2rem 0.1rem;
    border-radius: 4px;
    animation: introWordFloat 6s ease-in-out infinite;
}

.intro-word:nth-child(1) { animation-delay: 0s; }
.intro-word:nth-child(2) { animation-delay: 0.2s; }
.intro-word:nth-child(4) { animation-delay: 0.4s; }
.intro-word:nth-child(6) { animation-delay: 0.6s; }
.intro-word:nth-child(8) { animation-delay: 0.8s; }
.intro-word:nth-child(9) { animation-delay: 1s; }
.intro-word:nth-child(11) { animation-delay: 1.2s; }

.intro-separator {
    opacity: 0.7;
    animation: separatorPulse 4s ease-in-out infinite;
}

/* Hover-Effekte für jedes Wort */
.intro-word:hover,
.intro-word.touch-active {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 
        0 0 25px rgba(99, 102, 241, 0.8),
        0 0 50px rgba(99, 102, 241, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Spezielle Hover-Effekte für bestimmte Wörter */
.intro-word[data-word="hobby"]:hover,
.intro-word[data-word="hobby"].touch-active {
    color: #ff6b6b;
    text-shadow: 
        0 0 25px rgba(255, 107, 107, 0.8),
        0 0 50px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border-color: rgba(255, 107, 107, 0.3);
}

.intro-word[data-word="dev"]:hover,
.intro-word[data-word="dev2"]:hover,
.intro-word[data-word="dev"].touch-active,
.intro-word[data-word="dev2"].touch-active {
    color: #4ecdc4;
    text-shadow: 
        0 0 25px rgba(78, 205, 196, 0.8),
        0 0 50px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.05));
    border-color: rgba(78, 205, 196, 0.3);
}

.intro-word[data-word="designer"]:hover,
.intro-word[data-word="designer"].touch-active {
    color: #a855f7;
    text-shadow: 
        0 0 25px rgba(168, 85, 247, 0.8),
        0 0 50px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    border-color: rgba(168, 85, 247, 0.3);
}

.intro-word[data-word="gamer"]:hover,
.intro-word[data-word="gamer"].touch-active {
    color: #f59e0b;
    text-shadow: 
        0 0 25px rgba(245, 158, 11, 0.8),
        0 0 50px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.intro-word[data-word="community"]:hover,
.intro-word[data-word="community"].touch-active {
    color: #10b981;
    text-shadow: 
        0 0 25px rgba(16, 185, 129, 0.8),
        0 0 50px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.intro-word[data-word="flstudio"]:hover,
.intro-word[data-word="flstudio"].touch-active {
    color: #ef4444;
    text-shadow: 
        0 0 25px rgba(239, 68, 68, 0.8),
        0 0 50px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Floatende Animation für Wörter */
@keyframes introWordFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Separator Pulsing */
@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
}

/* ===== AUTOMATISCHE HOVER-EFFEKTE (ohne echtes Hovern) ===== */
/* Auto-Hover Basis */
.intro-word.auto-hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 
        0 0 25px rgba(99, 102, 241, 0.8),
        0 0 50px rgba(99, 102, 241, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: autoHoverPulse 2s ease-in-out;
}

/* Auto-Hover für spezifische Wörter */
.intro-word[data-word="hobby"].auto-hover {
    color: #ff6b6b;
    text-shadow: 
        0 0 25px rgba(255, 107, 107, 0.8),
        0 0 50px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border-color: rgba(255, 107, 107, 0.3);
}

.intro-word[data-word="dev"].auto-hover,
.intro-word[data-word="dev2"].auto-hover {
    color: #4ecdc4;
    text-shadow: 
        0 0 25px rgba(78, 205, 196, 0.8),
        0 0 50px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.05));
    border-color: rgba(78, 205, 196, 0.3);
}

.intro-word[data-word="designer"].auto-hover {
    color: #a855f7;
    text-shadow: 
        0 0 25px rgba(168, 85, 247, 0.8),
        0 0 50px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    border-color: rgba(168, 85, 247, 0.3);
}

.intro-word[data-word="gamer"].auto-hover {
    color: #f59e0b;
    text-shadow: 
        0 0 25px rgba(245, 158, 11, 0.8),
        0 0 50px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.intro-word[data-word="community"].auto-hover {
    color: #10b981;
    text-shadow: 
        0 0 25px rgba(16, 185, 129, 0.8),
        0 0 50px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.intro-word[data-word="flstudio"].auto-hover {
    color: #ef4444;
    text-shadow: 
        0 0 25px rgba(239, 68, 68, 0.8),
        0 0 50px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Auto-Hover Animation */
@keyframes autoHoverPulse {
    0% {
        transform: translateY(-2px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px) scale(1.08);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-2px) scale(1.05);
        opacity: 1;
    }
}

/* ===== MOBILE TOUCH HIGHLIGHTS DEAKTIVIEREN ===== */
/* Verhindert blaue Auswahlkästen bei Touch auf Mobile */
*, 
*:before, 
*:after {
    -webkit-tap-highlight-color: transparent;
}

/* Spezielle interaktive Elemente */
.intro-word,
.project-widget,
.social-link,
.modal-close,
.modal-visit-btn,
button,
a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    outline: none;
}

/* Projects Section */
/* Überschrift standardmäßig versteckt */
.projects-heading {
    display: none;
}

/* ===== SCHICKER LADESCREEN ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 50%, var(--background-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
    max-width: 400px;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 10001;
}

.loader-logo {
    margin-bottom: var(--spacing-2xl);
}

.loader-logo-text {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    animation: logoGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10001;
}

.loader-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.9;
    animation: subtitleFade 1.5s ease-in-out infinite alternate;
    position: relative;
    z-index: 10001;
}

.progress-container {
    margin: var(--spacing-2xl) 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1.5s infinite;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 10001;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Ladescreen Animationen */
@keyframes logoGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes subtitleFade {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes dotPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Main Content initial versteckt */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* ===== ENDE LADESCREEN ===== */

.projects {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    margin: 0;
    height: 400px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 360px);
    gap: 80px;
    max-width: 1800px;
    margin: 0 auto;
    justify-content: center;
    perspective: 2500px;
    padding: 80px 40px;
    transform-style: preserve-3d;
    min-height: 400px;
    overflow: visible;
}

/* Mobile: Horizontale Reihe mit Namen */
@media (max-width: 768px) {
    .projects-grid {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-lg);
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
        align-items: flex-start;
    }
}

.project-widget {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: 200px;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop: Allow 3D objects to overflow freely */
@media (min-width: 769px) {
    .project-widget {
        overflow: visible !important;
    }
    
    /* Desktop: Logos sollen die gesamte Vorderseite der 3D-Platten ausfüllen */
    .project-widget .widget-front {
        padding: 0 !important; /* Komplett kein Padding */
    }
    
    .project-widget .widget-front .widget-header {
        flex: 1 !important; /* Header soll maximalen Platz einnehmen */
        margin: 0 !important; /* Alle Margins entfernen */
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important; /* Auch hier kein Padding */
    }
    
    .project-widget .widget-front .widget-header .widget-icon {
        font-size: 30rem !important; /* Extrem große Logos */
        width: 100% !important;
        height: 100% !important;
        max-width: none !important; /* Keine Größenbeschränkung */
        max-height: none !important; /* Keine Größenbeschränkung */
        min-width: 100% !important;
        min-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .project-widget .widget-front .widget-header .widget-icon img {
        width: 100% !important; /* Logos die komplette Fläche ausfüllen lassen */
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important; /* Cover statt contain für maximale Füllung */
        filter: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile: Compact 2x2 widgets */
@media (max-width: 768px) {
    .project-widget {
        width: 100%;
        min-height: 140px;
        max-width: none;
        padding: 0 !important;
    }
}

.widget-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    opacity: 0;
    filter: blur(10px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Spezifische Glow-Farben für jede Platte */
.project-widget[data-project="optixmc"] .widget-glow {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-widget[data-project="csnoobs"] .widget-glow {
    background: linear-gradient(135deg, #ff8c00, #ea580c);
}

.project-widget[data-project="budsklicker"] .widget-glow {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.project-widget[data-project="miamilife"] .widget-glow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-widget[data-project="portfolio"] .widget-glow {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-widget[data-project="zukunft2"] .widget-glow {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-widget:hover .widget-glow {
    opacity: 0.4;
}



/* Realistischer Paper-Flip Effect mit Physics + realistische Krümmung */
.project-widget {
    perspective: 1500px;
    transition: all 0.3s ease;
}

/* Spezifische Hover-Schatten für jede Platte */
.project-widget[data-project="optixmc"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

.project-widget[data-project="csnoobs"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.4);
}

.project-widget[data-project="budsklicker"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.4);
}

.project-widget[data-project="miamilife"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
}

.project-widget[data-project="portfolio"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4);
}

.project-widget[data-project="zukunft2"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4);
}

.widget-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    border-radius: inherit;
    will-change: transform;
}

.project-widget:hover .widget-card {
    transform: rotateY(180deg);
    animation: realisticCardFlip 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes realisticCardFlip {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        filter: brightness(1);
    }
    15% {
        transform: rotateY(27deg) rotateX(3deg) scale(1.01);
        filter: brightness(1.05);
    }
    30% {
        transform: rotateY(54deg) rotateX(6deg) scale(1.02);
        filter: brightness(1.1);
    }
    45% {
        transform: rotateY(81deg) rotateX(8deg) scale(1.03);
        filter: brightness(1.15);
    }
    50% {
        transform: rotateY(90deg) rotateX(10deg) scale(1.04);
        filter: brightness(1.2);
    }
    65% {
        transform: rotateY(117deg) rotateX(8deg) scale(1.03);
        filter: brightness(1.15);
    }
    80% {
        transform: rotateY(144deg) rotateX(6deg) scale(1.02);
        filter: brightness(1.1);
    }
    95% {
        transform: rotateY(171deg) rotateX(3deg) scale(1.01);
        filter: brightness(1.05);
    }
    100% {
        transform: rotateY(180deg) rotateX(0deg) scale(1);
        filter: brightness(1);
    }
}

.widget-front,
.widget-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    backface-visibility: hidden;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
}

.widget-front {
    z-index: 2;
    transform: rotateY(0deg);
    justify-content: center;
    align-items: center;
    gap: 0;
    background: inherit;
    padding: var(--spacing-sm);
}

.widget-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
    justify-content: flex-start;
    gap: var(--spacing-sm);
    position: relative;
}

/* Spezifische Hintergrundbilder für die Rückseiten */
.project-widget[data-project="optixmc"] .widget-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
        url('bilder/optixbg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
}

.project-widget[data-project="csnoobs"] .widget-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
        url('bilder/csnoobsbg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
}

.project-widget[data-project="budsklicker"] .widget-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
        url('bilder/budsbg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
}

.project-widget[data-project="miamilife"] .widget-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
        url('bilder/mlbg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
}

/* Rückseite spezifische Styles */
.back-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.back-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.back-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1.0;
}

.back-logo .widget-icon-x {
    font-size: 2.5rem;
    opacity: 0.9;
    color: var(--text-primary);
    font-weight: bold;
}

.back-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    margin-left: 120px;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

/* OptixMC Title Container für bessere Positionierung */
.optix-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

/* Fancy OptixMC.de Title Animation */
.optix-fancy-title {
    background: linear-gradient(45deg, #3b82f6, #60a5fa, #93c5fd, #3b82f6);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: optixGlow 3s ease-in-out infinite, optixShimmer 4s linear infinite;
    position: relative;
    margin-left: 0 !important;
    /* Schwarze Outline für bessere Lesbarkeit */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.optix-fancy-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    border-radius: 8px;
    opacity: 0;
    animation: optixHalo 3s ease-in-out infinite;
    z-index: -1;
}

/* Version Tag - Exakt wie ALPHA Modal Status */
.version-tag {
    display: inline-block;
    padding: 0.2rem 0.35rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 0;
    font-size: 0.65rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: optixModalVersionGlow 2s ease-in-out infinite alternate;
    line-height: 1;
}

@keyframes versionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    }
}

/* CSNoobs Title Container und Fancy Animation (Orange) */
.csnoobs-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.csnoobs-fancy-title {
    background: linear-gradient(45deg, #ff8c00, #ffa500, #ffb84d, #ff8c00);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: csnoobsGlow 3s ease-in-out infinite, csnoobsShimmer 4s linear infinite;
    position: relative;
    margin-left: 0 !important;
    /* Schwarze Outline für bessere Lesbarkeit */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.csnoobs-version-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #ff8c00, #e07600);
    border: 1px solid rgba(255, 140, 0, 0.5);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    animation: csnoobsVersionGlow 2s ease-in-out infinite alternate;
}

/* Budsklicker Title Container und Fancy Animation (Grün) */
.budsklicker-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.budsklicker-fancy-title {
    background: linear-gradient(45deg, #22c55e, #16a34a, #4ade80, #22c55e);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: budsklickerGlow 3s ease-in-out infinite, budsklickerShimmer 4s linear infinite;
    position: relative;
    margin-left: 0 !important;
    /* Schwarze Outline für bessere Lesbarkeit */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.miamilife-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.miamilife-fancy-title {
    background: linear-gradient(45deg, #f59e0b, #d97706, #fbbf24, #f59e0b);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: miamilifeGlow 3s ease-in-out infinite, miamilifeShimmer 4s linear infinite;
    position: relative;
    margin-left: 0 !important;
    /* Schwarze Outline für bessere Lesbarkeit */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.budsklicker-version-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: budsklickerVersionGlow 2s ease-in-out infinite alternate;
}

/* CSNoobs Animationen */
@keyframes csnoobsGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
        transform: scale(1.02);
    }
}

@keyframes csnoobsShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes csnoobsVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
    }
}

/* Budsklicker Animationen */
@keyframes budsklickerGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
        transform: scale(1.02);
    }
}

@keyframes budsklickerShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes budsklickerVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
    }
}

/* MiamiLife Animationen */
@keyframes miamilifeGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
        transform: scale(1.02);
    }
}

@keyframes miamilifeShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes miamilifeVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    }
}

@keyframes optixGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.5);
        transform: scale(1.02);
    }
}

@keyframes optixShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes optixHalo {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.back-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.back-description {
    font-size: 1.3rem;
    color: var(--logo-blue);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.back-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature {
    font-size: 1.2rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-left: 3px solid var(--logo-blue);
    padding-left: var(--spacing-sm);
    opacity: 0.95;
    font-weight: 500;
}

.widget-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex: 1;
    width: 100%;
    height: 100%;
}

/* Front-Seite spezifische Styles */
.widget-front .widget-header {
    margin-bottom: var(--spacing-sm);
}

.widget-front .widget-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    font-weight: 700;
}

.widget-front .widget-description {
    font-size: 0.7rem;
    color: var(--logo-blue);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.widget-front .widget-tags {
    margin-top: auto;
}

.widget-icon {
    font-size: 16rem;
    width: 100%;
    height: 100%;
    max-width: 16rem;
    max-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.widget-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.widget-status {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-widget.coming-soon .widget-status {
    background: var(--secondary);
}

/* Alpha Status - Dunkelblau */
.back-header .widget-status {
    background: #1e3a8a !important;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Coming Soon Content - Zentriert */
.coming-soon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.coming-soon-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    animation: comingSoonGlow 3s ease-in-out infinite alternate;
}

@keyframes comingSoonGlow {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.widget-description {
    font-size: 0.8rem;
    color: var(--logo-blue);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: var(--spacing-xs);
}

.tag {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Socials Section */
.socials {
    position: relative;
    z-index: 9999;
    flex-shrink: 0;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    overflow: visible;
}

.socials-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 9999;
}

.socials-list::-webkit-scrollbar {
    display: none;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 10000;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: currentColor;
}

.social-link.twitter::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.steam::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.twitch::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.youtube::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.instagram::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.discord::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }
.social-link.email::before { background: linear-gradient(135deg, var(--social-primary), rgba(99, 102, 241, 0.1)); }

.social-link:hover::before {
    opacity: 1;
}

.social-link.twitter:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.steam:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.twitch:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.youtube:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.instagram:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.discord:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.social-link.email:hover { color: var(--social-primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }

.social-link:hover .social-icon img {
    filter: brightness(1.2) saturate(1.2);
    transform: scale(1.1);
}

/* Social Wave Animation Delays */
.social-link:nth-child(1) .social-icon { --wave-delay: 0; }
.social-link:nth-child(2) .social-icon { --wave-delay: 1; }
.social-link:nth-child(3) .social-icon { --wave-delay: 2; }
.social-link:nth-child(4) .social-icon { --wave-delay: 3; }
.social-link:nth-child(5) .social-icon { --wave-delay: 4; }
.social-link:nth-child(6) .social-icon { --wave-delay: 5; }
.social-link:nth-child(7) .social-icon { --wave-delay: 6; }

.social-icon {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    z-index: 1;
    animation: socialWave 4s ease-in-out infinite;
    animation-delay: calc(var(--wave-delay, 0) * 0.2s);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

/* Spezielle Größenanpassungen für Discord, Instagram und Mail */
.social-link.discord .social-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

.social-link.instagram .social-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

.social-link.email .social-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: var(--spacing-xs) 0;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 1rem;
}

.footer-logo-emoji {
    font-size: 1.25rem;
}

.footer-text {
    color: var(--logo-blue);
    font-size: 0.75rem;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes socialWave {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    25% { 
        transform: translateY(-3px) scale(1.05);
    }
    50% { 
        transform: translateY(0) scale(1);
    }
    75% { 
        transform: translateY(-2px) scale(1.02);
    }
}

@keyframes flowingGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    33% {
        transform: translateY(-2px) scale(1.01);
    }
    66% {
        transform: translateY(1px) scale(0.99);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.6));
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 280px);
    }
    
    .project-widget {
        min-height: 200px;
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0;
        height: 100vh;
        height: 100dvh; /* For mobile browsers */
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .header {
        margin-bottom: var(--spacing-lg);
        margin-top: calc(min(8vh, 15vh) + 100px);
        flex-shrink: 0;
        max-height: 40vh;
    }
    
    .projects {
        position: relative !important;
        margin: var(--spacing-lg) 0 !important;
        padding: 0 !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 140px !important;
    }
    
    .projects-grid {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-lg);
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }
    
    .project-widget {
        width: 110px;
        height: 120px;
        min-height: unset;
        max-width: none;
        padding: var(--spacing-xs);
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        margin: 0;
        border-radius: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        /* Remove hover effects and animations */
        transition: none !important;
        gap: var(--spacing-xs);
        flex-shrink: 0;
    }
    
    /* Force overrides for very small screens */
    @media (max-width: 480px) {
        .project-widget {
            gap: 0 !important;
            padding: 0 !important;
        }
    }
    
    /* Disable all hover effects on mobile */
    .project-widget:hover {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }
    
    .project-widget:hover .widget-card {
        transform: none !important;
    }
    
    .project-widget .widget-glow {
        display: none !important;
    }
    
    .widget-front {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--spacing-xs);
        text-align: center;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .widget-back {
        display: none !important; /* Hide back side on mobile */
        padding: 0 !important; /* Remove padding for tight spacing */
    }

    .back-features {
        display: none;
    }
    
    .widget-header {
        display: flex !important;
        justify-content: center;
        margin-bottom: 0;
        margin-top: 0;
        width: 100%;
        height: auto;
        flex-shrink: 0;
    }
    
    .widget-status {
        display: none;
    }
    
    .widget-icon {
        font-size: 3.5rem;
        width: 3.5rem;
        height: 3.5rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0;
        flex-shrink: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .widget-icon:hover {
        transform: scale(1.1);
    }
    
    .widget-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        border-radius: 8px;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
    }
    
    .widget-title {
        display: block !important;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.2;
        text-align: center;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .widget-description {
        display: none !important;
    }
    
    .widget-tags {
        display: none;
    }
    
    .socials {
        position: relative;
        margin: 0;
        padding: var(--spacing-sm) var(--spacing-md);
        background: none !important;
        backdrop-filter: none !important;
        border-top: none !important;
        flex-shrink: 0;
    }
    
    .socials-list {
        gap: var(--spacing-xs);
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .social-link {
        padding: var(--spacing-sm);
        font-size: 0;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .social-link .social-icon {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .social-link.discord .social-icon,
    .social-link.instagram .social-icon,
    .social-link.email .social-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1.5rem;
    }
    
    .footer {
        display: none; /* Hide footer on mobile to save space */
    }
}

@media (max-width: 768px) {
    /* Verstecke Projekte-Überschrift bei 768px - nur bei 480px sichtbar */
    .projects-heading {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Schicke Projekte-Überschrift nur für 480px */
    .projects-heading {
        display: block !important;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        text-align: center;
        margin: -20px 0 var(--spacing-sm) 0;
        text-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
        background: linear-gradient(135deg, var(--text-primary), var(--logo-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Perfekter Projects-Container für 2x2 Grid */
    .projects {
        margin: -20px 0 0 0 !important;
        padding: 0 !important;
        min-height: 280px !important;
        max-height: 280px !important;
        height: 280px !important;
        overflow: hidden !important;
    }

    /* Header näher an "Meine Projekte:" heranrücken */
    .header {
        margin-bottom: 0;
        margin-top: calc(3vh + 100px);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 var(--spacing-md);
        max-height: 45vh;
        min-height: auto;
    }
    
    /* Kompakteren Abstand zwischen Intro und Meine Projekte */
    .intro {
        margin-bottom: 0 !important;
    }
    
    .greeting {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: var(--spacing-xs);
        margin-top: 0;
        width: 100%;
        text-align: center;
        order: 2;
    }
    
    .intro {
        font-size: 0.9rem;
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
        line-height: 1.5;
        width: 100%;
        text-align: center;
        order: 3;
    }
    
    /* 480px: Kompakte 2x2 Grid-Ansicht */
    .projects-grid {
        position: relative !important;
        display: block !important;
        width: 240px !important;
        height: 230px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: hidden !important;
        max-height: 230px !important;
        min-height: 230px !important;
    }
    
    /* Saubere 2x2 Widget-Positionierung - nur Logos + Text */
    .project-widget {
        position: absolute !important;
        width: 120px !important;
        height: 115px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background: none !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }
    
    .project-widget:hover {
        transform: scale(1.05) !important;
    }
    
    /* Perfekte 2x2 Positionen */
    .project-widget:nth-child(1) { top: 0px !important; left: 0px !important; }     /* OptiXMC - oben links */
    .project-widget:nth-child(2) { top: 0px !important; left: 120px !important; }  /* MiamiLife - oben rechts */
    .project-widget:nth-child(3) { top: 115px !important; left: 0px !important; }   /* CSNoobs - unten links */
    .project-widget:nth-child(4) { top: 115px !important; left: 120px !important; } /* Budsklicker - unten rechts */
    .project-widget:nth-child(5) { top: 230px !important; left: 0px !important; }   /* Portfolio - neue Position */
    
    /* Perfekte Widget-Content-Zentrierung */
    .widget-front {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        text-align: center !important;
        padding: var(--spacing-sm) !important;
    }
    
    .widget-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        text-align: center !important;
        flex: 1 !important;
    }
    
    .widget-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 5rem !important;
        height: 5rem !important;
        margin: 0 !important;
        position: relative !important;
        font-size: 5rem !important;
        flex-shrink: 0 !important;
    }
    
    .widget-icon img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 8px !important;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25)) !important;
    }
    
    /* Rotes X für Zukunft-Widget */
    .widget-icon-x {
        color: #ef4444 !important;
        font-weight: bold !important;
        font-size: 2.5rem !important;
        text-shadow: 0 2px 8px rgba(239, 68, 68, 0.5) !important;
    }
    
    .widget-title {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        color: var(--text-primary) !important;
        font-weight: 600 !important;
        margin: 8px 8px 0 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* Mobile-spezifische Titel für jedes Widget */
    .project-widget[data-project="optixmc"] .widget-front::after {
        content: "optixmc.de" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        margin-top: 0.3rem !important;
        display: block !important;
        position: absolute !important;
        bottom: -21px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .project-widget[data-project="csnoobs"] .widget-front::after {
        content: "csnoobs.de" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        margin-top: 0.3rem !important;
        display: block !important;
        position: absolute !important;
        bottom: -21px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .project-widget[data-project="budsklicker"] .widget-front::after {
        content: "budsklicker.de" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        margin-top: 0.3rem !important;
        display: block !important;
        position: absolute !important;
        bottom: -21px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .project-widget[data-project="miamilife"] .widget-front::after {
        content: "MiamiLife" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        margin-top: 0.3rem !important;
        display: block !important;
        position: absolute !important;
        bottom: -21px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .project-widget[data-project="portfolio"] .widget-front::after {
        content: "bald" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        margin-top: 0.3rem !important;
        display: block !important;
        position: absolute !important;
        bottom: -21px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* 5. Projekt (zukunft2) komplett aus der Mobile-Ansicht entfernen */
    .project-widget[data-project="zukunft2"] {
        display: none !important;
    }
    
    .socials {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .socials-list {
        gap: 4px;
    }
    
    .social-link {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
    }
    
    .social-link .social-icon {
        font-size: 1.2rem;
        width: 1.2rem;
        height: 1.2rem;
    }

    .social-link.discord .social-icon,
    .social-link.instagram .social-icon,
    .social-link.email .social-icon {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 1.2rem;
    }
    
    .footer {
        display: none;
    }
}

/* Three.js Project Container - Floating freely */
/* Freischwebende 3D-Objekte wie das Logo */
.floating-3d-objects {
    position: absolute;
    top: -150px;
    left: -200px;
    width: calc(100% + 400px);
    height: calc(100% + 350px);
    z-index: 20;
    pointer-events: none;
    transform-style: preserve-3d;
    overflow: visible;
}

.threejs-floating-object {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: auto;
    overflow: visible !important;
    transform-style: preserve-3d;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

/* Each floating object now covers full screen - positioning handled in JavaScript */

/* Desktop: Enhance 3D object visibility */
@media (min-width: 769px) {
    .threejs-floating-object {
        filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
        transition: filter 0.3s ease;
    }
    
    .threejs-floating-object:hover {
        filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.5));
    }
}

/* Desktop: Hide HTML containers, show only floating 3D objects */
@media (min-width: 769px) {
    .floating-3d-objects {
        display: block;
    }
    
    .project-widget {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    .project-widget .widget-glow {
        display: none !important;
    }
}

/* Mobile: Show only header logo, hide other 3D objects */
@media (max-width: 768px) {
    .floating-3d-objects {
        display: none !important;
    }
    
    /* Logo-Positionierung für alle Mobile-Geräte */
    .header-logo {
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: var(--spacing-xs);
        margin-top: 0;
        position: relative;
        order: 1;
        height: 120px;
    }
    
    #threejs-coin-container {
        width: 120px;
        height: 120px;
        margin: 0;
        display: block;
        position: relative;
    }
    
    /* Header-Logo Canvas für alle Mobile-Geräte */
    #threejs-coin-container canvas {
        display: block !important;
        position: relative !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
        transform: translateX(0px); /* Perfekt zentriert */
    }
}

.threejs-floating-object canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Spezielle Anpassungen für sehr schmale Viewports */
@media (max-width: 480px) and (max-height: 800px) {
    .header {
        margin-top: calc(2vh + 100px) !important;
        margin-bottom: var(--spacing-md) !important;
        max-height: 35vh !important;
    }
    
    #threejs-coin-container {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    #threejs-coin-container canvas {
        width: 80px !important;
        height: 80px !important;
    }
    
    .greeting {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
        margin-bottom: var(--spacing-xs) !important;
    }
    
    .intro {
        font-size: 1rem !important;
        margin-top: var(--spacing-xs) !important;
    }
    
    .header-logo {
        height: 80px !important;
        margin-bottom: var(--spacing-xs) !important;
    }
}

/* Für extrem schmale Viewports (Portrait-Modus auf Handys) */
@media (max-width: 400px) {
    .header {
        margin-top: calc(1vh + 100px) !important;
        margin-bottom: var(--spacing-sm) !important;
        max-height: 30vh !important;
    }
    
    #threejs-coin-container {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: var(--spacing-xs) !important;
    }
    
    #threejs-coin-container canvas {
        width: 60px !important;
        height: 60px !important;
    }
    
    .greeting {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .intro {
        font-size: 0.9rem !important;
        margin-top: 0.25rem !important;
    }
    
    .header-logo {
        height: 60px !important;
        margin-bottom: 0.25rem !important;
    }
}

/* ===== MOBILE PROJECT MODALS ===== */
.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    overflow-y: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    /* Kein Standard-Background, nur projekt-spezifische Backgrounds */
    background: transparent;
    backdrop-filter: blur(30px);
    border: none;
    border-radius: 0;
    margin: 20px auto;
    margin-top: 50vh;
    transform: translateY(-50%);
    padding: 0;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Größer für bessere Sichtbarkeit - mehr wie die originalen Platten */
    width: 400px;
    height: 300px;
    max-width: 400px;
    max-height: 300px;
    animation: modalSmoothEntry 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    will-change: transform, opacity;
}

/* Schließ-Animation Klasse */
.modal-content.closing {
    animation: modalSmoothExit 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* ULTRA-SMOOTH EINGANGS-ANIMATION - Mobile-Optimiert */
@keyframes modalSmoothEntry {
    0% {
        opacity: 0;
        transform: translateY(-100vh);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* ULTRA-SMOOTH AUSGANGS-ANIMATION - Mobile-Optimiert */
@keyframes modalSmoothExit {
    0% {
        opacity: 1;
        transform: translateY(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh);
    }
}

.modal-header {
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-sm);
    min-height: 85px;
    justify-content: space-between;
}

.modal-close {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-logo {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 10px 0 0 0;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5),
        2px 2px 8px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(255, 255, 255, 0.4);
    flex: 1;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}

/* Modal Header rechte Seite - Status und Schließ-Button */
.modal-header-right {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-sm);
    margin-bottom: 0.2rem;
}

.modal-status {
    display: inline-block;
    padding: 0.2rem 0.35rem;
    background: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1;
}

/* Project-spezifische Status Tags für Modals - wie originale Version-Tags */
.mobile-modal[data-project="optixmc"] .modal-status {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    color: #ffffff;
    animation: optixModalVersionGlow 2s ease-in-out infinite alternate;
}

.mobile-modal[data-project="csnoobs"] .modal-status {
    background: linear-gradient(135deg, #ff8c00, #e07600);
    border: 1px solid rgba(255, 140, 0, 0.5);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    color: #ffffff;
    animation: csnoobsModalVersionGlow 2s ease-in-out infinite alternate;
}

.mobile-modal[data-project="budsklicker"] .modal-status {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    color: #ffffff;
    animation: budsklickerModalVersionGlow 2s ease-in-out infinite alternate;
}

.mobile-modal[data-project="miamilife"] .modal-status {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    color: #ffffff;
    animation: miamilifeModalVersionGlow 2s ease-in-out infinite alternate;
}

/* Modal Status-Tag Animationen */
@keyframes optixModalVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    }
}

@keyframes csnoobsModalVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
    }
}

@keyframes budsklickerModalVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
    }
}

@keyframes miamilifeModalVersionGlow {
    0% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    }
}

.modal-body {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    height: calc(100% - 85px - 45px); /* Abzüglich Header und Footer */
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-weight: 600;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.7),
        1px 1px 3px rgba(0, 0, 0, 0.9);
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.modal-features .feature {
    font-size: 0.8rem;
    color: #ffffff;
    padding: 0.2rem 0;
    border-left: 2px solid #ffffff;
    padding-left: 0.4rem;
    opacity: 1;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

.modal-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
    height: 45px;
}

.modal-tags {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex: 1;
    overflow: hidden;
}

.modal-tags .tag {
    padding: 0.2rem 0.4rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Standard Visit Button (OptixMC - Blau) */
.modal-visit-btn {
    display: block;
    text-align: center;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
    font-size: 0.8rem;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

/* CSNoobs Visit Button - Orange */
.mobile-modal[data-project="csnoobs"] .modal-visit-btn {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    border: 1px solid rgba(255, 140, 0, 0.5);
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.4);
}

.mobile-modal[data-project="csnoobs"] .modal-visit-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
    background: linear-gradient(135deg, #ff7700, #ff5500);
}

/* Budsklicker Visit Button - Grün */
.mobile-modal[data-project="budsklicker"] .modal-visit-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.4);
}

.mobile-modal[data-project="budsklicker"] .modal-visit-btn:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, #15803d, #14532d);
}

/* MiamiLife Visit Button - Orange */
.mobile-modal[data-project="miamilife"] .modal-visit-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4);
}

.mobile-modal[data-project="miamilife"] .modal-visit-btn:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Project-spezifische Hintergrundbilder und Titel-Styles für Modals */
.mobile-modal[data-project="optixmc"] .modal-content {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('bilder/optixbg.png');
    background-size: cover, cover, 110% 110%;
    background-position: center, center, center;
    background-blend-mode: overlay, multiply, normal;
    backdrop-filter: blur(8px);
}

.mobile-modal[data-project="optixmc"] .modal-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
        url('bilder/optixbg.png');
    background-size: cover, 120% 120%;
    background-position: center;
    filter: blur(8px);
    opacity: 0.9;
    z-index: -1;
}

.mobile-modal[data-project="csnoobs"] .modal-content {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('bilder/csnoobsbg.png');
    background-size: cover, cover, 110% 110%;
    background-position: center, center, center;
    background-blend-mode: overlay, multiply, normal;
    backdrop-filter: blur(8px);
}

.mobile-modal[data-project="csnoobs"] .modal-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
        url('bilder/csnoobsbg.png');
    background-size: cover, 120% 120%;
    background-position: center;
    filter: blur(8px);
    opacity: 0.9;
    z-index: -1;
}

.mobile-modal[data-project="budsklicker"] .modal-content {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('bilder/budsbg.png');
    background-size: cover, cover, 110% 110%;
    background-position: center, center, center;
    background-blend-mode: overlay, multiply, normal;
    backdrop-filter: blur(8px);
}

.mobile-modal[data-project="budsklicker"] .modal-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
        url('bilder/budsbg.png');
    background-size: cover, 120% 120%;
    background-position: center;
    filter: blur(8px);
    opacity: 0.9;
    z-index: -1;
}

.mobile-modal[data-project="miamilife"] .modal-content {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('bilder/mlbg.png');
    background-size: cover, cover, 110% 110%;
    background-position: center, center, center;
    background-blend-mode: overlay, multiply, normal;
    backdrop-filter: blur(8px);
}

.mobile-modal[data-project="miamilife"] .modal-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
        url('bilder/mlbg.png');
    background-size: cover, 120% 120%;
    background-position: center;
    filter: blur(8px);
    opacity: 0.9;
    z-index: -1;
}

/* OptixMC Modal Titel - Extrem hellblau mit starkem Glow */
.modal-title.optix-fancy-title {
    background: linear-gradient(45deg, #ffffff, #ffffff, #93c5fd, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 25px rgba(59, 130, 246, 1),
        0 0 50px rgba(147, 197, 253, 0.8),
        0 0 75px rgba(255, 255, 255, 0.6),
        2px 2px 8px rgba(0, 0, 0, 1);
    animation: none; /* Keine Animationen in Modals für Performance */
}

/* CSNoobs Modal Titel - Extrem hellorange mit starkem Glow */
.modal-title.csnoobs-fancy-title {
    background: linear-gradient(45deg, #ffffff, #ffffff, #ffb84d, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 25px rgba(255, 140, 0, 1),
        0 0 50px rgba(255, 184, 77, 0.8),
        0 0 75px rgba(255, 255, 255, 0.6),
        2px 2px 8px rgba(0, 0, 0, 1);
    animation: none;
}

/* Budsklicker Modal Titel - Extrem hellgrün mit starkem Glow */
.modal-title.budsklicker-fancy-title {
    background: linear-gradient(45deg, #ffffff, #ffffff, #4ade80, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 25px rgba(34, 197, 94, 1),
        0 0 50px rgba(74, 222, 128, 0.8),
        0 0 75px rgba(255, 255, 255, 0.6),
        2px 2px 8px rgba(0, 0, 0, 1);
    animation: none;
}

/* MiamiLife Modal Titel - Extrem hellorange mit starkem Glow */
.modal-title.miamilife-fancy-title {
    background: linear-gradient(45deg, #ffffff, #ffffff, #fbbf24, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 25px rgba(245, 158, 11, 1),
        0 0 50px rgba(251, 191, 36, 0.8),
        0 0 75px rgba(255, 255, 255, 0.6),
        2px 2px 8px rgba(0, 0, 0, 1);
    animation: none;
}

/* Hide modals on desktop */
@media (min-width: 769px) {
    .mobile-modal {
        display: none !important;
    }
}

/* Modal responsive adjustments */
@media (max-width: 400px) {
    .modal-content {
        width: 360px;
        height: 280px;
        max-width: 360px;
        max-height: 280px;
        margin: 10px auto;
        margin-top: 50vh;
        transform: translateY(-50%);
    }
    
    .modal-header {
        min-height: 75px;
        padding: var(--spacing-xs);
    }
    
    .modal-title {
        font-size: 1.4rem;
        max-width: 160px;
        margin: 8px 0 0 0;
    }
    
    .modal-body {
        height: calc(100% - 75px - 40px);
        padding: var(--spacing-xs);
    }
    
    .modal-footer {
        height: 40px;
        padding: var(--spacing-xs);
    }
    
    .modal-logo {
        width: 35px;
        height: 35px;
    }
    
    .modal-title {
        font-size: 0.9rem;
    }
    
    .modal-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .modal-features .feature {
        font-size: 0.65rem;
        padding: 0.15rem 0;
        padding-left: 0.3rem;
        border-left-width: 1px;
    }
    
    .modal-visit-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-tags .tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
}

/* ===== ENDE MOBILE MODALS ===== */

/* Verbesserungen für 3D Container bei schmalen Viewports */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Bessere Kamera-Position für mittlere Bildschirme */
    .floating-3d-objects {
        left: -200px;
        width: calc(100% + 400px);
        height: calc(100% + 300px);
        overflow: visible;
    }
    
    .header {
        margin-top: clamp(1vh, 5vh, 8vh);
        max-height: 45vh;
    }
    
    .greeting {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .intro {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    /* Für sehr schmale Desktop-Viewports - bessere 3D Skalierung */
    .floating-3d-objects {
        left: -200px;
        width: calc(100% + 400px);
        height: calc(100% + 280px);
        overflow: visible;
    }
    
    .header {
        margin-top: clamp(1vh, 3vh, 6vh);
        max-height: 40vh;
        gap: clamp(0.25rem, 1vw, 0.75rem);
    }
    
    #threejs-coin-container {
        width: clamp(100px, 12vw, 150px);
        height: clamp(100px, 12vw, 150px);
    }
    
    .greeting {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }
    
    .intro {
        font-size: clamp(0.8rem, 2vw, 1.1rem);
    }
}

/* Für große Desktop-Screens - minimaler Platz oben für mehr 3D Bereich */
@media (min-width: 1400px) {
    .header {
        margin-top: clamp(3vh, 6vh, 8vh);
        max-height: 45vh;
    }
}

/* ===== HÖHEN-RESPONSIVE MEDIA QUERIES ===== */
/* Bei mittlerer Höhe: Intro-Text ausblenden, Name behalten - NUR für Desktop */
@media (min-width: 769px) and (max-height: 970px) {
    .intro {
        display: none !important;
    }
    
    .header {
        margin-top: clamp(1vh, 4vh, 6vh) !important;
        margin-bottom: clamp(0.5rem, 2vw, 1rem) !important;
        max-height: 40vh !important;
        gap: clamp(0.25rem, 1vw, 0.5rem) !important;
    }
    
    .greeting {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
    }
    
    #threejs-coin-container {
        width: clamp(100px, 12vw, 140px) !important;
        height: clamp(100px, 12vw, 140px) !important;
    }
    
    #threejs-coin-container canvas {
        width: clamp(100px, 12vw, 140px) !important;
        height: clamp(100px, 12vw, 140px) !important;
    }
    
    /* 3D-Platten nach unten schieben, da Intro-Text weg ist */
    .floating-3d-objects {
        top: -150px !important;
        left: -200px !important;
        width: calc(100% + 400px) !important;
        height: calc(100% + 350px) !important;
        overflow: visible !important;
    }
}

/* Bei geringer Höhe: Name auch ausblenden - NUR für Desktop */
@media (min-width: 769px) and (max-height: 580px) {
    .name {
        display: none !important;
    }
    
    .header {
        margin-top: clamp(1vh, 3vh, 5vh) !important;
        margin-bottom: clamp(0.5rem, 2vw, 1rem) !important;
        max-height: 35vh !important;
        gap: clamp(0.25rem, 1vw, 0.5rem) !important;
    }
    
    .greeting {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
    }
    
    #threejs-coin-container {
        width: clamp(80px, 10vw, 120px) !important;
        height: clamp(80px, 10vw, 120px) !important;
    }
    
    #threejs-coin-container canvas {
        width: clamp(80px, 10vw, 120px) !important;
        height: clamp(80px, 10vw, 120px) !important;
    }
}

/* Bei sehr geringer Höhe: Nur Logo und Greeting - NUR für Desktop */
@media (min-width: 769px) and (max-height: 450px) {
    .header {
        margin-top: clamp(0.5vh, 2vh, 3vh) !important;
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
        max-height: 25vh !important;
        gap: clamp(0.125rem, 0.5vw, 0.25rem) !important;
    }
    
    .greeting {
        font-size: clamp(1rem, 3vw, 1.5rem) !important;
        margin-bottom: 0 !important;
    }
    
    #threejs-coin-container {
        width: clamp(60px, 8vw, 100px) !important;
        height: clamp(60px, 8vw, 100px) !important;
    }
    
    #threejs-coin-container canvas {
        width: clamp(60px, 8vw, 100px) !important;
        height: clamp(60px, 8vw, 100px) !important;
    }
}

/* Bei extrem geringer Höhe: Nur Logo und minimaler Greeting - NUR für Desktop */
@media (min-width: 769px) and (max-height: 400px) {
    .greeting {
        font-size: clamp(0.8rem, 2.5vw, 1.2rem) !important;
    }
    
    .header {
        margin-top: clamp(0.25vh, 1vh, 2vh) !important;
        margin-bottom: clamp(0.125rem, 0.5vw, 0.25rem) !important;
        max-height: 20vh !important;
    }
    
    #threejs-coin-container {
        width: clamp(40px, 6vw, 80px) !important;
        height: clamp(40px, 6vw, 80px) !important;
    }
    
    #threejs-coin-container canvas {
        width: clamp(40px, 6vw, 80px) !important;
        height: clamp(40px, 6vw, 80px) !important;
    }
}

/* ===== DISKRETE RECHTLICHES-SEKTION ===== */
.legal-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.legal-toggle {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    user-select: none;
    opacity: 0.3;
}

.legal-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    opacity: 0.8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legal-icon {
    font-size: 0.9rem;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.legal-toggle:hover .legal-icon {
    filter: grayscale(0);
}

.legal-text {
    font-weight: 500;
    font-size: 0.75rem;
}

.legal-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.legal-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.legal-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.legal-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Legal Modals */
.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.show {
    display: flex;
    opacity: 1;
}

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.legal-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.legal-modal.show .legal-modal-content {
    transform: scale(1);
}

.legal-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.legal-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.legal-modal-close:hover {
    opacity: 1;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    color: var(--text-primary);
    line-height: 1.6;
}

.legal-modal-body h3 {
    color: var(--primary-light);
    margin: 2rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.legal-modal-body p {
    margin: 0.8rem 0;
    color: var(--text-secondary);
}

.legal-modal-body ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.legal-modal-body li {
    margin: 0.4rem 0;
    color: var(--text-secondary);
}

.legal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .legal-container {
        bottom: 10px;
        right: 10px;
    }
    
    .legal-toggle {
        padding: 3px 6px;
        font-size: 0.65rem;
        opacity: 0.25;
    }
    
    .legal-text {
        font-size: 0.6rem;
    }
    
    .legal-menu {
        min-width: 140px;
    }
    
    .legal-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .legal-modal {
        padding: 15px;
    }
    
    .legal-modal-content {
        max-width: 100%;
        max-height: 85vh;
    }
    
    .legal-modal-header {
        padding: 16px 20px;
    }
    
    .legal-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .legal-modal-body {
        padding: 20px;
        max-height: calc(85vh - 70px);
    }
}

@media (max-width: 480px) {
    .legal-container {
        bottom: 8px;
        right: 8px;
    }
    
    .legal-toggle {
        padding: 2px 4px;
        opacity: 0.2;
        font-size: 0.6rem;
    }
    
    .legal-text {
        display: none; /* Nur Icon auf sehr kleinen Bildschirmen */
    }
    
    .legal-modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .legal-modal-body {
        padding: 16px;
        max-height: calc(90vh - 60px);
    }
    
    .legal-modal-header {
        padding: 12px 16px;
    }
    
    .legal-modal-header h2 {
        font-size: 1.2rem;
    }
}