/* ==========================================================================
   Aluprem – Ratgeber (blog.php, blog-post.php), Redesign 11/2026
   Ruhiges Lese-Layout im Stil der Rechtstexte: Haarlinien statt Kästen,
   Text in Lesebreite. Baut auf util/design.css auf. Klassen: .bp-* / .bi-*
   ========================================================================== */

.bp { background: #fff; }
.bp-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Brotkrümel */
.bp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 18px; padding: 0;
                font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }
.bp-crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--ds-muted); opacity: .5; font-weight: 600; }
.bp-crumbs a { color: var(--ds-green-700); text-decoration: none; }
.bp-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Kopf */
.bp-head { padding-top: 64px; padding-bottom: 36px; }
.bp-head h1 { margin: 0; font-size: clamp(1.9rem, 3.8vw, 2.85rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--ds-ink); }
.bp-lead { margin: 18px 0 0; font-size: 1.14rem; line-height: 1.62; color: var(--ds-text); }
.bp-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ds-line); }
.bp-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: 0 0 auto; }
.bp-byline p { margin: 0; display: grid; gap: 3px; font-size: .92rem; line-height: 1.45; color: var(--ds-text); }
.bp-byline strong { color: var(--ds-ink); }
.bp-byline small { font-size: .82rem; color: var(--ds-muted); font-weight: 600; }

/* Titelbild */
.bp-hero { margin: 0 auto 48px; max-width: 1040px; padding: 0 24px; box-sizing: border-box; }
.bp-hero img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--ds-r-lg); background: var(--ds-soft); }

/* Labels */
.bp-label { margin: 0 0 12px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }

/* Das Wichtigste in Kürze – grüner Randstrich statt Kasten */
.bp-key { margin: 0 0 40px; padding: 4px 0 4px 24px; border-left: 3px solid var(--ds-green-600); }
.bp-key h2 { margin: 0 0 12px; font-size: 1.12rem; font-weight: 800; color: var(--ds-ink); letter-spacing: -0.01em; }
.bp-key ul { list-style: none; margin: 0; padding: 0; }
.bp-key li { position: relative; padding-left: 20px; margin: 0 0 9px; line-height: 1.65; color: var(--ds-text); }
.bp-key li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-green-600); }
.bp-key li:last-child { margin-bottom: 0; }

/* Inhaltsverzeichnis */
.bp-toc { margin: 0 0 44px; padding: 22px 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.bp-toc ol { margin: 0; padding: 0 0 0 22px; columns: 2; column-gap: 40px; }
.bp-toc li { margin: 0 0 7px; padding-left: 4px; break-inside: avoid; color: var(--ds-muted); font-weight: 700; font-size: .92rem; line-height: 1.45; }
.bp-toc a { color: var(--ds-green-800); text-decoration: none; font-weight: 700; }
.bp-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Fließtext */
.bp-body { font-size: 1.04rem; color: var(--ds-text); }
.bp-body h2 { margin: 48px 0 16px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; color: var(--ds-ink); scroll-margin-top: calc(var(--ds-header-h) + 20px); }
.bp-body h2:first-child { margin-top: 0; }
.bp-body h3 { margin: 30px 0 10px; font-size: 1.1rem; line-height: 1.35; font-weight: 800; color: var(--ds-ink); }
.bp-body p { margin: 0 0 16px; line-height: 1.8; }
.bp-body strong { color: var(--ds-ink); font-weight: 700; }
.bp-body a, .bp-faq a, .bp-key a { color: var(--ds-green-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31,72,55,.35);
             text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bp-body a:hover, .bp-faq a:hover { text-decoration-color: currentColor; }
.bp-body ul { list-style: none; margin: 4px 0 20px; padding: 0; }
.bp-body ul li { position: relative; padding-left: 24px; margin: 0 0 10px; line-height: 1.72; }
.bp-body ul li::before { content: ""; position: absolute; left: 5px; top: .74em; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-green-600); }
.bp-body ol { margin: 4px 0 20px; padding-left: 22px; }
.bp-body ol li { margin: 0 0 10px; padding-left: 4px; line-height: 1.72; }
.bp-body ol li::marker { color: var(--ds-green-700); font-weight: 800; }
.bp-body blockquote { margin: 0 0 22px; padding: 2px 0 2px 22px; border-left: 2px solid var(--ds-green-600); }
.bp-body blockquote p { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.7; color: var(--ds-ink); }
.bp-body blockquote p:last-child { margin-bottom: 0; }
.bp-body .bp-note { margin-top: 28px; font-size: .9rem; line-height: 1.6; color: var(--ds-muted); }
.bp-body sup { line-height: 0; }

/* Tabellen – nur Haarlinien */
.bp-table { margin: 8px 0 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.bp-table th, .bp-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--ds-line); }
.bp-table thead th { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ds-muted); border-bottom: 2px solid var(--ds-ink); padding-top: 0; }
.bp-table tbody th { font-weight: 800; color: var(--ds-ink); white-space: nowrap; }
.bp-table td { color: var(--ds-text); }

