/* =========================================================
   BAVARIAN KINGS
   Anmeldung, Registrierung und Benutzerkonto
   ========================================================= */


/* ---------------------------------------------------------
   Header während geöffneter Anmeldung nach vorne holen
   --------------------------------------------------------- */

.site-header.is-auth-open {
    z-index: 1100;
}


/* =========================================================
   LOGIN- / REGISTRIERUNGSLEISTE IM HEADER
   ========================================================= */

.auth-panel {
    position: absolute;
    z-index: 5;

    top: 50%;
    right: 150px;

    display: flex;
    align-items: center;

    width: 820px;
    height: 48px;

    padding: 5px 16px 5px 20px;

    gap: 12px;

    color: var(--color-text-light);

    background-color: var(--color-royal-blue-dark);
    background-image:
        url("/assets/images/default/backgrounds/background-dark-blue-01.png");
    background-repeat: repeat;
    background-position: center;
    background-size: auto 100%;

    border: 1px solid rgb(224 177 70 / 78%);
    border-radius: 999px;

    box-shadow:
        0 3px 10px rgb(0 0 0 / 45%),
        inset 0 1px 0 rgb(255 224 145 / 18%),
        inset 0 -1px 0 rgb(57 31 8 / 48%);

    transform: translateY(-50%);
}

