/* === Uebersicht /onlinekataloge/ ===
   15.09.2026 neu gestaltet im Stil von Karriere-, Bewertungs- und Kontaktseite:
   schlicht, keine Kicker/Pillen/Verlaeufe/Hover-Lifts, Ecken wie die
   Suchleiste (Kasten 8px, Knopf 6px), Hausgelb #FFCF1B. */
.nm-ok {
    --ok-ink: #0A0A0C;
    --ok-text: #3a3f47;
    --ok-muted: #626873;
    --ok-line: #dfe2e7;
    --ok-yellow: #FFCF1B;
    --ok-yellow-h: #f0c000;
    color: var(--ok-text);
    margin: 0 auto;
    max-width: 1140px;
    padding-bottom: 20px;
}

.nm-ok * { box-sizing: border-box; }

.nm-ok a { color: var(--ok-ink); }

/* --- Einstieg --- */
.nm-ok-intro {
    margin: 8px 0 28px;
    max-width: 760px;
}

.nm-ok h1 {
    color: var(--ok-ink) !important;
    font-size: clamp(28px, 3vw, 38px) !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    line-height: 1.15 !important;
    margin: 0 0 12px !important;
}

/* 16.09.2026: etwas mehr Farbe, im selben Stil wie die Rechtsseiten
   (AGB & Co.) - gelber Strich unter der Hauptueberschrift, gelber Balken
   an der Abschnittsueberschrift, gelb unterstrichene Textlinks. */
.nm-ok h1::after {
    background: var(--ok-yellow);
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin-top: 14px;
    width: 64px;
}

.nm-ok-intro p {
    color: var(--ok-text);
    font-size: 16.5px;
    line-height: 1.65;
    margin: 0;
}

/* --- Katalogliste: Cover + Text, Trennlinien statt Karten --- */
.nm-ok-liste {
    border-top: 1px solid var(--ok-line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nm-ok-eintrag {
    margin: 0;
    padding: 26px 24px 26px 0;
}

.nm-ok-eintrag + .nm-ok-eintrag {
    border-left: 1px solid var(--ok-line);
    padding-left: 24px;
}

.nm-ok-karte {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    text-decoration: none !important;
}

.nm-ok-cover {
    display: block;
    line-height: 0;
    max-width: 200px;
}

.nm-ok-cover img {
    border: 1px solid var(--ok-line);
    border-radius: 6px;
    display: block;
    height: auto;
    width: 100%;
}

.nm-ok-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nm-ok-titel {
    color: var(--ok-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.nm-ok-unter {
    color: var(--ok-muted);
    font-size: 15px;
}

.nm-ok-inhalt {
    color: var(--ok-text);
    font-size: 15.5px;
    line-height: 1.55;
    margin-top: 4px;
}

.nm-ok-blaettern {
    color: var(--ok-ink);
    font-size: 15px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 12px;
    text-decoration: underline;
    text-decoration-color: var(--ok-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.nm-ok-karte:hover .nm-ok-titel,
.nm-ok-karte:focus-visible .nm-ok-titel {
    text-decoration: underline;
    text-decoration-color: var(--ok-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.nm-ok-karte:focus-visible {
    outline: 2px solid var(--ok-ink);
    outline-offset: 4px;
}

/* --- Abschluss: schlichte Zeile --- */
.nm-ok-schluss {
    align-items: center;
    border-bottom: 1px solid var(--ok-line);
    border-top: 1px solid var(--ok-line);
    display: grid;
    gap: 16px 32px;
    grid-template-columns: 1fr auto;
    padding: 26px 0;
}

.nm-ok .nm-ok-schluss h2 {
    color: var(--ok-ink) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 6px !important;
    padding-left: 15px !important;
    position: relative;
}

.nm-ok .nm-ok-schluss h2::before {
    background: var(--ok-yellow);
    border-radius: 2px;
    bottom: 3px;
    content: "";
    left: 0;
    position: absolute;
    top: 3px;
    width: 4px;
}

.nm-ok-schluss p {
    color: var(--ok-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 62ch;
}

.nm-ok-schluss-knoepfe {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.nm-ok .nm-ok-primaer {
    align-items: center;
    background: var(--ok-yellow);
    border-radius: 6px;
    color: var(--ok-ink) !important;
    display: inline-flex;
    font-size: 15.5px;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    text-decoration: none !important;
    transition: background-color .15s ease;
    white-space: nowrap;
}

.nm-ok .nm-ok-primaer:hover { background: var(--ok-yellow-h); }

.nm-ok .nm-ok-primaer:focus-visible {
    outline: 2px solid var(--ok-ink);
    outline-offset: 2px;
}

.nm-ok-tel {
    color: var(--ok-muted);
    font-size: 15px;
    white-space: nowrap;
}

.nm-ok-tel a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ok-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* --- Tablet / Handy --- */
@media (max-width: 900px) {
    .nm-ok-liste { grid-template-columns: 1fr; }

    .nm-ok-eintrag,
    .nm-ok-eintrag + .nm-ok-eintrag {
        border-left: 0;
        padding: 22px 0;
    }

    .nm-ok-eintrag + .nm-ok-eintrag { border-top: 1px solid var(--ok-line); }

    .nm-ok-karte {
        align-items: flex-start;
        flex-direction: row;
        gap: 18px;
    }

    .nm-ok-cover { flex: 0 0 110px; }

    .nm-ok-schluss { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nm-ok h1 { font-size: 28px !important; }
    .nm-ok-intro p { font-size: 16px; }
    .nm-ok-titel { font-size: 19px; }
    .nm-ok-cover { flex-basis: 92px; }
    .nm-ok .nm-ok-primaer { width: 100%; }
    .nm-ok-schluss-knoepfe { flex-direction: column; align-items: stretch; }
    .nm-ok-tel { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-ok .nm-ok-primaer { transition: none; }
}
