/*
 * Mietova-Blog — Ergänzung zu landing.css.
 *
 * Nutzt bewusst die Design-Tokens der Landingpage (--navy, --teal, --ink …),
 * damit Blog und Startseite ein Auftritt bleiben. Hier stehen NUR die
 * blog-eigenen Bausteine (.bl-*); alles Gemeinsame (Wrap, Buttons, Nav, Footer)
 * kommt weiterhin aus landing.css.
 *
 * Fließtext ist auf ~68 Zeichen Zeilenlänge ausgelegt — darüber hinaus wird
 * längeres Lesen unangenehm.
 */

/* ---------- Kopf der Übersicht ---------- */
.bl-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.bl-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 14px; max-width: 15ch; }
.bl-hero h1 span { color: var(--teal); }
.bl-hero-sub { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 62ch; line-height: 1.6; }
/* Der Abschnitt direkt unter dem Kopf braucht kein volles .sec-Polster —
   sonst klafft eine Lücke von ~150 px zwischen Einleitung und erstem Beitrag. */
.bl-hero + .sec { padding-top: 34px; }

/* ---------- Aufmacher (neuester Beitrag) ---------- */
.bl-lead { display: block; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; padding: 34px 34px 30px; box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease; }
.bl-lead:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d4e0e9; }
.bl-lead h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); margin-top: 12px; color: var(--ink); max-width: 24ch; }
.bl-lead p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; line-height: 1.62; max-width: 70ch; }
.bl-badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--teal-600); background: var(--teal-050);
    padding: 5px 11px; border-radius: 999px; }
.bl-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    font-weight: 650; color: var(--teal-600); }
.bl-more svg { width: 17px; height: 17px; transition: transform .16s ease; }
.bl-lead:hover .bl-more svg { transform: translateX(3px); }

/* ---------- Kartenraster ---------- */
.bl-grid { display: grid; gap: 20px; margin-top: 26px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.bl-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; padding: 24px 24px 20px;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease; }
.bl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d4e0e9; }
.bl-card h3 { font-size: 1.16rem; color: var(--ink); line-height: 1.3; }
.bl-card p { margin-top: 10px; color: var(--muted); font-size: .97rem; line-height: 1.58; }

/* ---------- Metazeile ---------- */
.bl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px;
    color: var(--faint); font-size: .88rem; }
.bl-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.bl-meta span { display: inline-flex; align-items: center; }
.bl-dot { opacity: .6; }
.bl-meta-lg { margin-top: 18px; font-size: .95rem; }

/* ---------- Beitrag ---------- */
.bl-post { padding: 44px 0 12px; }
.bl-narrow { max-width: 760px; }
.bl-crumb { font-size: .88rem; color: var(--faint); margin-bottom: 18px; }
.bl-crumb a { color: var(--muted); }
.bl-crumb a:hover { color: var(--teal-600); }
.bl-crumb span { margin: 0 7px; opacity: .6; }
.bl-post h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.14; }

.bl-draft { background: #fff6e6; border: 1px solid #f0d9a8; color: #7a5a12;
    border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 22px; font-size: .95rem; }

/* Inhaltsverzeichnis — bei langen Artikeln zweispaltig, sonst füllt es den
   ganzen ersten Bildschirm und der Text beginnt erst weit unten. */
.bl-toc { margin: 32px 0 8px; padding: 22px 26px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bl-toc h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.bl-toc ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
@media (min-width: 721px) {
    .bl-toc ol { grid-template-columns: 1fr 1fr; gap: 8px 28px; }
}
.bl-toc li { color: var(--muted); font-size: .97rem; }
.bl-toc a { color: var(--muted); }
.bl-toc a:hover { color: var(--teal-600); text-decoration: underline; }

/* Fließtext — die eigentliche Lesefläche */
.bl-body { margin-top: 34px; font-size: 1.09rem; line-height: 1.75; color: #22323f; }
.bl-body p { margin: 0 0 22px; }
.bl-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 46px 0 16px;
    color: var(--navy); scroll-margin-top: 90px; }
.bl-body h3 { font-size: 1.22rem; margin: 32px 0 12px; color: var(--navy-800); scroll-margin-top: 90px; }
.bl-body h2:first-child, .bl-body h3:first-child { margin-top: 0; }
.bl-body strong { color: var(--ink); font-weight: 700; }
.bl-body a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 2px; }
.bl-body a:hover { color: var(--teal); }
.bl-body ul, .bl-body ol { margin: 0 0 22px; padding-left: 26px; }
.bl-body li { margin-bottom: 9px; }
.bl-body ul li::marker { color: var(--teal); }
.bl-body blockquote { margin: 26px 0; padding: 18px 24px; background: var(--teal-050);
    border-left: 3px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.bl-body blockquote p { margin: 0; color: var(--navy-800); font-weight: 600; }
.bl-body code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
    padding: 1px 6px; font-size: .92em; }
.bl-body hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }

.bl-share { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 8px;
    padding-top: 30px; border-top: 1px solid var(--line); }

.bl-rel-h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); }

/* ---------- Leerzustand ---------- */
.bl-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line);
    border-radius: var(--radius); background: var(--bg-soft); }
.bl-empty h1, .bl-empty h2 { font-size: 1.5rem; color: var(--navy); }
.bl-empty p { margin: 12px 0 22px; color: var(--muted); }

/* ---------- Abschluss-Aufruf ---------- */
.bl-cta { background: var(--navy); color: #eaf2f8; padding: 68px 0; text-align: center; }
.bl-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; }
.bl-cta p { margin: 16px auto 0; max-width: 60ch; color: #b9cbdb; font-size: 1.06rem; line-height: 1.6; }
.bl-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.bl-cta .btn-ghost { color: #eaf2f8; border-color: rgba(255,255,255,.28); }
.bl-cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.bl-cta-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
    justify-content: center; margin: 26px 0 0; padding: 0; color: #9fb6c9; font-size: .93rem; }
.bl-cta-list li { display: inline-flex; align-items: center; gap: 7px; }
.bl-cta-list svg { width: 16px; height: 16px; color: var(--teal); }

/* Aktiver Navigationspunkt */
.nav-links a.is-here { color: var(--teal-600); font-weight: 650; }

/* ---------- Handy ---------- */
@media (max-width: 720px) {
    .bl-hero { padding: 46px 0 36px; }
    .bl-lead { padding: 24px 22px 22px; }
    .bl-post { padding: 28px 0 8px; }
    .bl-body { font-size: 1.04rem; line-height: 1.7; }
    .bl-toc { padding: 18px 20px; }
    .bl-cta { padding: 52px 0; }
    .bl-share .btn { flex: 1 1 100%; justify-content: center; }
}