.auth-panel[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   Einzelne Ansichten innerhalb der Leiste
   --------------------------------------------------------- */

.auth-panel__view {
    display: flex;
    align-items: center;

    flex: 1 1 auto;

    min-width: 0;

    gap: 12px;
}

.auth-panel__view[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   Normalen Header während Auth-Leiste ausblenden
   --------------------------------------------------------- */

.site-header.is-auth-open .site-header__motto,
.site-header.is-auth-open .site-header__actions {
    opacity: 0;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Formular
   --------------------------------------------------------- */

.auth-panel__form {
    display: flex;
    align-items: center;

    flex: 1 1 auto;

    min-width: 0;

    gap: 10px;
}

.auth-panel__form--register {
    flex: 1 1 auto;
}


/* ---------------------------------------------------------
   Eingabefelder
   --------------------------------------------------------- */

.auth-panel__field {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 6px;
}

.auth-panel__field--email {
    flex: 1 1 220px;
}

.auth-panel__field--password {
    flex: 1 1 180px;
}

.auth-panel__field--register-email {
    flex: 1 1 auto;
}

.auth-panel__label {
    flex: 0 0 auto;

    color: #f0c65b;

    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    line-height: 1;

    white-space: nowrap;

    text-shadow:
        0 1px 1px rgb(0 0 0 / 72%);
}

.auth-panel__input {
    min-width: 0;
    height: 28px;

    padding: 3px 9px;

    color: var(--color-text);

    background:
        linear-gradient(
            180deg,
            rgb(255 249 229 / 98%),
            rgb(233 216 177 / 98%)
        );

    border: 1px solid rgb(176 138 69 / 78%);
    border-radius: 6px;

    outline: none;

    font-size: 12px;

    box-shadow:
        inset 0 1px 3px rgb(66 42 20 / 20%),
        0 0 0 1px rgb(255 239 188 / 8%);

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.auth-panel__field--email .auth-panel__input,
.auth-panel__field--password .auth-panel__input,
.auth-panel__field--register-email .auth-panel__input {
    width: 100%;
}

.auth-panel__input:focus {
    border-color: #e7b84f;

    box-shadow:
        inset 0 1px 3px rgb(66 42 20 / 20%),
        0 0 0 2px rgb(231 184 79 / 20%);
}


/* ---------------------------------------------------------
   Passwortfeld mit Augen-Schalter
   --------------------------------------------------------- */

.auth-panel__password-wrap {
    position: relative;

    flex: 1 1 auto;

    min-width: 0;
}

.auth-panel__password-wrap .auth-panel__input {
    padding-right: 31px;
}

.auth-panel__password-toggle {
    position: absolute;

    top: 50%;
    right: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    padding: 0;

    color: var(--color-gold-dark);
    background: transparent;

    border: 0;

    font-size: 15px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0.72;
}

.auth-panel__password-toggle:hover {
    opacity: 1;
}


/* ---------------------------------------------------------
   Angemeldet bleiben
   --------------------------------------------------------- */

.auth-panel__remember {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 5px;

    color: var(--color-text-light);

    font-size: 10px;
    line-height: 1.1;

    white-space: nowrap;

    cursor: pointer;
}

.auth-panel__checkbox {
    width: 14px;
    height: 14px;

    margin: 0;

    accent-color: #d7a83f;

    cursor: pointer;
}


/* ---------------------------------------------------------
   Aktions-Buttons
   --------------------------------------------------------- */

.auth-panel__submit {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 82px;
    height: 30px;

    margin: 0;
    padding: 0 10px;

    color: var(--color-royal-blue-dark);

    background-color: transparent;
    background-image:
        url("/assets/images/default/buttons/button-gold-01-3x.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    border: 0;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.05em;

    cursor: pointer;

    transition:
        transform 150ms ease,
        filter 150ms ease;
}

.auth-panel__submit--register {
    width: 105px;
}

.auth-panel__submit:hover {
    transform: scale(1.025);

    filter: brightness(1.08);
}


/* ---------------------------------------------------------
   Textlinks
   --------------------------------------------------------- */

.auth-panel__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 104px;

    padding-left: 1px;

    gap: 2px;
}

.auth-panel__link {
    padding: 0;

    color: #f2c65b;
    background: transparent;

    border: 0;

    font-family: "Times New Roman", Times, serif;
    font-size: 10px;
    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    text-shadow:
        0 1px 1px rgb(0 0 0 / 70%);
}

.auth-panel__link:hover,
.auth-panel__link:focus-visible {
    color: #ffe493;

    text-decoration: underline;
}


/* ---------------------------------------------------------
   Bestätigung nach Registrierungsanfrage
   --------------------------------------------------------- */

.auth-panel__registration-confirmation {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-width: 0;

    gap: 18px;
}

.auth-panel__registration-confirmation-text {
    flex: 1 1 auto;

    min-width: 0;

    color: var(--color-text-light);

    font-size: 11px;
    line-height: 1.35;
}

.auth-panel__registration-confirmation-text strong {
    color: #f2c65b;

    font-weight: 700;
}


/* ---------------------------------------------------------
   Rückmeldungen
   --------------------------------------------------------- */

.auth-panel__message {
    position: absolute;

    top: calc(100% + 7px);
    right: 22px;

    max-width: 470px;

    padding: 7px 12px;

    color: var(--color-text);

    background: var(--color-parchment);

    border: 1px solid var(--color-gold);
    border-radius: 7px;

    font-size: 11px;
    line-height: 1.35;

    box-shadow:
        0 3px 9px rgb(0 0 0 / 30%);
}

.auth-panel__message--error {
    border-color: #93453c;
}

.auth-panel__admin-notice {
    color: #d94b4b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
}


/* =========================================================
   REGISTRIERUNG ABSCHLIESSEN – OVERLAY
   ========================================================= */

.registration-overlay {
    position: fixed;
    z-index: 5000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 90px 28px 32px;

    overflow-y: auto;

    background:
        rgb(0 0 0 / 38%);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}


/* ---------------------------------------------------------
   Großes Registrierungsfenster
   --------------------------------------------------------- */

.registration-modal {
    position: relative;

    width: min(740px, 100%);
    max-height: calc(100vh - 122px);

    overflow-y: auto;

    color: #f0eadc;

    background:
        linear-gradient(
            145deg,
            rgb(10 18 30 / 84%),
            rgb(5 11 20 / 80%)
        );

    border: 0;
    border-radius: 22px;

    box-shadow:
        0 24px 70px rgb(0 0 0 / 58%),
        0 0 34px rgb(0 0 0 / 34%),
        inset 0 1px 0 rgb(255 229 163 / 10%),
        inset 0 -1px 0 rgb(0 0 0 / 36%);
}

.registration-modal__inner {
    padding: 34px 38px 38px;
}


/* ---------------------------------------------------------
   Überschrift
   --------------------------------------------------------- */

.registration-modal__title {
    margin: 0 0 22px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.15;

    text-align: center;

    letter-spacing: 0.035em;

    color: #e9b640;

    text-shadow:
        0 1px 1px rgb(0 0 0 / 80%),
        0 2px 5px rgb(0 0 0 / 50%);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .registration-modal__title {
        background-image:
            linear-gradient(
                180deg,
                #fff1a8 0%,
                #ffd45f 28%,
                #e8a72e 58%,
                #bd6e12 82%,
                #f0bd47 100%
            );

        background-clip: text;
        -webkit-background-clip: text;

        color: #e9b640;

        -webkit-text-fill-color: transparent;
    }
}


/* ---------------------------------------------------------
   Einführung
   --------------------------------------------------------- */

.registration-modal__intro {
    margin: 0 0 28px;

    color: #e2dbcd;

    font-size: 15px;
    line-height: 1.6;

    text-align: center;
}

.registration-modal__intro p {
    margin: 0 0 7px;
}

.registration-modal__intro p:last-child {
    margin-bottom: 0;
}

.registration-modal__intro strong {
    color: #f1c75d;
}


/* =========================================================
   REGISTRIERUNGSFORMULAR
   ========================================================= */

.registration-form {
    display: block;
}


/* ---------------------------------------------------------
   Beschriftungen
   --------------------------------------------------------- */

.registration-form__label {
    display: block;

    margin-bottom: 8px;

    color: #f3ecdd;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}


/* ---------------------------------------------------------
   Nickname
   --------------------------------------------------------- */

.registration-form__nickname {
    margin-bottom: 28px;
}


/* ---------------------------------------------------------
   Eingabefelder
   --------------------------------------------------------- */

.registration-form__input {
    display: block;

    width: 100%;
    height: 44px;

    padding: 8px 13px;

    color: #2e2418;

    background:
        linear-gradient(
            180deg,
            rgb(255 250 233 / 100%),
            rgb(230 213 174 / 100%)
        );

    border: 1px solid rgb(190 148 68 / 85%);
    border-radius: 9px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    box-shadow:
        inset 0 2px 5px rgb(64 39 16 / 18%),
        0 0 0 1px rgb(255 237 178 / 7%);

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.registration-form__input:focus {
    border-color: #e8b748;

    box-shadow:
        inset 0 2px 5px rgb(64 39 16 / 18%),
        0 0 0 2px rgb(232 183 72 / 22%);
}


/* ---------------------------------------------------------
   Nickname-Hinweis
   --------------------------------------------------------- */

.registration-form__nickname-status {
    margin-top: 9px;

    color: #c7c0b3;

    font-size: 13px;
    line-height: 1.55;
}

.registration-form__nickname-status.is-invalid {
    color: #f08a81;
}

.registration-form__nickname-status.is-valid {
    color: #7dd38d;
}


/* ---------------------------------------------------------
   Passwortfelder nebeneinander
   --------------------------------------------------------- */

.registration-form__password-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 28px;

    margin-bottom: 30px;
}

.registration-form__password-column {
    min-width: 0;
}


/* ---------------------------------------------------------
   Passwortfeld mit Auge
   --------------------------------------------------------- */

.registration-form__password-wrap {
    position: relative;
}

.registration-form__password-wrap .registration-form__input {
    padding-right: 44px;
}

.registration-form__password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin: 0;
    padding: 0;

    color: #765117;
    background: transparent;

    border: 0;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0.72;

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.registration-form__password-toggle:hover {
    opacity: 1;
}


/* ---------------------------------------------------------
   Passwortregeln
   --------------------------------------------------------- */

.registration-form__rules {
    display: grid;

    grid-template-columns: 1fr;

    margin: 12px 0 0;
    padding: 0;

    gap: 6px;

    list-style: none;
}

.registration-form__rule {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #f1847b;

    font-size: 13px;
    line-height: 1.3;

    transition:
        color 130ms ease;
}

.registration-form__rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.registration-form__rule.is-valid {
    color: #79d08a;
}

.registration-form__rule.is-valid .registration-form__rule-icon {
    color: #79d08a;
}


/* ---------------------------------------------------------
   Passwort-Wiederholung
   --------------------------------------------------------- */

.registration-form__match-status {
    margin-top: 12px;

    min-height: 20px;

    color: #bbb4a7;

    font-size: 13px;
    line-height: 1.45;
}

.registration-form__match-status.is-invalid {
    color: #f1847b;
}

.registration-form__match-status.is-valid {
    color: #79d08a;
}


/* ---------------------------------------------------------
   Angemeldet bleiben
   --------------------------------------------------------- */

.registration-form__remember {
    display: flex;
    align-items: flex-start;

    margin: 4px 0 24px;

    gap: 11px;

    color: #ddd6c7;

    cursor: pointer;
}

.registration-form__checkbox {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 3px 0 0;

    accent-color: #d7a83f;

    cursor: pointer;
}

.registration-form__remember span {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.registration-form__remember strong {
    color: #f1eadc;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.registration-form__remember small {
    color: #c1baad;

    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Datenschutz-Hinweis
   --------------------------------------------------------- */

.registration-form__privacy {
    color: #bbb4a7;

    font-size: 12px;
    line-height: 1.55;

    text-align: center;
}

.registration-form__privacy-link {
    display: inline;

    margin: 0;
    padding: 0;

    color: #edc35b;
    background: transparent;

    border: 0;

    font: inherit;

    text-decoration: underline;

    cursor: pointer;
}

.registration-form__privacy-link:hover,
.registration-form__privacy-link:focus-visible {
    color: #ffe295;
}


/* ---------------------------------------------------------
   Abschlussbutton
   --------------------------------------------------------- */

.registration-form__actions {
    display: flex;
    justify-content: center;

    margin-top: 26px;
}

.registration-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 310px;
    height: 50px;

    margin: 0;
    padding: 0 28px;

    color: #f7e5ad;

    background-color: transparent;
    background-image:
        url("/assets/images/default/buttons/button-blue-01-5x.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    border: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.07em;

    text-shadow:
        0 1px 2px rgb(0 0 0 / 90%);

    cursor: pointer;

    transition:
        transform 150ms ease,
        filter 150ms ease,
        opacity 150ms ease;
}

.registration-form__submit:not(:disabled):hover {
    transform: scale(1.025);

    filter: brightness(1.12);
}

.registration-form__submit:disabled {
    cursor: not-allowed;

    filter:
        grayscale(0.45)
        brightness(0.72);

    opacity: 0.58;
}


/* =========================================================
   UNGÜLTIGER / ABGELAUFENER BESTÄTIGUNGSLINK
   ========================================================= */

.registration-modal__fatal-error {
    margin: 10px auto 24px;

    max-width: 620px;

    color: #f0b0aa;

    font-size: 15px;
    line-height: 1.55;

    text-align: center;
}

.registration-modal__home-link {
    display: block;

    width: max-content;

    margin: 0 auto;

    color: #f0c45b;

    font-size: 13px;

    text-decoration: underline;
}

.registration-modal__home-link:hover {
    color: #ffe29a;
}


/* =========================================================
   DATENSCHUTZ-OVERLAY
   ========================================================= */

.privacy-overlay {
    position: fixed;
    z-index: 5100;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 38px 26px;

    background:
        rgb(0 0 0 / 68%);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.privacy-overlay[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   Datenschutzfenster
   --------------------------------------------------------- */

.privacy-modal {
    position: relative;

    width: min(760px, 100%);
    max-height: calc(100vh - 76px);

    overflow: hidden;

    color: #e9e1d2;

    background:
        linear-gradient(
            145deg,
            rgb(15 23 36 / 96%),
            rgb(7 13 22 / 96%)
        );

    border: 0;
    border-radius: 20px;

    box-shadow:
        0 24px 75px rgb(0 0 0 / 75%),
        inset 0 1px 0 rgb(255 228 160 / 8%);
}


/* ---------------------------------------------------------
   Datenschutz schließen
   --------------------------------------------------------- */

.privacy-modal__close {
    position: absolute;
    z-index: 2;

    top: 12px;
    right: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0;
    padding: 0;

    color: #dcb34d;
    background: transparent;

    border: 0;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    opacity: 0.8;
}

.privacy-modal__close:hover {
    opacity: 1;
}


/* ---------------------------------------------------------
   Datenschutz-Inhalt
   --------------------------------------------------------- */

.privacy-modal__title {
    margin: 0;
    padding: 28px 58px 19px;

    color: #edbd4e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;

    text-align: center;
}

.privacy-modal__content {
    max-height: calc(100vh - 165px);

    padding: 0 40px 34px;

    overflow-y: auto;

    scrollbar-width: thin;
}

.privacy-modal__content h3 {
    margin: 23px 0 8px;

    color: #edc35b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.privacy-modal__content h3:first-child {
    margin-top: 4px;
}

.privacy-modal__content p {
    margin: 0 0 11px;

    color: #d5cec1;

    font-size: 12px;
    line-height: 1.55;
}

.privacy-modal__content--full {
    height: calc(100vh - 165px);
    padding: 0;
    overflow: hidden;
}

.privacy-modal__document {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0b1320;
}

.privacy-modal__full-link {
    display: inline-block;

    margin-top: 12px;

    color: #edc35b;

    font-size: 12px;

    text-decoration: underline;
}

.privacy-modal__full-link:hover {
    color: #ffe295;
}


/* =========================================================
   RESPONSIVE – HEADER-AUTH
   ========================================================= */

@media (max-width: 1250px) {
    .auth-panel {
        right: 145px;

        width: calc(100% - 430px);
        min-width: 680px;
    }

    .auth-panel__label {
        display: none;
    }
}

@media (max-width: 980px) {
    .auth-panel {
        right: 120px;
        left: 120px;

        width: auto;
        min-width: 0;

        padding-right: 14px;
        padding-left: 14px;
    }

    .auth-panel__remember {
        display: none;
    }

    .auth-panel__links {
        min-width: 96px;
    }
}

@media (max-width: 760px) {
    .auth-panel {
        top: calc(100% + 9px);
        right: 12px;
        left: 12px;

        flex-wrap: wrap;

        width: auto;
        height: auto;

        padding: 10px 14px;

        border-radius: 18px;

        transform: none;
    }

    .auth-panel__view {
        flex-wrap: wrap;

        width: 100%;
    }

    .auth-panel__form {
        flex-wrap: wrap;

        width: 100%;
    }

    .auth-panel__field--email,
    .auth-panel__field--password,
    .auth-panel__field--register-email {
        flex: 1 1 180px;
    }

    .auth-panel__remember {
        display: flex;
    }

    .auth-panel__links {
        flex-direction: row;

        width: 100%;

        gap: 14px;
    }

    .auth-panel__registration-confirmation {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }
}


/* =========================================================
   RESPONSIVE – REGISTRIERUNGSMODAL
   ========================================================= */

@media (max-width: 760px) {
    .registration-overlay {
        align-items: flex-start;

        padding: 78px 14px 20px;
    }

    .registration-modal {
        max-height: none;

        border-radius: 16px;
    }

    .registration-modal__inner {
        padding: 26px 22px 30px;
    }

    .registration-modal__title {
        font-size: 25px;
    }

    .registration-form__password-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .registration-form__submit {
        width: min(310px, 100%);
    }

    .privacy-overlay {
        align-items: flex-start;

        padding: 20px 12px;
    }

    .privacy-modal {
        max-height: calc(100vh - 40px);

        border-radius: 16px;
    }

    .privacy-modal__title {
        padding-right: 48px;
        padding-left: 48px;

        font-size: 21px;
    }

    .privacy-modal__content {
        max-height: calc(100vh - 125px);

        padding-right: 24px;
        padding-left: 24px;
    }

    .privacy-modal__content--full {
        height: calc(100vh - 125px);
        padding: 0;
    }
}
