/* ==================================================================
   Blog-Startseite — Gestaltung aus dem eigenen Handwerk

   Die erste Fassung war der uebliche Standardlook (dunkles Verlaufsband,
   rundum abgerundete Karten, Pillen-Chips). Austauschbar und ohne Bezug
   zum Sortiment. Diese Fassung leitet die Formensprache aus dem ab, was
   die Firma tatsaechlich herstellt:

     Kettelkante  -> die umstochene Randnaht echter Aufnaeher, hier als
                     goldene Zickzacklinie (SVG, keine Bilddatei)
     Wimpelform   -> Themenmarken als Dreiecksfaehnchen statt Pillen
     Leinengrund  -> heller Papier-/Gewebeton statt Farbverlauf
     Helvetica Black -> schwere Versalien wie auf Abzeichen und
                     Urkunden, dieselbe Schrift wie im Startseiten-Hero
   ================================================================== */

.nm-bs {
    --bs-tinte:  #16233F;
    --bs-gold:   #E0AC33;
    --bs-messing:#9A7A2A;
    --bs-papier: #F7F3EA;
    --bs-linie:  #E3DAC6;

    /* Kettelkante: Zickzack wie eine Uebernaht. Als SVG inline, damit
       die Farbe hier steuerbar bleibt und keine Datei geladen wird. */
    --bs-naht: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M0 6 L3.5 2 L7 6 L10.5 2 L14 6' fill='none' stroke='%23E0AC33' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    --bs-schwer: "Helvetica Neue", Helvetica, "Arial Black", Arial, sans-serif;

    color: #2b3444;
    margin: 0 auto;
    max-width: 1120px;
}

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

/* ── Kopfbereich ─────────────────────────────────────────────────
   Heller Leinengrund statt Verlauf. Die Textur ist ein feines
   Kreuzgewebe aus zwei Verlaeufen - genug, um Papier zu suggerieren,
   ohne dass Text darauf unruhig wird. */
