/* Gemeinsame Geometrie aller öffentlichen Invicta-Seiten.
   Logo und Header bleiben bei jedem Seitenwechsel und beim Scrollen gleich.
   Nur hier die seitlichen Inhaltsabstände ändern. */
:root {
    --site-gutter: clamp(20px, 6vw, 120px);
    --site-header-height: 84px;
    --site-logo-width: 180px;
    --site-logo-height: 58px;
}
html {
    scroll-padding-top: calc(var(--site-header-height) + 20px);
}
body {
    padding-top: var(--site-header-height);
}
body.invicta-fullscreen-pages {
    --fs-gutter: var(--site-gutter);
}
body .header {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1000;
    width: 100%;
    max-width: none;
    height: var(--site-header-height) !important;
    min-height: var(--site-header-height);
    margin: 0 !important;
    padding: 0 var(--site-gutter) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff !important;
    box-shadow: 0 1px 12px #10202a12;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box;
}
body .header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    width: 100%;
    max-width: none;
    height: 100% !important;
    margin: 0;
    padding: 0;
    gap: 24px;
}
body .header .logo,
body footer .logo {
    display: block;
    flex: 0 0 var(--site-logo-width);
    width: var(--site-logo-width) !important;
    min-width: var(--site-logo-width);
    max-width: var(--site-logo-width);
    height: var(--site-logo-height) !important;
    margin: 0 !important;
    padding: 0;
    font-size: 0 !important;
    background: none !important;
    transform: none;
    transition: none;
}
body .header .logo > *,
body footer .logo > * {
    display: block !important;
}
body .header .logo img,
body footer .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: left center;
}
body .header nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 1.6vw, 30px);
    margin: 0;
    padding: 0;
    font-size: 14px;
}
body .header nav a {
    white-space: nowrap;
    font-size: 14px;
}
body .header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
}
body .header .button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
}
body .header .contact-meta {
    display: none;
}
body .header .language-switch {
    position: static;
    transform: none;
    flex-shrink: 0;
}
body .header .menu {
    display: none;
}
/* Die Hintergrundmotive bleiben vollflächig; die Inhalte erhalten dieselbe Innenkante. */
body:not(.invicta-fullscreen-pages) main > section,
body:not(.invicta-fullscreen-pages) .cfg-wrap,
body:not(.invicta-fullscreen-pages) > footer {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
}
body:not(.invicta-fullscreen-pages) .section-heading {
    margin-left: 0;
    margin-right: 0;
}
body.invicta-fullscreen-pages .footer-inner {
    padding-left: var(--site-gutter) !important;
    padding-right: var(--site-gutter) !important;
}
/* Textreiche Seiten dürfen über die Bildhöhe hinaus wachsen. */
.customer-page .customer-final {
    min-height: 33.348689vw;
}
@media (max-width: 1100px) {
    body .header .menu {
        display: grid !important;
        place-content: center;
        margin-left: auto;
        width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        background: transparent;
        color: #111820;
        border: 0;
        font-size: 25px;
        cursor: pointer;
    }
    body .header-contact,
    body .header .head-cta {
        display: none !important;
    }
    body .header nav {
        display: none !important;
        position: absolute;
        inset: var(--site-header-height) 0 auto !important;
        width: 100%;
        max-height: calc(100dvh - var(--site-header-height));
        overflow-y: auto;
        box-sizing: border-box;
        padding: 16px var(--site-gutter) !important;
        background: #fff;
        box-shadow: 0 8px 12px #10202a12;
        transform: none;
    }
    body .header nav.open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    body .header nav a {
        padding: 12px 0 !important;
        font-size: 16px !important;
    }
    body .header .language-switch {
        top: auto !important;
        right: auto !important;
    }
}
@media (max-width: 620px) {
    :root {
        --site-gutter: 20px;
    }
}

