@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-red: #3e000c;
    --primary-blue: #c9fbff;
    --dark-text: #c9fbff;      
    --light-text: #c9fbff;    
    --white: #c9fbff;
    
    /* Global Font: Montserrat */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

@media (min-width: 769px) {
    @view-transition {
        navigation: auto;
    }
}

html {
    background-color: #240006;
}

@media (min-width: 769px) {
    html {
        background-image: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100vw 100vh;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

*:focus {
    outline: none !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%);
    z-index: -9999;
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    color: var(--light-text);
    background-color: transparent; /* Changed from #68051a to transparent to prevent hiding body::before */
    line-height: 1.8;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.5px;
}

img, svg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

svg {
    shape-rendering: geometricPrecision;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.sticky-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%);
    border-bottom: 3px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 50px;
    padding-right: calc(50px - (100vw - 100%));
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 226px; /* 5% kleiner als 238px */
    height: auto;
    max-height: none;
    margin-left: -16px; /* 16px offset to compensate for 23px inner SVG whitespace at 226px width */
    transform: translateY(-1px); /* Mikro-Korrektur: Oben hat SVG 9.6 Einheiten, unten 7.2. 1px Ausgleich! */
}

.sticky-nav nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    transform: none;
}

.sticky-nav nav a {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, opacity 0.3s;
}

.sticky-nav nav a:hover,
.sticky-nav nav a.active {
    color: var(--primary-blue);
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--primary-blue);
}

.lang-switch a {
    opacity: 0.6;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: calc(100vh - 88px);
    background-color: transparent;
}

.hero-content {
    max-width: 800px;
    margin-top: -12vh; /* Shift upwards so the logo sits perfectly central on the screen */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

#hero-title {
    margin-bottom: 30px;
    position: relative;
    z-index: 99999;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 300;
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Main Content Sections */
section {
    scroll-margin-top: 88px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 80px 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    text-transform: none;
    letter-spacing: 2px;
}

.vision-heading {
    margin-top: -30px;
    margin-bottom: 70px;
}

.collab-heading {
    text-align: center;
    text-transform: none;
    color: var(--primary-blue);
    margin-top: 100px;
    margin-bottom: 40px;
    font-size: 2rem;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    font-weight: 400;
}

.about-section {
    background-color: transparent;
}

@media (min-width: 769px) {
    .about-section .container {
        padding-top: 10vh;
        padding-bottom: 25vh;
    }
}

/* 3D Split-Depth Parallax Cards */
.split-depth-card {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    padding: 30px 50px;
    margin: 0 auto 60px auto;
    max-width: 950px;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    cursor: pointer;
    background: transparent;
}

@media (min-width: 769px) {
    .split-depth-card {
        margin: 8vh auto 15vh auto;
    }
}

/* Subtle 3D rotation on hover to show Z depth separation */
@media (min-width: 769px) {
    .split-depth-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(201, 251, 255, 0.03);
    }
}

.split-depth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 16px;
    z-index: 1;
    transform: translateZ(-20px);
    transform-style: preserve-3d;
    transition: background 0.6s ease, border-color 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 769px) {
    .split-depth-card:hover .split-depth-bg {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(201, 251, 255, 0.45);
        transform: translateZ(-40px); /* Pushes the background further back */
    }
}

/* Radial light glow reflex */
.split-depth-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 50%, rgba(201, 251, 255, 0.06) 0%, rgba(201, 251, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.split-depth-card:hover .split-depth-bg::after {
    opacity: 1;
}

.split-depth-title {
    position: relative;
    z-index: 3;
    transform: translateZ(10px);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), text-shadow 0.6s ease;
}

.split-depth-card .vision-heading,
.split-depth-card .collab-heading {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.6rem;
}

@media (min-width: 769px) {
    .split-depth-card:hover .split-depth-title {
        transform: translateZ(35px); /* Pulls title forward */
        text-shadow: 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(201, 251, 255, 0.2);
    }
}

.split-depth-content {
    position: relative;
    z-index: 2;
    transform: translateZ(5px);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 769px) {
    .split-depth-card:hover .split-depth-content {
        transform: translateZ(18px); /* Pulls content slightly forward */
    }
}

/* Mobile responsive degradation */
@media (max-width: 768px) {
    .split-depth-card {
        padding: 20px 20px;
        margin-bottom: 40px;
    }
    .split-depth-card.active-3d {
        transform: translateY(-2px) !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    }
    .split-depth-bg {
        transform: none !important;
    }
    .split-depth-title {
        transform: none !important;
    }
    .split-depth-content {
        transform: none !important;
    }
}

