:root {
    --bg-color: #09090b; /* Very dark zinc - bleibt */
    --bg-secondary: #0f0f13;
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #8599ca; /* Silber-Blau */
    --primary-light: #a8bade; /* Helles Silber-Blau */
    --secondary: #6d8dc6; /* Weiches Blau */
    --accent: #5c7db8; /* Tiefes Silber-Blau */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(148, 168, 216, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(148, 168, 216, 0.1);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-muted);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

/* Buttons */
.btn-primary, .btn-primary-small {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0a0a0c;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary::before, .btn-primary-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before, .btn-primary-small:hover::before {
    left: 100%;
}

.btn-primary-small {
    padding: 0.55rem 1.4rem;
    font-size: 0.88rem;
}

.nav-links .btn-primary-small {
    color: #0a0a0c;
}

.nav-links .btn-primary-small::after {
    display: none;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(148, 168, 216, 0.2);
}

.btn-secondary, .btn-secondary-small {
    background: transparent;
    border: 1.5px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-secondary-small {
    padding: 0.5rem 1.3rem;
    font-size: 0.88rem;
}

.btn-secondary:hover, .btn-secondary-small:hover {
    background: rgba(148, 168, 216, 0.06);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(148, 168, 216, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(123, 155, 212, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(106, 140, 199, 0.02) 0%, transparent 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(148, 168, 216, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(184, 201, 232, 0.02) 0%, transparent 30%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem;
    background: rgba(148, 168, 216, 0.06);
    border: 1px solid rgba(148, 168, 216, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(184, 201, 232, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 201, 232, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(184, 201, 232, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 201, 232, 0);
    }
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
}

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

.stat-box h3 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.stat-box h3::after {
    content: '+';
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Sections Global */
section {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary-light));
    border-radius: 22px;
    z-index: 0;
    opacity: 0.2;
    filter: blur(12px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-color);
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.service-card {
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(148, 168, 216, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: inline-flex;
    padding: 1rem;
    background: rgba(148, 168, 216, 0.08);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(148, 168, 216, 0.12);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(148, 168, 216, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.3rem 0.8rem;
    background: rgba(148, 168, 216, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    border: 1px solid rgba(148, 168, 216, 0.12);
}

.tag.tag-customer {
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.15);
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-card {
    padding: 2.5rem 2rem;
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(148, 168, 216, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.process-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(148, 168, 216, 0.08), rgba(184, 201, 232, 0.04));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: 5px;
    right: 15px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.process-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    padding: 1.8rem 2rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.faq-item:hover {
    transform: translateX(6px);
    border-color: rgba(148, 168, 216, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.faq-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    color: var(--text-color);
    font-weight: 700;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer / Contact */
.footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: linear-gradient(to top, rgba(148, 168, 216, 0.02), transparent);
}

.footer .section-title {
    margin-bottom: 3rem;
}

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

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
}

.contact-btn svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    background: rgba(148, 168, 216, 0.05);
    border-color: rgba(148, 168, 216, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn:hover svg {
    transform: scale(1.15);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

/* Scroll Animations */
.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.service-card, .portfolio-card, .process-card, .faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.service-card:nth-child(1), .portfolio-card:nth-child(1), .process-card:nth-child(1), .faq-item:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2), .portfolio-card:nth-child(2), .process-card:nth-child(2), .faq-item:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3), .portfolio-card:nth-child(3), .process-card:nth-child(3), .faq-item:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4), .portfolio-card:nth-child(4), .process-card:nth-child(4) { animation-delay: 0.4s; }
.process-card:nth-child(5) { animation-delay: 0.5s; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.close-modal:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .stats-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    section {
        padding: 4.5rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .container {
        padding: 0 1.2rem;
    }
}