body .header nav .mobile-customer-login {
    display: none;
}
@media (max-width: 1100px) {
    body .header nav .mobile-customer-login {
        display: block;
        color: #d72940;
        font-weight: 700;
    }
}
body .cfg-layout,
body .cfg-alert,
body .cfg-progress,
body .cfg-trust {
    max-width: none;
}
/* Gemeinsame Abstände auch für Kontakt-, Bestell- und Rechtstextseiten. */
body.invicta-fullscreen-pages {
    --fs-gutter: var(--site-gutter) !important;
}
body.invicta-fullscreen-pages
    :is(
        .privacy-legal-content,
        .agb-legal-content,
        .imprint-legal-content,
        .contact-hero,
        .contact-shell,
        .hosting-order-head,
        .hosting-order-shell,
        .pb-pricing-grid
    ) {
    width: calc(100% - 2 * var(--site-gutter)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.invicta-fullscreen-pages main.content,
body.invicta-fullscreen-pages main.content > article {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Nahtloser Anschluss: Den Platz für den festen Header reserviert nur body.
   Die Hero-Bilder starten direkt an der Unterkante des Headers. */
body > main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body
    main
    > :is(
        .hero,
        .hosting-hero,
        .marketing-hero,
        .seo-hero,
        .shops-hero,
        .customer-hero
    ) {
    margin-top: 0;
    height: auto;
    min-height: var(--hero-image-height);
    background-position: center top;
}
.hero {
    --hero-image-height: 35.57vw;
}
.hosting-hero {
    --hero-image-height: 33.35vw;
}
.marketing-hero {
    --hero-image-height: 41.66vw;
}
.seo-hero {
    --hero-image-height: 44.9733vw;
}
.shops-hero {
    --hero-image-height: 53.58vw;
}
.customer-hero {
    --hero-image-height: 47.1vw;
}
/* Einheitlicher vertikaler Rhythmus innerhalb der Hero-Inhalte. */
:root {
    --hero-content-top: clamp(48px, 5vw, 96px);
    --hero-label-gap: 16px;
    --hero-text-gap: 24px;
    --hero-actions-gap: 24px;
    --hero-button-gap: 16px;
}
body
    main
    > :is(
        .hero,
        .hosting-hero,
        .marketing-hero,
        .seo-hero,
        .shops-hero,
        .customer-hero,
        .cfg-hero
    ) {
    padding-top: var(--hero-content-top);
    padding-bottom: 40px;
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy,
        .cfg-hero > div:first-child
    ) {
    margin-top: 0;
    padding-top: 0;
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy,
        .cfg-hero > div:first-child
    )
    > .eyebrow {
    margin: 0 0 var(--hero-label-gap);
    line-height: 20px;
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy,
        .cfg-hero > div:first-child
    )
    > h1 {
    margin: 0;
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy,
        .cfg-hero > div:first-child
    )
    > p:not(.eyebrow) {
    margin: var(--hero-text-gap) 0 0;
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy,
        .cfg-hero > div:first-child
    )
    > .actions {
    margin: var(--hero-actions-gap) 0 0;
    gap: var(--hero-button-gap);
}
body
    :is(
        .hero-copy,
        .hosting-hero-copy,
        .marketing-hero-copy,
        .seo-hero-copy,
        .customer-hero-copy
    )
    > :is(
        .checks,
        .hosting-highlights,
        .marketing-highlights,
        .seo-highlights,
        .hero-benefits,
        .customer-highlights
    ) {
    margin-top: 32px;
}
@media (max-width: 760px) {
    :root {
        --hero-content-top: 40px;
    }
}
/* Navigation: sichtbare Rückmeldung für Maus und Tastatur. */
body .header nav a {
    position: relative;
    text-decoration: none;
    transition: color 160ms ease;
}
body .header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #d72940;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
    pointer-events: none;
}
body .header nav a:hover,
body .header nav a:focus-visible {
    color: #d72940;
}
body .header nav a:hover::after,
body .header nav a:focus-visible::after {
    transform: scaleX(1);
}
body .header nav a:focus-visible {
    outline: 2px solid #d72940;
    outline-offset: 6px;
    border-radius: 2px;
}
@media (max-width: 1100px) {
    body .header nav a::after {
        bottom: 4px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body .header nav a,
    body .header nav a::after {
        transition: none;
    }
}
/* Kleine Überschrift über dem Hero-Titel auf allen Seiten gleich kräftig. */
body :is(.hero-copy, .hosting-hero-copy, .marketing-hero-copy, .seo-hero-copy, .customer-hero-copy, .cfg-hero > div:first-child) > .eyebrow {
    font-weight: 800;
}

/* Fullscreen: Navigation ohne farbige Hintergrundfläche. */
body .header,
body .header .header-inner,
body .header nav {
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 1100px) {
    body .header nav.open { background: #fff !important; }
}


/* Footer-CTA mittig mit Abstand zur Footer-Navigation. */
body .footer .footer-cta {
    display: block;
    width: 100%;
    margin: 0 auto clamp(22px, 2vw, 34px);
    text-align: center;
}
body .footer .footer-cta h2,
body .footer .footer-cta p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


/* Einheitliche Icons sowie stabile Navigation auf Desktop, Tablet und Mobilgeräten. */
.invicta-fullscreen-pages [data-icon] svg,
.invicta-fullscreen-pages .icon svg,
.invicta-fullscreen-pages .stat-icon svg,
.invicta-fullscreen-pages .process-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body .footer .social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
body .footer .social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #fff;
}
body .footer .social a:hover,
body .footer .social a:focus-visible {
    border-color: #d72940;
    background: #d72940;
}
body .footer .footer-grid > div:last-child > p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
body .footer .footer-grid > div:last-child > p > i {
    width: 16px;
    margin-top: .2em;
    color: #d72940;
    text-align: center;
}
@media (max-width: 1100px) {
    body.menu-open { overflow: hidden; }
    body .header { z-index: 1000; }
    body .header nav.open {
        position: fixed !important;
        top: var(--site-header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        max-height: none;
        padding: 18px var(--site-gutter) 28px !important;
        background: #fff !important;
        box-shadow: 0 18px 35px rgba(13,25,34,.14) !important;
    }
    body .header nav.open a {
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #e8ecef;
    }
}
@media (max-width: 620px) {
    body .header { min-height: var(--site-header-height); }
    body .header .logo { max-width: 148px; }
    body .footer .footer-grid { grid-template-columns: 1fr !important; }
    body .footer .footer-grid > div:first-child { grid-column: auto !important; }
}


/* Beim Scrollen ist der Header deckend und die Navigation klar lesbar. */
body .header.is-scrolled {
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 8px 28px rgba(15, 28, 38, .10);
    backdrop-filter: none !important;
}


/* Alle Fullscreen-Heros schließen ohne Zwischenraum direkt an den festen Header an. */
body.invicta-fullscreen-pages {
    padding-top: var(--site-header-height) !important;
}
body.invicta-fullscreen-pages > main,
body.invicta-fullscreen-pages main,
body.invicta-fullscreen-pages main.content,
body.invicta-fullscreen-pages main.content > article.builder-output,
body.invicta-fullscreen-pages main > .invicta-builder-design:first-child,
body.invicta-fullscreen-pages main > .invicta-builder-design:first-child > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.invicta-fullscreen-pages main.content:has(.invicta-builder-design) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.invicta-fullscreen-pages main.content > article.builder-output:has(.invicta-builder-design) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.invicta-fullscreen-pages main.content > article.builder-output
    > .invicta-builder-design:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.invicta-fullscreen-pages main > .invicta-builder-design:first-child {
    display: block;
    width: 100%;
}
body.invicta-fullscreen-pages main > .invicta-builder-design:first-child
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero),
body.invicta-fullscreen-pages main.content > article.builder-output
    > .invicta-builder-design:first-child
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero) {
    margin-block-start: 0 !important;
    border-top: 0 !important;
}


/* Einheitliche Hausschrift für sämtliche sichtbaren Texte und Formulare. */
body.invicta-fullscreen-pages,
body.invicta-fullscreen-pages :where(
    h1, h2, h3, h4, h5, h6,
    p, a, span, strong, b, em, small,
    li, label, button, input, textarea, select, option,
    blockquote, figcaption, table, th, td
) {
    font-family: "Bricolage Grotesque", Arial, sans-serif !important;
}


/* Footer ohne CTA und Logo: Beschreibung bündig mit der Navigation. */
body .footer .footer-grid {
    align-items: start;
}
body .footer .footer-about > p {
    margin-top: 0 !important;
}


/* Fullscreen-Unterseiten: auch den normalen NovaPress-Article-Wrapper zurücksetzen. */
body.invicta-fullscreen-pages main.content > article:has(.invicta-builder-design) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Einheitlicher Inhaltsrhythmus aller Fullscreen-Heros. */
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero) {
    box-sizing: border-box !important;
    padding-top: clamp(110px, 8.6vw, 150px) !important;
    padding-right: var(--site-gutter) !important;
    padding-bottom: 32px !important;
    padding-left: var(--site-gutter) !important;
    background-position: center top !important;
}
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero)
    :is(.eyebrow, .kicker) {
    margin: 0 0 14px !important;
}
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero) h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero)
    :is(.hero-copy, .hosting-hero-copy, .marketing-hero-copy, .seo-hero-copy, .shops-hero-copy, .customer-hero-copy)
    > p:not(.eyebrow, .kicker) {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero) .actions {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}
