/* ===================================
   NEXUS Agency - Main Styles
   =================================== */

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

:root {
    /* Colors */
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --purple-600: #9333ea;
    --purple-500: #a855f7;
    --purple-400: #c084fc;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 6rem 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-950);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--indigo-400);
    outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   Animated Background Canvas
   =================================== */
#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navbar auf iPhone/Mobile mit sichtbarem Hintergrund (Safari rendert transparent sonst falsch) */
@media (max-width: 767px) {
    .navbar {
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .navbar.scrolled {
        background: rgba(17, 24, 39, 0.98);
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.5px;
}

a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover {
    text-decoration: none;
}

a.logo:focus-visible {
    outline: 2px solid var(--indigo-400);
    outline-offset: 4px;
    border-radius: 10px;
}

.logo-icon {
    display: flex;
    flex-shrink: 0;
    color: #fff;
}

.logo-icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

.logo-icon-footer svg {
    width: 28px;
    height: 28px;
}

.logo-typo {
    display: inline-flex;
    align-items: baseline;
}

.logo-gradient {
    background: linear-gradient(90deg, #818cf8, #c084fc, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.logo-white {
    color: #fff;
    font-weight: 600;
}

.logo-text {
    color: #fff;
    font-weight: 300;
    margin-left: 0.25rem;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #818cf8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo-600), var(--purple-600));
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu {
    display: none;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #818cf8;
}

.mobile-cta {
    margin-top: 1rem;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(90deg, var(--indigo-600), var(--purple-600));
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary svg {
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid var(--gray-700);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--indigo-500);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--indigo-600), var(--purple-600));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    transform: scale(1.02);
}

.btn-submit svg {
    transition: transform 0.3s;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* ===================================
   Gradient Text & Elements
   =================================== */
.gradient-text {
    background: linear-gradient(90deg, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    top: 5rem;
    left: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(79, 70, 229, 0.2);
}

.orb-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(147, 51, 234, 0.2);
}

.orb-3 {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(147, 51, 234, 0.1);
}

.orb-4 {
    bottom: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(79, 70, 229, 0.1);
}

.orb-5 {
    top: 5rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(79, 70, 229, 0.1);
}

.orb-6 {
    bottom: 5rem;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(147, 51, 234, 0.1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-950), rgba(79, 70, 229, 0.05), var(--gray-950));
    padding: 8rem 0 5rem;
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-badge svg {
    color: #818cf8;
    width: 16px;
    height: 16px;
}

.hero-title {
    margin-bottom: 1.5rem;
    overflow: visible;
}

.hero-title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title-gradient {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    background: linear-gradient(90deg, #818cf8, #c084fc, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    padding-bottom: 0.08em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--gray-400);
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-wheel {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-600);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 0;
}

.scroll-dot {
    width: 6px;
    height: 12px;
    background: linear-gradient(180deg, var(--indigo-500), var(--purple-500));
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===================================
   Section Styles
   =================================== */
section {
    position: relative;
    padding: var(--section-padding);
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.badge-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #c084fc;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-400);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    background: var(--gray-900);
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1), transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-700);
    border-radius: 24px;
    transition: all 0.3s;
}

a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.service-card:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.9);
    outline-offset: 3px;
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gradient-purple {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.gradient-indigo {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.gradient-violet {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.service-icon svg {
    color: #fff;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
    border-radius: 50%;
    flex-shrink: 0;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #818cf8;
    font-weight: 500;
    font-size: 0.875rem;
    transition: gap 0.3s;
}

.service-card:hover .service-link {
    gap: 1rem;
}

/* Services Tagcloud (keine Bullets) */
.service-tagcloud-card .service-link {
    display: none;
}

.service-tagcloud-card .service-description {
    margin-bottom: 1rem;
}

.service-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.service-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.service-tagcloud-card:hover .service-tag {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}

.service-card-more {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.service-tagcloud-card:hover .service-card-more {
    border-color: rgba(99, 102, 241, 0.6);
    color: #e0e7ff;
}

/* ===================================
   Why Us Section
   =================================== */
.why-us-section {
    background: linear-gradient(180deg, var(--gray-900), rgba(79, 70, 229, 0.075), var(--gray-900));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-grid-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .stats-grid-two {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    padding: 2rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.stat-card-icon {
    display: inline-flex;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1);
}

.stat-card-icon svg {
    color: #818cf8;
}

.stat-card-value {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reason-card {
    padding: 2rem;
    padding-top: 52px;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    transition: all 0.3s;
}

.reason-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

@media (min-width: 768px) {
    .reason-card {
        padding-top: 52px;
    }
}

.reason-accent {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--indigo-500), var(--purple-500));
    border-radius: 2px;
    margin-bottom: 1.5rem;
    transition: width 0.3s;
}

.reason-card:hover .reason-accent {
    width: 80px;
}

.reason-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.reason-description {
    color: var(--gray-400);
    line-height: 1.6;
}

/* ===================================
   Kundenlogos Section
   =================================== */
.clients-section {
    background: var(--gray-900);
    padding: var(--section-padding);
}

.clients-section .section-header {
    margin-bottom: 3rem;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
    min-width: 0;
}

/* Zeilen 1–2: je 4 Logos (je 2 von 8 Spalten) */
.clients-logos img:nth-child(-n + 8) {
    grid-column: span 2;
}

/* Letzte Zeile: 3 Logos mittig (Spalten 2–3, 4–5, 6–7; frei: 1 und 8) */
.clients-logos img:nth-child(9) {
    grid-column: 2 / span 2;
}

.clients-logos img:nth-child(10) {
    grid-column: 4 / span 2;
}

.clients-logos img:nth-child(11) {
    grid-column: 6 / span 2;
}

@media (max-width: 639px) {
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        min-width: 0;
        width: 100%;
    }

    .clients-logos img:nth-child(-n + 11) {
        grid-column: auto;
    }

    .clients-logos img {
        max-width: 100% !important;
        width: auto;
        min-width: 0;
        height: auto;
        object-fit: contain;
        box-sizing: border-box;
    }

    .hero-stats {
      display: none;
    }

    .hero-badge, .case-description {
      font-size: 12px !important;
    }

    .case-card {
      height: 640px !important;
    }

    .result-tag {
      font-size: 10px !important;
    }

    .case-title {
      font-size: 18px !important;
    }
}

.client-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.client-logo-placeholder:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--gray-400);
}

/* Echte Logos: Bild einbinden mit <img src="logo.svg" alt="Kundenname"> */
.clients-logos img {
    display: block;
    width: auto;
    max-width: 180px;
    min-width: 0;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s;
}

.clients-logos a:hover img,
.clients-logos img:hover {
    filter: grayscale(0) opacity(1);
}

/* ===================================
   Case Studies Section
   =================================== */
.cases-section {
    background: var(--gray-950);
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-card {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    cursor: default;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.6), var(--gray-900));
    transition: background 0.4s ease;
}

.case-card:hover .case-gradient {
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.8), var(--gray-900));
}

.case-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-category {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.case-client {
    color: #818cf8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.case-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.case-card:hover .case-details {
    max-height: 300px;
}

.case-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, var(--indigo-600), var(--purple-600));
    color: #fff;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background: linear-gradient(180deg, var(--gray-950), rgba(147, 51, 234, 0.05), var(--gray-950));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-avatars {
    display: flex;
    margin-left: -12px;
}

