/* ===========================================
   Garantielabel Hinweis – Frontend Styles
   Elementor CSS-Variablen als Standard, überschreibbar
   =========================================== */

.glh-wrapper {
    display: flex;
    width: 100%;
}

/* --- Trigger-Button --- */
.glh-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: var(--e-global-typography-text-font-size, 14px);
    line-height: 1.3;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 2px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.glh-trigger-btn:focus-visible {
    outline: 2px solid var(--e-global-color-primary, #1B4F91);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Dezenter Textlink (Standard) */
.glh-trigger-btn--text-link {
    color: var(--e-global-color-text, #555);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    opacity: .85;
}
.glh-trigger-btn--text-link:hover {
    opacity: 1;
    color: var(--e-global-color-primary, #1B4F91);
}

/* Outline-Button */
.glh-trigger-btn--outline {
    color: var(--e-global-color-text, #333);
    border: 1px solid currentColor;
    border-radius: 6px;
    opacity: .9;
}
.glh-trigger-btn--outline:hover {
    opacity: 1;
    border-color: var(--e-global-color-primary, #1B4F91);
    color: var(--e-global-color-primary, #1B4F91);
}

/* Gefüllter Button */
.glh-trigger-btn--filled {
    color: #fff;
    background-color: var(--e-global-color-primary, #1B4F91);
    border-radius: 6px;
    font-weight: 600;
}
.glh-trigger-btn--filled:hover {
    filter: brightness(0.92);
}

.glh-trigger-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}
.glh-trigger-btn__icon svg { width: 1em; height: 1em; }

/* --- Overlay --- */
.glh-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(20, 24, 34, 0.6);
    box-sizing: border-box;
}

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

/* --- Modal --- */
.glh-modal {
    --glh-popup-width: 500px;
    position: relative;
    width: 100%;
    max-width: var(--glh-popup-width);
    max-height: min(88vh, 780px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    font-family: var(--e-global-typography-text-font-family, inherit);
    -webkit-overflow-scrolling: touch;
}

/* Animationen */
.glh-anim-fade .glh-modal { animation: glh-fade-in .22s ease both; }
.glh-anim-scale .glh-modal { animation: glh-scale-in .22s ease both; }
.glh-anim-slide-up .glh-modal { animation: glh-slide-up .25s ease both; }
.glh-overlay { animation: glh-overlay-in .18s ease both; }

@keyframes glh-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glh-scale-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes glh-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .glh-overlay,
    .glh-anim-fade .glh-modal,
    .glh-anim-scale .glh-modal,
    .glh-anim-slide-up .glh-modal {
        animation: none !important;
    }
}

/* --- Kopfleiste --- */
.glh-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 56px 22px 28px;
    background-color: #1B4F91;
    color: #fff;
}
.glh-modal__header-icon { flex-shrink: 0; display: flex; }
.glh-modal__header-icon svg { width: 28px; height: 28px; }
.glh-modal__header-text { min-width: 0; }
.glh-modal__eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 2px;
}
.glh-modal__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

/* --- Schließen-Button --- */
.glh-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background-color .15s ease;
}
.glh-modal__close:hover { background: rgba(255, 255, 255, 0.32); }
.glh-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Wenn keine Kopfleiste: Close-Button dunkel auf hellem Grund */
.glh-modal--no-header .glh-modal__close {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}
.glh-modal--no-header .glh-modal__close:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* --- Body --- */
.glh-modal__body {
    padding: 28px;
    color: #3a3a3a;
    font-size: 14.5px;
    line-height: 1.65;
}
.glh-modal__body p { margin: 0 0 .8em; }
.glh-modal__body p:last-child { margin-bottom: 0; }
.glh-modal__body strong { font-weight: 700; color: #1d1d1d; }
.glh-modal__body a {
    color: #1B4F91;
    text-decoration: underline;
}

.glh-intro-box {
    border: 1px solid #1B4F91;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 15px;
}
.glh-intro-box p { margin: 0; }

.glh-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 18px;
}
@media (max-width: 560px) {
    .glh-columns { grid-template-columns: 1fr; }
}

.glh-list {
    list-style: none;
    margin: 10px 0 16px;
    padding: 0;
}
.glh-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.glh-check-icon {
    flex-shrink: 0;
    color: #1B4F91;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}
.glh-check-icon svg { width: 1em; height: 1em; }

.glh-liability-text { margin-bottom: 4px; }

.glh-columns__side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.glh-side-box {
    background: #f5f6f8;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
}
.glh-side-box p:last-child { margin-bottom: 0; }

.glh-qr-box {
    text-align: center;
}
.glh-qr-image {
    display: block;
    margin: 10px auto;
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}
.glh-qr-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    word-break: break-word;
}

.glh-steps-block {
    border-top: 1px solid #e5e5e5;
    padding-top: 18px;
    margin-top: 6px;
}
.glh-steps-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1d1d1d;
}
.glh-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: glh-step;
}
.glh-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.glh-step-number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #1B4F91;
    color: #1B4F91;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* --- Popup-Bild --- */
.glh-image-block {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.glh-popup-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.glh-garan-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #555;
}
.glh-garan-logo {
    flex-shrink: 0;
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Body-Scroll-Lock, während ein Popup offen ist */
body.glh-modal-open {
    overflow: hidden;
}
