/* ============================================================================
 * O PLUS landing-page — main stylesheet
 *
 * Port of the React/Tailwind build at _legacy_react/src to handwritten CSS.
 * All section styles follow a BEM-ish naming convention that mirrors the
 * class hooks baked into templates/*.php. The CMS injects --primary-hsl and
 * --font-body at runtime in _layout_head.php so a CI-colour change needs no
 * CSS rebuild.
 *
 * Structure
 *   1. Reset & base
 *   2. Design tokens (custom properties)
 *   3. Typography
 *   4. Layout primitives (.container, grids, stacks)
 *   5. Utilities ported from the old Tailwind layer (gradient-hero, glass-card…)
 *   6. Components (.btn, icons, form controls)
 *   7. Header + mobile menu
 *   8. Hero
 *   9. Problem/Solution
 *  10. Services (including expandable cards)
 *  11. Process
 *  12. About me
 *  13. Why us
 *  14. Trust
 *  15. FAQ
 *  16. Contact
 *  17. Footer
 *  18. Legal pages (impressum / datenschutz)
 *  19. Consent banner
 *  20. Keyframes + reduced-motion overrides
 * ========================================================================== */


/* ------------------------------------------------------------------ */
/* 1. Reset & base                                                     */
/* ------------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--fg));
    background: hsl(var(--bg));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

hr {
    border: 0;
    height: 1px;
    background: hsl(var(--border));
    margin: 0;
}

/* Screen-reader-only helper (keeps label text for a11y without showing it). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid hsl(var(--primary-hsl));
    outline-offset: 2px;
    border-radius: 4px;
}


/* ------------------------------------------------------------------ */
/* 2. Design tokens                                                    */
/* ------------------------------------------------------------------ */

:root {
    /* --primary-hsl and --font-body are injected by _layout_head.php. */
    --bg:          0 0% 100%;
    --fg:          217 33% 17%;
    --muted:       0 0% 96%;
    --muted-fg:    217 15% 45%;
    --border:      0 0% 90%;
    --card:        0 0% 100%;
    --card-fg:     217 33% 17%;

    --primary-fg:  0 0% 100%;

    --radius-sm:   0.375rem;
    --radius:      0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-full: 9999px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    --shadow-sm:   0 1px 2px hsl(217 33% 17% / 0.05);
    --shadow:      0 4px 6px -1px hsl(217 33% 17% / 0.06), 0 2px 4px -2px hsl(217 33% 17% / 0.05);
    --shadow-md:   0 10px 15px -3px hsl(217 33% 17% / 0.08), 0 4px 6px -4px hsl(217 33% 17% / 0.05);
    --shadow-lg:   0 20px 25px -5px hsl(217 33% 17% / 0.10), 0 8px 10px -6px hsl(217 33% 17% / 0.05);
    --shadow-xl:   0 25px 50px -12px hsl(217 33% 17% / 0.20);

    --header-height: 72px;
    --container-max: 1280px;

    --transition-fast: 150ms ease;
    --transition:      250ms ease;
    --transition-slow: 400ms ease;
}


/* ------------------------------------------------------------------ */
/* 3. Typography                                                       */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: hsl(var(--fg));
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.3;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.4;
}

p {
    color: hsl(var(--fg));
}

.text-balance {
    text-wrap: balance;
}

.text-gradient {
    color: hsl(var(--primary-hsl));
}

.font-display {
    font-family: var(--font-display);
}


/* ------------------------------------------------------------------ */
/* 4. Layout primitives                                                */
/* ------------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

.stack > * + * {
    margin-top: var(--space-4);
}


/* ------------------------------------------------------------------ */
/* 5. Utilities                                                        */
/* ------------------------------------------------------------------ */

.gradient-hero {
    background: linear-gradient(
        135deg,
        hsl(0 0% 100%) 0%,
        hsl(217 30% 98%) 50%,
        hsl(217 20% 96%) 100%
    );
}

.gradient-section {
    background: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 98%) 100%);
}

.gradient-section-alt {
    background: linear-gradient(180deg, hsl(0 0% 98%) 0%, hsl(0 0% 100%) 100%);
}

