/*
===================
 Zentis – static interim page
 Tokens mirror template/src/css/theme/theme.css
===================
*/

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/OpenSansCondensed-Bold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: Platypi;
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/platypi-v6-latin-italic.woff2') format('woff2');
}

:root {
    --color-white: #fff;
    --color-grey-100: #ededed;
    --color-grey-200: #dadada;
    --color-grey-500: #706f6f;
    --color-grey-600: #3c3c3b;
    --color-green-500: #667800;
    --color-green-600: #415901;
    --color-marzipan-400: #fbf5ed;
    --color-berry-500: #960044;
    --color-red-500: #c31924;
    --color-warning: #ffa935;
    --font-base: 'Open Sans', helvetica, arial, sans-serif;
    --font-headline: 'Open Sans Condensed', 'Open Sans', helvetica, arial, sans-serif;
    --font-accent: 'Platypi', 'Open Sans', sans-serif;
    --container-padding: 16px;
    --section-spacing: 64px;
}

@media (width >= 992px) {
    :root {
        --container-padding: 112px;
        --section-spacing: 160px;
    }
}

/*
===================
 Base
===================
*/

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 18px;
    line-height: 26px;
    color: var(--color-grey-600);
    background: var(--color-white);
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

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

a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-warning);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: var(--color-white);
    transform: translateY(-200%);
}

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

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

/*
===================
 Typography
===================
*/

.kicker {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    color: var(--color-grey-500);
}

.h1-display,
.h2 {
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    hyphens: auto;
    overflow-wrap: break-word;
}

.h1-display {
    font-size: clamp(2.5rem, 1.354rem + 4.17vw, 5.5rem);
    line-height: 1.1;
}

.h2 {
    font-size: clamp(2.5rem, 1.583rem + 3.33vw, 4.5rem);
    line-height: clamp(48px, 33.333px + 3.33vw, 80px);
}

.h3-regular {
    font-size: clamp(1.5rem, 1.135rem + 1.04vw, 2.5rem);
    line-height: clamp(32px, 27.583px + 1.46vw, 48px);
    font-weight: 400;
}

.h4 {
    font-size: clamp(1.5rem, 1.385rem + 0.42vw, 1.75rem);
    line-height: clamp(32px, 31.083px + 0.21vw, 34px);
    font-weight: 600;
}

.h5 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}

.text-lead {
    font-size: 20px;
    line-height: 30px;
}

.text-muted {
    color: var(--color-grey-500);
}

@media (width >= 992px) {
    .kicker {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Torn image edges, see decoration-border in template/src/css/base/_decorations.css */
.decoration-border {
    mask-image: url('../img/decoration_border.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: auto 100%;
}

/* Accent word with hand-drawn ring, see h-ring in template/src/css/base/_decorations.css */
.h-ring {
    position: relative;
    z-index: 0;
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
}

.h-ring::before {
    position: absolute;
    left: 52%;
    top: 57%;
    z-index: -1;
    width: calc(100% + 34px);
    height: calc(100% + 13px);
    content: '';
    background: currentcolor;
    opacity: 0.3;
    mask-image: url('../img/decoration_ring.svg');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (width >= 768px) {
    .h-ring::before {
        width: calc(100% + 45px);
        height: calc(100% + 31px);
    }
}

/*
===================
 Buttons
===================
*/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 64px;
    padding: 12px 26px 12px 32px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--color-green-500);
    border-radius: 200px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.button .icon {
    font-size: 20px;
    transition: transform 0.4s ease;
}

.button:hover .icon {
    transform: translateX(4px);
}

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

.button-primary:hover {
    background: var(--color-green-600);
    border-color: var(--color-green-600);
}

.button-secondary {
    color: var(--color-green-500);
    background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--color-white);
    background: var(--color-green-500);
}

/* button-primary on dark backgrounds (theme-dark) */
.button-inverted {
    color: var(--color-green-500);
    background: var(--color-white);
    border-color: var(--color-white);
}

.button-inverted:hover {
    color: var(--color-green-600);
}

/*
===================
 Header
===================
*/

.topbar {
    background: var(--color-marzipan-400);
}

.topbar .container {
    display: flex;
    justify-content: flex-end;
    padding-block: 8px;
}

.language {
    position: relative;
    font-size: 14px;
    line-height: 18px;
}

.language summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
    cursor: pointer;
    list-style: none;
}

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

.language summary .icon {
    font-size: 16px;
}

.language[open] .dropdown-arrow {
    transform: rotate(180deg);
}

.language ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 160px;
    padding: 16px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px -3px rgb(0 0 0 / 10%);
}

