/* commissioner-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Commissioner';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/commissioner-v24-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* commissioner-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Commissioner';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/commissioner-v24-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* satisfy-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Satisfy';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/satisfy-v22-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --clr-orange-400: #e99725;
    --clr-blue-400: #028cbe;
    --clr-green-400: #5da552;
    --clr-gray-800: #262626;
    --clr-light-100: #ededed;
    --font-standard: "Commissioner", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-script: "bistro-script-web", cursive;
    --sg1: clamp(1.75rem, 2.462vw + 0.904rem, 2.75rem);
    --sg2: clamp(1.375rem, 1.538vw + 0.846rem, 2rem);
    --sg3: clamp(1.125rem, 0.923vw + 0.808rem, 1.5rem);
    --sg4: clamp(1rem, 0.615vw + 0.788rem, 1.25rem);
    --sg5: clamp(3.125rem, 7.692vw + 0.481rem, 6.25rem);
    --sg6: clamp(1.563rem, 2.923vw + 0.558rem, 2.75rem);
}

body {
    margin: 0;
    background-color: white;
    color: var(--clr-gray-800);
    font-family: var(--font-standard);
}

h1,
h2 {
    color: var(--clr-gray-800);
    font-size: var(--sg1);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .75rem;
}

p {
    font-size: var(--sg4);
    line-height: 1.25;
    color: var(--clr-gray-800);
}

h3 {
    font-family: var(--font-script);
    font-size: var(--sg6);
    line-height: 1.15;
    font-weight: 400;
}

.name {
    font-size: var(--sg3);
    font-weight: bold;
}

.pacifio {
    font-family: var(--font-script);
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    position: relative;
    list-style: none;
    padding-left: 25px;
    font-size: var(--sg4);
    line-height: 1.25;
    color: var(--clr-gray-800);
}

li:before {
    position: absolute;
    top: 4px;
    display: block;
    content: "";
    left: 0;
    height: .9rem;
    width: .9rem;
    background-color: var(--color, --clr-light-100);
}

.bg-grau {
    background-color: var(--clr-light-100);
}

.hero-wrapper {
    --hero-ribbon-orange: 50px;
    --hero-ribbon-edge: 10px;
    --hero-ribbon-shape: polygon(0 0,
            100% 0,
            100% 72%,
            95% 76%,
            89% 82%,
            82% 89%,
            74% 100%,
            65% 97%,
            56% 89%,
            48% 81%,
            40% 75%,
            31% 71%,
            23% 68%,
            15% 65%,
            7% 55%,
            0 38%);
    --hero-bottom-cover-shape: polygon(0 80%,
            5% 80.8%,
            10% 81.9%,
            15% 83.2%,
            20% 83.9%,
            26% 83.7%,
            33% 85.7%,
            40% 87.8%,
            48% 89.1%,
            56% 89.0%,
            64% 91.6%,
            72% 93.1%,
            80% 92.8%,
            88% 94.4%,
            94% 94.9%,
            98% 94.8%,
            100% 94%,
            100% 100%,
            0 100%);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--hero-ribbon-orange) + 1px);
    background-color: var(--clr-orange-400);
    clip-path: var(--hero-ribbon-shape);
    z-index: 4;
    pointer-events: none;
}

.hero-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--hero-ribbon-orange) + 1px);
    background-color: #fff;
    clip-path: var(--hero-ribbon-shape);
    transform: translateY(var(--hero-ribbon-edge));
    z-index: 3;
    pointer-events: none;
}

.hero-bottom-cover {
    position: absolute;
    inset: 0;
    background-color: #fff;
    clip-path: var(--hero-bottom-cover-shape);
    z-index: 2;
    pointer-events: none;
}

.hero-header {
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    z-index: 2;
    position: relative;
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
}

.hero-background {
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.mt-10 {
    margin-top: 100px;
}

.mb-10 {
    margin-bottom: 100px;
}

.content-section {
    /*padding: 56px 0 64px;*/
}

.contact-title {
    color: var(--clr-blue-400);
    font-weight: 700;
    font-size: var(--sg3);
    line-height: 1.333;
    margin-bottom: 14px;
}