.grid-pattern {
    background-image:
        linear-gradient(hsl(0 0% 90% / 0.5) 1px, transparent 1px),
        linear-gradient(90deg, hsl(0 0% 90% / 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}

.spotlight {
    background: radial-gradient(
        ellipse 80% 50% at 50% -20%,
        hsl(var(--primary-hsl) / 0.05) 0%,
        transparent 60%
    );
}

.glass-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow:
        0 4px 6px -1px hsl(217 33% 17% / 0.05),
        0 2px 4px -2px hsl(217 33% 17% / 0.05);
    border-radius: var(--radius-lg);
}

.glow-cyan {
    box-shadow:
        0 4px 15px hsl(var(--primary-hsl) / 0.1),
        0 2px 6px hsl(var(--primary-hsl) / 0.05);
}

.glow-cyan-strong {
    box-shadow:
        0 8px 25px hsl(var(--primary-hsl) / 0.2),
        0 4px 10px hsl(var(--primary-hsl) / 0.1);
}

.line-gradient {
    background: linear-gradient(
        90deg,
        transparent 0%,
        hsl(var(--primary-hsl) / 0.3) 50%,
        transparent 100%
    );
    height: 1px;
    width: 100%;
}

.icon-glow {
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    border-radius: var(--radius);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}


/* ------------------------------------------------------------------ */
/* 6. Components                                                       */
/* ------------------------------------------------------------------ */

/* --- Icons (lucide renders as inline <svg>). The data-icon hook on the svg
   lets section styles add stroke colour / size without touching the template. */
.icon {
    display: inline-block;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--primary {
    color: hsl(var(--primary-hsl));
}

/* --- Button system ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    min-height: 42px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline-offset: 3px;
}

.btn--primary {
    background: hsl(var(--primary-hsl));
    color: hsl(var(--primary-fg));
    box-shadow: 0 4px 15px hsl(var(--primary-hsl) / 0.25);
}

.btn--primary:hover {
    background: hsl(var(--primary-hsl) / 0.92);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--primary-hsl) / 0.35);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    background: transparent;
    color: hsl(var(--primary-hsl));
    border-color: hsl(var(--primary-hsl) / 0.4);
}

.btn--outline:hover {
    background: hsl(var(--primary-hsl) / 0.08);
    border-color: hsl(var(--primary-hsl));
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: hsl(var(--fg));
}

.btn--ghost:hover {
    background: hsl(var(--muted));
}

.btn--lg {
    padding: 0.85rem 1.75rem;
    min-height: 52px;
    font-size: 1.05rem;
}

.btn--block {
    width: 100%;
}

.btn__icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.btn__icon--right {
    transition: transform var(--transition);
}

.btn:hover .btn__icon--right {
    transform: translateX(4px);
}


/* ------------------------------------------------------------------ */
/* 7. Header                                                           */
/* ------------------------------------------------------------------ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: hsl(0 0% 100% / 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.header.is-scrolled {
    background: hsl(0 0% 100% / 0.95);
    border-bottom-color: hsl(var(--border));
    box-shadow: var(--shadow);
}

/* Offset page content so fixed header doesn't overlap. */
main {
    padding-top: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    height: var(--header-height);
}

.header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo {
    height: 40px;
    width: auto;
    max-height: 48px;
}

@media (min-width: 1024px) {
    .header__logo {
        height: 44px;
    }
}

.header__nav {
    display: none;
    gap: var(--space-6);
    align-items: center;
    flex: 1;
    justify-content: center;
}

@media (min-width: 1024px) {
    .header__nav {
        display: flex;
    }
}

.header__nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: hsl(var(--fg));
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: hsl(var(--primary-hsl));
    transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
    color: hsl(var(--primary-hsl));
}

.header__nav-link:hover::after,
.header__nav-link:focus-visible::after {
    width: 100%;
}

.header__actions {
    display: none;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 1024px) {
    .header__actions {
        display: flex;
    }
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--fg));
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.header__phone:hover {
    color: hsl(var(--primary-hsl));
    background: hsl(var(--primary-hsl) / 0.06);
}

.header__phone-icon {
    color: hsl(var(--primary-hsl));
}

.header__cta {
    /* inherits .btn .btn--primary from template */
}

.header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: transparent;
    transition: background var(--transition-fast);
}

.header__menu-toggle:hover {
    background: hsl(var(--muted));
}

@media (min-width: 1024px) {
    .header__menu-toggle {
        display: none;
    }
}

.header__menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.header__menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: hsl(var(--fg));
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-icon span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu sheet — toggled by JS via the `hidden` attribute. */
.header__mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: hsl(0 0% 100%);
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    animation: slide-down var(--transition-slow) ease-out;
}

.header__mobile[hidden] {
    display: none;
}

@media (min-width: 1024px) {
    .header__mobile,
    .header__mobile[hidden] {
        display: none !important;
    }
}

.header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.header__mobile-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    font-size: 1.15rem;
    font-weight: 600;
    color: hsl(var(--fg));
    transition: background var(--transition-fast), color var(--transition-fast);
}

