@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&amp;display=swap');

/*----------------------------------------------------------------------
Grundlegende Stile und Reset
----------------------------------------------------------------------*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Form-Elemente wieder anklickbar machen */
input, textarea, select, button, label {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: default !important;
}

/* Checkboxen und Labels speziell behandeln */
input[type="checkbox"], input[type="radio"] {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    user-select: auto !important;
}

label {
    cursor: pointer;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

/* Text in Inputs soll selektierbar sein */
input:focus, textarea:focus, select:focus {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Für Fixed Header */
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-light);
    background-color: var(--color-darkest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smoothere Transitions für alle Elemente */
*, *::before, *::after {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-primary-dark);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/*----------------------------------------------------------------------
Hilfsklassen
----------------------------------------------------------------------*/

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.hidden {
    display: none !important;
}

/* Beta-Style Text Highlights */
.text-highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-text);
    opacity: 0.5;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*----------------------------------------------------------------------
Buttons (alter Style + Beta-Gradients)
----------------------------------------------------------------------*/

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: var(--font-size-md);
    border-radius: var(--border-radius-md);
    background: var(--gradient-highlight);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: var(--box-shadow-sm);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-gradient);
}

.cta-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Shimmer-Effekt */
.cta-btn:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shimmer 2s infinite;
    z-index: -1;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.75rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    background-color: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
    background: var(--gradient-highlight);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* Floating Background Elements */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.15;
    filter: blur(40px);
}

body::before {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
}

body::after {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
    background: var(--gradient-violet);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes shimmer {
    from { transform: translateX(-150%) skewX(-20deg); }
    to { transform: translateX(150%) skewX(-20deg); }
}

/*----------------------------------------------------------------------
Mobile Responsive
----------------------------------------------------------------------*/

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}