section.orange .contact-title {
    color: var(--clr-blue-400) !important;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: var(--sg4);
    line-height: 1.25;
    color: var(--clr-gray-800);
}

.contact-item a,
.bg-grau a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus,
.bg-grau a:hover,
.bg-grau a:focus {
    text-decoration: underline;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--clr-blue-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 19px;
    height: 19px;
    display: block;
}

.benefit-row {
    margin-top: 40px;
}

.benefit-box {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: var(--sg2);
    line-height: 1.25;
    padding: 18px;
}

.benefit-orange {
    background-color: var(--clr-orange-400);
}

.benefit-blue {
    background-color: var(--clr-blue-400);
}

.benefit-green {
    background-color: var(--clr-green-400);
}

.nach-header {
    position: relative;
    z-index: 10;
}

.band {
    font-family: var(--font-script);
    font-size: var(--sg5);
    line-height: 1;
    padding: 50px 0 50px;
    position: relative;
    background-size: cover;
    color: #fff;
    overflow: visible;
    z-index: 0;
}

.blau {
    --color: var(--clr-blue-400);
}

.gruen {
    --color: var(--clr-green-400);
}

.orange {
    --color: var(--clr-orange-400);
}

.band.blau {
    background-color: var(--clr-blue-400);
}

.band.gruen {
    background-color: var(--clr-green-400);
}

.band.orange {
    background-color: var(--clr-orange-400);
}

.band::before,
.band::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 42px;
    background-color: #fff;
    pointer-events: none;
    z-index: 1;
}

.band::before {
    top: -1px;
    clip-path: polygon(0 0,
            100% 0,
            100% 67%,
            92% 55%,
            84% 72%,
            74% 51%,
            64% 69%,
            53% 53%,
            42% 73%,
            31% 56%,
            20% 71%,
            10% 52%,
            0 66%);
}

.band::after {
    bottom: -1px;
    clip-path: polygon(0 32%,
            9% 47%,
            18% 29%,
            29% 44%,
            40% 26%,
            51% 49%,
            62% 33%,
            73% 50%,
            84% 28%,
            93% 44%,
            100% 36%,
            100% 100%,
            0 100%);
}

.band h2,
.band h3 {
    color: #fff;
}

.blau h2,
.blau h3 {
    color: var(--clr-blue-400);
}

.orange h2,
.orange h3 {
    color: var(--clr-orange-400);
}

section.orange :is(h1, h2, h3) {
    color: var(--clr-orange-400);
}

section.blau :is(h1, h2, h3) {
    color: var(--clr-blue-400);
}

section.blau .btn {
    background-color: var(--clr-blue-400);
}

section.blau .btn:hover,
section.blau .btn:focus {
    background-color: #027aa7;
}

section.gruen :is(h1, h2, h3) {
    color: var(--clr-green-400);
}

section.gruen .btn {
    background-color: var(--clr-green-400);
}

section.gruen .btn:hover,
section.gruen .btn:focus {
    background-color: #4d8f44;
}

section.orange :is(h1, h2, h3) {
    color: var(--clr-orange-400);
}

section.orange .btn {
    background-color: var(--clr-orange-400);
}

section.orange .btn:hover,
section.orange .btn:focus {
    background-color: #db901d;
}

.site-footer {
    position: relative;
    background-color: var(--clr-orange-400);
    color: #fff;
    padding: 4rem 0 2rem;
    overflow: visible;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 42px;
    background-color: #fff;
    clip-path: polygon(0 0,
            100% 0,
            100% 67%,
            92% 55%,
            84% 72%,
            74% 51%,
            64% 69%,
            53% 53%,
            42% 73%,
            31% 56%,
            20% 71%,
            10% 52%,
            0 66%);
    pointer-events: none;
}

.site-footer__row {
    position: relative;
    z-index: 1;
    min-height: 50px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: var(--sg4);
    font-weight: 700;
}

.site-footer__links a {
    color: #fff;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer__brand {
    font-size: var(--sg3);
    font-weight: 700;
    white-space: nowrap;
}