.header__mobile-link:hover,
.header__mobile-link:focus-visible {
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
}

.header__mobile-sep {
    margin: var(--space-3) 0;
}

.header__mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(var(--fg));
}

.header__mobile-phone-icon {
    color: hsl(var(--primary-hsl));
}

.header__mobile-cta {
    margin-top: var(--space-2);
}


/* ------------------------------------------------------------------ */
/* 8. Hero                                                             */
/* ------------------------------------------------------------------ */

.hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(0 0% 100%) 0%,
        hsl(217 30% 98%) 50%,
        hsl(217 20% 96%) 100%
    );
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-20) 0 var(--space-16);
    }
}

.hero__bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(hsl(0 0% 90% / 0.5) 1px, transparent 1px),
        linear-gradient(90deg, hsl(0 0% 90% / 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero__bg-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 80% 50% at 50% -20%,
        hsl(var(--primary-hsl) / 0.05) 0%,
        transparent 60%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    min-width: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    width: auto;
    align-self: flex-start;
    max-width: 100%;
    border-radius: var(--radius-full);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow:
        0 4px 15px hsl(var(--primary-hsl) / 0.1),
        0 2px 6px hsl(var(--primary-hsl) / 0.05);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero__badge-icon {
    color: hsl(var(--primary-hsl));
    flex-shrink: 0;
}

.hero__badge-text {
    line-height: 1.4;
    word-break: break-word;
}

.hero__headline-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero__subheadline {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: hsl(var(--muted-fg));
    max-width: 36rem;
    line-height: 1.6;
}

.hero__quote {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: hsl(var(--primary-hsl));
    border-left: 2px solid hsl(var(--primary-hsl));
    padding-left: 1rem;
    line-height: 1.5;
}

.hero__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero__benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .hero__benefit {
        gap: 1rem;
    }
}

.hero__benefit-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.hero__benefit:hover .hero__benefit-icon {
    box-shadow:
        0 4px 15px hsl(var(--primary-hsl) / 0.15),
        0 2px 6px hsl(var(--primary-hsl) / 0.1);
}

.hero__benefit-text {
    padding-top: 0.4rem;
    color: hsl(var(--fg) / 0.9);
    min-width: 0;
    word-break: break-word;
    line-height: 1.5;
}

.hero__ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .hero__ctas {
        flex-direction: row;
    }
}

.hero__portrait {
    position: relative;
    /* Padding-bottom reserves space for the overlapping nameplate card */
    padding-bottom: var(--space-8);
}

.hero__portrait-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: hsl(var(--muted));
    box-shadow:
        0 25px 50px -12px hsl(var(--primary-hsl) / 0.2),
        0 10px 20px hsl(217 33% 17% / 0.08);
}

.hero__portrait-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero__nameplate {
    /* Overlapping card — bottom-right on mobile, bottom-left on desktop */
    position: absolute;
    bottom: 0;
    right: 1rem;
    left: auto;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    text-align: left;
    box-shadow:
        0 10px 25px -5px hsl(217 33% 17% / 0.15),
        0 6px 10px -6px hsl(217 33% 17% / 0.1);
    max-width: 280px;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero__nameplate {
        /* Desktop: bottom-left corner, slightly sticking out past the frame */
        left: -1rem;
        right: auto;
    }
}

.hero__nameplate-name {
    font-weight: 700;
    font-size: 1rem;
    color: hsl(var(--fg));
}

.hero__nameplate-role {
    font-size: 0.85rem;
    color: hsl(var(--muted-fg));
    margin-top: 0.15rem;
}

/* Trust row + embedded video card */
.hero__trust {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.hero__trust-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    justify-items: center;
}

.hero__trust-badges > .hero__trust-badge {
    width: 100%;
    text-align: center;
}

@media (min-width: 640px) {
    .hero__trust-badges {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-4);
        justify-content: center;
    }
    .hero__trust-badges > .hero__trust-badge {
        width: auto;
    }
}

.hero__trust-badge {
    padding: 0.65rem 1.35rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(217 25% 25%);
    box-shadow:
        0 1px 2px hsl(217 33% 17% / 0.04),
        0 1px 3px hsl(217 33% 17% / 0.06);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
                transform var(--transition-fast), color var(--transition-fast);
    cursor: default;
}

