/* ======================================================
   METHODIO — SUBPAGES / ARTICLE CONTENT
====================================================== */

.subpage {
    background: var(--bg-page);
}

.subpage-main {
    padding: 80px 0;
}

.content-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 52px;
}

.content-card h1 {
    margin-bottom: 20px;
}

.content-card h2 {
    margin-top: 40px;
}

.content-card h2:first-of-type {
    margin-top: 0;
}

/* ======================================================
   WISSEN PAGE HERO
====================================================== */

.wissen-hero {
    margin-bottom: 44px;
}

.wissen-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f3f5f7;
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wissen-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
}

.wissen-intro {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-body);
}

/* ======================================================
   EXPERTS CARD
====================================================== */

.experts-card {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 30px;
}

.experts-card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.experts-card-text {
    flex: 1;
    min-width: 0;
}

.experts-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: #eef1f4;
    color: var(--text-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.experts-card h2 {
    margin: 0 0 16px 0;
    font-size: 2rem;
}

.experts-card-quote {
    margin: 0 0 16px 0;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-soft);
    background: transparent;
    border-radius: 0;
}

.experts-card-note {
    margin: 0;
    max-width: 760px;
    color: var(--text-body);
}

.experts-card-action {
    flex-shrink: 0;
    padding-top: 4px;
    white-space: nowrap;
}

.expert-tag {
    color: #2c3e50;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
}

.expert-title {
    margin-top: 12px;
}

.expert-quote-block {
    border-left: 2px solid var(--primary);
    padding-left: 15px;
    margin: 15px 0;
}

.expert-quote {
    margin: 0 0 10px 0;
}

.expert-quote-note {
    margin: 0;
    font-style: italic;
}
/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {
    .wissen-hero {
        margin-bottom: 32px;
    }

    .wissen-kicker {
        margin-bottom: 14px;
    }

    .wissen-intro {
        margin-bottom: 24px;
        font-size: 1rem;
    }

    .experts-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .experts-card-content {
        flex-direction: column;
        gap: 18px;
    }

    .experts-card h2 {
        font-size: 1.45rem;
    }

    .experts-card-quote {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .experts-card-action {
        padding-top: 0;
    }
}

/* ---------- Content Typography ---------- */

.content-card p,
.content-card ul,
.content-card ol,
.content-card blockquote {
    max-width: 100%;
}

/* ---------- Content Lists: CRITICAL FIX ---------- */

.content-card ul,
.content-card ol {
    margin: 0 0 26px 0;
    padding-left: 26px;
}

.content-card ul {
    list-style: disc;
}

.content-card ol {
    list-style: decimal;
}

.content-card li {
    margin-bottom: 10px;
    color: var(--text-body);
    line-height: 1.7;
}

.content-card li::marker {
    color: var(--text-body);
}

.content-card ul:last-child,
.content-card ol:last-child {
    margin-bottom: 0;
}


/* ---------- Back Link ---------- */

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

/* ---------- CTA Area ---------- */

.subpage-cta {
    margin-top: 48px;
    padding: 32px;
    background: #fff7f4;
    border: 1px solid rgba(255, 87, 34, 0.16);
    border-radius: 14px;
}

.subpage-cta h2,
.subpage-cta h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.subpage-cta p:last-of-type {
    margin-bottom: 32px;
}

.subpage-cta .btn {
    margin-top: 0;
}

/* ---------- Divider spacing after forms ---------- */

.contact-form + .divider,
.form-actions + .divider {
    margin-top: 36px;
}

/* ---------- Article pages ---------- */

.article {
    max-width: 980px;
}

.article .page-intro {
    max-width: 100%;
}

@media (max-width: 768px) {
    .subpage-main {
        padding: 48px 0;
    }

    .content-card {
        padding: 30px 22px;
        border-radius: 14px;
    }

    .subpage-cta {
        padding: 24px 20px;
    }

    .subpage-cta p:last-of-type {
        margin-bottom: 28px;
    }

    .content-card ul,
    .content-card ol {
        padding-left: 22px;
    }
}

/* ======================================================
ARTICLE HEADER META
====================================================== */

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.article-reading-time {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.article-header h1 {
    margin-bottom: 18px;
}


/* ======================================================
EDITORIAL CONTENT WIDTH
====================================================== */

.article {
    max-width: 760px;
    margin: 0 auto;
}

.article p,
.article ul,
.article ol,
.article h2,
.article h3,
.article h4,
.article blockquote {
    max-width: 100%;
}


/* ======================================================
EDITORIAL TYPOGRAPHY
====================================================== */

.article p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.article p:last-child {
    margin-bottom: 0;
}

.article h2 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.article h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.article blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 28px 0;
    background: #fff7f4;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-body);
}

.article ul,
.article ol {
    margin-bottom: 22px;
}

.article li {
    margin-bottom: 8px;
}

.external-resource-card .resource-footer p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.external-resource-card .resource-footer strong {
    color: var(--text-strong);
}

/* ======================================================
ARTICLE TABLE OF CONTENTS
====================================================== */

.article-toc {
    margin: 0 0 36px 0;
    padding: 22px 24px;
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.article-toc-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-strong);
    margin-bottom: 14px;
}

.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin-bottom: 10px;
    color: var(--text-body);
}

.article-toc li:last-child {
    margin-bottom: 0;
}

.article-toc a {
    color: var(--text-body);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.article-toc-number {
    display: inline-block;
    min-width: 22px;
    color: var(--text-soft);
    font-weight: 700;
}

/* bessere Scroll-Position bei Sprunglinks unter sticky Header */
.article h2[id],
.article h3[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 768px) {
    .article-toc {
        padding: 18px 18px;
        margin-bottom: 28px;
    }
}

/* Abstandshalter für den Sprunganker im Kontaktformular */
#formular-bereich {
    scroll-margin-top: 120px; /* Passe diesen Wert an die Höhe deines Headers an */
}

/* Linkfarbe bei Impressum/Datenschutz */

.contact-info a:link {
    color: #ff5722;
}

.contact-info a:visited {
    color: #a43f1f;
}