/**
 * HayMe Popup
 * Zentrales Popup-Grundsystem
 *
 * Version: 1.1.0
 * Author: Werbeagentur Haypix
 *
 * Abhängigkeit:
 * - hayme-core.css
 */


/* =========================================================
   01. POPUP-GRUNDSTRUKTUR
   ========================================================= */

.hayme-popup {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 350ms ease,
        visibility 350ms ease;
}


.hayme-popup[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}


.hayme-popup.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   02. OVERLAY
   ========================================================= */

.hayme-popup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

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


/* =========================================================
   03. POPUP-CONTAINER
   ========================================================= */

.hayme-popup-container {
    position: relative;
    z-index: 2;

    width: min(920px, calc(100% - 40px));
    max-height: 90vh;

    margin: 0;
    padding: 30px;

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;

    background: #111111;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65);

    opacity: 0;

    transform:
        translateY(30px)
        scale(0.96);

    transition:
        transform 350ms ease,
        opacity 350ms ease,
        box-shadow 350ms ease;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.22)
        transparent;
}


.hayme-popup.is-open .hayme-popup-container {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   04. SCHLIESSEN-BUTTON
   ========================================================= */

.hayme-popup-close {
    position: absolute;

    top: 14px;
    right: 14px;

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

    width: 35px;
    height: 35px;

    margin: 0;
    padding: 0;

    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    color: #ffffff;

    font-family:
        var(
            --hayme-font-family,
            "Poppins",
            Arial,
            sans-serif
        );

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 120ms ease;
}


.hayme-popup-close:hover {
    border-color: rgba(255, 255, 255, 0.90);

    background: rgba(255, 255, 255, 0.10);
}


.hayme-popup-close:active {
    border-color: var(--hayme-red, #c72528);

    background: var(--hayme-red, #c72528);

    transform: scale(0.92);
}


.hayme-popup-close:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(199, 37, 40, 0.28);
}


/* =========================================================
   05. POPUP-HEADER
   ========================================================= */

.hayme-popup-header {
    margin: 0 0 18px;
    padding: 0;

    text-align: left;
}


.hayme-popup-icon {
    display: none;
}


.hayme-popup-header h2 {
    margin: 0 0 8px;
    padding: 0;

    color: #ffffff;

    font-family:
        var(
            --hayme-font-family,
            "Poppins",
            Arial,
            sans-serif
        );

    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}


.hayme-popup-header p {
    width: auto;
    max-width: none;

    margin: 0;
    padding: 0;

    color: var(--hayme-muted, #c8c8c8);

    font-family:
        var(
            --hayme-font-family,
            "Poppins",
            Arial,
            sans-serif
        );

    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;

    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}


/* =========================================================
   06. SICHERHEITSHINWEIS
   ========================================================= */

.hayme-popup-security {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    width: 100%;

    gap: 10px;

    margin: 16px 0 24px;
    padding: 0;

    background: transparent;

    color: #9f9f9f;

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

    text-align: left;
}


.hayme-popup-lock {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #d7a64b;

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


.hayme-popup-security-text {
    display: block;
    flex: 1;

    margin: 0;
    padding: 0;

    color: #9f9f9f;

    text-align: left;
}


/* =========================================================
   07. FORMULAR-GRUNDLAGE
   Das Forminator-Detaildesign bleibt in
   hayme-forminator.css
   ========================================================= */

.hayme-popup-form {
    width: 100%;

    margin: 0;
    padding: 0;
}


.hayme-popup-container input,
.hayme-popup-container select,
.hayme-popup-container textarea {
    border-radius: 8px !important;
}


/* =========================================================
   08. KONTAKTDATEN-POPUP
   An den allgemeinen Popup-Stil angleichen
   ========================================================= */

#hayme-contact-popup .hayme-popup-header {
    margin: 0 0 18px !important;
    padding: 0 !important;

    text-align: left !important;
}


#hayme-contact-popup .hayme-popup-icon {
    display: none !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: none !important;
}


#hayme-contact-popup .hayme-popup-header h2 {
    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family:
        var(
            --hayme-font-family,
            "Poppins",
            Arial,
            sans-serif
        ) !important;

    font-size: 30px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}


#hayme-contact-popup .hayme-popup-header p {
    display: block !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--hayme-muted, #c8c8c8) !important;

    font-family:
        var(
            --hayme-font-family,
            "Poppins",
            Arial,
            sans-serif
        ) !important;

    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}


#hayme-contact-popup .hayme-popup-security {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: 100% !important;

    gap: 10px !important;

    margin: 16px 0 24px !important;
    padding: 0 !important;

    background: transparent !important;

    color: #9f9f9f !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    text-align: left !important;
}


#hayme-contact-popup .hayme-popup-form {
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   09. KUNDENNUMMER-POPUP
   ========================================================= */