.hero__trust-badge:hover {
    border-color: hsl(var(--primary-hsl) / 0.4);
    color: hsl(var(--primary-hsl));
    box-shadow:
        0 0 0 3px hsl(var(--primary-hsl) / 0.08),
        0 4px 8px hsl(var(--primary-hsl) / 0.08);
    transform: translateY(-1px);
}

.hero__video {
    display: grid;
    gap: var(--space-6);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .hero__video {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: stretch;
        padding: var(--space-6);
    }
}

.hero__video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--muted));
}

.hero__video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero__video-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}

.hero__video-heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.hero__video-para {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.55;
}


/* ------------------------------------------------------------------ */
/* 9. Problem / Solution                                               */
/* ------------------------------------------------------------------ */

.problem-solution {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 98%) 100%);
}

@media (min-width: 768px) {
    .problem-solution {
        padding: var(--space-20) 0;
    }
}

.problem-solution__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-12);
}

.problem-solution__headline {
    text-wrap: balance;
}

.problem-solution__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .problem-solution__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .problem-solution__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.problem-solution__card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.problem-solution__card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary-hsl) / 0.3);
    box-shadow: var(--shadow-md);
}

.problem-solution__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius);
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.problem-solution__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.problem-solution__card-desc {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.55;
}


/* ------------------------------------------------------------------ */
/* 10. Services                                                        */
/* ------------------------------------------------------------------ */

.services {
    padding: var(--space-16) 0;
    background: hsl(0 0% 100%);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 768px) {
    .services {
        padding: var(--space-20) 0;
    }
}

.services__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-12);
}

.services__badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    color: hsl(var(--primary-hsl));
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: var(--space-4);
}

.services__headline {
    text-wrap: balance;
    margin-bottom: var(--space-4);
}

.services__intro {
    color: hsl(var(--muted-fg));
    font-size: 1.05rem;
    line-height: 1.65;
}

.services__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.services__card {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.services__card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary-hsl) / 0.3);
    box-shadow: var(--shadow-md);
}

.services__card-summary {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
}

.services__card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius);
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}

.services__card-icon--lg {
    width: 4rem;
    height: 4rem;
}

.services__card:hover .services__card-icon {
    background: hsl(var(--primary-hsl) / 0.12);
}

.services__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.services__card-desc {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.services__card-partner {
    padding-top: var(--space-3);
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.services__card-partner-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.services__card-partner-link {
    display: inline-flex;
    align-items: center;
}

.services__card-partner-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
}

.services__card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    color: hsl(var(--primary-hsl));
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: gap var(--transition);
}

.services__card-more:hover {
    gap: 0.75rem;
}

.services__card-more-icon {
    transition: transform var(--transition);
}

.services__card-more:hover .services__card-more-icon {
    transform: translateX(3px);
}

/* Details panel — hidden by default, expanded when card carries `.is-expanded`.
   When expanded the card spans the full grid width and the summary block is
   hidden so the user only sees the detail panel. */
.services__card-details {
    display: none;
    padding: var(--space-6);
}

@media (min-width: 768px) {
    .services__card-details {
        padding: var(--space-8);
    }
}

.services__card.is-expanded {
    grid-column: 1 / -1;
    transform: none !important;
    border-color: hsl(var(--primary-hsl) / 0.4);
    box-shadow: var(--shadow-lg);
}

.services__card.is-expanded .services__card-summary {
    display: none;
}

.services__card.is-expanded .services__card-details {
    display: block;
    animation: fade-in var(--transition-slow) ease-out;
}

.services__card-close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: hsl(var(--muted-fg));
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: var(--space-6);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.services__card-close:hover {
    color: hsl(var(--primary-hsl));
    background: hsl(var(--primary-hsl) / 0.06);
}

.services__card-close-icon {
    transform: scaleX(-1);
}

.services__card-details-grid {
    display: grid;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 768px) {
    .services__card-details-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }
}

