@font-face {
    font-family: "Open Sans Local";
    src: local("Open Sans Regular"), local("Open Sans");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans Local";
    src: local("Open Sans SemiBold"), local("Open Sans");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans Local";
    src: local("Open Sans Bold"), local("Open Sans");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans Local";
    src: local("Open Sans Bold Italic"), local("Open Sans");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "MiloOT Local";
    src: local("MiloOT-Bold"), local("MiloOT Bold"), local("MiloOT");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #f39200;
    --orange-dark: #dd8200;
    --ink: #171717;
    --muted: #5f6164;
    --warm: #f8f2e8;
    --line: #ebe6dd;

    --stage: 1200px;
    --shell: 1280px;

    --text:
        "Open Sans Local",
        "Open Sans",
        Arial,
        Helvetica,
        sans-serif;

    --display:
        "MiloOT Local",
        "Open Sans Local",
        "Open Sans",
        Arial,
        Helvetica,
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.shell {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.skip-link {
    position: fixed;
    z-index: 1000;
    left: 12px;
    top: 12px;

    transform: translateY(-140%);

    padding: 10px 14px;

    background: #fff;
    border: 2px solid var(--orange);
    border-radius: 3px;
}

.skip-link:focus {
    transform: none;
}


/* ---------------------------------------------------------
   Produktkopf
   --------------------------------------------------------- */

.product-header {
    width: min(100%, var(--stage));
    height: clamp(150px, 18vw, 216px);

    margin-inline: auto;

    display: grid;
    align-items: center;

    background: #fff;
    border-bottom: 0;
}

.product-header__inner {
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;
}

.product-logo {
    display: block;
    width: auto;
    max-width: none;
    max-height: 58%;
}

.logo--ksb {
    width: min(58vw, 696px);
}

.logo--trueffel {
    width: min(42vw, 504px);
    max-height: 68%;
}

.logo--topic {
    width: min(49vw, 588px);
}

.logo--secretz {
    width: min(38vw, 456px);
    max-height: 64%;
}

.logo--private {
    width: min(50vw, 600px);
}

.logo--doppelding {
    width: min(52vw, 624px);
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;

    width: min(100%, var(--stage));
    margin-inline: auto;

    /*
     * Referenz für container-relative Schriftgrößen.
     * Dadurch skaliert die Hero-Typografie mit der tatsächlichen
     * Hero-Breite und nicht mehr mit einem breiteren Browserfenster.
     */
    container-type: inline-size;

    /*
     * Originalformat der gelieferten Hero-Grafik.
     * Ab 1200 px Browserbreite wächst die Gestaltungsfläche
     * bewusst nicht weiter. Links und rechts bleibt Weißraum.
     */
    aspect-ratio: 2481 / 1100;

    background: #fff;
}

.hero__art {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center center;
}

.hero__copy {
    position: absolute;
    z-index: 2;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.hero__copy h1 {
    position: absolute;

    left: 22%;
    top: 49%;

    width: 48%;

    margin: 0;

    color: #fff;

    font-family: var(--text);
    font-style: italic;
    font-size: clamp(30px, 3.6cqw, 43px);
    font-weight: 700;

    line-height: 1.08;
    letter-spacing: -0.025em;

    text-wrap: balance;
}

.hero__copy p {
    position: absolute;

    left: 22%;
    top: auto;
    bottom: clamp(26px, 2.8cqw, 34px);

    width: 55%;

    margin: 0;

    color: #111;

    font-size: clamp(13px, 1.08cqw, 14px);
    font-weight: 600;

    line-height: 1.38;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta-band {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: center;

    padding: 26px 24px;

    background: transparent;
}

.cta-band--top {
    padding-top: 22px;
    padding-bottom: 28px;
}

.cta-band--bottom {
    padding: 36px 24px 46px;
}

.cta {
    display: inline-flex;

    min-width: 330px;
    min-height: 48px;

    justify-content: center;
    align-items: center;

    padding: 10px 28px;

    border: 2px solid var(--orange);
    border-radius: 999px;

    color: var(--orange-dark);
    background: #fff;

    text-decoration: none;
    text-align: center;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .03em;

    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.cta:hover,
.cta:focus-visible {
    color: #fff;
    background: var(--orange);

    transform: translateY(-1px);

    outline: none;
}


/* ---------------------------------------------------------
   Inhalt
   --------------------------------------------------------- */

.content-stage {
    width: min(100%, var(--stage));
    margin-inline: auto;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: #fff;
}

/*
 * Original-Inhaltshintergründe aus den gelieferten SVG-Vorgaben.
 *
 * Der Hintergrund beginnt direkt unter dem Hero, läuft damit auch
 * unter beiden CTA-Bereichen und endet erst unmittelbar vor dem Footer.
 */
.content-stage::before {
    content: "";

    position: absolute;
    z-index: 0;
    inset: 0;

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    opacity: .03;
    pointer-events: none;
}

.product-kapitalschutzbrief .content-stage::before {
    background-image: url("../img/content-bg-kapitalschutzbrief.webp");
}

.product-trueffeltrader .content-stage::before {
    background-image: url("../img/content-bg-trueffeltrader.webp");
}

.product-topictrader .content-stage::before {
    background-image: url("../img/content-bg-topictrader.webp");
}

.product-secretz .content-stage::before {
    background-image: url("../img/content-bg-secretz.webp");
}

.product-privateprofits .content-stage::before {
    background-image: url("../img/content-bg-privateprofits.webp");
}

.product-doppelding .content-stage::before {
    background-image: url("../img/content-bg-doppelding.webp");
}

.content-wrap {
    position: relative;
    z-index: 1;

    width: 100%;
    margin-inline: 0;

    overflow: visible;
    background: transparent;
}

.intro-block,
.content-section,
.risk {
    position: relative;
    z-index: 1;

    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}

.intro-block {
    padding: 16px 0 42px;
}

.intro-block p,
.content-section p {
    margin: 0 0 14px;
}

.intro-block p:last-child,
.content-section p:last-child {
    margin-bottom: 0;
}

.content-section {
    position: relative;
    z-index: 1;

    padding: 0 0 42px;
}

.content-section > * {
    position: relative;
    z-index: 1;
}

.content-section h2 {
    min-height: 58px;

    display: flex;
    align-items: center;

    margin: 0 0 30px;
    padding: 8px 0;

    color: #222;

    font-size: 19px;
    line-height: 1.32;
    font-style: italic;
    font-weight: 700;
}

.content-section h2::before {
    content: "";

    position: absolute;
    z-index: -1;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 100vw;

    transform: translateX(-50%);

    background: rgba(248, 242, 232, .86);
}

.content-section ul {
    margin: 8px 0 18px;
    padding-left: 24px;
}

.content-section li {
    margin: 5px 0;
}

.closing-line {
    position: relative;

    min-height: 58px;

    display: flex;
    align-items: center;

    margin: 30px 0 0 !important;
    padding: 8px 0;

    font-size: 19px;
    line-height: 1.32;
    font-style: italic;
    font-weight: 700;
}

.closing-line::before {
    content: "";

    position: absolute;
    z-index: -1;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 100vw;

    transform: translateX(-50%);

    background: rgba(248, 242, 232, .86);
}


/* ---------------------------------------------------------
   Risikohinweis
   --------------------------------------------------------- */

.risk {
    padding: 22px 0 4px;

    color: #666;

    font-size: 11px;
    line-height: 1.55;
}

.risk p {
    margin: 0;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
    color: #fff;

    background:
        #050505
        url("../img/footer-chart.webp")
        center 44% / cover
        no-repeat;
}

.site-footer__overlay {
    padding: 44px 0 44px;

    background: rgba(0, 0, 0, .72);
}

.footer-grid {
    display: grid;

    /*
     * PDF-Vorgabe:
     * Kontakt | Links | Moneyversum | LinkedIn.
     *
     * Der Footer-Inhalt ist etwas schmaler als der normale
     * Seiteninhalt und dadurch links/rechts stärker eingerückt.
     */
    width: min(1180px, calc(100% - 64px));

    grid-template-columns: 30% 30% 30% 10%;
    gap: 0;

    align-items: start;
}

.footer-col h2 {
    margin: 0 0 14px;

    color: #fff;

    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .08em;
    font-weight: 700;
}

.footer-col address {
    font-style: normal;

    font-size: 13px;
    line-height: 1.65;
}

.footer-col > a:not(.moneyversum-link),
.footer-col address a {
    display: block;

    width: fit-content;

    color: #fff;

    text-decoration: none;

    font-size: 13px;
    line-height: 1.7;
}

.footer-col > a:hover,
.footer-col > a:focus-visible,
.footer-col address a:hover,
.footer-col address a:focus-visible {
    text-decoration: underline;
}

.footer-offer img {
    width: min(210px, 100%);

    filter: grayscale(1) brightness(0) invert(1);

    opacity: .95;
}

.moneyversum-link {
    display: inline-block;
}


.footer-social {
    align-self: start;
    justify-self: end;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;

    color: #111;
    background: #fff;

    border-radius: 2px;

    text-decoration: none;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.footer-linkedin svg {
    display: block;

    width: 28px;
    height: 28px;

    fill: currentColor;
}

.footer-linkedin:hover,
.footer-linkedin:focus-visible {
    opacity: .78;
    transform: translateY(-1px);
    outline: none;
}

.copyright {
    padding: 30px 20px 32px;

    text-align: center;

    background: #030303;
    color: #ccc;

    font-size: 11px;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .product-header,
    .product-header__inner {
        height: 124px;
        min-height: 124px;
    }

    .product-logo {
        width: auto;
        max-height: 78px;
        max-width: 330px;
    }

    .logo--trueffel {
        max-height: 90px;
        max-width: 260px;
    }

    /*
     * Ab Tablet wird die Desktop-Proportion verlassen,
     * damit der Hero nicht zu flach wird.
     */
    .hero {
        aspect-ratio: auto;
        height: 445px;
    }

    .hero__art {
        object-fit: cover;
        object-position: 50% 50%;
    }

    .hero__copy h1 {
        left: 18%;
        top: 49%;

        width: 56%;

        font-size: clamp(26px, 4.7vw, 38px);
    }

    .hero__copy p {
        left: 18%;
        top: auto;
        bottom: clamp(24px, 2.7cqw, 30px);

        width: 62%;

        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        row-gap: 34px;
    }

    .footer-social {
        justify-self: start;
    }
}


/* ---------------------------------------------------------
   Smartphone
   --------------------------------------------------------- */

@media (max-width: 680px) {

    body {
        font-size: 15.5px;
        line-height: 1.67;
    }

    .shell,
    .intro-block,
    .content-section,
    .risk {
        width: min(calc(100% - 32px), var(--shell));
    }

    .product-header,
    .product-header__inner {
        height: 108px;
        min-height: 108px;
    }

    .product-header__inner {
        padding: 16px 0;
    }

    .product-logo {
        width: auto;
        max-width: min(82vw, 310px);
        max-height: 72px;
    }

    .logo--trueffel {
        max-height: 78px;
        max-width: 235px;
    }

    .hero {
        height: 470px;

        background:
            linear-gradient(
                #26265f 0%,
                #79bdb0 33%,
                var(--orange) 33%,
                var(--orange) 69%,
                #fff 69%
            );
    }

    .hero__art {
        left: 50%;

        width: 175%;
        height: 100%;

        max-width: none;

        transform: translateX(-50%);

        object-fit: cover;
        object-position: center;

        opacity: .99;
    }

    .hero__copy h1 {
        left: 16px;
        top: 49%;

        width: calc(100% - 32px);

        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.07;

        text-shadow:
            0 1px 1px rgba(0, 0, 0, .08);
    }

    .hero__copy p {
        left: 16px;
        top: auto;
        bottom: 22px;

        width: calc(100% - 32px);

        padding: 0;

        background: transparent;

        font-size: 13px;
        line-height: 1.35;
    }

    .cta-band {
        padding-inline: 16px;
    }

    .cta {
        width: min(100%, 360px);
        min-width: 0;

        font-size: 12px;
    }

    .intro-block {
        padding-top: 8px;
        padding-bottom: 32px;
    }

    .content-section {
        padding-top: 0;
        padding-bottom: 34px;
    }

    .content-section h2 {
        min-height: 52px;

        margin-bottom: 26px;
        padding: 7px 0;

        font-size: 17px;
    }

    .closing-line {
        min-height: 52px;
        padding: 7px 0;
        font-size: 17px;
    }

    .risk {
        font-size: 10.5px;
    }

    .footer-grid {
        width: min(calc(100% - 32px), var(--shell));
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-social {
        justify-self: start;
    }

    .site-footer__overlay {
        padding: 30px 0;
    }
}


/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .cta {
        transition: none;
    }
}

/* MONEYVERSUM-HERO-SUBTITLE-OVERRIDE-BEGIN
 * Unterüberschrift nach der großen Hero-Headline:
 * Desktop/Tablet etwas höher, Mobile unverändert.
 */
@media (min-width: 901px) {
    .hero__copy p {
        top: auto;
        bottom: 38px;
    }
}

@media (min-width: 681px) and (max-width: 900px) {
    .hero__copy p {
        top: auto;
        bottom: 30px;
    }
}

/* MONEYVERSUM-HERO-SUBTITLE-OVERRIDE-BEGIN
 * Desktop/Tablet: Unterüberschrift unter der großen Hero-Headline
 * sichtbar höher positionieren. Mobile bleibt unverändert.
 */
@media (min-width: 901px) {
    .hero__copy p {
        top: auto;
        bottom: 52px;
    }
}

@media (min-width: 681px) and (max-width: 900px) {
    .hero__copy p {
        top: auto;
        bottom: 40px;
    }
}
/* MONEYVERSUM-HERO-SUBTITLE-OVERRIDE-END */