.hayme-customer-number-popup .hayme-popup-container {
    max-width: 560px;
}


.hayme-customer-number__edit,
.hayme-customer-number__saved {
    margin-top: 22px;
}


.hayme-customer-number__edit label,
.hayme-customer-number__caption {
    display: block;

    margin-bottom: 9px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;
}


.hayme-customer-number__input {
    box-sizing: border-box;

    width: 100%;
    min-height: 54px;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;

    background: #17181a;

    color: #ffffff;

    font: inherit;
}


.hayme-customer-number__save,
.hayme-customer-number__change,
.hayme-customer-number__delete {
    min-height: 44px;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    background: #202124;

    color: #ffffff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}


.hayme-customer-number__save {
    width: 100%;

    margin-top: 12px;

    border-color: rgba(var(--hayme-accent-rgb), 0.45);
}


.hayme-customer-number__value {
    display: block;

    padding: 18px;

    border: 1px solid rgba(var(--hayme-accent-rgb), 0.38);
    border-radius: 12px;

    background: rgba(var(--hayme-accent-rgb), 0.08);

    color: #ffffff;

    font-size: 24px;

    text-align: center;
    word-break: break-word;
}


.hayme-customer-number__actions {
    display: flex;

    gap: 10px;

    margin-top: 12px;
}


.hayme-customer-number__actions button {
    flex: 1;
}


.hayme-customer-number__notice {
    min-height: 20px;

    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.66);

    font-size: 13px;
}


/* =========================================================
   10. SMARTPHONE
   ========================================================= */

@media screen and (max-width: 600px) {

    .hayme-popup[aria-hidden="false"] {
        padding: 2px;
    }


    .hayme-popup-container {
        width: calc(100% - 4px);
        max-width: none;
        max-height: 85vh;

        margin: 2px;
        padding: 30px 20px 24px;

        border-radius: 20px;
    }


    .hayme-popup-close {
        top: 12px;
        right: 12px;

        width: 35px;
        height: 35px;

        font-size: 23px;
    }


    .hayme-popup-header h2,
    #hayme-contact-popup .hayme-popup-header h2 {
        font-size: 20px !important;
    }

}


/* =========================================================
   11. SEHR KLEINE SMARTPHONES
   ========================================================= */

@media screen and (max-width: 380px) {

    .hayme-popup-container {
        padding:
            28px
            16px
            22px;
    }

}


/* =========================================================
   12. REDUZIERTE BEWEGUNGEN
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hayme-popup,
    .hayme-popup-container,
    .hayme-popup-close {
        transition: none !important;
    }

}


/* =========================================================
   13. GÄSTE-WLAN-POPUP
   ========================================================= */

body.hayme-app-page .hayme-app-card--wifi .hayme-app-card__icon {
    border-color: rgba(96,177,255,.30);
    background: rgba(42,145,255,.075);
    color: #70b7ff;
    box-shadow: 0 0 18px rgba(42,145,255,.10);
}

body.hayme-app-page .hayme-app-card--wifi .hayme-app-card__arrow {
    color: #70b7ff;
}

body.hayme-app-page .hayme-app-card--wifi:hover {
    border-color: rgba(96,177,255,.30);
}

body.hayme-app-page .hayme-wifi-popup__container {
    width: min(470px, calc(100vw - 28px));
    padding: 30px 28px 24px;
    border-color: rgba(96,177,255,.22);
    background:
        radial-gradient(circle at 15% 0%, rgba(42,145,255,.16), transparent 36%),
        linear-gradient(150deg, #1a1c20, #0b0c0e 72%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 28px 70px rgba(0,0,0,.58),
        0 0 34px rgba(42,145,255,.08);
}

body.hayme-app-page .hayme-wifi-popup__hero {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    gap: 15px;
    margin: 0 34px 22px 0;
}

body.hayme-app-page .hayme-wifi-popup__hero > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.hayme-app-page .hayme-wifi-popup__hero small {
    color: #69b3ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.hayme-app-page .hayme-wifi-popup__hero h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.hayme-app-page .hayme-wifi-popup__hero p {
    margin: 0 !important;
    color: rgba(255,255,255,.42) !important;
    font-size: 10px !important;
}

body.hayme-app-page .hayme-wifi-popup__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(96,177,255,.34);
    border-radius: 17px;
    background: rgba(42,145,255,.09);
    color: #70b7ff;
    box-shadow: 0 0 22px rgba(42,145,255,.12);
}