.services__card-details-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.services__card-detail-headline {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.services__card-detail-intro {
    color: hsl(var(--muted-fg));
    font-size: 1rem;
    line-height: 1.6;
}

.services__card-detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.services__card-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.services__card-detail-check {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* --- Additional services accordion --- */
.services__additional {
    margin-top: var(--space-16);
}

.services__additional-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.services__additional-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 52rem;
    margin: 0 auto;
}

.services__additional-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.services__additional-item[open] {
    border-color: hsl(var(--primary-hsl) / 0.4);
}

.services__additional-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.services__additional-summary::-webkit-details-marker {
    display: none;
}

.services__additional-summary:hover {
    background: hsl(var(--primary-hsl) / 0.04);
}

.services__additional-title {
    font-size: 1rem;
}

.services__additional-chev {
    color: hsl(var(--primary-hsl));
    flex-shrink: 0;
    transition: transform var(--transition);
    transform: rotate(0deg);
}

.services__additional-item[open] .services__additional-chev {
    transform: rotate(90deg);
}

.services__additional-body {
    padding: 0 var(--space-5) var(--space-5);
    color: hsl(var(--muted-fg));
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.services__additional-partner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: var(--space-3);
    border-top: 1px solid hsl(var(--border));
}

.services__additional-partner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services__additional-partner-logo {
    max-width: 100px;
    max-height: 36px;
    object-fit: contain;
}


/* ------------------------------------------------------------------ */
/* 11. Process                                                         */
/* ------------------------------------------------------------------ */

.process {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, hsl(0 0% 98%) 0%, hsl(0 0% 100%) 100%);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 768px) {
    .process {
        padding: var(--space-20) 0;
    }
}

.process__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-12);
}

.process__badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    color: hsl(var(--primary-hsl));
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: var(--space-4);
}

.process__timeline {
    position: relative;
    max-width: 46rem;
    margin: 0 auto;
}

.process__line {
    position: absolute;
    left: 1.625rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg,
        hsl(var(--primary-hsl) / 0.4) 0%,
        hsl(var(--primary-hsl) / 0.1) 100%);
    border-radius: 2px;
}

@media (min-width: 640px) {
    .process__line {
        left: 1.9375rem;
    }
}

.process__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.process__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    align-items: flex-start;
    position: relative;
}

@media (min-width: 640px) {
    .process__step {
        gap: var(--space-6);
    }
}

.process__step-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: hsl(var(--primary-hsl));
    color: hsl(var(--primary-fg));
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow:
        0 6px 14px hsl(var(--primary-hsl) / 0.3),
        0 2px 4px hsl(var(--primary-hsl) / 0.15);
}

@media (min-width: 640px) {
    .process__step-number {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
}

.process__step-body {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.process__step:hover .process__step-body {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.process__step-head {
    /* Titel + Duration direkt nebeneinander (Inline-Flow),
       nicht auseinandergedrängt (war: justify-content: space-between) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.process__step-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.process__step-duration {
    font-size: 0.8rem;
    color: hsl(var(--primary-hsl));
    background: hsl(var(--primary-hsl) / 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    white-space: nowrap;
}

.process__step-desc {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.6;
}

.process__cta {
    margin-top: var(--space-12);
    text-align: center;
}


/* ------------------------------------------------------------------ */
/* 12. About me                                                        */
/* ------------------------------------------------------------------ */

.about {
    padding: var(--space-16) 0;
    background: hsl(0 0% 100%);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 768px) {
    .about {
        padding: var(--space-20) 0;
    }
}

.about__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: var(--space-16);
    }
}

.about__portrait {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about__portrait {
        margin: 0;
    }
}

.about__portrait-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: hsl(var(--muted));
    box-shadow:
        0 25px 50px -12px hsl(var(--primary-hsl) / 0.2),
        0 10px 20px hsl(217 33% 17% / 0.08);
}

.about__portrait-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about__portrait-badge {
    position: absolute;
    right: -0.75rem;
    bottom: -0.75rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    align-self: flex-start;
}

.about__name {
    text-wrap: balance;
    margin-top: var(--space-3);
}

.about__intro {
    color: hsl(var(--muted-fg));
    font-size: 1.05rem;
    line-height: 1.65;
    margin-top: var(--space-4);
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.about__highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.55;
}

.about__highlight-icon {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.about__education {
    margin-top: var(--space-4);
}

.about__education-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.about__education-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.about__education-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-left: 2px solid hsl(var(--primary-hsl) / 0.3);
    background: hsl(var(--primary-hsl) / 0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.about__education-year {
    color: hsl(var(--primary-hsl));
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.about__education-title {
    color: hsl(var(--fg));
    font-size: 0.95rem;
}


/* ------------------------------------------------------------------ */
/* 13. Why us                                                          */
/* ------------------------------------------------------------------ */

.why-us {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 98%) 100%);
}

@media (min-width: 768px) {
    .why-us {
        padding: var(--space-20) 0;
    }
}

.why-us__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-12);
}

.why-us__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.why-us__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-us__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-us__card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-align: left;
}

.why-us__card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary-hsl) / 0.3);
    box-shadow: var(--shadow-md);
}

.why-us__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.why-us__card:hover .why-us__icon {
    background: hsl(var(--primary-hsl) / 0.14);
}

