/* Box „Vertiefen mit Expert“ auf den Wissensseiten (seit 02.12.2026).
   Markup baut js/wissen-expert-box.js. Hauptbuch-Ton: keine Schatten,
   keine Radien, eine kräftige Linie oben, Saldo-Rot nur am Handlungsknopf.
   Variablen aus knowledge-hb.css (--kh-*). */

.knowledge-hb-body aside.wexb {
    margin: 32px 0;
    padding: 20px 24px 22px;
    border: 1px solid var(--kh-border, #dad3c2);
    border-top: 2px solid var(--kh-ink, #23201b);
    border-radius: 0;
    background: var(--kh-paper-light, #fbf8ef);
    box-shadow: none;
}

.knowledge-hb-body aside.wexb > :first-child { margin-top: 0; }
.knowledge-hb-body aside.wexb > :last-child { margin-bottom: 0; }

.knowledge-hb-body aside.wexb p.wexb-marke {
    margin: 0 0 6px;
    color: var(--kh-ink-mid, #6e6757);
    font-family: var(--kh-mono, monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.knowledge-hb-body aside.wexb p.wexb-titel {
    margin: 0 0 8px;
    color: var(--kh-ink, #23201b);
    font-family: var(--kh-serif, Georgia, serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.knowledge-hb-body aside.wexb p.wexb-text {
    margin: 0 0 12px;
    font-family: var(--kh-serif, Georgia, serif);
    font-size: 1rem;
    color: var(--kh-ink, #23201b);
    line-height: 1.6;
}

.knowledge-hb-body aside.wexb ul.wexb-liste {
    margin: 0 0 18px;
    padding: 0;
    max-width: none;
    list-style: none;
}

.knowledge-hb-body aside.wexb ul.wexb-liste li {
    position: relative;
    margin: 0;
    font-size: 1rem;
    list-style: none;
    color: var(--kh-ink, #23201b);
    padding: 7px 0 7px 22px;
    border-bottom: 1px solid var(--kh-border, #dad3c2);
    line-height: 1.5;
}

.knowledge-hb-body aside.wexb ul.wexb-liste li:last-child { border-bottom: 0; }

.knowledge-hb-body aside.wexb ul.wexb-liste li::before {
    content: "+";
    position: absolute;
    left: 2px;
    top: 7px;
    color: var(--kh-ink-mid, #6e6757);
    font-family: var(--kh-mono, monospace);
}

.knowledge-hb-body aside.wexb .wexb-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.knowledge-hb-body aside.wexb a.wexb-knopf,
.knowledge-hb-body aside.wexb a.wexb-knopf-zweit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--kh-ink, #23201b);
    border-radius: 0;
    font-family: var(--kh-mono, monospace);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: none;
}

.knowledge-hb-body aside.wexb a.wexb-knopf {
    border-color: var(--kh-terra, #b0492c);
    background: var(--kh-terra, #b0492c);
    color: var(--kh-card, #fcfaf4);
}

.knowledge-hb-body aside.wexb a.wexb-knopf:hover { background: #963c23; border-color: #963c23; }

.knowledge-hb-body aside.wexb a.wexb-knopf-zweit {
    background: transparent;
    color: var(--kh-ink, #23201b);
}

.knowledge-hb-body aside.wexb a.wexb-knopf-zweit:hover { background: var(--kh-off-white, #ede8db); }

/* Kompakt am Seitenende: eine Zeile Text, ein Knopf. */
.knowledge-hb-body aside.wexb.wexb--kompakt {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.knowledge-hb-body aside.wexb.wexb--kompakt p.wexb-text { flex: 1 1 320px; margin: 0; }

/* Für Expert-Konten: nur eine Zeile, ohne Werbung. */
.knowledge-hb-body aside.wexb.wexb--besitz {
    padding: 12px 18px;
    border-top-width: 1px;
}

.knowledge-hb-body aside.wexb.wexb--besitz p.wexb-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    margin: 0;
}

@media (max-width: 640px) {
    .knowledge-hb-body aside.wexb { padding: 18px 16px 20px; }
    .knowledge-hb-body aside.wexb .wexb-aktionen { flex-direction: column; align-items: stretch; }
    .knowledge-hb-body aside.wexb a.wexb-knopf,
    .knowledge-hb-body aside.wexb a.wexb-knopf-zweit,
    .knowledge-hb-body aside.wexb.wexb--kompakt a.wexb-knopf { justify-content: center; text-align: center; width: 100%; }
}

/* Besitz-Zeile: Links als Ziele mit Daumenhöhe. */
.knowledge-hb-body aside.wexb--besitz p.wexb-text a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Marke „mit Konto“ (navbar-admin.js) nicht an den Knopftext kleben. */
.knowledge-hb-body aside.wexb a.wexb-knopf-zweit { gap: 8px; flex-wrap: wrap; }

/* Auf kleinen Handys höchstens drei Listenpunkte: Die Box soll den
   Artikel nicht für mehr als einen Bildschirm unterbrechen. */
@media (max-width: 640px) {
    .knowledge-hb-body aside.wexb ul.wexb-liste li:nth-child(n+4) { display: none; }
    .knowledge-hb-body aside.wexb p.wexb-titel { font-size: 1.15rem; }
}