body.invicta-fullscreen-pages .invicta-builder-design
    > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero)
    :is(.checks, .hosting-highlights, .marketing-highlights, .seo-highlights, .hero-benefits, .customer-highlights) {
    margin-top: 30px !important;
}

@media (max-width: 760px) {
    body.invicta-fullscreen-pages .invicta-builder-design
        > :is(.hero, .hosting-hero, .marketing-hero, .seo-hero, .shops-hero, .customer-hero) {
        padding-top: 48px !important;
        padding-right: var(--site-gutter) !important;
        padding-bottom: 32px !important;
        padding-left: var(--site-gutter) !important;
    }
}

/* Mobile Navigation: klares Hamburger-Symbol statt sichtbarem Text-Fallback. */
@media (max-width: 1100px) {
    body .header .menu {
        position: relative;
        display: block !important;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent !important;
    }
    body .header .menu span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body .header .menu i {
        position: absolute;
        left: 10px;
        display: block;
        width: 24px;
        height: 2px;
        margin: 0;
        border: 0;
        border-radius: 2px;
        background: #111820;
        transform-origin: center;
        transition: top .2s ease, transform .2s ease, opacity .15s ease;
    }
    body .header .menu i:nth-of-type(1) { top: 13px; }
    body .header .menu i:nth-of-type(2) { top: 21px; }
    body .header .menu i:nth-of-type(3) { top: 29px; }
    body .header .menu[aria-expanded="true"] i:nth-of-type(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    body .header .menu[aria-expanded="true"] i:nth-of-type(2) {
        opacity: 0;
    }
    body .header .menu[aria-expanded="true"] i:nth-of-type(3) {
        top: 21px;
        transform: rotate(-45deg);
    }
    body .header .menu:focus-visible {
        outline: 2px solid var(--red);
        outline-offset: 2px;
    }
}