.why-us__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.why-us__card-desc {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ------------------------------------------------------------------ */
/* 14. Trust                                                           */
/* ------------------------------------------------------------------ */

.trust {
    padding: var(--space-16) 0;
    background: hsl(0 0% 100%);
}

@media (min-width: 768px) {
    .trust {
        padding: var(--space-20) 0;
    }
}

.trust__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-10);
}

.trust__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.trust__intro {
    color: hsl(var(--muted-fg));
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: var(--space-3);
}

.trust__industries {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 64rem;
    margin: 0 auto var(--space-16);
}

@media (min-width: 768px) {
    .trust__industries {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.trust__industry {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(217 25% 25%);
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

.trust__industry:hover {
    border-color: hsl(var(--primary-hsl) / 0.4);
    box-shadow: 0 4px 10px hsl(var(--primary-hsl) / 0.08);
    transform: translateY(-1px);
}

.trust__industry-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: hsl(var(--primary-hsl) / 0.1);
    color: hsl(var(--primary-hsl));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust__label {
    text-align: center;
    font-size: 0.85rem;
    color: hsl(var(--muted-fg));
    font-weight: 500;
    margin-bottom: var(--space-6);
    letter-spacing: 0.03em;
}

.trust__partners {
    margin-bottom: var(--space-12);
}

.trust__partner-logos {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 56rem;
    margin: 0 auto;
}

/* Bei ungerader Anzahl auf Mobile: letzter zentriert sich über beide Spalten,
   nimmt aber nur eine Spaltenbreite ein */
.trust__partner-logos > .trust__partner:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--space-4) / 2);
}

@media (min-width: 768px) {
    .trust__partner-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    /* Auf Desktop füllt sich 3-Spalten-Grid ohne Sonder-Rule */
    .trust__partner-logos > .trust__partner:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }
}

.trust__partner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    min-height: 6rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

.trust__partner:hover {
    border-color: hsl(var(--primary-hsl) / 0.3);
    box-shadow: 0 6px 14px hsl(217 33% 17% / 0.08);
    transform: translateY(-2px);
}

.trust__partner-logo {
    max-width: 75%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .trust__partner-logo {
        max-width: 180px;
        max-height: 64px;
    }
}

.trust__customer-logos {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .trust__customer-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.trust__customer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    min-height: 6rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

.trust__customer:hover {
    border-color: hsl(var(--primary-hsl) / 0.3);
    box-shadow: 0 6px 14px hsl(217 33% 17% / 0.08);
    transform: translateY(-2px);
}

.trust__customer-logo {
    max-width: 75%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .trust__customer-logo {
        max-width: 180px;
        max-height: 64px;
    }
}


/* ------------------------------------------------------------------ */
/* 15. FAQ                                                             */
/* ------------------------------------------------------------------ */

.faq {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, hsl(0 0% 98%) 0%, hsl(0 0% 100%) 100%);
}

@media (min-width: 768px) {
    .faq {
        padding: var(--space-20) 0;
    }
}

.faq__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-10);
}

.faq__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.faq__list {
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq__item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq__item[open] {
    border-color: hsl(var(--primary-hsl) / 0.4);
    box-shadow: var(--shadow);
}

.faq__question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    background: hsl(var(--primary-hsl) / 0.04);
}

.faq__question-text {
    flex: 1;
    line-height: 1.4;
}

.faq__chev {
    color: hsl(var(--primary-hsl));
    flex-shrink: 0;
    transition: transform var(--transition);
    transform: rotate(0deg);
}

.faq__item[open] .faq__chev {
    transform: rotate(90deg);
}

.faq__answer {
    padding: 0 var(--space-5) var(--space-5);
    color: hsl(var(--muted-fg));
    line-height: 1.65;
    font-size: 0.95rem;
}


/* ------------------------------------------------------------------ */
/* 16. Contact                                                         */
/* ------------------------------------------------------------------ */

.contact {
    padding: var(--space-16) 0;
    background: hsl(0 0% 100%);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 768px) {
    .contact {
        padding: var(--space-20) 0;
    }
}

.contact__header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-12);
}

.contact__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.contact__intro {
    color: hsl(var(--muted-fg));
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: var(--space-3);
}

.contact__grid {
    display: grid;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: var(--space-12);
    }
}

.contact__form {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .contact__form {
        padding: var(--space-8);
    }
}

.contact__row {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .contact__row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--fg));
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.contact__input:focus,
.contact__textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-hsl));
    box-shadow: 0 0 0 3px hsl(var(--primary-hsl) / 0.15);
}