/* Active 3D State (triggered by scroll/navigation) */
.split-depth-card.active-3d {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(201, 251, 255, 0.03);
    transform: translateY(-5px);
}

@media (min-width: 769px) {
    .split-depth-card.active-3d {
        transform: translateY(-5px);
    }
    
    /* When active, let hover scale or lift it slightly more dynamically without rotation */
    .split-depth-card.active-3d:hover {
        transform: translateY(-7px) scale(1.01);
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65), 0 0 60px rgba(201, 251, 255, 0.05);
    }
}

.split-depth-card.active-3d .split-depth-bg {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 251, 255, 0.45);
    transform: translateZ(-40px);
}

.split-depth-card.active-3d .split-depth-bg::after {
    opacity: 1;
}

.split-depth-card.active-3d .split-depth-title {
    transform: translateZ(35px);
    text-shadow: 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(201, 251, 255, 0.2);
}

.split-depth-card.active-3d .split-depth-content {
    transform: translateZ(18px);
}

/* Team Grid - Updated for Side by Side */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.team-member {
    display: flex;
    align-items: stretch;
    gap: 40px;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 50px;
}

.team-member:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-image-container {
    flex: 0 0 45%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
}

.team-text-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.team-text-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 251, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(201, 251, 255, 0.08);
}

.team-text-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.team-text-container p {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--light-text);
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

.areas-section {
    background-color: transparent;
    border-top: 1px solid rgba(255,255,255,0.05);
    min-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    font-size: 15px;
    margin-bottom: 15px;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Erhöhter Abstand zwischen den Kacheln für ein großzügigeres Layout */
    width: 100%;
    max-width: none;
}
.areas-section .container, .leistungen-container {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2cm;
    padding-left: 20px;
    padding-right: 20px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 251, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(201, 251, 255, 0.08);
}