.site-footer__social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
}

.site-footer__social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.site-footer__social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.legal-header {
    background-color: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 50;
}

.legal-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-header__brand img {
    width: clamp(140px, 8vw + 90px, 220px);
    height: auto;
}

.legal-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-header__nav a {
    color: var(--clr-gray-800);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--sg4);
}

.legal-header__nav a[aria-current="page"] {
    color: var(--clr-orange-400);
}

.legal-header__nav a:hover,
.legal-header__nav a:focus {
    text-decoration: underline;
}

.legal-page {
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
    padding: 2rem 0 5rem;
}

.legal-page__container {
    max-width: 980px;
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: clamp(1.25rem, 1.538vw + 0.721rem, 2rem);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--clr-blue-400);
    text-decoration: none;
    font-weight: 700;
}

.legal-page__back:hover,
.legal-page__back:focus {
    text-decoration: underline;
}

.legal-page h1 {
    margin-bottom: 1rem;
    color: var(--clr-orange-400);
}

.legal-page h2 {
    margin-top: 2rem;
    color: var(--clr-orange-400);
}

.legal-page h3 {
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

.legal-page h4 {
    font-size: var(--sg4);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: .25rem;
}

.legal-page p,
.legal-page li {
    margin-bottom: .85rem;
}

.legal-page a {
    color: var(--clr-blue-400);
}

.legal-page ul {
    padding-left: 1.25rem;
}

.legal-page li {
    list-style: disc;
    padding-left: 0;
}

.legal-page li::before {
    content: none;
}


@media (max-width: 1199.98px) {
    .benefit-box {
        font-size: 28px;
    }
}

@media (max-width: 991.98px) {
    .contact-row {
        padding-left: 0;
    }

    .benefit-row {
        margin-top: 32px;
    }

    .benefit-box {
        height: 160px;
    }
}

.btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 25px;
    background-color: var(--clr-orange-400);
    color: #fff;
    text-align: center;
    font-family: var(--font-standard);
    font-size: var(--sg1);
    font-weight: 700;
    line-height: 1.2;
    padding: 15px 8px;
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    color: #fff;
    text-decoration: none;
    background-color: #db901d;
}

.certificates-grid {
    margin-top: clamp(1.25rem, 1.538vw + 0.721rem, 2rem);
}

.certificate-card {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.certificate-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.certificate-card:hover .certificate-image,
.certificate-card:focus-visible .certificate-image {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.certificate-card:focus-visible {
    outline: 3px solid var(--clr-blue-400);
    outline-offset: 4px;
    border-radius: 18px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 1200;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 980px);
}

.lightbox__image {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--clr-gray-800);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .hero-wrapper {
        --hero-ribbon-shape: polygon(0 0,
                100% 0,
                100% 74%,
                86% 84%,
                72% 100%,
                56% 88%,
                39% 77%,
                22% 70%,
                8% 58%,
                0 43%);
        --hero-bottom-cover-shape: polygon(0 79%,
                10% 79.7%,
                20% 80.9%,
                31% 82.8%,
                42% 84.7%,
                53% 85.5%,
                63% 85.1%,
                73% 88.2%,
                83% 90.8%,
                91% 92.4%,
                96% 93.1%,
                100% 92.6%,
                100% 100%,
                0 100%);
    }

    .band {
        padding: 56px 0;
    }

    .band::before,
    .band::after {
        height: 44px;
    }

    .btn {
        padding: 18px 12px;
    }

    .site-footer {
        padding: 4rem 0 2rem;
    }

    .site-footer__row {
        justify-items: center;
        gap: .75rem;
    }

    .site-footer__links {
        justify-content: center;
    }

    .site-footer__brand {
        white-space: normal;
        text-align: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .site-footer__social {
        justify-content: center;
    }

    .legal-header {
        position: static;
    }

    .legal-header__inner {
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        padding-top: .65rem;
        padding-bottom: .65rem;
    }

    .legal-header__nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legal-page {
        padding-top: 1.25rem;
    }

    .lightbox__dialog {
        width: min(94vw, 760px);
    }
}