.contact__input[aria-invalid="true"],
.contact__textarea[aria-invalid="true"] {
    border-color: hsl(0 70% 55%);
}

.contact__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__error {
    color: hsl(0 70% 45%);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.contact__services {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact__services-list {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .contact__services-list {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__service {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.contact__service:hover {
    background: hsl(var(--primary-hsl) / 0.04);
    border-color: hsl(var(--primary-hsl) / 0.3);
}

.contact__service-input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: hsl(var(--primary-hsl));
    cursor: pointer;
}

.contact__service-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact__service:has(.contact__service-input:checked) {
    background: hsl(var(--primary-hsl) / 0.06);
    border-color: hsl(var(--primary-hsl) / 0.45);
}

.contact__privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.contact__privacy-input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: hsl(var(--primary-hsl));
    cursor: pointer;
    flex-shrink: 0;
}

.contact__privacy-label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: hsl(var(--muted-fg));
    cursor: pointer;
}

.contact__privacy-link {
    color: hsl(var(--primary-hsl));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact__privacy-link:hover {
    text-decoration: none;
}

.contact__submit {
    width: 100%;
    margin-top: var(--space-2);
}

@media (min-width: 640px) {
    .contact__submit {
        width: auto;
        align-self: flex-start;
    }
}

.contact__submit[aria-busy="true"] {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.contact__status {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact__status.is-success {
    display: block;
    background: hsl(145 60% 45% / 0.1);
    color: hsl(145 60% 25%);
    border: 1px solid hsl(145 60% 45% / 0.3);
}

.contact__status.is-error {
    display: block;
    background: hsl(0 70% 55% / 0.08);
    color: hsl(0 70% 35%);
    border: 1px solid hsl(0 70% 55% / 0.3);
}

.contact__status.is-loading {
    display: block;
    background: hsl(var(--primary-hsl) / 0.08);
    color: hsl(var(--primary-hsl));
    border: 1px solid hsl(var(--primary-hsl) / 0.25);
}

/* --- Aside (contact card) --- */
.contact__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact__card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.contact__card-head {
    margin-bottom: var(--space-5);
}

.contact__card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.contact__card-subtitle {
    margin-top: 0.35rem;
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact__card-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact__card-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: hsl(var(--fg));
    transition: color var(--transition-fast);
    line-height: 1.5;
}

.contact__card-item:hover:not(.contact__card-item--static) {
    color: hsl(var(--primary-hsl));
}

.contact__card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: hsl(var(--primary-hsl) / 0.08);
    border: 1px solid hsl(var(--primary-hsl) / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact__card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.4rem;
    font-size: 0.95rem;
}

.contact__card-address {
    display: block;
}

.contact__card-maps {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: var(--space-4);
    color: hsl(var(--primary-hsl));
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap var(--transition);
}

.contact__card-maps:hover {
    gap: 0.75rem;
}

.contact__card-maps-icon {
    transition: transform var(--transition);
}

.contact__card-maps:hover .contact__card-maps-icon {
    transform: translateX(3px);
}

.contact__notice {
    background: hsl(var(--primary-hsl) / 0.05);
    border: 1px solid hsl(var(--primary-hsl) / 0.2);
    border-radius: var(--radius);
    padding: var(--space-4);
    font-size: 0.9rem;
    color: hsl(var(--fg));
    line-height: 1.55;
}


/* ------------------------------------------------------------------ */
/* 17. Footer                                                          */
/* ------------------------------------------------------------------ */

.footer {
    margin-top: var(--space-16);
    padding: var(--space-20) 0 var(--space-10);
    background: hsl(0 0% 98%);
    color: hsl(217 33% 17%);
    border-top: 1px solid hsl(var(--border));
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--primary-hsl) / 0.25) 50%, transparent 100%);
}

.footer h1, .footer h2, .footer h3, .footer h4 {
    color: hsl(217 33% 17%);
}

.footer__grid {
    display: grid;
    gap: var(--space-10);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--space-16);
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 28rem;
}

.footer__logo {
    /* Feste Breite, Höhe folgt via generic img-Regel height: auto
       → natürliches Seitenverhältnis bleibt, keine Flex-Stretch-Verzerrung */
    width: 168px;
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    display: block;
}

.footer__tagline {
    color: hsl(217 15% 40%);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer__quote {
    font-style: italic;
    color: hsl(217 15% 55%);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: var(--space-1);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: hsl(217 33% 17%);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    color: hsl(217 15% 45%);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer__link:hover {
    color: hsl(var(--primary-hsl));
}

.footer__sep {
    margin: var(--space-10) 0 var(--space-5);
    background: hsl(var(--border));
    border: 0;
    height: 1px;
}

.footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer__legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        text-align: left;
    }
    .footer__legal .footer__copy:last-child {
        text-align: right;
    }
}

.footer__copy {
    color: hsl(217 15% 50%);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}


/* ------------------------------------------------------------------ */
/* 18. Legal pages                                                     */
/* ------------------------------------------------------------------ */

.legal {
    /* Extra Top-Padding damit der sticky-Header nicht den "Zurück"-Link
       überdeckt. Header ist ca. 64-72px hoch. */
    padding: calc(var(--header-height, 72px) + var(--space-8)) 0 var(--space-16);
    background: hsl(0 0% 100%);
    min-height: 70vh;
}

@media (min-width: 768px) {
    .legal {
        padding: calc(var(--header-height, 72px) + var(--space-12)) 0 var(--space-20);
    }
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-6);
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast), gap var(--transition);
}

