:root {
    --primary-navy: #0A1C33;
    --secondary-navy: #061426;
    --main-white: #FFFFFF;
    --soft-white: #F4F6F9;
    --text-color: #2F3B4A;
    --text-light: #5A6A7D;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--main-white);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-navy);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1.5rem; }
.max-width-text { max-width: 650px; margin-left: auto; margin-right: auto; }

/* Utilities */
.bg-white { background-color: var(--main-white); }
.bg-soft { background-color: var(--soft-white); }
.bg-primary-navy { background-color: var(--primary-navy); }
.bg-secondary-navy { background-color: var(--secondary-navy); }
.bg-secondary-navy h2, .bg-secondary-navy p, .bg-primary-navy h4, .bg-primary-navy p { color: var(--main-white); }

.section-padding { padding: 5rem 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--main-white);
}

.btn-primary:hover {
    background-color: var(--secondary-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 28, 51, 0.15);
}

.btn-white {
    background-color: var(--main-white);
    color: var(--primary-navy);
}

.btn-white:hover {
    background-color: var(--soft-white);
    transform: translateY(-2px);
}

/* Header */
.navbar {
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.85); /* Apple-Style Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(10, 28, 51, 0.05);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

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

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

/* Subtile sekundäre Links */
.nav-left a {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.5px;
}
.nav-left a:hover {
    opacity: 1;
    color: var(--primary-navy);
}

/* Elegante primäre Links mit line-animation */
.nav-right a {
    font-size: 1.05rem;
    color: var(--primary-navy);
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.nav-right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-navy);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Responsives Verhalten der neuen Links */
@media (max-width: 900px) {
    .nav-left { display: none; } /* Hide secondary links on mobile to save space */
    .nav-right { flex: unset; gap: 1rem; }
    .nav-right a { font-size: 0.95rem; }
    .logo img { height: 100px; } /* Shrink Logo slightly on tablets */
    
    .features-grid {
        display: flex;
        flex-direction: column;
    }
    .card-minimal {
        border-right: none !important;
        border-bottom: 1px solid rgba(10, 28, 51, 0.15) !important;
        padding: 3rem 1rem;
        width: 100%;
    }
    .card-minimal:last-child {
        border-bottom: none !important;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 150px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    text-align: center;
    border-top: none;
}

.hero .subline {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 4rem;
}

.card-minimal {
    flex: 0 0 33.3333%;
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(10, 28, 51, 0.15);
    border-bottom: 1px solid rgba(10, 28, 51, 0.15);
    transition: background-color 0.4s ease;
}

.card-minimal:nth-child(3n) {
    border-right: none;
}

/* Entferne den unteren Rand für die gesamte 2. Reihe (egal ob 5 oder 6 Items) */
.card-minimal:nth-child(n+4) {
    border-bottom: none;
}

/* Eleganter Hover ohne die Grid-Linien zu zerreißen */
.card-minimal:hover {
    background-color: rgba(10, 28, 51, 0.02);
}

.card-minimal .icon-modern {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-minimal:hover .icon-modern {
    transform: translateY(-5px) scale(1.05);
}

.card-minimal h3 {
    font-size: 1.35rem;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-minimal p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsives Verhalten der Kacheln */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .card-minimal {
        border-right: none;
        border-bottom: 1px solid rgba(10, 28, 51, 0.2);
        padding: 3rem 1rem;
    }
    .card-minimal:last-child {
        border-bottom: none;
    }
}

/* Contact Section (Split Process & Form) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    text-align: left;
    margin-top: 4rem;
}

/* Vertical Timeline */
.vertical-timeline {
    position: relative;
}

.v-step {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.v-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -25px;
    width: 2px;
    background-color: rgba(10, 28, 51, 0.1);
}

.v-step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: transparent;
    border: 1px solid rgba(10, 28, 51, 0.2);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 2rem;
    z-index: 2;
}

.v-step-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Premium Form */
.premium-form {
    background: var(--soft-white);
    border: 1px solid rgba(10, 28, 51, 0.05);
    box-shadow: 0 10px 30px rgba(10, 28, 51, 0.03);
    padding: 3rem;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.premium-form input, .premium-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(10, 28, 51, 0.2);
    color: var(--primary-navy);
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.premium-form input:focus, .premium-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-navy);
}

