/* =========================================
   Popup styles
   Bereinigte, defensive Version
   Ziel: keine unnötigen Kollisionen mit style_main.css
   ========================================= */

/* Optional: nur behalten, wenn author-box wirklich in Popup-Seiten genutzt wird */
.author-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.author-box img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box .meta {
    line-height: 1.35;
}

.author-box .meta .name {
    font-weight: 700;
}

.author-box .meta .sub {
    color: #555;
}

.author-box .meta time {
    font-size: 0.9rem;
    color: #6a6a6a;
}

/* Statt global .container-fluid zu überschreiben:
   eigene, bewusst nutzbare Hilfsklasse */
.popup-container-fluid {
    width: 100%;
    max-width: 1200px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* CTA */
.cta-button {
    display: inline-block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    background-color: #b5005a;
    color: white;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #000452;
    color: white;
    text-decoration: none;
}

.cta-button-auto {
    width: 100%;
    margin: 0;
}

.divider {
    border-top: 2px solid #b5d3c8;
    margin: 1.5rem 0;
}

/* Popup-Typografie */
.popup-body-text {
    font-size: 12pt;
    line-height: 1.7;
    color: #3B3838;
    margin-bottom: 1.1rem;
}

.popup-body-text li {
    line-height: 1.7;
}

.popup-body-emphasis {
    font-size: 12pt;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    color: #AF005F;
    margin-bottom: 1.1rem;
}

.popup-title {
    font-size: 25pt;
    font-weight: 700;
    line-height: 1.2;
    color: #AF005F;
    margin-bottom: 2.5rem;
}

.popup-header1 {
    font-size: 16pt;
    font-weight: 600;
    line-height: 1.3;
    color: #AF005F;
    margin-top: 1.7rem;
    margin-bottom: 1rem;
}

.popup-header11 {
    font-size: 18pt;
    font-weight: 600;
    line-height: 1.3;
    color: #AF005F;
    margin-top: 1.7rem;
    margin-bottom: 1rem;
}

.popup-header2 {
    font-size: 18pt;
    font-weight: 600;
    line-height: 1.3;
    color: #3B3838;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.popup-header3 {
    font-size: 16pt;
    font-weight: 600;
    line-height: 1.3;
    color: #3B3838;
    margin-top: 1.3rem;
    margin-bottom: 1rem;
}

.popup-header31 {
    font-size: 16pt;
    font-weight: 600;
    line-height: 1.3;
    color: #AF005F;
    margin-top: 1.3rem;
    margin-bottom: 1rem;
}

.popup-header4 {
    font-size: 14pt;
    font-weight: 600;
    line-height: 1.3;
    color: #3B3838;
    margin-top: 1.1rem;
    margin-bottom: 1rem;
}

.popup-header-divider {
    font-size: 12pt;
    font-weight: 700;
    line-height: 1.3;
    color: #3B3838;
    margin-bottom: 1rem;
}

.popup-hook-margin {
    margin-bottom: 0.3em;
}

.popup-header-reminder {
    font-size: 10pt;
    font-weight: 600;
    line-height: 1.3;
    color: #3B3838;
    margin-top: 1rem;
    margin-bottom: 0.7rem;
}

.popup-sup {
    font-size: 12pt;
    font-weight: 600;
    color: #AF005F;
}

.popup-checkbox {
    display: inline-block;
    max-width: 95%;
    line-height: normal;
    vertical-align: text-top;
}

.popup-nodecoration {
    text-decoration: none;
}

.popup-nodecoration:hover,
.popup-nodecoration:focus {
    text-decoration: none;
}

/* Optional: nur falls Links innerhalb von Popup-Texten gleich aussehen sollen.
   Viel defensiver als globales a:hover. */
.popup-body-text a:hover,
.popup-body-emphasis a:hover,
.popup-title a:hover,
.popup-header1 a:hover,
.popup-header11 a:hover,
.popup-header2 a:hover,
.popup-header3 a:hover,
.popup-header31 a:hover,
.popup-header4 a:hover,
.popup-header-divider a:hover,
.popup-header-reminder a:hover,
.popup-sup a:hover {
    background-color: #AF005F;
    color: white;
}

/* Inputs nur innerhalb popup-body-text anfassen, wie bisher */
.popup-body-text input,
.popup-body-text textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Smartphone */
@media only screen and (max-width: 767px) {
    .popup-header1 {
        font-size: 16pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header11 {
        font-size: 16pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header2 {
        font-size: 16pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header3 {
        font-size: 14pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header31 {
        font-size: 14pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header4 {
        font-size: 14pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header-divider {
        font-size: 11pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-header-reminder {
        font-size: 9pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-body-text {
        font-size: 11pt;
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .popup-sup {
        font-size: 11pt;
    }
}

/* Compact author box */
@media (max-width: 480px) {
    .author-box--compact {
        padding: 0.5rem 0.65rem;
        font-size: 0.9rem;
    }

    .author-box--compact img {
        display: none;
    }
}

@media (min-width: 720px) {
    .sticky-cta {
        display: none;
    }

    .cta-button-auto {
        width: auto;
    }
}