.nm-bs-hero {
    background-color: var(--bs-papier);
    background-image:
        repeating-linear-gradient(90deg, rgba(22,35,63,.030) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(0deg,  rgba(22,35,63,.030) 0 1px, transparent 1px 4px);
    border: 1px solid var(--bs-linie);
    margin-bottom: clamp(24px, 3vw, 34px);
    padding: clamp(26px, 3.6vw, 46px);
    position: relative;
}

/* Die Naht laeuft als Abschluss unter dem Kopfbereich durch. */
.nm-bs-hero::after {
    background-image: var(--bs-naht);
    background-repeat: repeat-x;
    bottom: -4px;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    right: 0;
}

.nm-bs-hero-flaeche { display: none; }

.nm-bs-hero-text { max-width: 680px; position: relative; z-index: 1; }

.nm-bs .nm-bs-kicker {
    color: var(--bs-messing);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.nm-bs .nm-bs-hero h1 {
    color: var(--bs-tinte) !important;
    font-family: var(--bs-schwer);
    font-size: clamp(28px, 3.8vw, 46px) !important;
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.06 !important;
    margin: 0 0 14px !important;
    text-transform: uppercase;
}

.nm-bs-hero p {
    color: #5b6472;
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0;
    max-width: 62ch;
}

.nm-bs-hero .nm-bs-hero-zahl {
    color: var(--bs-messing);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-top: 18px;
    text-transform: uppercase;
}

/* ── Themen als Wimpel ───────────────────────────────────────────
   Dreiecksfaehnchen statt Pillen - die Form kommt aus dem Sortiment.
   clip-path statt Rahmen, weil ein Rand der Spitze nicht folgen wuerde. */
.nm-bs-themen {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: clamp(26px, 3vw, 36px);
}

.nm-bs-themen a {
    align-items: center;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--bs-linie);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
    color: var(--bs-tinte) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    padding: 8px 24px 8px 14px;
    text-decoration: none !important;
    transition: background .16s ease;
}

.nm-bs-themen a:hover { background: var(--bs-papier); }

.nm-bs-themen a span {
    color: var(--bs-messing);
    font-size: 11.5px;
    font-weight: 800;
}

/* ── Karten ──────────────────────────────────────────────────────
   Kaum Rundung: Abzeichen und Urkunden haben Kanten. Beim Zeigen
   erscheint die Kettelkante am unteren Rand. */
.nm-bs-oben { margin-bottom: 20px; }

.nm-bs-raster {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.nm-bs-karte {
    background: #fff;
    border: 1px solid var(--bs-linie);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.nm-bs-karte::after {
    background-image: var(--bs-naht);
    background-repeat: repeat-x;
    bottom: -4px;
    content: "";
    height: 8px;
    left: 10px;
    opacity: 0;
    position: absolute;
    right: 10px;
    transition: opacity .18s ease;
}

.nm-bs-karte:hover {
    border-color: #d6c9a8;
    box-shadow: 0 14px 30px -22px rgba(12, 20, 38, .5);
}

.nm-bs-karte:hover::after { opacity: 1; }

.nm-bs-bild {
    background: var(--bs-papier);
    display: block;
    line-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.nm-bs-bild img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Ersatzflaeche fuer Beitraege ohne Bild: Leinengrund mit Naht,
   nicht der uebliche graue Kasten. */
.nm-bs-ersatz {
    align-items: center;
    background-color: var(--bs-papier);
    background-image:
        repeating-linear-gradient(90deg, rgba(22,35,63,.035) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(0deg,  rgba(22,35,63,.035) 0 1px, transparent 1px 4px);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 16px;
    width: 100%;
}

.nm-bs-ersatz span {
    border-bottom: 2px solid var(--bs-gold);
    color: var(--bs-tinte);
    font-family: var(--bs-schwer);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.3;
    padding-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
}

.nm-bs-inhalt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 9px;
    padding: 17px 19px 19px;
}

.nm-bs-thema {
    color: var(--bs-messing) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.nm-bs-thema:hover { color: var(--bs-tinte) !important; }

/* Titel in der schweren Grotesk - dieselbe wie im Startseiten-Hero. */
.nm-bs .nm-bs-titel {
    font-family: var(--bs-schwer);
    font-size: 18px !important;
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.22;
    margin: 0 !important;
}

.nm-bs .nm-bs-titel a {
    color: var(--bs-tinte) !important;
    text-decoration: none !important;
}

.nm-bs .nm-bs-titel a:hover { color: var(--bs-messing) !important; }

.nm-bs-auszug {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.nm-bs-meta {
    border-top: 1px solid var(--bs-linie);
    color: #8a919c;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 7px;
    letter-spacing: .02em;
    margin: auto 0 0;
    padding-top: 11px;
}

/* ── Hervorgehobener Beitrag ─────────────────────────────────── */
.nm-bs-karte-gross { flex-direction: row; }
.nm-bs-karte-gross .nm-bs-bild { aspect-ratio: auto; flex: 0 0 46%; }
.nm-bs-karte-gross .nm-bs-inhalt { gap: 12px; justify-content: center; padding: clamp(22px, 3vw, 36px); }
.nm-bs .nm-bs-karte-gross .nm-bs-titel { font-size: clamp(22px, 2.6vw, 30px) !important; }
.nm-bs-karte-gross .nm-bs-auszug { font-size: 15px; }

/* ── Blaettern ───────────────────────────────────────────────── */
.nm-bs-blaettern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: clamp(28px, 3vw, 38px);
}

.nm-bs-blaettern a,
.nm-bs-blaettern .nm-bs-hier {
    align-items: center;
    border: 1px solid var(--bs-linie);
    border-radius: 3px;
    display: inline-flex;
    font-size: 13.5px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 10px;
    text-decoration: none !important;
}

.nm-bs-blaettern a { background: #fff; color: var(--bs-tinte) !important; }
.nm-bs-blaettern a:hover { background: var(--bs-papier); }
.nm-bs-blaettern .nm-bs-hier {
    background: var(--bs-tinte);
    border-color: var(--bs-tinte);
    color: #fff;
}

@media (max-width: 720px) {
    .nm-bs-karte-gross { flex-direction: column; }
    .nm-bs-karte-gross .nm-bs-bild { aspect-ratio: 16 / 10; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-bs-karte, .nm-bs-karte::after, .nm-bs-themen a { transition: none; }
}

/* ------------------------------------------------------------------
   Die Startseite lag in einem alten Zweispalter (Beitragsliste links,
   Randspalte rechts). Die Randspalte ist leer, deshalb bekommt der
   Inhalt die volle Breite - sonst klebte das Raster in einer schmalen
   Spalte und rechts blieb Leerraum stehen.
   ------------------------------------------------------------------ */
.page-id-2141 .elementor-section .elementor-container { max-width: 1180px !important; }
.page-id-2141 .elementor-column:has(.nm-bs) { width: 100% !important; }
.page-id-2141 .elementor-column:not(:has(.nm-bs)):not(:has(.elementor-widget-theme-post-title)) { display: none; }
