/**
CSS Reset
Source: https://www.joshwcomeau.com/css/custom-css-reset/
 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

.form [type="submit"] {
    margin-top: 1rem;
}

/**
Fonts
 */
@font-face {
    font-family: 'myriad-pro-goldschmittportal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/myriad-pro/MyriadPro-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'myriad-pro-goldschmittportal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/myriad-pro/MyriadPro-Bold.woff2) format('woff2');
}

@font-face {
    font-display: swap;
    font-family: "KomuA";
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/KomuA.woff2') format('woff2'), url('../fonts/KomuA.woff') format('woff');
}

/**
Foundation
 */
:root {
    /**
    Colors
     */
    --color-primary-rgb: 0, 131, 143;
    --color-primary: rgb(var(--color-primary-rgb));

    --color-contrast-rgb: 255, 255, 255;
    --color-contrast: rgb(var(--color-contrast-rgb));

    --color-background-rgb: 255, 255, 255;
    --color-background: rgb(var(--color-background-rgb));

    --color-text-rgb: 0, 0, 0;
    --color-text: rgb(var(--color-text-rgb));

    --color-gray-rgb: 107, 107, 107;
    --color-gray: rgb(var(--color-gray-rgb));

    /**
    Typography
     */
    --font-family: 'myriad-pro-goldschmittportal', 'Myriad Pro', sans-serif;
    --font-size: 1rem;
    --line-height-adjust: 0.5;
    --line-height: 1.5;
    --font-weight: 400;
    --font-weight-bold: 700;

    /**
    Layout
     */
    --page-width: 1200px;
    --page-padding: 1rem;

    /**
    Buttons
     */
    --button-padding-x: 1rem;
    --button-padding-y: 0.5rem;
    --button-border-radius: 0;
    --button-background: var(--color-primary);
    --button-color: var(--color-contrast);
    --button-background-hover: rgba(var(--color-primary-rgb), 0.8);
    --button-color-hover: var(--color-contrast);
}

/**
Global
 */
body {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
}

/**
Typography
 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

h1 {
    font-family: 'KomuA', 'Myriad Pro', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 4.375rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

@media(max-width: 800px) {
    h1 {
        font-size: 3.5rem;
    }
}

@media(max-width: 500px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media(max-width: 370px) {
    h1 {
        font-size: 2rem;
    }
}

h2 {
    font-size: 2rem;
}

@media(max-width: 500px) {
    h2 {
        font-size: 1.7rem;
    }
}

h3 {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
}

@media(max-width: 500px) {
    h3 {
        font-size: 1.3rem;
    }
}

h4 {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

:is(h1, h2, h3) + p {
    margin-top: 0.75rem;
}

:is(h1, h2, h3) + :is(h1, h2, h3) {
    margin-top: 1.5rem;
}

:is(p, ul, ol) + h2 {
    margin-top: 2rem;
}

:is(p, ul, ol) + h3 {
    margin-top: 1.5rem;
}

:is(p, ul, ol) + h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: unset;
}

:where(a) {
    color: var(--color-gray);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-page a {
    word-break: break-word;
}

p + p {
    margin-top: 1rem;
}

/**
Legal page typo
 */
.legal-page h1 {
    font-family: 'KomuA', 'Myriad Pro', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.legal-page h2 {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-block: 3.5rem 2rem;
}

.legal-page h3 {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-block: 2.5rem 1.5rem;
}

.legal-page h4 {
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: unset;
}

.legal-page h1 + h2 {
    margin-top: 4rem;
}

.legal-page h2 + h3 {
    margin-top: 1rem;
}
.legal-page h3 + p {
    margin-top: 0.5rem;
}

.legal-page h3 + h4 {
    margin-top: 0.5rem;
}
.legal-page h4 + p {
    margin-top: 0.25rem;
}

.legal-page ul,
.legal-page ol {
    margin-block: 1.5rem;
    padding-left: 1rem;
}

.legal-page li + li {
    margin-top: 1rem;
}

.legal-page {
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.625em;
}

/**
Layout
 */
body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

main {
    padding: 6.125rem 0;
}

@media (max-width: 430px) {
    main {
        padding: 4.5rem 0;
    }
}

.container {
    max-width: var(--page-width);
    margin-inline: auto;
    padding: 0 var(--page-padding);
}

.container--small {
    max-width: 35rem;
}

.centered {
    text-align: center;
}

/**
Header
 */
.header {
    padding: 1rem 0;
    background: #000000;
}

.header .logo {
    display: block;
    max-height: 5.5rem;
    max-width: 100%;
    object-fit: contain;
    margin-inline: auto;
}

/**
Footer
 */
.footer {
    padding: 2.5rem 0;
    background-color: #000000;
}

.footer__inner {
    max-width: 35rem;
    padding-inline: var(--page-padding);
    margin: 0 auto;
}

.footer__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #FFFFFF;
    text-decoration: none;
}

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

