/* Hallmark: Hinweis-Popup (wichtige Kundeninformation, modaler Dialog auf allen Seiten), Marke STERAC.
   Kritik: ernst und gut lesbar, kein Werbelook; gelber Balken oben als einziges Signal, Kontakte als klare Tabelle.
   Waiver: Großbuchstaben in Titel und Button wie überall auf sterac.com (Marke vor Regel 9). */

.notice-popup {
    --np-yellow: #ffcc00;
    --np-ink: #1d1d1b;
    --np-paper: #ffffff;
    --np-muted: #55554f;
    --np-line: #dcdcdc;
    --np-tint: #f7f7f5;
    --np-backdrop: rgba(24, 24, 26, .65);
    --np-shadow: rgba(0, 0, 0, .35);
    --np-bold: "Interstate Bd", Arial, sans-serif;
    --np-light: "Interstate Lt", Arial, sans-serif;
    /* mittig (die Seiten-CSS setzt den Rand des Browser-Dialogs zurück) */
    inset: 0;
    width: min(720px, calc(100vw - 24px));
    max-width: none;
    margin: auto;
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-top: 8px solid var(--np-yellow);
    border-radius: 3px;
    background: var(--np-paper);
    box-shadow: 0 24px 60px var(--np-shadow);
    color: var(--np-ink);
    overscroll-behavior: contain;
}

.notice-popup:focus {
    outline: none;
}

.notice-popup::backdrop {
    background: var(--np-backdrop);
}

.notice-popup__panel {
    position: relative;
    padding: clamp(24px, 4vw, 40px);
}

.notice-popup__title {
    margin: 0 48px 6px 0;
    color: var(--np-ink);
    font-family: var(--np-bold);
    font-size: clamp(21px, 5.6vw, 32px);
    font-weight: normal;
    line-height: 1.1;
    text-transform: uppercase;
    /* lange Wörter (KUNDENINFORMATION) mobil trennen statt mitten im Wort umbrechen */
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.notice-popup__subtitle {
    margin: 0 0 20px;
    color: var(--np-ink);
    font-family: var(--np-bold);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.3;
}

.notice-popup__body {
    font-family: var(--np-light);
    font-size: 16px;
    line-height: 1.5;
}

.notice-popup__body p {
    margin: 0 0 12px;
}

.notice-popup__body strong,
.notice-popup__body b {
    font-family: var(--np-bold);
    font-weight: normal;
}

.notice-popup__body ul {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-left: 4px solid var(--np-yellow);
    background: var(--np-tint);
    list-style: none;
}

.notice-popup__body li {
    margin: 0;
    padding: 2px 0;
    background: none;
}

.notice-popup__body li::before {
    display: none;
}

/* kursiv wie alle Links der Seite (body.rebrush a) */
.notice-popup__body a {
    color: var(--np-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.notice-popup__body a:hover {
    text-decoration-thickness: 2px;
}

.notice-popup__body a:focus-visible,
.notice-popup__close:focus-visible,
.notice-popup__ok:focus-visible {
    outline: 3px solid var(--np-ink);
    outline-offset: 2px;
}

.notice-popup__body table {
    width: 100%;
    margin: 4px 0 16px;
    border-collapse: collapse;
    font-size: 15px;
}

.notice-popup__body th,
.notice-popup__body td {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--np-line);
    text-align: left;
    vertical-align: top;
}

.notice-popup__body th {
    color: var(--np-muted);
    font-family: var(--np-bold);
    font-size: 14px;
    font-weight: normal;
}

.notice-popup__body td:not(:first-child) {
    white-space: nowrap;
}

.notice-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--np-ink);
    cursor: pointer;
    transition: background-color .2s;
}

.notice-popup__close:hover {
    background: var(--np-yellow);
}

.notice-popup__ok {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 28px;
    border: 0;
    border-radius: 3px;
    background: var(--np-ink);
    color: var(--np-paper);
    font-family: var(--np-bold);
    font-size: 16px;
    letter-spacing: .015em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.notice-popup__ok:hover {
    background: var(--np-yellow);
    color: var(--np-ink);
}

/* Mobil: Tabelle als Liste (Name über den Nummern) */
@media (max-width: 600px) {
    .notice-popup__body table,
    .notice-popup__body tbody,
    .notice-popup__body tr,
    .notice-popup__body td {
        display: block;
    }

    .notice-popup__body thead {
        display: none;
    }

    .notice-popup__body tr {
        padding: 8px 0;
        border-bottom: 1px solid var(--np-line);
    }

    .notice-popup__body td {
        padding: 1px 0;
        border: 0;
    }

    .notice-popup__body td:first-child {
        font-family: var(--np-bold);
    }

    .notice-popup__body td[data-label]::before {
        content: attr(data-label) " ";
        color: var(--np-muted);
    }

    .notice-popup__ok {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .notice-popup[open] {
        animation: np-in .35s cubic-bezier(.2, .7, .2, 1);
    }

    .notice-popup[open]::backdrop {
        animation: np-fade .35s ease-out;
    }
}

@keyframes np-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes np-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media print {
    .notice-popup {
        display: none;
    }
}