/* FAQ */
.bp-faq { margin: 52px 0 0; padding-top: 40px; border-top: 1px solid var(--ds-line); scroll-margin-top: calc(var(--ds-header-h) + 20px); }
.bp-faq > h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ds-ink); }
.bp-faq-item { padding: 20px 0; border-bottom: 1px solid var(--ds-line); }
.bp-faq-item h3 { margin: 0 0 8px; font-size: 1.06rem; line-height: 1.4; font-weight: 800; color: var(--ds-ink); }
.bp-faq-item p { margin: 0; line-height: 1.75; color: var(--ds-text); }

/* Autor */
.bp-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; margin: 52px 0 0; padding: 32px 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.bp-author img { width: 96px; height: 120px; object-fit: cover; object-position: center 20%; border-radius: var(--ds-r); }
.bp-author .bp-label { margin-bottom: 6px; }
.bp-author h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--ds-ink); }
.bp-author p:last-child { margin: 0; line-height: 1.7; color: var(--ds-text); }

/* Passende Leistungen + CTA */
.bp-next { margin: 48px 0 0; padding-bottom: 80px; }
.bp-next > h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--ds-ink); }
.bp-links { list-style: none; margin: 0 0 32px; padding: 0; }
.bp-links li { border-bottom: 1px solid var(--ds-line); }
.bp-links a { display: grid; gap: 2px; padding: 14px 32px 14px 0; position: relative; text-decoration: none; }
.bp-links a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--ds-green-700); font-weight: 700; transition: right .15s; }
.bp-links a:hover::after { right: 0; }
.bp-links strong { color: var(--ds-green-800); font-weight: 800; }
.bp-links a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bp-links span { font-size: .9rem; color: var(--ds-muted); }
.bp-cta p { margin: 0 0 16px; line-height: 1.65; color: var(--ds-text); }
.bp-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Weitere Beiträge + Übersicht */
.bp-more { padding: 72px 0 88px; background: var(--ds-soft); }
.bp-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.bp-more-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--ds-ink); }

.bi-head { padding: 64px 0 40px; }
.bi-head h1 { margin: 0; max-width: 820px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: var(--ds-ink); }
.bi-head .bp-lead { max-width: 760px; }
.bi-list { padding: 8px 0 88px; }
.bi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.bi-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ds-text); }
.bi-img { display: block; overflow: hidden; border-radius: var(--ds-r-lg); background: var(--ds-line); }
.bi-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.bi-card:hover .bi-img img { transform: scale(1.03); }
.bi-text { display: flex; flex-direction: column; gap: 8px; }
.bi-meta { font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ds-green-700); }
.bi-title { margin: 0; font-size: 1.16rem; line-height: 1.32; font-weight: 800; color: var(--ds-ink); }
.bi-card:hover .bi-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bi-desc { font-size: .94rem; line-height: 1.6; color: var(--ds-text); }
.bi-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 800; color: var(--ds-green-700); }

/* Erster Beitrag in der Übersicht groß */
.bi-list .bi-card.is-first { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center;
                             padding-bottom: 44px; border-bottom: 1px solid var(--ds-line); }
.bi-list .bi-card.is-first .bi-img img { aspect-ratio: 16 / 10; }
.bi-list .bi-card.is-first .bi-title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.18; letter-spacing: -0.02em; }
.bi-list .bi-card.is-first .bi-desc { font-size: 1.02rem; }

/* Responsiv */
@media (max-width: 1000px) {
    .bi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bi-list .bi-card.is-first { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
    .bp-wrap, .bp-hero { padding: 0 16px; }
    .bp-head, .bi-head { padding-top: 40px; }
    .bp-head h1 { font-size: clamp(1.55rem, 7.2vw, 2.1rem); }
    .bp-lead { font-size: 1.02rem; }
    .bp-hero { margin-bottom: 36px; }
    .bp-hero img { aspect-ratio: 4 / 3; border-radius: var(--ds-r); }
    .bp-toc ol { columns: 1; }
    .bp-body { font-size: 1rem; }
    .bp-body h1, .bp-body h2, .bp-body h3, .bp-body p, .bp-body li, .bp-faq-item h3 { hyphens: auto; -webkit-hyphens: auto; }
    .bp-table table { font-size: .84rem; line-height: 1.45; }
    .bp-table th, .bp-table td { padding: 10px 10px 10px 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
    .bp-table tbody th { white-space: normal; }
    .bp-table thead th { font-size: .66rem; letter-spacing: .05em; }
    .bp-author { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .bp-author img { width: 64px; height: 80px; }
    .bi-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .bp-more-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media print {
    .bp-toc, .bp-next, .bp-more { display: none; }
}