.language a:hover {
    color: var(--color-green-600);
}

.language [aria-current] {
    font-weight: 600;
}

.header .container {
    display: flex;
    justify-content: center;
    padding-block: 16px;
}

.header img {
    width: 86px;
    height: auto;
}

@media (width >= 1200px) {
    .header .container {
        padding-block: 18px;
    }

    .header img {
        width: 137px;
    }
}

/*
===================
 Hero
===================
*/

/* Mobile: portrait image anchored at the bottom (products complete), the empty middle is cropped, text on top */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    color: var(--color-white);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 30%) 0%, rgb(0 0 0 / 0%) 55%);
}

/* Gradient and blur fade diagonally, see template/src/css/components/_hero-subpage.css */
@media (width >= 768px) {
    .hero {
        align-items: center;
        aspect-ratio: auto;
        min-height: 580px;
    }

    .hero-image {
        object-position: center;
    }

    .hero-overlay {
        background: linear-gradient(210deg, rgb(0 0 0 / 0%) 6.81%, rgb(0 0 0 / 30%) 54.7%);
    }

    .hero-overlay::before {
        position: absolute;
        inset: 0;
        content: '';
        backdrop-filter: blur(9px);
        mask-image: linear-gradient(210deg, transparent 0%, #000 100%);
    }
}

.hero-content {
    position: relative;
    padding-block: 48px;
}

.hero-content > * {
    max-width: 800px;
}

.hero-content .text-lead {
    max-width: 592px;
    margin-top: 24px;
}

/* Tablet: products fill the right half of the landscape image */
@media (768px <= width < 992px) {
    .hero-content > *,
    .hero-content .text-lead {
        max-width: 50%;
    }
}

@media (width >= 992px) {
    /* Height follows the image ratio (4000 × 1520), so wide screens never crop the products (min. 580px) */
    .hero {
        min-height: max(580px, 100vw * 1520 / 4000);
    }

    /* Below the image ratio only the empty left part is cropped */
    .hero-image {
        object-position: right center;
    }

    .hero-overlay {
        background: linear-gradient(217deg, rgb(0 0 0 / 0%) 3.01%, rgb(0 0 0 / 30%) 72.21%);
    }

    .hero-overlay::before {
        mask-image: linear-gradient(69deg, #000 12%, transparent 63%);
    }
}

/*
===================
 Sections
===================
*/

.section {
    padding-top: var(--section-spacing);
}

.section-last {
    padding-bottom: var(--section-spacing);
}

.text-center {
    max-width: 1008px;
    margin-inline: auto;
    text-align: center;
}

.text-center .kicker {
    color: var(--color-red-500);
}

.text-center .button,
.text-center .text-paragraph {
    margin-top: 40px;
}

.text-center .h2 {
    color: var(--color-red-500);
}

.text-center .h2 + p {
    max-width: 800px;
    margin: 24px auto 0;
}

/* Image + text */
.media-text {
    display: grid;
    gap: 40px;
    align-items: center;
}

.media-text .h2 {
    color: var(--color-berry-500);
}

.media-text .text-lead {
    margin-top: 24px;
}

.media-text .button {
    margin-top: 40px;
}

@media (width >= 992px) {
    .media-text {
        grid-template-columns: minmax(0, 592fr) minmax(0, 488fr);
        gap: 80px;
    }
}

@media (width >= 1440px) {
    .media-text {
        gap: 136px;
    }
}

/* CTA box, see packages/basis/ContentBlocks/ContentElements/cta */
.cta {
    position: relative;
    overflow: hidden;
    padding: 48px 32px;
    color: var(--color-white);
    background: var(--color-green-500);
    border-radius: 24px;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    display: grid;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.cta .text-lead {
    margin-top: 24px;
}

@media (width >= 768px) {
    .cta {
        padding: 40px;
    }

    .cta-content {
        grid-template-columns: minmax(0, 640px) minmax(240px, auto);
        justify-content: space-between;
        gap: 40px;
        text-align: left;
    }
}

@media (width >= 1200px) {
    .cta {
        padding: 80px;
    }

    .cta .button {
        min-width: 280px;
    }
}

/* Scribble loop, positioned by its center, see decoration-loop in base/_decorations.css and components/_cta.css */
.decoration-loop {
    position: absolute;
    width: 300px;
    aspect-ratio: 1025 / 387;
    background: var(--color-white);
    opacity: 0.6;
    mask-image: url('../img/decoration_loop.svg');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    transform: translate(-50%, -50%) rotate(-28.93deg);
}

.decoration-loop[data-loop="start"] {
    top: 2%;
    left: 1%;
}

.decoration-loop[data-loop="end"] {
    top: 100%;
    left: 100%;
}

@media (width >= 768px) {
    .decoration-loop {
        width: 84%;
    }

    .decoration-loop[data-loop="start"] {
        top: -13%;
        left: -2%;
    }

    .decoration-loop[data-loop="end"] {
        top: 107%;
    }
}

/* Social icons */
.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--color-green-500);
    background: var(--color-white);
    border-radius: 50%;
    transition: color 0.3s ease-in-out;
}

.social-list a:hover {
    color: var(--color-green-600);
}

.social-list .icon {
    width: 32px;
    height: 32px;
}

/* Cards */
.cards {
    display: grid;
    gap: 32px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-grey-100) 0%, #fbf7f1 61.215%);
    border-radius: 24px;
}

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 592 / 444;
    object-fit: cover;
}

