:root {
    /* Brand Colors - Dark Mode Default */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;

    /* Surface Colors - Glassmorphism */
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --glow-color-1: rgba(120, 119, 198, 0.15);
    --glow-color-2: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Typography Foundation */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.mt-4 {
    margin-top: 2rem;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Interactions via JS for Cursor */
body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Glassmorphism */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #ffffff; /* Reines Weiß */
    color: #000000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05); /* Etwas mehr Sichtbarkeit */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.link:hover {
    border-color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 100;
    padding: 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    padding-left: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn {
    color: var(--bg-primary);
}

.nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; /* Die Breite der Striche */
    height: 18px; /* Die Höhe des gesamten Icons */
    cursor: pointer;
    z-index: 200;
    margin-right: 1.5rem;
    padding: 12px; /* Grosser Klick-Bereich */
    box-sizing: content-box; /* Padding kommt ZUSÄTZLICH zur Breite */
    flex-shrink: 0; /* Verhindert Stauchung durch das Logo */
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff; /* Reinweiß für maximale Sichtbarkeit */
    border-radius: 10px;
    transition: var(--transition-smooth);
    transform-origin: left center;
}

/* Toggle Animation */
.navbar.mobile-active .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

.navbar.mobile-active .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.mobile-active .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Das Bild wird pur geladen */
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    /* Die Maske lässt das BILD nach unten hin transparent werden */
    /* Dadurch scheint die Hintergrundfarbe von .hero durch, die exakt zu #vision passt */
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 50%, 
        transparent 95%
    );
    mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 50%, 
        transparent 95%
    );
    z-index: 1;
}

#vision {
    position: relative;
    z-index: 10;
    background-color: var(--bg-primary);
}

.hero-container {
    position: relative;
    z-index: 20; /* Höher als der Vision-Verlauf (z-index 10) */
}

.hero-container {
    position: relative;
    z-index: 20; /* Höher als der Vision-Verlauf (z-index 10) */
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.glow-1 {
    top: 10%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: var(--glow-color-1);
}

.glow-2 {
    bottom: -10%;
    right: 10%;
    width: 30vw;
    height: 30vw;
    background: var(--glow-color-2);
}

/* Sections Layout */
.section-header {
    margin-bottom: var(--space-xl);
}

.vision-grid {
    border-radius: 30px;
    overflow: hidden;
    height: 70vh;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    group;
}

.project-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-desc {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.project-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.gallery-grid img:hover {
    transform: scale(0.98);
    filter: brightness(0.8);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--surface-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-logo-img {
    height: 24px;
    width: auto;
    margin-bottom: 1rem;
}

/* Animations (Intersection Observer Targets) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0.75rem;
        right: -100%;
        width: 65%;
        height: 65vh;
        background: rgba(10, 10, 10, 0.75); /* Dunkler Glassy Look */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex; /* Sicherstellen, dass Flexbox aktiv ist */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 150;
        padding-top: 3rem;
        border-radius: 24px;
        border: 1px solid var(--surface-border);
    }

    .navbar.mobile-active .nav-links {
        right: 2.5rem; /* Weiter nach links verschoben für bessere optische Balance mit dem X */
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cursor-dot, .cursor-outline {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Reset optical balance for mobile since button is on the top right */
    .logo {
        padding-left: 1.5rem;
    }
}