/* OVF Newsletter-Popup · Version 1.1.0
 * Nur im Popup aktiv: das echte JTL-Newsletter-Formular bleibt erhalten.
 */
.ovf-nlp {
    --ovf-primary: #0F5D66;
    --ovf-primary-hover: #0B4F56;
    --ovf-nlp-accent: var(--ovf-primary);
    --ovf-nlp-accent-text: #ffffff;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
.ovf-nlp[hidden] { display: none !important; }
.ovf-nlp__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .56);
}
.ovf-nlp__dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 744px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 50px 14px 0;
    background: #f5f5f5;
    color: #171717;
    border-radius: 8px;
    box-shadow: 0 15px 52px rgba(0, 0, 0, .24);
    text-align: center;
    outline: none;
}
.ovf-nlp__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 24px;
    color: #929292;
    cursor: pointer;
}
.ovf-nlp__close:hover,
.ovf-nlp__close:focus-visible { color: var(--ovf-primary-hover); }
.ovf-nlp__eyebrow {
    margin: 0 0 12px;
    color: #686868;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.35;
    text-transform: uppercase;
}
.ovf-nlp__title {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.28;
    color: #171717;
}
.ovf-nlp__text {
    margin: 0 0 9px;
    color: #686868;
    font-size: 14px;
    line-height: 1.55;
}
.ovf-nlp__badge {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: var(--ovf-nlp-accent);
    color: var(--ovf-nlp-accent-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.ovf-nlp__form {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    text-align: left;
}
.ovf-nlp__form form { margin: 0 !important; }
/* Bestehendes Shop-Formular nur optisch formatieren: keine Felder entfernen. */
.ovf-nlp__form input[type="email"],
.ovf-nlp__form input[name*="mail" i]:not([type="hidden"]),
.ovf-nlp__form input[type="text"]:not([type="hidden"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 42px;
    padding: 10px 16px;
    margin: 0 0 9px;
    border: 1px solid #dedede;
    border-radius: 25px;
    background: transparent;
    box-shadow: none;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
}
.ovf-nlp__form input[type="email"]:focus,
.ovf-nlp__form input[name*="mail" i]:not([type="hidden"]):focus {
    border-color: var(--ovf-primary);
    outline: 2px solid rgba(15, 93, 102, .12);
    outline-offset: 0;
}
.ovf-nlp__form input::placeholder { color: #a1a1a1; opacity: 1; }
.ovf-nlp__form .input-group,
.ovf-nlp__form .form-group,
.ovf-nlp__form .input-group-append,
.ovf-nlp__form .input-group-prepend {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.ovf-nlp__form .input-group { display: flex; flex-direction: column; align-items: stretch; }
.ovf-nlp__form .input-group > input { width: 100%; border-radius: 25px !important; }
.ovf-nlp__form button[type="submit"],
.ovf-nlp__form input[type="submit"],
.ovf-nlp__form button:not([type]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid var(--ovf-primary) !important;
    border-radius: 6px !important;
    background: var(--ovf-primary) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}
.ovf-nlp__form button[type="submit"]:hover,
.ovf-nlp__form button[type="submit"]:focus-visible,
.ovf-nlp__form input[type="submit"]:hover,
.ovf-nlp__form input[type="submit"]:focus-visible,
.ovf-nlp__form button:not([type]):hover,
.ovf-nlp__form button:not([type]):focus-visible {
    background: var(--ovf-primary-hover) !important;
    border-color: var(--ovf-primary-hover) !important;
}
/* Einwilligung, Captcha, Fehlermeldungen und weitere Formularinhalte bleiben sichtbar. */
.ovf-nlp__form label,
.ovf-nlp__form .custom-control,
.ovf-nlp__form .form-check,
.ovf-nlp__form .invalid-feedback {
    font-size: 12px;
    line-height: 1.5;
}
.ovf-nlp__hint {
    margin: 10px 0 4px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}
.ovf-nlp__fine {
    max-width: 660px;
    margin: 0 auto 16px;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
}
.ovf-nlp__dismiss-wrap {
    border-top: 1px solid #dedede;
    margin-top: 17px;
    padding: 15px 0 12px;
}
.ovf-nlp__dismiss {
    display: block;
    width: 100%;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: #707070;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
}
.ovf-nlp__dismiss:hover,
.ovf-nlp__dismiss:focus-visible { color: var(--ovf-primary-hover); text-decoration: underline; }
html.ovf-nlp-lock { overflow: hidden; }
@media (max-width: 600px) {
    .ovf-nlp { padding: 10px; }
    .ovf-nlp__dialog {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 45px 12px 0;
    }
    .ovf-nlp__title { font-size: 21px; }
    .ovf-nlp__text { font-size: 13px; }
    .ovf-nlp__badge { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .ovf-nlp * { scroll-behavior: auto; }
}