.accordion-item.active {
    border-color: rgba(201, 251, 255, 0.35);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-size: 17px;
    font-family: var(--font-heading);
    color: var(--white);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.accordion-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background-color: rgba(201, 251, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.accordion-item.active .accordion-header::before {
    opacity: 1;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-header:hover {
    color: var(--primary-blue);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 25px;
    margin-left: 0;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
    background-color: transparent;
}

.accordion-content p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--light-text);
    line-height: 1.6;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-item.active .accordion-content {
    padding: 20px 25px 25px 25px;
}

@media (max-width: 768px) {
    .accordion-header {
        width: 100%;
        padding: 20px 20px 15px 20px;
    }
    .accordion-header::before {
        left: 20px;
        right: 20px;
    }
    .accordion-content {
        margin-left: 0;
        width: 100%;
        padding: 0 20px;
    }
    .accordion-item.active .accordion-content {
        padding: 15px 20px 20px 20px;
    }
    .areas-section .container, .leistungen-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Contact Section */
.contact-container {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.contact-section {
    background-color: transparent;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-info {
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-blue);
    font-weight: 400;
    display: inline;
    margin-left: 5px;
    letter-spacing: 0.5px;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: transparent;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 12px;
    border-top: none;
}

.footer-content {
    padding-top: 15px; padding-bottom: 45px; padding-right: 20px; padding-left: 1.3cm;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Tablet and Medium Devices */
@media (max-width: 1024px) {
    .container {
        padding: 50px 30px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .vision-heading {
        margin-top: -15px;
        margin-bottom: 40px;
    }
    .collab-heading {
        margin-top: 60px;
        margin-bottom: 25px;
    }

    .hero-content h1 {
        font-size: 3.1rem; /* 25% increased for iPad */
    }

    .team-image-container {
        flex: 0 0 300px; /* slightly smaller on tablet */
        max-width: 300px;
    }
    .accordion { margin-left: 0; }
    .areas-section .container, .leistungen-container {
        padding-left: 30px;
        padding-right: 30px;
    }

}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-logo-img {
        width: 400vw !important; /* Force extreme zoom overlay */
        margin-left: calc(-150vw) !important; /* Center of 600 is 300. margin-left: 50vw - 300vw - 20px = -250vw */
        max-width: none !important;
        /* no static transform */
    }
    
    #preloader-img.start-anim {
        animation: openLogoMobile 3.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    }

    

    body::before, .sticky-nav, #preloader {
        background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%) !important;
    }

    #preloader {
        padding-top: 0; /* Center logo on mobile */
    }

    #hero-title {
        margin-bottom: 20px; /* Fix overlap with text */
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .team-image-container {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .team-text-container {
        flex: 1;
        width: 100%;
        padding: 20px;
    }
    
    .team-text-container h3 {
        font-size: 1.45rem;
        white-space: nowrap;
        font-weight: 500;
    }

    body {
        padding-top: 130px; /* Offset the exact height of the newly fixed header on mobile! */
    }

    .sticky-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        flex-direction: column;
        padding-top: 15px; padding-bottom: 10px; padding-left: 15px;
        padding-right: calc(15px - (100vw - 100%)) !important;
        gap: 10px;
        align-items: center;
        background: transparent !important;
        overflow: hidden !important;
    }

    .sticky-nav::before {
        content: "";
        position: absolute;
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        height: 100dvh;
        background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%) !important;
        z-index: -1;
        pointer-events: none;
    }

    .logo-container {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
    
    .logo {
        width: 285px; 
        max-width: 90vw; 
        height: auto;
        transform: translateY(-2px); /* 2px correction tailored for 285px mobile width */
        margin-left: 0; 
    }

    .sticky-nav nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        flex-grow: 1;
        justify-content: center;
        padding-bottom: 0;
    }

    .sticky-nav nav ul {
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0;
    }
    
    .sticky-nav nav a {
        font-size: 11px;
        letter-spacing: 0;
    }
    
    .lang-switch {
        border-left: 1px solid var(--primary-blue);
        padding-left: 5px;
        gap: 5px;
        margin-left: 0;
    }
    
    .hero-section {
        padding: 60px 10px; /* Reduziert von 20px für maximale Breite des Texts */
        min-height: calc(100vh - 130px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%; /* Keep text contained within padded screen box */
        margin-top: -7vh;
    }
    
    h2 {
        font-size: 1.5rem;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* 25% increased from 2rem for Mobile */
    }
    
    .hero-content p {
        font-size: 1.1rem;
        color: var(--light-text);
        font-weight: 300;
        text-align: center;
        margin: 0 auto;
        max-width: 100%; /* Nutzen der vollen verfügbaren Breite */
        hyphens: none;
        -webkit-hyphens: none;
    }
    .areas-section .container, .leistungen-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .accordion-header {
        width: 100%;
        font-size: 17px;
    }
    .accordion-content {
        width: 100%;
        margin-left: 0;
    }

    .accordion {
        margin-left: 0; /* Reset for mobile */
        margin: 0 auto;
    }

    .accordion-header {
        font-size: 17px; /* Updated to size 17 */
        padding: 20px 20px 15px 20px; /* adjusted for cards on mobile */
        width: 100%;
    }

    .contact-info {
        padding: 25px 20px;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .footer-links a {
        margin: 0;
        font-size: 11px;
        max-width: 45vw;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .nav-right ul {
        justify-content: flex-end;
        gap: 15px;
    }

    /* Mobile Readability Improvements */
    .split-depth-card {
        padding: 20px 12px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .about-section .container, 
    .about-container, 
    .leistungen-container, 
    .areas-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .team-text-container {
        padding: 20px 12px;
    }
    .accordion-header {
        padding: 20px 12px 15px 12px !important;
    }
    .accordion-content {
        padding: 0 12px !important;
    }
    .accordion-item.active .accordion-content {
        padding: 15px 12px 20px 12px !important;
    }
    .about-text p,
    .team-text-container p,
    .accordion-content p {
        font-size: 15px;
        line-height: 1.7;
        text-align: justify;
        font-weight: 400; /* Normaler statt dünner Satz */
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    /* height removed to match body::before perfectly and prevent gradient jumping on mobile */
    background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    z-index: 99999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.hero-logo-img {
    width: 27.5rem; /* Nochmal 15% kleiner */
    height: auto;
    max-width: 90vw;
    display: inline-block;
    vertical-align: middle;
}

#preloader-img {
    opacity: 0;
    will-change: transform, filter, opacity;
    transform: translateZ(0); /* Force GPU layer to prevent 1-frame rendering flicker */
}

#preloader-img.start-anim {
    animation: openLogo 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes openLogo {
    0% {
        transform: scale(0.8); /* Startet mit eleganter Größe */
        opacity: 0;
        filter: blur(10px);
    }
    10% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

/* openLogoMobile removed as it's no longer needed for cropped SVG */



/* Cookie Consent Banner */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(36, 0, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-blue);
    padding: 20px 50px;
    z-index: 999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    color: var(--white);
    -webkit-transform: translateZ(0) translateY(100%);
    transform: translateZ(0) translateY(100%);
    transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
}

#cookie-consent.show {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    max-width: 70%;
}

.cookie-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.cookie-btn.accept {
    background-color: var(--primary-blue);
    color: var(--primary-red);
}

.cookie-btn:hover {
    background-color: rgba(201, 251, 255, 0.2);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background-color: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 768px) {
    #cookie-consent {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    .cookie-text {
        max-width: 100%;
    }
    #cookie-main-view {
        flex-direction: column;
        gap: 15px !important;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .team-member img {
        height: auto;
        width: 100%;
        aspect-ratio: 454 / 727;
    }
    .areas-section .container, .leistungen-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .accordion-header {
        width: 100%;
        font-size: 17px;
    }
    .accordion-content {
        width: 100%;
        margin-left: 0;
    }

}

html:has(#preloader:not([style*="display: none"])) { overflow: hidden; }


.about-container { padding-top: 1cm !important; }

.contact-company-name { font-size: 1.1rem; white-space: nowrap; font-weight: bold; }
@media (max-width: 480px) { .contact-company-name { font-size: 14px; } }
@media (max-width: 360px) { .contact-company-name { font-size: 12px; } }


@media (max-width: 1024px) {
    .hero-logo-img { height: auto !important; }
}
@media (max-width: 768px) {
    .hero-logo-img { height: auto !important; }
}

@keyframes openLogoMobile {
    0% { transform: scale(0.65); opacity: 0; filter: blur(8px); }
    10% { opacity: 1; filter: blur(0px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

@media (max-width: 768px) { .contact-company-name { white-space: normal !important; word-wrap: break-word; } }

    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.4s ease;
}

/* Cookie Consent Banner */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(36, 0, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-blue);
    padding: 20px 50px;
    z-index: 999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    color: var(--white);
    -webkit-transform: translateZ(0) translateY(100%);
    transform: translateZ(0) translateY(100%);
    transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
}

#cookie-consent.show {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    max-width: 70%;
}

.cookie-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.cookie-btn.accept {
    background-color: var(--primary-blue);
    color: var(--primary-red);
}

.cookie-btn:hover {
    background-color: rgba(201, 251, 255, 0.2);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background-color: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 768px) {
    #cookie-consent {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    .cookie-text {
        max-width: 100%;
    }
    #cookie-main-view {
        flex-direction: column;
        gap: 15px !important;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .team-member img {
        height: auto;
        width: 100%;
        aspect-ratio: 454 / 727;
    }
    .areas-section .container, .leistungen-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .accordion-header {
        width: 100%;
        font-size: 17px;
    }
    .accordion-content {
        width: 100%;
        margin-left: 0;
    }

}

html:has(#preloader:not([style*="display: none"])) { overflow: hidden; }


.about-container { padding-top: 1cm !important; }

.contact-company-name { font-size: 1.1rem; white-space: nowrap; font-weight: bold; }
@media (max-width: 480px) { .contact-company-name { font-size: 14px; } }
@media (max-width: 360px) { .contact-company-name { font-size: 12px; } }


@media (max-width: 1024px) {
    .hero-logo-img { height: auto !important; }
}
@media (max-width: 768px) {
    .hero-logo-img { height: auto !important; }
}

@keyframes openLogoMobile {
    0% { transform: scale(0.65); opacity: 0; filter: blur(8px); }
    10% { opacity: 1; filter: blur(0px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

@media (max-width: 768px) { .contact-company-name { white-space: normal !important; word-wrap: break-word; } }

@media (max-width: 768px) { body { padding-bottom: 90px !important; } }

/* Hide Cookiebot until preloader is done */
body:not(.anim-done) #CybotCookiebotDialog {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    body.is-contact-page {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        padding-bottom: 40px !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }
    body.is-contact-page main.container {
        display: block !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 768px) {
    section { scroll-margin-top: 150px !important; }
}

/* Hide Cookiebot during preloader animation */
body:not(.anim-done) #CybotCookiebotDialog,
body:not(.anim-done) #CybotCookiebotDialogBodyUnderlay {
    display: none !important;
}

/* Contact Grid & Form Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-form-wrapper {
    width: 100%;
    height: 533px;
    position: relative;
}

.contact-form-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s ease;
    padding: 30px;
    z-index: 1;
}

.contact-form-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 251, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(201, 251, 255, 0.08);
}

/* Icon styles removed */

.trigger-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.trigger-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    max-width: 320px;
}

/* Loading Spinner styles */
.contact-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.contact-form-loader.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 251, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Preloading Iframe Container */
.contact-form-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.98);
}

.contact-form-iframe-wrapper.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: scale(1);
}

.contact-form-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none !important;
    display: block;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrapper {
        height: 533px;
        max-width: 100%;
    }
}

/* Override contact-form-wrapper to adjust dynamically to the native HTML form height */
.contact-form-wrapper {
    height: auto !important;
}

/* Contact Form Styling */
.contact-form-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 251, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(201, 251, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(201, 251, 255, 0.25);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background-color: #3e000c;
    color: var(--white);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.form-checkbox-label {
    font-size: 12px;
    color: rgba(201, 251, 255, 0.7);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    color: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--white);
    color: var(--primary-red);
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-blue);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 5px;
    display: none;
}

