* {
    box-sizing: border-box;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--main-bg-color);
    color: var(--text-primary);
}

body>main:not(.main-content) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1440px;
    min-height: calc(100dvh - 200px);
    margin: auto;
    padding-top: 30px;
}

main {
    background: var(--main-bg-color);
}

h1 {
    font-family: Inter, sans-serif;
    font-size: clamp(2.9375rem, 11vw, 3.8125rem);
    font-weight: 700;
    line-height: 120%;
}

h2 {
    font-family: Inter, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 120%;
}

h3 {
    font-family: Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 120%;
}

p {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 120%;
}

a {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 120%;
    text-decoration: none;
    cursor: pointer;
}

.desktop-hide {
    display: none;
}

.page-content {
    display: flex;
    flex-direction: column;
    width: calc(100% - 232px);
    min-width: 0;
    height: 100dvh;
    margin-left: 232px;
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 1208px;
    padding: 72px 20px 72px 72px;
    overflow: hidden auto;
}

@media (width <= 1024px) and (hover: none) and (pointer: coarse) {
    .desktop-hide {
        display: flex;
    }

    .mobile-hide {
        display: none;
    }

    .main-content {
        padding: 48px 20px 120px;
    }

    .page-content {
        width: 100%;
        margin-left: 0;
    }
}

@media (orientation: landscape) and (width < 900px) and (hover: none) and (pointer: coarse),
    (orientation: landscape) and (height < 600px) and (hover: none) and (pointer: coarse) {
    body::before {
        display: grid;
        visibility: visible;
        position: fixed;
        inset: 0;
        z-index: 99999;
        place-items: center;
        padding: 24px;
        background: var(--main-bg-color);
        color: var(--text-secondary);
        font-family: Inter, sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 120%;
        text-align: center;        
        content: "Bitte drehe dein Gerät ins Hochformat.";
    }

    body > * {
        visibility: hidden;
    }
}

@media (orientation: landscape) and (width >= 900px) and (height >= 600px) and (hover: none) and (pointer: coarse) {
    .desktop-hide {
        display: flex;
    }

    .mobile-hide {
        display: none;
    }

    .main-content {
        padding: 48px 20px 120px;
    }

    .page-content {
        width: 100%;
        margin-left: 0;
    }
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    overscroll-behavior: none;
}
