:root {
    /* Custom Colors */
    /* -------------------------------------------------------- */
    --rrsoftware-primary-color: #00324a;
    --secondary-color: #4d8bff;
    --secondary-color-border: 1px solid rgba(191, 204, 255, 0.6);

    /* Custom Text Colors */
    /* -------------------------------------------------------- */
    --text-color-value: #000;
    --text-on-color-value: #000;
    --button-text-color-value: #fff;

    /* Custom Background Colors */
    /* -------------------------------------------------------- */
    --primary-background-color: #ffffff;
    --secondary-background-color: #ebebeb;
    --surface-color: #ffffff;
    --background-color: #ffffff;

    /* Custom Fonts */
    /* -------------------------------------------------------- */
    --primary-font-family: Roboto, RobotoFallback, "Noto Kufi Arabic", Helvetica,
        Arial, sans-serif;

    /* Custom Sizes */
    /* -------------------------------------------------------- */
    --header-top-padding: 10px;
    --nav-side-padding: 50px;
    --size-top-container: 8em;
    --impressum-height: 43em;
    --dsgvo-height: 43em;
    --max-page-width: 1200px;
}

/* Internal CSS */
/* -------------------------------------------------------- */
/* -------------------------------------------------------- */

/* Layout */
/* -------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: var(--primary-font-family);
    font-size: 16px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    text-align: center;
    text-align: -moz-center;
    text-align: -webkit-center;
}

.page-content {
    text-align: left;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--primary-background-color);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    color: var(--rrsoftware-primary-color);
    padding: 8px 16px;
    height: 6em;
    display: flex;
    justify-content: center;
}

.page-title {
    width: 100%;
    max-width: var(--max-page-width);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;

    .title-image {
        img {
            display: block;
            max-width: 150px;
            max-height: 80px;
            width: auto;
            height: auto;
            place-self: center;
        }

        .rrsoftware-customer-image:has(+ img) {
            display: none;
        }
    }

    .title-container {
        overflow-wrap: anywhere;
        hyphens: manual;

        a {
            text-decoration: none;
            color: inherit;
        }
    }
}

.main-footer {
    margin-top: 32px;
    padding: 32px 16px;
    border-top: var(--secondary-color-border);
}

.page-footer {
    max-width: var(--max-page-width);
    margin: auto;

    ul {
        padding: 0;
        margin: 0;
        display: flex;
        column-gap: 16px;
    }

    li {
        list-style-type: none;
    }

    a,
    a:active,
    a:visited {
        color: var(--secondary-color);
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

.antrago-course-image~.antrago-course-image-place-filler {
    /* Needed because the image is absolutely positioned */
    height: 400px;
}

.antrago-course-image {
    width: 100vw;
    --rrsoftware-image-height: 400px;

    /* Needed to start on left screen border */
    position: absolute;
    top: calc(6em + (2 *8px));
    left: 0;
}

/* Media Query */
/* -------------------------------------------------------- */
.page-content {
    padding: 1.5em calc(6.67em + 20px);
    max-width: var(--max-page-width);
}

@media (max-width: 921px) {
    .page-content {
        padding: 1.5em 2.14em;
    }
}

@media (max-width: 544px) {
    .page-content {
        padding: 1.5em 1em;
    }
}