/* ================== Grund-Setup & Schriftart (DARK MODE) ================== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #f5f5f5; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ================== Layout Container ================== */
.container, .container-center, .container-split {
    width: 90%;
    max-width: 12800px;
    margin: 0 auto;
}

/* ================== Header (DARK MODE) ================== */
header {
    background-color: transparent;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, border-bottom-color 0.4s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom-color: #222;
    backdrop-filter: blur(10px);
}

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

header .logo {
    text-decoration: none;
}

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

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    color: #aaa;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #fff;
}

/* ================== Buttons (DARK MODE) ================== */
.button {
    background-color: #00ffd5;
    color: #111;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #00ffd5;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: #00ffd5;
    opacity: 0.8;
}

.button-secondary {
    background-color: transparent;
    color: #f5f5f5;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid #555;
    transition: all 0.2s ease;
}

.button-secondary:hover {
     background-color: #222;
     border-color: #777;
}

/* ================== Hero Sektion (DARK MODE) ================== */
.hero {
    text-align: center;
    padding: 0px 0 70px 0;
}

.hero .container-center {
    max-width: auto;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 80px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #fff;
}

h1 em {
    font-style: italic;
    font-weight: normal; 
}

.hero p {
    font-size: 20px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== Stile für das Hero-Bild & Buttons ================== */
.hero-image {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
}

.hero-image img {
    width: 100%;
    display: block;
}

.hero-buttons {
    margin-top: 40px;
}

/* ================== Logo Section ================== */
.logo-section {
    padding: 0px 0;
    overflow: hidden;
    white-space: nowrap;
}

.logo-bar {
    display: inline-block;
    animation: scroll-left 60s linear infinite;
}

.logo-bar img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    margin: 0 60px;
}

.logo-bar img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}


/* ================== Allgemeine Sektions-Abstände ================== */
.feature,
.stats-section,
.integrations-section {
    padding: 70px 0;
}

/* NEUE REGEL: Korrigiert den Anker-Link-Abstand für den Sticky Header */
section[id] {
    scroll-margin-top: 100px;
}

/* ================== Playfair/DM Serif Text Block Section ================== */
.playfair-text-block {
    font-family: 'DM Serif Display', serif;
    font-size: 64px;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
    color: #aaa;
    padding: 0 40px; 
    box-sizing: border-box;
}

.playfair-text-block .highlight-white {
    color: #fff;
    display: block;
    margin-bottom: 0px;
}

/* ================== Statistics Section ================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid #222;
    border-radius: 16px;
    min-height: 300px;
    overflow-wrap: break-word;
    min-width: 0;
}

.stat-description {
    font-size: 17px;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1; 
}

.stat-number {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 600;
    color: #fff;
    line-height: 1;
    margin: 40px 0 10px 0;
    white-space: nowrap;
}

.stat-label {
    font-size: 17px;
    color: #aaa;
    margin: 0;
}

/* ================== Solutions Intro & Sticky Section ================== */
.solutions-intro-section {
    padding: 100px 0 20px 0;
    background-color: #000;
}

.intro-text-container {
    width: 100%;
    max-width: none;
    padding: 0 4vw;
    box-sizing: border-box;
}

.intro-text-container .playfair-text-block {
    padding-left: 0;
    padding-right: 0;
}

.solutions-sticky-section {
    padding: 20px 0 50px 0;
}

.solutions-sticky-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.solutions-prose {
    padding-top: 15vh;
}

.solutions-prose .prose-step {
    padding: 20px 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1; 
}

.solutions-prose .prose-step:last-of-type {
    padding-bottom: 20vh;
}

.solution-title {
    font-size: 22px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0 0 10px 0;
}

.solution-description {
    font-size: 17px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

.solution-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.solution-description li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.solution-description li::before {
    content: '•';
    color: #00ffd5;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;
}

.solutions-visual {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
}

.visual-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.visual-wrapper .solution-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.visual-wrapper .solution-image.is-active {
    opacity: 1;
}


/* ================== Integrations Section ================== */
.integrations-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    max-width: 1240px;
    margin: 0 auto;
}

.logo-image-container img {
    max-width: 450px; 
    width: 100%;
    display: block;
    margin: 0 auto;
}

.integrations-headline {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #fff;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 18px;
    color: #aaa;
    padding-left: 30px;
    position: relative;
    margin-bottom: 20px;
}

.feature-list li::before {
    content: '•';
    color: #00ffd5;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;
}

.button-wrapper {
    margin-top: 40px;
}

/* ================== Contact Section FINAL ================== */
.contact-intro-section {
    padding: 70px 0 0;
}

