/*
Theme Name: Angerschmid IT Solutions
Author: Philipp Angerschmid
Description: Ein maßgeschneidertes Theme.
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0099ff;
    --primary-dark: #0066cc;
    --primary-glow: rgba(0, 153, 255, 0.4);
    --bg-dark: #050508;
    --bg-card: #0a0a0f;
    --bg-elevated: #111118;
    --text-white: #ffffff;
    --text-gray: #8892a0;
    --text-muted: #505866;
    --border: rgba(255, 255, 255, 0.06);
    --gradient-blue: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-blue);
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* ==================== ENHANCED FLOATING PARTICLES ==================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    animation: floatParticle linear infinite;
}

/* Hero particles - larger and more visible */
.particle.hero-particle {
    width: 8px;
    height: 8px;
    opacity: 0.6;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary-glow);
}

/* Subtle particles for other sections */
.particle.subtle-particle {
    width: 4px;
    height: 4px;
    opacity: 0.15;
}

/* Footer particles - enhanced */
.particle.footer-particle {
    width: 6px;
    height: 6px;
    opacity: 0.5;
    box-shadow: 0 0 15px var(--primary);
}

.particle:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.particle:nth-child(2) {
    left: 10%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 15%;
    animation-delay: -6s;
    animation-duration: 25s;
}

.particle:nth-child(4) {
    left: 20%;
    animation-delay: -9s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 25%;
    animation-delay: -12s;
    animation-duration: 28s;
}

.particle:nth-child(6) {
    left: 30%;
    animation-delay: -2s;
    animation-duration: 19s;
}

.particle:nth-child(7) {
    left: 35%;
    animation-delay: -5s;
    animation-duration: 24s;
}

.particle:nth-child(8) {
    left: 40%;
    animation-delay: -8s;
    animation-duration: 21s;
}

.particle:nth-child(9) {
    left: 45%;
    animation-delay: -11s;
    animation-duration: 26s;
}

.particle:nth-child(10) {
    left: 50%;
    animation-delay: -1s;
    animation-duration: 17s;
}

.particle:nth-child(11) {
    left: 55%;
    animation-delay: -4s;
    animation-duration: 23s;
}

.particle:nth-child(12) {
    left: 60%;
    animation-delay: -7s;
    animation-duration: 20s;
}

.particle:nth-child(13) {
    left: 65%;
    animation-delay: -10s;
    animation-duration: 27s;
}

.particle:nth-child(14) {
    left: 70%;
    animation-delay: -13s;
    animation-duration: 18s;
}

.particle:nth-child(15) {
    left: 75%;
    animation-delay: -2s;
    animation-duration: 22s;
}

.particle:nth-child(16) {
    left: 80%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.particle:nth-child(17) {
    left: 85%;
    animation-delay: -8s;
    animation-duration: 19s;
}

.particle:nth-child(18) {
    left: 90%;
    animation-delay: -11s;
    animation-duration: 24s;
}

.particle:nth-child(19) {
    left: 95%;
    animation-delay: -14s;
    animation-duration: 21s;
}

.particle:nth-child(20) {
    left: 3%;
    animation-delay: -4s;
    animation-duration: 26s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }

    5% {
        opacity: var(--particle-opacity, 0.3);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.3);
        opacity: var(--particle-opacity-mid, 0.2);
    }

    95% {
        opacity: var(--particle-opacity, 0.3);
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: orbPulse1 8s ease-in-out infinite;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: #00d4ff;
    bottom: -150px;
    left: -150px;
    animation: orbPulse2 10s ease-in-out infinite;
}

.glow-orb-3 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse3 12s ease-in-out infinite;
}

@keyframes orbPulse1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50px, 50px) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes orbPulse2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }

    50% {
        transform: translate(50px, -50px) scale(1.3);
        opacity: 0.2;
    }
}

@keyframes orbPulse3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.05;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* ==================== ENHANCED NAVIGATION ==================== */
/* Navbar - Perfekt zentriert */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
}

nav.scrolled {
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 60px;
    /* Added for more vertical space */
}

.logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

nav.scrolled .logo img {
    height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    position: absolute;
    right: 2rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 32px var(--primary-glow);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu button,
.mobile-menu .close,
.mobile-menu .modal-close:not(#impressum-modal .modal-close) {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 2rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation: Hamburger zu X */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    /* Mittlerer Strich verschwindet */
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sicherstellen, dass der Button über dem Menü bleibt */
.mobile-toggle {
    z-index: 9999 !important;
    /* Muss höher sein als das mobile-menu (999) */
}

/* ==================== SECTION TRANSITIONS ==================== */
.section-transition {
    position: relative;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--transition-from, transparent), transparent);
    pointer-events: none;
    z-index: 2;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--transition-to, transparent), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 2rem 100px;
    /* Increased top padding for taller header */
    background:
        radial-gradient(ellipse 100% 100% at 70% 0%, rgba(0, 153, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 20% 100%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, #050508 0%, #0a0a12 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, transparent, #0a0a12);
    pointer-events: none;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 100% at 70% 0%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 20% 100%, rgba(0, 153, 255, 0.05) 0%, transparent 50%);
}

/* Animated Grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(60px);
    }
}

/* Floating Orbs in Hero */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #00d4ff;
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 12px 40px var(--primary-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: heroVisualIn 1s ease-out 0.3s both;
}

