:root {
    --section-spacer-small: 40px;
    --section-spacer-large: 100px;
    --accent-color: #565fa0;
}

* {
    padding: 0;
    margin: 0;
    position: relative;
}

body {
    font-family: 'Fira Code';
    font-size: 16px;
    line-height: 1.5;
}

body.overflow-h {
    overflow: hidden;
}

ol,
ul,
li {
    list-style: none;
}

h1,
.content__info {
    margin-bottom: var(--section-spacer-small);
}

.content__info {
    font-size: 2rem;
    display: flex;
    justify-content: center;
}

h2 {
    font-size: 1rem;
}

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

.textlink {
    background: linear-gradient(0deg, var(--accent-color), var(--accent-color)) no-repeat right bottom / 0 var(--bg-h);
    transition: background-size 350ms;
    --bg-h: 100%;
    color: var(--accent-color);
    padding: 2px 5px;
}

.textlink:where(:hover, :focus-visible) {
    background-size: 100% var(--bg-h);
    background-position-x: left;
    color: white;
}

.content__cta {
    border-top: 2px solid rgba(23, 27, 38, 0.75);
    padding-top: var(--section-spacer-large);
    margin-top: var(--section-spacer-large);
}

.button {
    background: var(--accent-color);
    color: white;
    padding: 20px;
    border-radius: 6px;
}

.button.full {
    display: block;
    margin: 0 20px;
    transition: opacity 0.5s ease-in;
    text-align: center;
}

.button.full span:nth-child(2) {
    display: none;
}

.button.full:hover {
    opacity: 0.8;
}

.button.full::after {
    content: '';
    background-image: url(/images/pfeil_weiss.svg);
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    display: none;
    height: 30px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.button.full:hover::after {
    transform: translateX(20px) translateY(-50%);
}

p:not(:last-of-type) {
    margin-bottom: var(--section-spacer-small);
}

.container {
    margin: auto;
    width: 100%;
    max-width: 1200px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.header__hero {
    display: flex;
}

.header__hero img {
    aspect-ratio: 3 / 2;
}

.header__hero.centered {
    justify-content: center;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--section-spacer-small);
}

.header__topbar {
    padding: 20px 10px 0;
    display: flex;
    align-items: center;
}

.header__main-navigation {
    margin-left: auto;
    display: none;
    gap: var(--section-spacer-small);
}

.header__main-navigation.open {
    gap: var(--section-spacer-small);
    position: absolute;
    inset: 0;
    background: #171b26;
    height: 100vh;
    z-index: 300;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header__main-navigation a {
    box-shadow: inset 0 0 0 0 var(--accent-color);
    transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 2px 5px;
}

.header__main-navigation a:hover {
    box-shadow: inset 150px 0 0 0 var(--accent-color);
    color: white;
}

.header__burger {
    height: 21px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
}

.header__burger span {
    content: '';
    background-color: black;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    transition-duration: 400ms;
}

.header__burger span:nth-child(1) {
    top: 0;
}

.header__burger span:nth-child(2) {
    top: 9px;
}

.header__burger span:nth-child(3) {
    bottom: 0;
}

.header__burger.open span {
    background-color: white;
}

.header__burger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.header__burger.open span:nth-child(2) {
    opacity: 0;
}

.header__burger.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

main {
    margin-bottom: var(--section-spacer-large);
}

.content__intro {
    padding: 20px 10px 0;
    margin-bottom: var(--section-spacer-small);
}

.content__intro p {
    text-align: justify;
}

.content__questions {
    display: grid;
    gap: calc(var(--section-spacer-large) / 2);
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    padding: 20px 10px 0;
}

.content__questions-card {
    cursor: pointer;
    border-radius: 5px;
    padding: 20px;
    aspect-ratio: 16 / 9;
    perspective: 1000px;
}

.content__questions-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* 3D-Effekt beibehalten */
    transition: transform 0.6s;
    /* Animation beim Drehen */
}

.content__questions-card.active .content__questions-card-inner {
    transform: rotateX(180deg);
}

.content__questions-card-front,
.content__questions-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Verhindert, dass die Rückseite auf der Vorderseite sichtbar ist */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    text-align: center;
}

.content__questions-card-back {
    transform: rotateX(180deg);
}

.content__questions-card--pink {
    background-color: #e67ab0;
}

.content__questions-card--blue {
    background-color: #00b9e8;
}

.content__questions-card--green {
    background-color: #90bc90;
}

.content__questions-card--yellow {
    background-color: #fde460;

    & * {
        color: #252525;
    }
}

.content__questions-card-answer {
    font-size: 1rem;
}

footer {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    padding: var(--section-spacer-small);
}

footer::before {
    content: '';
    display: block;
    background-color: #171b26;
    position: absolute;
    inset: 0;
    opacity: 0.95;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--section-spacer-small);
    padding: var(--section-spacer-small);
    margin-bottom: var(--section-spacer-small);
}

.footer__brand p {
    font-size: 1.5rem;
}

.footer__newsletter {
    margin: 0 0 var(--section-spacer-small);
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 25%;
}

.footer__legal {
    background-color: #171b26;
    margin: auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer__legal>.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.footer__legal-links {
    display: flex;
    gap: var(--section-spacer-small);
    justify-content: center;
    margin-top: var(--section-spacer-small);
}

.footer__legal-links a {
    box-shadow: inset 0 0 0 0 var(white);
    transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 2px 5px;
}

.footer__legal-links a:hover {
    box-shadow: inset 150px 0 0 0 white;
    color: var(--accent-color);
}

.glossar__list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--section-spacer-small) / 2);
}

@media screen and (min-width: 800px) {
    h2 {
        font-size: 2rem;
    }

    .header__topbar {
        padding: 20px 0;
    }

    .header__main-navigation {
        display: flex;
    }

    .header__hero img {
        aspect-ratio: 16 / 6;
    }

    .header__burger {
        display: none;
    }

    .content__brands ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .content__bestsellers {
        grid-template-columns: repeat(3, 1fr);
    }

    .button.full {
        text-align: left;
    }

    .button.full span:nth-child(2) {
        display: inline-block;
    }
}

@media screen and (min-width: 1024px) {
    header {
        margin-bottom: var(--section-spacer-large);
    }

    .content__intro {
        padding: 20px var(--section-spacer-large) 0;
    }

    .content__questions {
        padding: 20px var(--section-spacer-large) 0;
    }

    .footer__legal>.container {
        flex-direction: row;
    }

    .footer__legal-links {
        margin-left: auto;
        margin-top: 0;
    }

    .button.full {
        padding-right: 100px;
        margin: 0 var(--section-spacer-large);
    }

    .button.full::after {
        display: block;
    }
}

@media screen and (min-width: 1200px) {
    .button.full {
        width: 50vw;
        margin: 0 auto;
    }
}