* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e7e7e7;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* GRADIENT IMAGE & BACKGROUND ELEMENTE */
.image-gradient {
    position: fixed;
    top: 0;
    right: 0;
    opacity: 0.3;
    z-index: -3;
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 0, 197, 0.4) 0%, rgba(127, 66, 167, 0.3) 50%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    transform: rotate(45deg);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 60px;
    background: linear-gradient(45deg, #54a0ff, #2e86de);
    border-radius: 30px;
    bottom: 30%;
    left: 30%;
    animation-delay: 10s;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    background: linear-gradient(45deg, #6600c5, #7f42a7, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 0, 197, 0.3);
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    color: #cfcfcf;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.btn-signin {
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(102, 0, 197, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 0, 197, 0.5);
}

/* MAIN CONTENT */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.content {
    max-width: 600px;
}

/* TAG BOX */
.tag-box {
    position: relative;
    width: fit-content;
    padding: 2px;
    border-radius: 50px;
    background: linear-gradient(45deg, #656565, #7f42a7, #6600c5, #5300a0, #757575);
    background-size: 300%;
    animation: animationGradient 3s linear infinite;
    margin-bottom: 2rem;
}

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

.tag {
    background: #0f0f0f;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.1em;
}

/* TEXTE */
.content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e7e7e7 50%, #cfcfcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* STATS */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6600c5;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
}

/* BUTTONS */
.buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-getstarted {
    text-decoration: none;
    border: 2px solid #333;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: #e7e7e7;
    background: rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-getstarted:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    transform: translateY(-2px);
}

.btn-signin-main {
    text-decoration: none;
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 0, 197, 0.3);
    cursor: pointer;
}

.btn-signin-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 0, 197, 0.4);
}

/* 3D ROBOTER CONTAINER */
.robot-container {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-3d {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 0, 197, 0.8);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(102, 0, 197, 1);
    transform: scale(1.1);
}

/* SECTIONS */
section {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

section h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SHOWCASE SECTION */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-item {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 0, 197, 0.2);
}

.showcase-preview {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preview-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.spline-basic-preview::before {
    content: "🎯";
    font-size: 3rem;
}

.spline-animation-preview::before {
    content: "🎬";
    font-size: 3rem;
}

.spline-integration-preview::before {
    content: "🚀";
    font-size: 3rem;
}

.showcase-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.showcase-item p {
    color: #b0b0b0;
}

/* TUTORIALS SECTION */
.tutorial-list {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 15px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tutorial-item:hover {
    background: rgba(102, 0, 197, 0.1);
    transform: translateX(10px);
}

.tutorial-icon {
    font-size: 2rem;
    width: 60px;
    display: flex;
    justify-content: center;
}

.tutorial-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tutorial-content p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.tutorial-duration {
    color: #6600c5;
    font-weight: 600;
    font-size: 0.9rem;
}

/* BEISPIELE SECTION */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.example-card {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 0, 197, 0.2);
}

.example-preview {
    height: 150px;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.cube-example::before { content: "🎲"; }
.particles-example::before { content: "✨"; }
.terrain-example::before { content: "🏔️"; }

.example-card h4 {
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
}

.view-code-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-code-btn:hover {
    background: linear-gradient(45deg, #7f42a7, #6600c5);
}

/* DOKUMENTATION SECTION */
.docs-content {
    max-width: 800px;
    margin: 0 auto;
}

.doc-category {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 15px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.doc-category h4 {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.doc-category:hover h4 {
    color: #6600c5;
}

.doc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.doc-category.active .doc-content {
    max-height: 300px;
    padding: 0 2rem 2rem 2rem;
}

.doc-category.active .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.doc-content ul {
    list-style: none;
    padding-left: 1rem;
}

.doc-content li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    position: relative;
}

.doc-content li::before {
    content: "→";
    color: #6600c5;
    margin-right: 0.5rem;
}

/* DIALOGFENSTER */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

#codeContent {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
    overflow-x: auto;
    color: #e7e7e7;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.copy-code-btn {
    background: linear-gradient(45deg, #6600c5, #7f42a7);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 0, 197, 0.3);
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    letter-spacing: 0.2em;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ANIMATIONEN */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* RESPONSIV */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .robot-container {
        order: -1;
        height: 400px;
    }

    .stats {
        justify-content: center;
    }

    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header {
        padding: 1.5rem 0;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-content {
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .robot-container {
        height: 300px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-getstarted,
    .btn-signin-main {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .tag-box {
        margin: 0 auto 1.5rem auto;
    }

    .stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tutorial-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .content h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .robot-container {
        height: 250px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item {
        padding: 1.5rem;
    }

    .tutorial-item {
        padding: 1.5rem;
    }
}

/* BEDIENUNGSHILFEN */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* KEYFRAMES */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatShapes {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(-10px) translateX(-15px) rotate(180deg); }
    75% { transform: translateY(20px) translateX(10px) rotate(270deg); }
}