.legal__back:hover {
    color: hsl(var(--primary-hsl));
    gap: 0.75rem;
}

.legal__back-icon--flip {
    transform: scaleX(-1);
}

.legal__article {
    max-width: 52rem;
    margin: 0 auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .legal__article {
        padding: var(--space-10) var(--space-12);
    }
}

.legal__title {
    margin-bottom: var(--space-8);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.legal__sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.legal__block {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.legal__block p {
    color: hsl(var(--fg));
    line-height: 1.65;
}

.legal__h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--primary-hsl));
    margin-bottom: 0.25rem;
}

.legal__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 0;
}

.legal__list li {
    line-height: 1.6;
    color: hsl(var(--fg));
}

.legal__link {
    color: hsl(var(--primary-hsl));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal__link:hover {
    text-decoration: none;
}

.legal__sep {
    margin: var(--space-6) 0;
}

.legal__small {
    font-size: 0.9rem;
    color: hsl(var(--muted-fg));
    line-height: 1.65;
}

.legal__note {
    font-size: 0.85rem;
    color: hsl(var(--muted-fg));
    font-style: italic;
    padding-top: var(--space-4);
    border-top: 1px dashed hsl(var(--border));
}


/* ------------------------------------------------------------------ */
/* 19. Consent banner                                                  */
/* ------------------------------------------------------------------ */

.consent-banner {
    position: fixed;
    left: 50%;
    bottom: var(--space-4);
    transform: translateX(-50%);
    z-index: 50;
    width: calc(100% - 2 * var(--space-4));
    max-width: 720px;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    animation: slide-up var(--transition-slow) ease-out;
}

@media (min-width: 640px) {
    .consent-banner {
        padding: var(--space-6);
        flex-direction: row;
        align-items: center;
        gap: var(--space-6);
    }
}

.consent-banner__text {
    flex: 1;
    color: hsl(var(--fg));
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.consent-banner__link {
    color: hsl(var(--primary-hsl));
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.35rem;
}

.consent-banner__link:hover {
    text-decoration: none;
}

.consent-banner__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .consent-banner__actions {
        flex-direction: row;
        gap: var(--space-3);
    }
}

.consent-banner__btn {
    /* Relies on .btn classes applied via JS. Kept here for extra padding. */
    min-width: 140px;
}


/* ------------------------------------------------------------------ */
/* 20. Keyframes + reduced motion                                      */
/* ------------------------------------------------------------------ */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .float-animation {
        animation: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Section-Badges: einheitliches Styling über alle Sektionen         */
/* (überschreibt die älteren per-Section Regeln weiter oben)          */
/* ------------------------------------------------------------------ */
.about__badge,
.why-us__badge,
.trust__badge,
.faq__badge,
.contact__badge {
    padding: 0.5rem 1.1rem;
    background: hsl(0 0% 100%);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 2px hsl(217 33% 17% / 0.04);
    color: hsl(var(--primary-hsl));
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------------------------------------------------------------------------
   CSE-Video — standalone section between Services and Process.
   Mirrors the layout of the old .hero__video card but now lives as its own
   band so "Weniger Risiko…" can sit closer to the hero.
   --------------------------------------------------------------------------- */
.cse-video {
    padding: var(--space-20) 0;
    background: hsl(var(--muted) / 0.25);
}

.cse-video__card {
    display: grid;
    gap: var(--space-6);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cse-video__card {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: stretch;
        padding: var(--space-6);
    }
}

.cse-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--muted));
}

.cse-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cse-video__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}

.cse-video__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: hsl(var(--fg));
}

.cse-video__para {
    color: hsl(var(--muted-fg));
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}