.footer__back svg {
    height: 1rem;
    aspect-ratio: 1;
}

.footer__links {
    margin-top: 1.75rem;
    padding-top: 1.8rem;
    border-top: 1px solid #FFFFFF;
}

.footer__links ul {
    --_gap: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--_gap);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    display: flex;
    align-items: center;
    gap: var(--_gap);
}

.footer__links li:not(:last-child)::after {
    content: '';
    height: 0.2em;
    aspect-ratio: 1;
    background-color: #FFFFFF;
    display: inline-block;
    border-radius: 999px;
}

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

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

.footer__copyright {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer .notice {
    padding-top: calc(var(--line-height-adjust));
    display: block;
    color: #FFFFFF;
}

/**
Language Switcher
 */
.language-switch {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
}
.language-switch button {
    border: none;
    background: transparent;
    font-weight: normal;
    display: flex;
    align-items: start;
    gap: 0.25em;
    width: fit-content;
    padding-inline: 0.5rem;
}
.language-switch button svg {
    height: 1.3em;
    aspect-ratio: 1;
    flex-shrink: 0;
    padding-top: 0.05em;
}

.language-switch ul {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    padding: 0.25rem;
    display: none;
    z-index: 999;
    min-width: 100%;
}

/* touch devices: class */
.language-switch--open ul {
    display: block;
}

/* no-touch devices: hover */
@media(hover: hover) {
    .language-switch:hover ul {
        display: block;
    }
}

.language-switch ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switch ul li a {
    display: block;
    padding: 0.65rem 0.5rem 0.5rem 0.5rem;
    text-decoration: none;
    color: #000;
}

.language-switch ul li a:hover {
    background: #f9f9f9;
}

.language-switch ul a[aria-current] {
    font-weight: bold;
}

@media(max-width: 520px) {
    .header .logo {
        margin-inline: 0;
    }
}

/**
Buttons
 */
.button,
input[type=submit],
button {
    display: inline-block;
    padding: var(--button-padding-y) var(--button-padding-x);
    padding-top: calc(var(--button-padding-y) * (var(--line-height-adjust) + 1));
    border-radius: var(--button-border-radius);
    background-color: var(--button-background);
    color: var(--button-color);
    text-align: center;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    border: none;
}

:is(.button,
input[type=submit],
button):hover {
    background-color: var(--button-background-hover);
    color: var(--button-color-hover);
}

:is(.button,
input[type=submit],
button):disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/**
Forms
 */
.form {
    margin-block: 3.5rem;
}

.input-field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-field--checkbox {
    margin-block: 2.25rem;
}

.input-field__checkbox-wrapper {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.input-field > span.error {
    color: red;
    margin-top: 0.5rem;
}

.input-field label span {
    color: var(--color-primary);
}

.form input,
.form textarea,
.form select {
    --_shadow-color: rgba(0, 0, 0, 0.05);
    padding: calc(0.5rem * (var(--line-height-adjust) + 1)) 0.5rem 0.5rem;
    border: 1px solid #EFEFEF;
    border-radius: 0;
    margin-top: 0.25rem;
    accent-color: var(--color-primary);
    background: #F9F9F9;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--color-primary);
    --_shadow-color: rgba(var(--color-primary-rgb), 0.1);
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 0.15rem;
}

.form input::placeholder,
.form textarea::placeholder,
.form select::placeholder {
    color: #6B6B6B;
}

.form input[type="checkbox"],
.form input[type="radio"] {
    accent-color: var(--color-primary);
}

.form .notice {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.input-field {
    --_max-width: 90vw;
    position: relative;
}

.input-field details summary {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.input-field details > summary {
    list-style: none;
}
.input-field details > summary::-webkit-details-marker {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    list-style: none;
}

.input-field details summary::before {
    content: "";
    height: 1.4rem;
    width: 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    line-height: 1;
    background-image: url(./info.svg);
    background-size: 1rem;
    background-repeat: no-repeat;
    background-position: center;
}

.input-field details summary span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    display: block;
}

.input-field details > div {
    position: absolute;
    bottom: calc(100% + 0.25rem);
    right: 0;
    width: max-content;
    max-width: var(--_max-width);
    padding: 1rem;
    background: #fff;
    border-radius: 0;
    z-index: 999;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.input-field details.details--right > div {
    right: unset;
    left: calc(100% + 0.5rem);
    bottom: unset;
    top: var(--_top-offset, 0);
    transform: translateY(-50%);
}

.input-field details.details--right > div::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    height: 1rem;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom-width: 0;
    border-right-width: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.input-field details button {
    background: none;
    padding: 0.25rem;
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    font-size: 1rem;
    color: var(--color-text);
}

.input-field details button svg {
    height: 1rem;
    aspect-ratio: 1;
}

/**
Misc
 */
.title-icon {
    height: 4.5rem;
    aspect-ratio: 1;
    color: var(--color-primary);
    display: block;
}
.centered .title-icon {
    margin-inline: auto;
}

.title-icon + :is(h1, h2, h3) {
    margin-top: 1rem;
}

/**
Confirmation box
 */
.confirmation-box,
.error-box {
    margin-bottom: 2rem;
    margin-top: -0.75rem;
    border-radius: var(--button-border-radius);
    background: rgb(238, 238, 238);
    padding: 0.75em;
    display: none;
    gap: 0.5em;
    align-items: center;
}

.confirmation-box span,
.error-box span {
    padding-top: calc(var(--line-height-adjust) * 0.5em);
}

/**
Bulk Import
 */
.bi-table {
    width: calc(100% + 2rem);
    overflow-x: auto;
    margin-block: 2rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
}

.bi-table table {
    border-collapse: collapse;
    width: fit-content;
}

.bi-table.bi-table--borders tbody tr {
    border-bottom: 1px solid #EFEFEF;
}

.bi-table thead {
    border-bottom: 1px solid #EFEFEF;
}

/* .bi-table tfoot {
    border-top: 1px solid #EFEFEF;
} */

.bi-table tfoot tr:first-child :is(th, td) {
    padding-block-start: 0;
}

.bi-table button {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.bi-table :is(td, th) {
    text-align: left;
    vertical-align: top;
    padding-inline: 0.75rem;
    padding-block: 1rem;
}

.bi-table th {
    padding-block: 0.5rem;
}

.bi-table tbody tr:not(:first-child) td {
    padding-block-start: 0;
}

.bi-table :is(td, th):last-child {
    padding-inline-end: 0;
}

.bi-table :is(td, th):first-child {
    padding-inline-start: 0;
}

.bi-table :is(td, th) > :last-child {
    margin-bottom: 0.45rem;
}

.bi-table thead th {
    font-weight: normal;
}

.bi-table thead th span[aria-hidden="true"] {
    color: var(--color-primary);
}

.bi-table tbody input {
    width: 100%;
}

.bi-table tbody :is(input, button) {
    margin-bottom: 0 !important;
}

.bi-table .has-error {
    border-color: #e34c12;
}

.bi-table .error-text {
    color: #e34c12;
    margin-top: 0.25rem;
    display: block;
}

.bi-table-error {
    color: #e34c12;
    margin-top: 0.25rem;
    display: block;
}

.bi-table .visually-hidden + input {
    margin-top: 0;
}

/*
	Improved screen reader only CSS class
	@author Gaël Poupard
		@note Based on Yahoo!'s technique
		@author Thierry Koblentz
		@see https://www.cssmojo.com/hide-content-from-sighted-users/
	* 1.
		@note Use to only display content when it's focused, or one of its child elements is focused
		@see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
		@note Based on a HTML5 Boilerplate technique, included in Bootstrap
	* 2.
		@note `clip-path` shortest syntax
		@author Yvain Liechti
		@see https://twitter.com/ryuran78/status/778943389819604992
	* 3.
		@note preventing text to be condensed
		author J. Renée Beach
		@see https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
		@note Drupal 8 goes with word-wrap: normal instead
		@see https://www.drupal.org/node/2045151
		@see http://cgit.drupalcode.org/drupal/commit/?id=5b847ea
	* 4.
		@note !important is important
		@note Obviously you wanna hide something
		@author Harry Roberts
		@see https://csswizardry.com/2016/05/the-importance-of-important/
*/

.visually-hidden {
    border: 0 !important;
    clip-path: inset(50%) !important; /* 2 */
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 1px !important;
    white-space: nowrap !important; /* 3 */
    display: block; /* @author Linus Benkner */
}

/*
	Prevent overflowing children from being focusable.
	@author Django Janny
	@see https://github.com/twbs/bootstrap/pull/41286
*/
.visually-hidden * {
    overflow: hidden !important;
}

@media(max-width: 550px) {
    .bi-table :is(table, thead, tbody, tfoot, tr, th, td) {
        display: block;
    }
    .bi-table :is(table, thead, tbody, tfoot, tr, th, td):empty {
        display: none;
    }
    .bi-table thead {
        display: none;
    }
    .bi-table [data-input-row] + [data-input-row] {
        border-top: 1px solid #eee;
        padding-top: 1.5rem;
    }
    .bi-table .visually-hidden {
        display: block !important;
        clip-path: unset !important;
        height: unset !important;
        margin: 0 0 0.25rem 0 !important;
        overflow: unset !important;
        width: unset !important;
        white-space: unset !important;
        font-weight: bold !important;
    }
    .bi-table--mobile-space tbody tr {
        padding-block: 1rem;
    }
}