.contact-section {
    padding: 0 0 70px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center; 
    width: 100%;
    box-sizing: border-box;
    padding: 0 4vw;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.contact-form label {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.contact-form .button {
    width: 100%;
    padding: 15px;
    font-size: 17px;
}

/* ================== Testimonial Styles (im Kontaktbereich) ================== */
.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.6;
    color: #aaa;
    margin: 0 0 20px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
}

.author-info span {
    font-size: 14px;
    color: #777;
}

/* Spezielle Regeln für die Ausrichtung */
.testimonial-card.align-right {
    text-align: right;
    align-self: flex-end;
    width: 95%;
}

.testimonial-card.align-right .testimonial-author {
    justify-content: flex-end;
}

.testimonial-card.align-left {
    align-self: flex-start;
    width: 95%;
}

/* ================== Security Section ================== */
.security-section {
    padding: 0 0 20px 0;
}

.security-grid-container {
    width: 90%;
    max-width: 1140px;
    margin: 60px auto 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.security-card {
    border: 1px solid #222;
    border-radius: 16px;
    padding: 32px;
}

.security-title {
    font-size: 20px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0 0 15px 0;
}

.security-description {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* ================== Feature Cards Sektion ================== */
.feature-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}
.feature-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.feature-card-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.feature-card-background img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease-out; }
.feature-card:hover .feature-card-background img { transform: scale(1.05); }
.feature-card-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%); }
.feature-card-content { position: relative; z-index: 2; max-width: 400px; }
.feature-card h3 { font-family: 'DM Serif Display', serif; font-size: 32px; line-height: 1.2; margin: 0 0 15px 0; }
.feature-card p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}
.dark-card { color: #fff; }
.light-card { background-color: #f5f5f5; color: #111; }
.light-card p { color: #555; }
.light-card .button-secondary { border-color: #aaa; color: #111; }
.light-card .button-secondary:hover { background-color: #e0e0e0; border-color: #888; }
.light-card .feature-card-background::after { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%); }


/* ================== Footer (DARK MODE) ================== */
footer {
    background-color: #000;
    padding: 70px 0;
    border-top: 1px solid #222;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-logo img {
    height: 48px;
    width: auto;
    margin-bottom: 0px;
}

.footer-tagline {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 3;
    justify-content: flex-end;
}

.footer-column {
    min-width: 150px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li a {
    text-decoration: none;
    color: #aaa;
    line-height: 2.5;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

footer li a:hover {
    color: #fff;
}

/* ================== Burger Menu & Mobile Navigation ================== */
.burger-menu-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    header nav,
    .header-button {
        display: none;
    }
    .burger-menu-button {
        display: block;
    }
    header nav {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #111;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    header nav.is-open {
        right: 0;
    }
    header nav ul {
        flex-direction: column;
        text-align: center;
    }
    header nav li {
        margin: 20px 0;
    }
    header nav a {
        font-size: 24px;
        color: #fff;
    }
    .is-open .header-button {
        display: block;
        margin-top: 30px;
    }
    .burger-menu-button.is-active .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu-button.is-active .burger-line:nth-child(2) {
        opacity: 0;
    }
    .burger-menu-button.is-active .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .solutions-sticky-container {
        grid-template-columns: 1fr;
    }
    .solutions-visual {
        display: none;
    }

    .integrations-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .integrations-container .text-content {
        text-align: center;
    }
    .feature-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }
    .integrations-headline {
        font-size: 42px;
    }
}

/* ================== Mobile Responsiveness (für Handys & Tablets) ================== */
@media (max-width: 768px) {

    /* --- Schriftgrößen anpassen --- */
    .hero h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 18px;
    }

    .playfair-text-block {
        font-size: 36px;
        padding: 0 20px;
    }

    .integrations-headline {
        font-size: 38px;
    }

    .feature-card h3 {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 60px;
        word-break: break-all;
    }

    /* --- Layouts anpassen (Grids auf 1 Spalte) --- */
    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 40px;
    }

    /* --- Abstände verringern --- */
    .feature,
    .stats-section,
    .integrations-section {
        padding: 40px 0;
    }
    
    .contact-intro-section {
        padding: 40px 0 0;
    }
    
    .contact-section {
        padding: 0 0 40px;
    }

    .stats-grid,
    .integrations-container,
    .contact-container {
        padding: 0 20px;
    }

    /* --- Kontakt & Testimonial Mobile --- */
     .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-card.align-right,
    .testimonial-card.align-left {
        width: 100%;
        align-self: flex-start;
        text-align: left;
    }

    .testimonial-card.align-right .testimonial-author {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number {
        font-size: 80px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 72px;
    }
}