.premium-form input::placeholder, .premium-form textarea::placeholder {
    color: rgba(10, 28, 51, 0.3);
}

.premium-form .btn {
    margin-top: 1rem;
    padding: 1.2rem;
    letter-spacing: 0.5px;
}

/* Split Scroll Animation Section */
.split-scroll-section {
    padding: 0;
    position: relative;
}

.split-scroll-container {
    display: flex;
    width: 100%;
}

.split-scroll-header {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
}

.split-scroll-header .sticky-content {
    max-width: 500px;
    margin-left: auto;
    padding-right: 2rem;
}

.split-scroll-header h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--main-white);
}

.split-scroll-text {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.scroll-text-content {
    max-width: 500px;
    margin-right: auto;
    position: relative;
    z-index: 2;
    padding-left: 2rem;
    transition: color 0.4s ease;
}

.scroll-text-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.scroll-text-content.text-white p {
    color: rgba(255, 255, 255, 0.85);
}

.spill-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background-color: var(--secondary-navy);
    z-index: 1;
    will-change: width;
}

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

.industry-item {
    background-color: var(--main-white);
    border: none;
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 20px rgba(10, 28, 51, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 240px;
}

.industry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 28, 51, 0.08);
}

.industry-content {
    position: relative;
    z-index: 2;
}

.industry-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.industry-content p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.industry-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-navy);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-item:hover::after {
    width: 100%;
}

/* Client Slider */
.client-slider-container {
    margin-top: 8rem;
    width: 100%;
}

.clients-title {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    font-weight: 700;
}

.client-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Full viewport width breakout */
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    /* Soft fade at the screen edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-slide-track {
    display: flex;
    align-items: center;
    width: max-content; 
    /* Set 3 total sets, we want to translate exactly 1/3 of the total width for a flawless loop */
    animation: scrollMarquee 40s linear infinite;
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    opacity: 0.3;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: -1px;
}

.client-logo:hover {
    opacity: 0.8;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

/* Vertical Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 9999;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.85); /* Apple Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(10, 28, 51, 0.05);
    border-left: none;
    box-shadow: 5px 0 20px rgba(10, 28, 51, 0.04);
}

.social-link {
    color: var(--primary-navy);
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .social-sidebar {
        display: none;
    }
}

/* Legal Page Styling */
.legal-page {
    background-color: var(--soft-white);
}

.legal-container {
    max-width: 800px;
    background: var(--main-white);
    padding: 5rem 6rem;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(10, 28, 51, 0.03);
    margin: 2rem auto;
}

.legal-section {
    scroll-margin-top: 130px;
}

.legal-section h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-navy);
    letter-spacing: -1px;
}

.legal-block {
    margin-bottom: 3rem;
}

.legal-block h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.legal-block p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-block ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.legal-block li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-block li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-navy);
    opacity: 0.4;
    font-weight: 300;
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(10, 28, 51, 0.1);
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 3rem 2rem;
    }
}

/* Footer */
.footer {
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.logo-footer {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-footer img {
    height: 140px;
    width: auto;
    display: block;
    /* Damit das Logo perfekt auf dem Navy Hintergrund sichtbar ist, wird es hier zu Weiß umgefärbt */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer p {
    color: rgba(255,255,255,0.7);
}

.footer-col.links ul {
    list-style: none;
}

.footer-col.links li {
    margin-bottom: 0.75rem;
}

.footer-col.links a {
    color: rgba(255,255,255,0.7);
}

.footer-col.links a:hover {
    color: var(--main-white);
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 4rem 0; }
    .hero { padding: 6rem 0 4rem; }
    .hero .subline { font-size: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    .premium-form { padding: 2.5rem 1.5rem; }
    
    .industry-grid { grid-template-columns: 1fr; }
    .industry-item { padding: 2.5rem 2rem; }
    
    .split-scroll-section { height: auto; }
    .split-scroll-container { flex-direction: column; height: auto; position: relative; }
    .split-scroll-header, .split-scroll-text { padding: 5rem 5%; }
    .split-scroll-header .sticky-content, .scroll-text-content { margin: 0 auto; padding-left: 0; padding-right: 0; }
    .spill-bg { width: 100% !important; height: 100%; }
    .scroll-text-content.text-white p, .scroll-text-content p { color: rgba(255, 255, 255, 0.85); }
}