@keyframes heroVisualIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-card-dot.red {
    background: #ff5f57;
}

.hero-card-dot.yellow {
    background: #febc2e;
}

.hero-card-dot.green {
    background: #28c840;
}

.hero-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 2;
}

.hero-code .comment {
    color: var(--text-muted);
}

.hero-code .keyword {
    color: #c678dd;
}

.hero-code .function {
    color: #61afef;
}

.hero-code .string {
    color: #98c379;
}

.hero-code .variable {
    color: #e5c07b;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stats under code card */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat:hover {
    border-color: rgba(0, 153, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* ==================== TRUSTED SECTION ==================== */
.trusted {
    padding: 80px 2rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
        linear-gradient(to bottom, #0a0a12 0%, #0d0d18 100%);
}

.trusted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, #0a0a12, transparent);
    pointer-events: none;
}

.trusted::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #0d0d18, transparent);
    pointer-events: none;
}

.trusted-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.logo-marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-marquee {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 45px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(200%);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 120px 2rem 140px;
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 153, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
        linear-gradient(to bottom, #0d0d18 0%, #10101e 50%, #0e0e1a 100%);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #0d0d18, transparent);
    pointer-events: none;
    z-index: 1;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0e0e1a, transparent);
    pointer-events: none;
    z-index: 1;
}

.services-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(0, 153, 255, 0.05), transparent);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 153, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 153, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 120px 2rem 140px;
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 30% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 100%, rgba(0, 153, 255, 0.06) 0%, transparent 60%),
        linear-gradient(to bottom, #0e0e1a 0%, #0a0a14 50%, #08081a 100%);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #0e0e1a, transparent);
    pointer-events: none;
    z-index: 1;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #08081a, transparent);
    pointer-events: none;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 153, 255, 0.2);
}

/* Verhindert Standard-Link-Styling für Projektkarten */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    /* Macht die gesamte Fläche klickbar */
}

/* Optional: Ein schöner Effekt, wenn man über die Karte fährt */
.project-card-link:hover .project-card {
    border-color: var(--primary);
    /* Nutzt deine primäre Farbe für den Rand */
    transform: translateY(-5px);
    /* Karte hebt sich leicht an */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-image img {
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 153, 255, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 120px 2rem 140px;
    position: relative;
    background:
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 50%, rgba(0, 153, 255, 0.06) 0%, transparent 60%),
        linear-gradient(to bottom, #08081a 0%, #0c0c1c 50%, #0a0a16 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #08081a, transparent);
    pointer-events: none;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0a16, transparent);
    pointer-events: none;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary);
    border-radius: 24px;
    opacity: 0.3;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-feature:hover {
    border-color: rgba(0, 153, 255, 0.3);
    transform: translateX(5px);
}

.about-feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 120px 2rem 140px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 153, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
        linear-gradient(to bottom, #0a0a16 0%, #0d0d1a 50%, #050508 100%);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #0a0a16, transparent);
    pointer-events: none;
    z-index: 1;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(0, 153, 255, 0.08), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.15);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-item-value {
    font-weight: 600;
}

.contact-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;

    @media (max-width: 1024px) {
        display: none !important;
    }
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.2) 0%, transparent 50%);
}

/* ==================== FOOTER ==================== */
footer {
    padding: 80px 2rem 40px;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 153, 255, 0.05) 0%, transparent 60%),
        #050508;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, #050508, transparent);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
    }

    .logo {
        position: relative;
        left: 0;
    }

    .nav-cta {
        position: relative;
        right: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: 2;
    }

    .about-features {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-image {
        order: -1;
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 0;
    }

    .logo img {
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 1.5rem 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu a:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Impressum Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.impressum-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.impressum-section:hover {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.03);
}

.impressum-section h4 {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.impressum-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.impressum-section a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.impressum-section a:hover {
    opacity: 0.8;
}

@media (max-width: 1024px) {

    .particles-container,
    .glow-orb,
    .hero-grid {
        display: none !important;
        /* Schaltet die CPU-Fresser auf dem Handy aus */
    }

    .hero {
        background: var(--bg-dark);
        /* Einfacher Hintergrund statt komplexer Gradients */
    }
}

.testimonials-section {
    padding: 120px 0rem 140px;
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 30% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 100%, rgba(0, 153, 255, 0.06) 0%, transparent 60%),
        linear-gradient(to bottom, #0e0e1a 0%, #0a0a14 50%, #08081a 100%);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #0a0a16, transparent);
    pointer-events: none;
    z-index: 1;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0a16, transparent);
    pointer-events: none;
    z-index: 1;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0rem;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 1rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    margin-top: 5px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.2), transparent, rgba(0, 212, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 153, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 153, 255, 0.1);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 9.7em;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.testimonial-text.expanded {
    max-height: 1000px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    padding: 0;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #00d4ff;
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    opacity: 0.1;
    pointer-events: none;
}

.testimonial-quote svg {
    width: 100%;
    height: 100%;
    fill: var(--primary);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary-glow);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }

    .carousel-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-container {
        padding: 0 1.5rem;
    }

    .testimonials-section {
        padding: 5rem 0;
    }
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        opacity: 0;
        transform: translateY(100px);
        pointer-events: none;
    }

    .whatsapp-button.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}