/**
 * Modals für Kontakt-Hinweise (2026-api/getHiddenInformation.php).
 * Backdrop verdunkelt die Seite; Panel ist opak (kein Durchscheinen).
 */

.omg2026-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    /* Ganze Viewport-Fläche abdecken und die Seite stark abdunkeln */
    background: rgba(0, 0, 0, 0.82);
}

.omg2026-modal-hidden {
    display: none !important;
}

/* Undurchsichtiger Kartenkörper (liegt über dem Scrim, kein Durchscheinen) */
.omg2026-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    max-height: min(88vh, 720px);
    overflow: auto;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    text-align: left;
    background-color: #041212;
    color: #e0f2f1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-ui);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(45, 200, 180, 0.1);
}

/* Keine Absatz-Transparenz aus .omg-ajax-page-fragment p (main.css) im Modal */
.omg2026-modal-panel .omg-ajax-page-fragment p {
    opacity: 1;
    color: rgba(224, 242, 241, 0.92);
}

.omg2026-modal-panel .omg-ajax-page-title {
    margin-bottom: 0.75rem;
}

.omg2026-modal-panel .omg-ajax-page-fragment a:link,
.omg2026-modal-panel .omg-ajax-page-fragment a:visited {
    color: var(--primary-glow, #2dc8b4);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 200, 180, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.omg2026-modal-panel .omg-ajax-page-fragment a:hover {
    color: #f0faf9;
    border-bottom-color: rgba(45, 200, 180, 0.65);
}

.omg2026-modal-panel .omg-ajax-page-fragment a img {
    vertical-align: middle;
    margin-right: 0.35rem;
    border-radius: var(--radius-ui);
}

.omg2026-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.omg2026-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.35rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-ui);
    background: var(--primary-glow, #2dc8b4);
    color: #041212;
    box-shadow: 0 0 20px rgba(45, 200, 180, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omg2026-modal-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(45, 200, 180, 0.45);
}

.omg2026-modal-btn:focus-visible {
    outline: 2px solid rgba(45, 200, 180, 0.65);
    outline-offset: 3px;
}

/* Kontakt: Fehlerfeedback — gleicher Aufbau, dezent rot eingefärbt */
.omg2026-modal-feedback-error .omg2026-modal-panel {
    border-color: rgba(255, 120, 120, 0.35);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 120, 120, 0.18);
}

.omg2026-modal-feedback-error .omg-ajax-page-fragment p {
    color: rgba(255, 200, 200, 0.92);
}

@media (prefers-reduced-motion: reduce) {
    .omg2026-modal-btn {
        transition: none;
    }

    .omg2026-modal-btn:hover {
        transform: none;
    }
}

/* Hinweis: keine Tracking-Cookies (Hintergrund weichzeichnen bis „Verstanden“) */
.omg2026-modal-cookie-hint {
    z-index: 10020;
    background: rgba(4, 18, 18, 0.42);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.omg2026-modal-cookie-hint .omg2026-modal-panel {
    max-width: 800px;
}

.omg-cookie-hint-foot {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.85rem 0 0;
    opacity: 0.82;
    color: rgba(224, 242, 241, 0.88);
}

html.omg-cookie-modal-open,
body.omg-cookie-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .omg2026-modal-cookie-hint {
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
}
