/* =========================
   WISSEN – Ratgeber, Glossar
   ========================= */

.page-label {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Kopfbereich */
.wissen-hero {
    padding: 80px 20px 60px;
    background: var(--light);
    text-align: center;
}

.wissen-hero .container {
    max-width: 860px;
}

.wissen-hero h1 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 46px;
    line-height: 1.15;
}

.wissen-hero .lead {
    color: #475569;
    font-size: 19px;
    line-height: 1.65;
}

.wissen-meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* Artikel */
.wissen-artikel {
    padding: 60px 20px 80px;
    background: #fff;
}

.wissen-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.wissen-toc {
    position: sticky;
    top: 110px;
    padding: 22px;
    background: var(--light);
    border: 1px solid #eef2f5;
    border-radius: 18px;
    font-size: 15px;
}

.wissen-toc p {
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.wissen-toc ol {
    margin: 0;
    padding-left: 20px;
}

.wissen-toc li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.wissen-toc a {
    color: #334155;
    text-decoration: none;
}

.wissen-toc a:hover {
    color: var(--primary);
}

.wissen-text {
    max-width: 760px;
    color: #334155;
    font-size: 17px;
    line-height: 1.75;
}

.wissen-text h2 {
    max-width: none;
    margin: 48px 0 16px;
    text-align: left;
    color: var(--dark);
    font-size: 30px;
    line-height: 1.25;
    scroll-margin-top: 110px;
}

.wissen-text h2::after {
    display: none !important;
}

.wissen-text h2:first-child {
    margin-top: 0;
}

.wissen-text h3 {
    margin: 30px 0 10px;
    color: var(--dark);
    font-size: 21px;
    line-height: 1.3;
    scroll-margin-top: 110px;
}

.wissen-text p,
.wissen-text ul,
.wissen-text ol {
    margin-bottom: 18px;
}

.wissen-text ul,
.wissen-text ol {
    padding-left: 24px;
}

.wissen-text li {
    margin-bottom: 8px;
}

.wissen-text a {
    color: var(--primary);
    font-weight: 500;
}

.wissen-text blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    background: var(--brand-tint-sky, #e9f8ff);
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    color: #1e293b;
}

.wissen-text blockquote p {
    margin-bottom: 8px;
}

.wissen-text blockquote footer,
.wissen-text blockquote cite {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

/* Quellenverweise im Text */
.ref {
    font-size: 0.72em;
    line-height: 0;
    vertical-align: super;
    white-space: nowrap;
}

.ref a {
    padding: 0 1px;
    font-weight: 700;
    text-decoration: none;
}

/* Kästen */
.wissen-box {
    margin: 28px 0;
    padding: 22px 26px;
    background: var(--light);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.wissen-box > :last-child {
    margin-bottom: 0;
}

.wissen-box strong:first-child {
    color: var(--dark);
}

.wissen-hinweis {
    background: #fffbeb;
    border-color: #fde68a;
}

/* Tabellen */
.tabelle-wrap {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.wissen-text table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.wissen-text th,
.wissen-text td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.wissen-text td:first-child,
.wissen-text th:first-child {
    min-width: 120px;
}

.wissen-text thead th {
    background: var(--light);
    color: var(--dark);
}

.wissen-text tbody tr:last-child td,
.wissen-text tbody tr:last-child th {
    border-bottom: 0;
}

.wissen-text caption {
    padding: 10px 14px;
    caption-side: bottom;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
}

/* Quellen */
.quellen {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.quellen h2 {
    margin-top: 0;
    font-size: 24px;
}

.quellen ol {
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.6;
}

.quellen li {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    scroll-margin-top: 110px;
}

.quellen li:target {
    background: #fffbeb;
    border-radius: 6px;
}

/* Glossar */
.glossar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.glossar-nav a {
    min-width: 38px;
    padding: 6px 10px;
    background: var(--light);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

.glossar dl {
    margin: 0;
}

.glossar dt {
    margin-top: 26px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
    scroll-margin-top: 110px;
}

.glossar dd {
    margin: 6px 0 0;
}

/* Karten mit weiteren Artikeln */
.wissen-karten {
    padding: 80px 20px;
    background: var(--light);
}

.wissen-karten-grid {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.wissen-karte {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wissen-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.wissen-karte span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.wissen-karte strong {
    color: var(--dark);
    font-size: 21px;
    line-height: 1.3;
}

.wissen-karte p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

.wissen-cta {
    max-width: 1100px;
    margin: 50px auto 0;
    text-align: center;
}

/* Tablet und Mobil */
@media (max-width: 960px) {
    .wissen-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .wissen-toc {
        position: static;
    }
}

@media (max-width: 600px) {
    .wissen-hero {
        padding: 56px 16px 44px;
    }

    .wissen-hero h1 {
        font-size: 31px;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .wissen-text h2 {
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .wissen-hero .lead {
        font-size: 17px;
    }

    .wissen-artikel {
        padding: 40px 16px 60px;
    }

    .wissen-text {
        font-size: 16px;
    }

    .wissen-text h2 {
        font-size: 25px;
    }

    .wissen-karten {
        padding: 60px 16px;
    }
}
