/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Markenfarben: Petrol RGB 0 / 114 / 119, Weiß #FFFFFF */
    --petrol: #007277;
    --petrol-dark: #005a5e;
    --petrol-muted: #0a8f94;
    --primary-color: var(--petrol);
    --secondary-color: var(--petrol-muted);
    --bg-light: #e8f2f3;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #2d2d2d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vollhöhe für Seiten-Layout und Sections */
html, body {
    height: 100%;
}

/* Alle Sections mindestens so hoch wie das Browserfenster */
section {
    min-height: 100vh;
}

/* Bessere Unterstützung auf mobilen Browsern mit dynamischen Toolbars */
@supports (height: 100svh) {
    section {
        min-height: 100svh;
    }
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.site-logo {
    height: 90px;
    width: auto;
    display: block;
}

/* Haupt-Menü */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}
.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hintergrund01.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.logo-hero {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    height: 260px;
    width: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 119, 0.35);
}

.cta-button:hover {
    background: var(--petrol-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 119, 0.45);
}

.cta-button-white {
    background: var(--primary-color);
}

.cta-button-white:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* Approach Section */
.approach-section {
    padding: 5rem 2rem;
    background-image: url('images/hintergrund02.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.approach-section .container {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.approach-process {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 240px;
    background-color: #2F2F2F; /* Anthrazit */
    -webkit-mask-image: url('images/prozess.svg');
    mask-image: url('images/prozess.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Zwei-Spalten-Layout für Ansatz */
.approach-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.approach-text {
    text-align: left;
    flex: 1 1 60%;
}
.approach-media {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
}

.client-section {
    margin-top: 3rem;
    text-align: center;
}

.client-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.client-logos {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.client-logos a {
    display: inline-flex;
    align-items: center;
}

.client-logos img {
    max-height: 40px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logos img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Partner-Logos unter Wirkung */
.partner-section {
    margin-top: 3rem;
    text-align: center;
}

.partner-logos {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.partner-logos img {
    max-height: 70px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logos img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.partner-logo-brainexx {
    max-height: 140px !important;
}

/* BCS Logo in Akzentfarbe */
.client-logo-bcs {
    display: inline-block;
    width: 140px;
    height: 40px;
    background-color: #cbff00;
    -webkit-mask-image: url('images/logos/bcsmobile.de.svg');
    mask-image: url('images/logos/bcsmobile.de.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@media (max-width: 900px) {
    .approach-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .approach-text {
        text-align: center;
        flex: 1 1 auto;
    }
    .approach-media {
        width: 100%;
        justify-content: center;
    }
    .approach-process {
        max-width: 300px;
        height: 200px;
        margin-top: 1rem;
    }

    .impact-grid {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    .impact-text {
        text-align: center;
    }
}
/* Linksbündiger Block-Stil für Rechtstexte (Impressum/Datenschutz) */
.legal-section .container {
    text-align: left;
    max-width: 900px;
}
.legal-section p,
.legal-section ul,
.legal-section ol {
    margin-bottom: 1rem;
}
.legal-section ul,
.legal-section ol {
    padding-left: 2rem;
}
.legal-section li {
    margin-left: 0.25rem;
}
.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Sub-Headings und Abstände für Rechtstexte */
.section-heading {
    font-size: 2rem;
    margin-top: 2rem;
    color: var(--primary-color);
}
.section-subtitle {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.section-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.section-credits {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Impact Section */
.impact-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
}

.impact-section .container {
    text-align: center;
    max-width: 1000px;
}

/* Wirkung: Bild + Text nebeneinander */
.impact-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.impact-media {
    flex: 0 0 260px;
}

.impact-portrait {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.impact-text {
    flex: 1 1 0;
    text-align: left;
}

.tuv-link {
    display: inline-block;
    margin-top: 1.5rem;
}

.tuv-badge {
    height: 80px;
    width: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.contact-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-video-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-video {
    max-width: 720px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}

/* Form Section */
.form-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.form-section .container {
    max-width: 1000px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.contact-info-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--petrol-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 114, 119, 0.35);
}

/* Footer */
.footer {
    background: #003d41;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #EAF2F3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #FFFFFF;
    text-decoration: underline;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 1;
}

/* Animations */

/* Impressum ECG Logo */
.impressum-ecg {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 1rem 0 2rem;
    opacity: 0.95;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .site-logo {
        height: 72px;
    }

    .hero-logo {
        height: 120px;
    }

    .footer-logo {
        height: 50px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .main-nav ul {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .main-nav a {
        font-weight: 500;
        font-size: 0.95rem;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-section {
        padding: 6rem 1.5rem 4rem;
    }

    .approach-section,
    .impact-section,
    .contact-section,
    .form-section {
        padding: 3rem 1.5rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 63px;
    }

    .hero-logo {
        height: 90px;
    }

    .footer-logo {
        height: 40px;
    }

    .header-container {
        padding: 0 1rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* LinkedIn in der Navigation (alle Seiten) */
.nav-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--petrol);
    line-height: 0;
}

.nav-linkedin:hover {
    opacity: 0.85;
}

.site-header--sub .site-logo {
    height: 48px;
}

body:not(.home) section.legal-section {
    padding-top: 7rem;
}

/* Rechtstexte (Impressum / Datenschutz / AGB) im aktuellen Design-Stil */
.legal-page {
    background: var(--bg-white);
    color: #000;
}

.legal-page .legal-section {
    background: var(--bg-white);
    padding: clamp(7.5rem, 10vw, 9.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 5vw, 4.5rem);
    min-height: auto;
}

.legal-page .legal-section .container {
    max-width: 1180px;
    margin: 0 auto;
    text-align: left;
}

.legal-page .section-title {
    font-size: clamp(2.2rem, 3.15vw, 3rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
}

.legal-page .section-heading {
    font-size: clamp(1.95rem, 2.6vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-top: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: clamp(1rem, 1.6vw, 1.4rem);
}

.legal-page .section-subtitle {
    font-size: clamp(1.35rem, 1.9vw, 1.85rem);
    line-height: 1.12;
    font-weight: 700;
    color: #000;
    margin-top: clamp(1.4rem, 2.1vw, 1.9rem);
    margin-bottom: clamp(0.7rem, 1.1vw, 1rem);
}

.legal-page .legal-section p,
.legal-page .legal-section li {
    font-size: clamp(1.12rem, 1.42vw, 1.28rem);
    line-height: 1.34;
    color: #000;
}

.legal-page .legal-section p {
    margin-bottom: clamp(0.8rem, 1.2vw, 1.1rem);
}

.legal-page .legal-section ul,
.legal-page .legal-section ol {
    padding-left: 1.35rem;
}

.legal-page .legal-section a {
    color: var(--petrol-dark);
    text-decoration-color: var(--petrol-dark);
    text-underline-offset: 0.12em;
    text-decoration-thickness: 0.08em;
}

.legal-page .legal-section a:hover {
    color: var(--petrol);
    text-decoration-color: var(--petrol);
}

.legal-page--impressum .impressum-ecg {
    margin: clamp(0.9rem, 1.4vw, 1.2rem) 0 clamp(1.4rem, 2.2vw, 2rem);
}

@media (max-width: 768px) {
    .legal-page .section-heading {
        font-size: clamp(1.55rem, 5.3vw, 1.9rem);
        line-height: 1.1;
    }

    .legal-page .section-subtitle {
        font-size: clamp(1.16rem, 4.3vw, 1.36rem);
        line-height: 1.16;
    }

    .legal-page .legal-section p,
    .legal-page .legal-section li {
        font-size: clamp(1rem, 3.6vw, 1.08rem);
        line-height: 1.38;
    }
}


