:root {
    /* Color Palette - premium Corporate Light */
    --color-bg-primary: #F9F8F4;
    --color-bg-secondary: #EAE8E4;
    /* Slightly darker for contrast sections */
    --color-text-primary: #383E42;
    /* Anthracite */
    --color-text-secondary: #6B7280;
    /* Muted cool gray */
    --color-accent: #383E42;
    /* Monochrome/Anthracite for strict corporate look */
    --color-accent-glow: rgba(56, 62, 66, 0.1);
    --color-surface: #FFFFFF;
    --color-surface-hover: #FCFCFC;
    --border-subtle: rgba(56, 62, 66, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - Optimized for more breathability */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows - Important for light mode depth */
    --shadow-sm: 0 2px 4px rgba(56, 62, 66, 0.05);
    --shadow-md: 0 8px 16px rgba(56, 62, 66, 0.08);
    --shadow-lg: 0 16px 32px rgba(56, 62, 66, 0.12);

    /* Liquid Glass Theme Variables */
    --color-bg-primary: #f0f4f8;
    /* Softer, slightly cool white for depth */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(20px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
    position: relative;
    /* Fluid Background Mesh */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 90%, 1) 0, transparent 50%);
    min-height: 100vh;
}

/* Liquid Blob Animation */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="%23EAEFF5"%3E%3Cpath d="M47.7,-58.5C59.6,-48,66.1,-30.9,68.6,-13.2C71.1,4.5,69.5,22.8,60.6,37.3C51.6,51.8,35.2,62.5,17.4,66.3C-0.4,70.1,-19.6,67,-36.8,56.7C-54,46.4,-69.1,28.9,-71.8,10.2C-74.5,-8.4,-64.7,-28.3,-50.8,-40.4C-36.9,-52.5,-18.8,-56.9,-0.3,-56.5C18.2,-56.1,36.7,-51,47.7,-58.5Z" transform="translate(100 100)" /%3E%3C/svg%3E') no-repeat center center;
    background-size: 80% 80%;
    filter: blur(80px);
    z-index: -1;
    animation: rotateBlob 30s linear infinite;
    opacity: 0.6;
}

@keyframes rotateBlob {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-accent {
    color: var(--color-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.text-gradient {
    /* Elegant monochrome gradient */
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #6B7280 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
}

.logo-img {
    height: 60px;
    /* Increased from 40px */
    filter: brightness(0);
    /* Make logo black/dark for light theme */
    opacity: 1;
    /* Increased opacity for better visibility */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 1.1rem;
    /* Slightly larger for readability */
    font-weight: 300;
    color: var(--color-text-primary);
    opacity: 0.7;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--color-accent);
    font-weight: 600;
}

.nav-link::after {
    display: none !important;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    /* Slightly shorter for corporate feel */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.0rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    /* animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards; Removed on user request */
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-text-primary);
    /* Anthracite button */
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(56, 62, 66, 0.9);
    box-shadow: 0 4px 15px rgba(56, 62, 66, 0.3);
}

/* Hero Buttons as Links (Override) */
.hero .btn {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-text-primary);
    padding: 1rem 0;
    margin-right: 1.5rem;
    border: none !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero .btn:hover {
    transform: translateY(-2px);
    color: var(--color-accent);
}

.hero-bg {
    position: absolute;
    top: 5%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(66, 135, 245, 0.1) 0%, rgba(200, 220, 255, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    pointer-events: none;
    animation: morph 15s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

/* Service List Layout (for Leistungen page) */
.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.service-item:first-child {
    border-top: none;
}

@media (min-width: 768px) {
    .service-item {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }

    .service-item-title {
        flex: 0 0 30%;
        margin-bottom: 0;
    }

    .service-item-content {
        flex: 1;
    }
}

.service-item-title h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Industry Grid Layout (for Branchen page) */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Strict 2 columns */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

.industry-card {
    background: transparent;
    border: 1px solid transparent;
    padding: var(--spacing-md);
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: none;
    border-radius: 16px;
}

.industry-card:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.industry-card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    border-bottom: none;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Partner Section (Distinct from Cards) */
.partner-section {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.partner-name {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.partner-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.card {
    background: transparent;
    border: 1px solid transparent;
    padding: 2.5rem;
    border-radius: 16px;
    /* Softened corners for liquid feel */
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    border-bottom: none;
}

.card-text {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

.card-list {
    margin-top: var(--spacing-sm);
    padding-left: 1.2rem;
    list-style-type: disc;
    color: var(--color-text-secondary);
}

/* Success/References Section */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-md);
    border-right: 1px solid var(--border-subtle);
}

.stat-card:last-child {
    border-right: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Partners Section */
.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    align-items: center;
    opacity: 0.8;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.partner-logo:hover {
    color: var(--color-text-primary);
}

/* Footer & Imprint */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-lg) 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.legal-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.legal-text {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Implement mobile menu if needed, for now simple hide on small */
    }

    .hero-title {
        font-size: 3rem;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
}