.contact-intro {
    max-width: 450px;
    margin-bottom: 35px;
    text-align: center;
}

.contact-intro .intro-bold {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 15px;
}

.contact-intro .intro-sub {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(201, 251, 255, 0.85);
}

/* CONSOLIDATED MOBILE FIXES & ANIMATION OVERRIDES */
@keyframes openLogoMobile {
    0%   { transform: scale(0.65); opacity: 0; filter: blur(8px); }
    10%  { opacity: 1; filter: blur(0px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

@media (max-width: 768px) { 
    html { overflow-x: hidden !important;  }
    body { overflow-x: visible !important; background-color: transparent !important; padding-top: 130px !important; padding-bottom: 90px !important; }
    
    header.sticky-nav { 
        position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; 
        z-index: 10000 !important; padding-top: 15px !important; flex-direction: column !important; 
        align-items: center !important; 
        border-bottom: 3px solid var(--primary-blue) !important; 
    }
    
    #preloader { 
        top: 0 !important; bottom: 0 !important; height: 100dvh !important; position: fixed !important; 
        background: radial-gradient(circle at 50% 40%, #68051a 0%, var(--primary-red) 70%, #240006 100%) !important; 
    }
    
    .logo-container a { height: auto !important; display: block !important; }
    .logo { width: 285px !important; max-width: 80vw !important; display: block !important; margin: 0 auto 10px auto !important; }
    
    .hero-section { width: 100% !important; min-height: 100dvh !important; padding-bottom: 0 !important; }
    .hero-content { margin-top: -130px !important; }
    
    .hero-logo-img, #preloader-img { 
        width: 95vw !important; max-width: 95vw !important; height: auto !important; 
        display: block !important; margin: 0 auto !important; 
    }
    
    #preloader-img.start-anim { animation: openLogoMobile 3.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
    
    .contact-container { min-height: auto !important; padding-bottom: 150px !important; padding-top: 40px !important; }
    
    footer { display: block !important; opacity: 1 !important; visibility: visible !important; }
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
}

.min-h-60vh {
    min-height: 60vh !important;
}
.mt-0 {
    margin-top: 0 !important;
}
.flex-center-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.flex-column {
    display: flex !important;
    flex-direction: column !important;
}
.m-0 {
    margin: 0 !important;
}
.mt-2 {
    margin-top: 2px !important;
}
.font-weight-500 {
    font-weight: 500 !important;
}
.linkedin-icon-link {
    color: var(--primary-blue) !important;
}
.team-text-title {
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-top: 2px;
    font-weight: 500;
}
html.skip-anim #preloader { display: none !important; }
html.skip-anim #preloader-img, 
html.skip-anim #hero-title, 
html.skip-anim #hero-subtitle, 
html.skip-anim .vision-heading, 
html.skip-anim .collab-heading, 
html.skip-anim .about-text { 
    opacity: 1 !important; filter: none !important; animation: none !important; transition: none !important; transform: translateZ(0) scale(1) !important;
}

/* SEO STYLING & UTILITY CLASSES */
.mb-25 {
    margin-bottom: 25px !important;
}
.contact-info-details {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 1.5cm !important;
}
.contact-divider {
    width: 80px !important;
    margin: 20px auto !important;
    border: none !important;
    border-top: 1px solid var(--primary-blue) !important;
}
.contact-social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    color: var(--primary-blue) !important;
}
.contact-optional-label {
    font-size: 10px !important;
    opacity: 0.7 !important;
}
.about-text-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}
.page-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.page-title::after {
    display: none !important;
}

.legal-content {
    text-align: left !important;
    max-width: 800px !important;
    margin: 0 auto;
}
.legal-content h3 {
    margin-bottom: 20px !important;
    color: var(--primary-blue) !important;
    font-size: 1.2rem !important;
}
.legal-content hr {
    border: none !important;
    border-top: 2px solid #c9fbff !important;
    margin: 30px 0 !important;
}