.card-body {
    flex-grow: 1;
    padding: 24px;
    background: var(--color-marzipan-400);
}

.card-body p {
    margin-top: 16px;
}

@media (width >= 768px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-body {
        padding: 32px;
    }
}

/*
===================
 Footer
===================
*/

.footer {
    padding: 48px 0 32px;
    background: var(--color-marzipan-400);
}

.footer hr {
    margin-block: 32px;
    border: 0;
    border-top: 1px solid var(--color-grey-200);
}

.footer-logo {
    width: 137px;
    height: auto;
}

.footer-info {
    display: grid;
    gap: 32px;
}

.footer-info .h5 {
    margin-bottom: 24px;
}

.footer-nav {
    display: grid;
    gap: 16px;
}

.footer-nav > div,
.footer-nav ul {
    display: grid;
    align-content: start;
    gap: 16px;
}

.footer-nav a:hover {
    color: var(--color-green-600);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.footer-social .social-list a {
    width: 48px;
    height: 48px;
    color: var(--color-white);
    background: var(--color-green-500);
}

.footer-social .social-list a:hover {
    background: var(--color-green-600);
}

.footer-social .social-list .icon {
    width: 24px;
    height: 24px;
}

@media (width >= 768px) {
    .footer-nav {
        grid-template-columns: repeat(2, minmax(176px, 1fr));
        gap: 32px;
    }
}

@media (width >= 992px) {
    .footer {
        padding: 80px 0 40px;
    }

    .footer hr {
        margin-block: 40px;
    }

    .footer-info {
        grid-template-columns: 280px minmax(0, 800px);
        justify-content: space-between;
    }
}

/*
===================
 Embedded form (complaints page)
===================
*/

.embed {
    max-width: 800px;
    margin: 40px auto 0;
}

.embed iframe {
    display: block;
    width: 100%;
    min-height: 1140px;
    border: 0;
}

.embed p {
    margin-top: 16px;
    font-size: 16px;
}

.embed a {
    color: var(--color-green-500);
    text-decoration: underline;
}

/*
===================
 Legal text page (tax strategy)
===================
*/

.legal-text {
    max-width: 1024px;
}

.legal-text h1 {
    margin-bottom: 32px;
}

.legal-text h2 {
    margin: 64px 0 24px;
    scroll-margin-top: 24px;
}

.legal-text p,
.legal-text ul {
    margin-bottom: 16px;
}

.legal-text .indent {
    padding-left: 24px;
}

.legal-text ul {
    padding-left: 24px;
    list-style: disc;
}

.legal-text .toc {
    padding-left: 0;
    list-style: none;
}

.legal-text .toc a {
    color: var(--color-green-500);
    text-decoration: underline;
}

.legal-text .toc a:hover {
    color: var(--color-green-600);
}

.embed-title {
    margin-top: 64px;
}

.text-center p a {
    color: var(--color-green-500);
    text-decoration: underline;
}
