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

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/**********************************************************/
/* Web Accessbility                                       */
/**********************************************************/

/* Screen Reader Only Class
***********************************************************/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to Content Link
***********************************************************/
.skip-link {
    position: absolute;
    top: auto;
    left: -100%;
    height: 1px;
    width: 1px;
    text-decoration: none;
    padding: 0.625rem 0.9375rem;
    color: var(--white);
    background-color: var(--red);
    border: 0;
    cursor: pointer;
    z-index: 9999;

    &:focus {
        display: inline-block;
        top: calc(2 * 3px);
        left: calc(2 * 3px);
        height: auto;
        width: auto;
    }
}

/* Keyboard Navigation Visible Focus
***********************************************************/
:not(header, .bg__carpet) {
    :focus-visible {
        outline: 3px dashed var(--gold) !important;
        outline-offset: 3px !important;
    }
}

header, .bg__carpet {
    :focus-visible {
        outline: 3px dashed currentColor !important;
        outline-offset: 3px !important;
    }
}

.block__newsletter {
    :focus-visible {
        outline: 3px dashed var(--white) !important;
        outline-offset: 3px !important;
    }
}

/* Color Contrast
***********************************************************/
.high-contrast {
    background-color: var(--neutral-color-100);
    color: var(--neutral-color-0);
}

/* 
KONTRASTMODUS:
Wenn das System eine höhere Kontraststufe bevorzugt
(z. B. durch Betriebssystem-Einstellung),
und der Nutzer NICHT bereits manuell .contrast-high oder .contrast-normal gewählt hat,
dann werden hier zentrale Kontrastfarben gesetzt.
*/
@media (prefers-contrast: more),
    (prefers-contrast: high),
    (prefers-contrast: custom) {

    body:not(.high-contrast) {

        :is(.block__home, .block__billboard).bg__transparent {
            background-color: #000;
        }

        .footer__legal {
            color: rgba(255, 255, 255, 1);
        }
    }
}

/* Forced Colors Support
***********************************************************/
@media (forced-colors: active) {
    body {
        forced-color-adjust: none;
        background-color: Window;
        color: WindowText;
    }

    a {
        color: Highlight;
        background-color: transparent;
        text-decoration: underline;
    }

    button {
        background-color: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonText;
    }

    input, textarea, select {
        background-color: Field;
        color: FieldText;
        border: 1px solid ButtonText;
    }

    svg, img {
        forced-color-adjust: auto;
    }
}