body.hayme-app-page .hayme-wifi-popup__icon svg {
    width: 29px;
    height: 29px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hayme-app-page .hayme-wifi-popup__network,
body.hayme-app-page .hayme-wifi-popup__password-block,
body.hayme-app-page .hayme-wifi-popup__open-network {
    padding: 15px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(0,0,0,.24);
}

body.hayme-app-page .hayme-wifi-popup__network {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
}

body.hayme-app-page .hayme-wifi-popup__caption,
body.hayme-app-page .hayme-wifi-popup__password-block > label {
    color: rgba(255,255,255,.34);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.hayme-app-page .hayme-wifi-popup__network strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hayme-app-page .hayme-wifi-popup__password-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

body.hayme-app-page .hayme-wifi-popup__password-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    gap: 8px;
}

body.hayme-app-page .hayme-wifi-popup__password-row input {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 11px !important;
    outline: none !important;
    background: rgba(255,255,255,.045) !important;
    color: #fff !important;
    font-family: "Poppins", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: .08em;
    box-shadow: none !important;
}

body.hayme-app-page .hayme-wifi-popup__reveal {
    display: grid;
    place-items: center;
    width: 44px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.68);
    cursor: pointer;
}

body.hayme-app-page .hayme-wifi-popup__reveal:hover,
body.hayme-app-page .hayme-wifi-popup__reveal.is-visible {
    border-color: rgba(96,177,255,.44);
    background: rgba(42,145,255,.10);
    color: #78bcff;
}

body.hayme-app-page .hayme-wifi-popup__reveal svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hayme-app-page .hayme-wifi-popup__reveal .hayme-wifi-popup__eye-closed,
body.hayme-app-page .hayme-wifi-popup__reveal.is-visible .hayme-wifi-popup__eye-open {
    display: none;
}

body.hayme-app-page .hayme-wifi-popup__reveal.is-visible .hayme-wifi-popup__eye-closed {
    display: block;
}

body.hayme-app-page .hayme-wifi-popup__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 45px;
    padding: 0 16px;
    border: 1px solid rgba(96,177,255,.42);
    border-radius: 12px;
    background: linear-gradient(135deg,#258cf0,#1772ce);
    color: #fff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20,113,205,.20);
}

body.hayme-app-page .hayme-wifi-popup__copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(20,113,205,.28);
}

body.hayme-app-page .hayme-wifi-popup__copy svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hayme-app-page .hayme-wifi-popup__copy-status {
    min-height: 16px;
    margin: 0 !important;
    color: #ff8b8f !important;
    font-size: 9px !important;
    font-weight: 700;
    text-align: center;
}

body.hayme-app-page .hayme-wifi-popup__copy-status.is-success {
    color: #74df99 !important;
}

body.hayme-app-page .hayme-wifi-popup__open-network {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    gap: 12px;
}

body.hayme-app-page .hayme-wifi-popup__open-network svg {
    width: 31px;
    height: 31px;
    stroke: #74df99;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hayme-app-page .hayme-wifi-popup__open-network span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.hayme-app-page .hayme-wifi-popup__open-network strong {
    color: #fff;
    font-size: 11px;
}

body.hayme-app-page .hayme-wifi-popup__open-network small {
    color: rgba(255,255,255,.38);
    font-size: 9px;
}

body.hayme-app-page .hayme-wifi-popup__note {
    margin: 11px 0 0 !important;
    padding: 11px 13px;
    border-left: 2px solid #69b3ff;
    border-radius: 0 9px 9px 0;
    background: rgba(42,145,255,.055);
    color: rgba(255,255,255,.55) !important;
    font-size: 9px !important;
    line-height: 1.5;
}

body.hayme-app-page .hayme-wifi-popup__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
    color: rgba(255,255,255,.48);
    font-size: 8px;
    font-weight: 700;
}

body.hayme-app-page .hayme-wifi-popup__step-number {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(96,177,255,.28);
    border-radius: 50%;
    background: rgba(42,145,255,.07);
    color: #78bcff;
}

body.hayme-app-page .hayme-wifi-popup__step-arrow {
    margin: 0 2px;
    color: rgba(255,255,255,.22);
}

body.hayme-app-page .hayme-wifi-popup__privacy {
    margin: 13px 0 0 !important;
    color: rgba(255,255,255,.25) !important;
    font-size: 8px !important;
    line-height: 1.45;
    text-align: center;
}

@media screen and (max-width: 520px) {
    body.hayme-app-page .hayme-wifi-popup__container {
        padding: 25px 17px 20px;
    }

    body.hayme-app-page .hayme-wifi-popup__hero {
        grid-template-columns: 50px minmax(0,1fr);
        gap: 12px;
        margin-right: 28px;
    }

    body.hayme-app-page .hayme-wifi-popup__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    body.hayme-app-page .hayme-wifi-popup__hero h2 {
        font-size: 20px !important;
    }

    body.hayme-app-page .hayme-wifi-popup__network {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    body.hayme-app-page .hayme-wifi-popup__steps {
        gap: 5px;
    }
}
