* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    line-height: 1.6;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: brightness(1);
    transition: all 0.3s ease;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 1) 70%);
    overflow: visible;
    width: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #00d4ff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroText 3s ease-in-out infinite alternate;
}

@keyframes heroText {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #c0c0c0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(192, 192, 192, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    overflow: visible;
}

.section-with-grid {
    position: relative;
    overflow: visible;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grid-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #00d4ff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 0, 0, 0.8));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #c0c0c0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

/* Slideshow Styles */
.portfolio-slideshow {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .slide img {
    transform: scale(1.05);
}

.slideshow-prev, .slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

.portfolio-slideshow:hover .slideshow-prev,
.portfolio-slideshow:hover .slideshow-next {
    opacity: 1;
}

.slideshow-prev:hover, .slideshow-next:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #00d4ff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* In styles.css, verbessere den Close Button: */

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10002; /* Erhöht von 10001 */
    transition: all 0.3s ease;
    /* Zusätzliche Eigenschaften für bessere Touch-Interaktion */
    padding: 10px; /* Größere Touch-Area */
    user-select: none; /* Verhindere Textauswahl */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Stelle sicher, dass es clickbar ist */
    pointer-events: auto;
}

.lightbox-close:hover {
    color: #00d4ff;
    transform: scale(1.1);
}

/* Für Mobile - größere Touch Area */
@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        font-size: 28px;
        padding: 15px; /* Noch größere Touch-Area auf Mobile */
    }
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    text-align: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.lightbox-info {
    margin-top: 20px;
    color: #fff;
}

#lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.lightbox-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lightbox-indicators .indicator {
    width: 10px;
    height: 10px;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-item h3 {
    color: #00d4ff;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 50px;
}

.tech-item {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(192, 192, 192, 0.1));
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tech-item:hover {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(192, 192, 192, 0.2));
    transform: scale(1.1);
}

.testimonials {
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.testimonial {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(0, 212, 255, 0.2);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 212, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #c0c0c0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.whatsapp-button {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #20b358;
    transform: scale(1.05);
}

.challenge-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, rgba(0, 0, 0, 1) 80%);
    overflow: visible;
    width: 100%;
    padding: 50px 0;
}

.challenge-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.challenge-text {
    font-size: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #00d4ff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: challengeText 4s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

@keyframes challengeText {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    100% { 
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

.octahedron {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 25%;
    top: 50%;
    transform-style: preserve-3d;
    animation: rotateOctahedron 15s infinite linear;
    pointer-events: none;
}

.octahedron-face {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.octahedron-face.face1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid rgba(0, 212, 255, 0.4);
    transform: rotateX(-35.26deg) translateZ(42.43px);
}

.octahedron-face.face2 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid rgba(0, 212, 255, 0.3);
    transform: rotateX(-35.26deg) rotateY(90deg) translateZ(42.43px);
}

.octahedron-face.face3 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid rgba(0, 212, 255, 0.25);
    transform: rotateX(-35.26deg) rotateY(180deg) translateZ(42.43px);
}

.octahedron-face.face4 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid rgba(0, 212, 255, 0.2);
    transform: rotateX(-35.26deg) rotateY(270deg) translateZ(42.43px);
}

.octahedron-face.face5 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 60px solid rgba(192, 192, 192, 0.3);
    transform: rotateX(35.26deg) translateZ(42.43px);
}

.octahedron-face.face6 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 60px solid rgba(192, 192, 192, 0.25);
    transform: rotateX(35.26deg) rotateY(90deg) translateZ(42.43px);
}

.octahedron-face.face7 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 60px solid rgba(192, 192, 192, 0.2);
    transform: rotateX(35.26deg) rotateY(180deg) translateZ(42.43px);
}

.octahedron-face.face8 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 60px solid rgba(192, 192, 192, 0.15);
    transform: rotateX(35.26deg) rotateY(270deg) translateZ(42.43px);
}

@keyframes rotateOctahedron {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    width: 100%;
}

.legal-toggle {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #c0c0c0;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin: 15px 0 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    opacity: 0.7;
}

.legal-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    opacity: 1;
}

#toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.legal-toggle.active #toggle-icon {
    transform: rotate(180deg);
}

.legal-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.legal-content.expanded {
    max-height: 500px;
    margin-top: 30px;
}

.legal-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.legal-section {
    background: rgba(0, 212, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.legal-section h4 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legal-section p {
    color: #c0c0c0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-section {
        padding: 12px;
    }
    
    .legal-toggle {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links-mobile {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    list-style: none;
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-links-mobile.active {
    right: 0;
}

.nav-links-mobile li {
    margin: 0;
}

.nav-links-mobile a {
    display: block;
    padding: 20px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-links-mobile a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateX(10px);
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    right: 25%;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
    pointer-events: none;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(192, 192, 192, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.cube-face.front { transform: rotateY(0deg) translateZ(50px); }
.cube-face.back { transform: rotateY(180deg) translateZ(50px); }
.cube-face.right { transform: rotateY(90deg) translateZ(50px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.top { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ENHANCED PARTICLE SYSTEM - Base Styles */
.particle {
    position: fixed;
    background: #00d4ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    /* Subtle glow effect for visibility */
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.6);
}

/* Particle type specific styles */
.particle-ascending {
    /* Additional styling for ascending particles */
    opacity: 0;
}

.particle-floating {
    /* Additional styling for floating particles */
    opacity: 0;
    filter: brightness(0.9);
}

.particle-diagonal {
    /* Additional styling for diagonal particles */
    opacity: 0;
    filter: brightness(1.1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-img {
        height: 45px;
    }

    .hero {
        padding: 0 10px;
        width: 100% !important;
        overflow: visible;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
        width: 100% !important;
        overflow: visible;
    }

    .section h2 {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card, 
    .portfolio-item {
        margin: 0 10px;
    }

    .challenge-text {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .challenge-section {
        min-height: 60vh;
        width: 100% !important;
        overflow: visible;
    }

    /* Mobile Slideshow Optimizations */
    .portfolio-slideshow {
        height: 180px;
    }

    .slideshow-prev, .slideshow-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
        padding: 8px 12px;
    }

    .slideshow-prev {
        left: 5px;
    }

    .slideshow-next {
        right: 5px;
    }

    .slideshow-indicators {
        bottom: 5px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    /* Mobile Lightbox Optimizations */
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-close {
        top: -40px;
        font-size: 28px;
    }

    .lightbox-prev, .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 12px 16px;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }

    #lightbox-image {
        max-height: 70vh;
    }

    #lightbox-title {
        font-size: 1.2rem;
    }

    /* MOBILE: 3D-Objekte wieder aktivieren aber kleiner und sicherer */
    .cube {
        width: 60px !important;
        height: 60px !important;
        right: 15% !important;
        top: 45% !important;
        animation: rotateCubeMobile 12s infinite linear;
    }

    .cube-face {
        width: 60px !important;
        height: 60px !important;
        background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(192, 192, 192, 0.2)) !important;
        border: 1px solid rgba(0, 212, 255, 0.6) !important;
    }

    .cube-face.front { transform: rotateY(0deg) translateZ(30px) !important; }
    .cube-face.back { transform: rotateY(180deg) translateZ(30px) !important; }
    .cube-face.right { transform: rotateY(90deg) translateZ(30px) !important; }
    .cube-face.left { transform: rotateY(-90deg) translateZ(30px) !important; }
    .cube-face.top { transform: rotateX(90deg) translateZ(30px) !important; }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(30px) !important; }

    @keyframes rotateCubeMobile {
        0% { transform: rotateX(0deg) rotateY(0deg); }
        100% { transform: rotateX(360deg) rotateY(360deg); }
    }

    .octahedron {
        width: 80px !important;
        height: 80px !important;
        left: 15% !important;
        top: 45% !important;
        animation: rotateOctahedronMobile 18s infinite linear;
    }

    .octahedron-face.face1,
    .octahedron-face.face2,
    .octahedron-face.face3,
    .octahedron-face.face4 {
        border-left-width: 40px !important;
        border-right-width: 40px !important;
        border-bottom-width: 40px !important;
    }

    .octahedron-face.face5,
    .octahedron-face.face6,
    .octahedron-face.face7,
    .octahedron-face.face8 {
        border-left-width: 40px !important;
        border-right-width: 40px !important;
        border-top-width: 40px !important;
    }

    .octahedron-face.face1 {
        border-bottom-color: rgba(0, 212, 255, 0.5) !important;
        transform: rotateX(-35.26deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face2 {
        border-bottom-color: rgba(0, 212, 255, 0.4) !important;
        transform: rotateX(-35.26deg) rotateY(90deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face3 {
        border-bottom-color: rgba(0, 212, 255, 0.35) !important;
        transform: rotateX(-35.26deg) rotateY(180deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face4 {
        border-bottom-color: rgba(0, 212, 255, 0.3) !important;
        transform: rotateX(-35.26deg) rotateY(270deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face5 {
        border-top-color: rgba(192, 192, 192, 0.4) !important;
        transform: rotateX(35.26deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face6 {
        border-top-color: rgba(192, 192, 192, 0.35) !important;
        transform: rotateX(35.26deg) rotateY(90deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face7 {
        border-top-color: rgba(192, 192, 192, 0.3) !important;
        transform: rotateX(35.26deg) rotateY(180deg) translateZ(28.28px) !important;
    }

    .octahedron-face.face8 {
        border-top-color: rgba(192, 192, 192, 0.25) !important;
        transform: rotateX(35.26deg) rotateY(270deg) translateZ(28.28px) !important;
    }

    @keyframes rotateOctahedronMobile {
        0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
        100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
    }

    /* Floating shapes sicherer für Mobile */
    .floating-shapes {
        width: 100% !important;
        left: 0 !important;
        overflow: visible;
    }

    .floating-shapes .shape {
        animation: floatMobile 8s ease-in-out infinite;
    }

    .floating-shapes .shape:nth-child(1) {
        width: 50px !important;
        height: 50px !important;
        top: 25% !important;
        left: 8% !important;
    }

    .floating-shapes .shape:nth-child(2) {
        width: 70px !important;
        height: 70px !important;
        top: 65% !important;
        right: 12% !important;
    }

    .floating-shapes .shape:nth-child(3) {
        width: 40px !important;
        height: 40px !important;
        bottom: 25% !important;
        left: 12% !important;
    }

    @keyframes floatMobile {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(90deg); }
    }

    /* Mobile Particle optimizations */
    .particle {
        /* Smaller glow on mobile for performance */
        box-shadow: 0 0 3px rgba(0, 212, 255, 0.6) !important;
    }
}
/* === RECHTLICHES SEITE STYLES === */
/* Fügen Sie diese Styles am Ende Ihrer styles.css hinzu */

.legal-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 1) 70%);
    overflow: visible;
    width: 100%;
}

.legal-hero-content {
    text-align: center;
    z-index: 2;
}

.legal-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #00d4ff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroText 3s ease-in-out infinite alternate;
}

.legal-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #c0c0c0;
}

.back-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5);
}

.legal-content-section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    overflow: visible;
}

.legal-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.legal-content-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 0, 0, 0.8));
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.legal-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    transition: left 0.5s;
}

.legal-content-card:hover::before {
    left: 100%;
}

.legal-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.legal-content-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.legal-content-card p {
    color: #c0c0c0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile Optimierungen für Rechtliches-Seite */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.5rem;
    }
    
    .legal-hero p {
        font-size: 1.1rem;
    }
    
    .legal-content-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .legal-content-card h3 {
        font-size: 1.5rem;
    }
}
/* === COOKIE BANNER STYLES === */
/* Fügen Sie diese Styles am Ende Ihrer styles.css hinzu */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h4 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    color: #c0c0c0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-accept {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.cookie-settings {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.cookie-settings:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #c0c0c0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.cookie-modal-header h3 {
    color: #00d4ff;
    margin: 0;
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #c0c0c0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #00d4ff;
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    color: #00d4ff;
    margin: 0;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #c0c0c0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #c0c0c0;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #00d4ff;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
    background-color: white;
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #00d4ff;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 25px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        margin: 10px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}