.team-avatars .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-900);
    margin-left: -12px;
    object-fit: cover;
    display: block;
}

.overlay-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.overlay-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.about-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(147, 51, 234, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    text-align: center;
}

.about-badge-heart {
    padding: 0.875rem 1.25rem;
}

.badge-heart-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.badge-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.badge-label {
    font-size: 0.875rem;
    color: #fff;
}

/* About Title – drei Zeilen, letzte mit Gradient */
.about-title-lines {
    display: block;
    margin-bottom: 1.5rem;
}

.about-title-lines .about-title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
}

.about-title-lines .about-title-line.gradient-text {
    background: linear-gradient(90deg, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-item {
    display: flex;
    gap: 1rem;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
}

.value-icon svg {
    color: #818cf8;
}

.value-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.value-desc {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: var(--gray-900);
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
    border-radius: 12px;
}

.info-icon svg {
    color: #fff;
}

.info-title {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.info-content {
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

a.info-content:hover {
    color: #818cf8;
}

.consultation-box {
    padding: 2rem;
    background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
    border-radius: 24px;
    color: #fff;
}

.consultation-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.consultation-box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.consultation-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.feature-item svg {
    flex-shrink: 0;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    padding: 2.5rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-700);
    border-radius: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--gray-600);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 1rem;
}

.form-note a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-note a:hover {
    color: #c084fc;
}

.success-message {
    display: none;
    padding: 3rem;
    text-align: center;
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: #fff;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--gray-400);
}

/* ===================================
   Footer
   =================================== */
.footer {
    position: relative;
    background: var(--gray-900);
    color: #fff;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(147, 51, 234, 0.05), var(--gray-900));
    pointer-events: none;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.footer-bottom-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
    transform: scale(1.1);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 4rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 2rem;
    }

    .footer-bottom-brand {
        text-align: left;
    }

    .footer-bottom-meta {
        align-items: flex-end;
        text-align: right;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #818cf8;
}

/* ===================================
   Rechtstexte (Impressum / Datenschutz)
   =================================== */
.legal-content-section {
    padding: 0 0 5rem;
}

.legal-content-section > .container {
    padding-top: 40px;
}

.legal-content {
    max-width: 42rem;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 2.5rem 0 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 1.75rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--gray-400);
    line-height: 1.65;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.legal-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #c084fc;
}

.legal-content .legal-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.legal-content address {
    font-style: normal;
    color: var(--gray-400);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-left.visible {
    animation: fadeInLeft 0.8s forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.fade-in-right.visible {
    animation: fadeInRight 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 767px) {
    :root {
        --section-padding: 4rem 0;
    }

    .hero-section {
        padding: 6rem 0 3rem;
    }

    .service-card,
    .stat-card,
    .reason-card {
        padding: 1.5rem;
    }

    .about-image img {
        height: 400px;
    }

    .about-overlay-card {
        flex-direction: column;
        align-items: flex-start;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-banner__actions button {
        flex: 1;
    }
}

/* ===================================
   Cookie-Einwilligung (Matomo / Analyse)
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 1rem var(--container-padding);
    background: rgba(17, 24, 39, 0.97);
    border-top: 1px solid var(--gray-700);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__text {
    flex: 1;
    min-width: 220px;
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--indigo-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-banner__btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--gray-600);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.cookie-banner__btn:hover {
    border-color: var(--indigo-500);
}

.cookie-banner__btn--primary {
    background: linear-gradient(90deg, var(--indigo-600), var(--purple-600));
    border-color: transparent;
}

.cookie-banner__btn--primary:hover {
    filter: brightness(1.05);
}

/* Honeypot (Spam) */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error-message {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #fecaca;
    font-size: 0.875rem;
}

.form-error-message.visible {
    display: block;
}
