/* ==========================================================================
   blog.css: Layout der Blogbeitraege und der Blog-Uebersicht
   --------------------------------------------------------------------------
   Herkunft: das Inline-<style> aus blog-30-jahre.html (bis 11/2026), ohne die
   dort ungenutzten Bloecke (Gewerke-Karten, Lehmbau-Schwerpunkt, Werte).
   Wird geladen von blog.html, blog-30-jahre.html und allen Beitraegen, die
   die Redaktionsseite unter /blog/ erzeugt (redaktion/vorlage/beitrag.php).

   Eigener Versionsstempel: blog.css?v=JJJJMMTT. Bei Aenderungen nur in
   blog.html, blog-30-jahre.html und redaktion/lib/config.php hochzaehlen,
   danach in der Redaktion "Alles neu erzeugen". styles.css bleibt unberuehrt.
   ========================================================================== */

/* ---------- Schrift: Fraunces, lokal gehostet (DSGVO, CSP font-src 'self') ---------- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/fraunces-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/fraunces-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/fraunces-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/fraunces-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Blog-Uebersicht: Kartenbild als <img> statt .bg-*-Klasse ---------- */
/* Damit braucht ein neuer Beitrag keine Aenderung an styles.css und keinen
   Stempel-Bump ueber alle Seiten. Bildausschnitt optional per style="--bild-pos: …". */
.card-image--img {
    background-image: none;
}

.card-image--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--bild-pos, center);
}

/* ---------- Lesefortschritt (JS: script.js) ---------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, #C89F5D, #8B5E3C);
    transition: width 0.1s linear;
}

/* ---------- Grundgeruest des Artikels ---------- */
.longread {
    --lr-wood: #3E2B22;
    --lr-wood-soft: #5b4639;
    --lr-clay: #C89F5D;
    --lr-clay-deep: #a67c3f;
    --lr-clay-light: #FDF6EC;
    --lr-paper: #FBF9F5;
    --lr-ink: #2A2622;
    --lr-ink-soft: #6b625a;
    --lr-line: #ece5da;
    --lr-read: 680px;
    --lr-wide: 1080px;
    font-family: 'Inter', sans-serif;
    color: var(--lr-ink);
    background: var(--lr-paper);
}

/* ---------- Cover / Hero (zentriert) ---------- */
/* Das Titelbild ist ein <img class="post-hero__bild"> (srcset, Vorladen moeglich),
   der Verlauf liegt als ::before darueber. Ausschnitt per style="--hero-pos: …". */
.post-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2a1d15;
    color: #fff;
}

.post-hero__bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-pos, center 28%);
    z-index: -2;
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(30, 20, 14, 0.85) 0%, rgba(30, 20, 14, 0.5) 50%, rgba(30, 20, 14, 0.45) 100%);
}

.post-hero__inner {
    width: 100%;
    max-width: var(--lr-wide);
    margin: 0 auto;
    padding: 7rem 1.5rem;
}

.post-hero__cat {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1c130d;
    background: var(--lr-clay);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.6rem;
}

.post-hero__title {
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 auto 1.2rem;
    max-width: 18ch;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.post-hero__sub {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 48ch;
    margin: 0 auto;
}

/* ---------- Meta-Zeile (Autor, Datum, Lesezeit) ---------- */
.post-meta {
    max-width: var(--lr-read);
    margin: 0 auto;
    padding: 2.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--lr-line);
}

.post-meta__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 2px solid var(--lr-clay);
}

.post-meta__texts {
    text-align: center;
}

.post-meta__who {
    font-weight: 600;
    color: var(--lr-ink);
    font-size: 0.98rem;
}

.post-meta__line {
    font-size: 0.86rem;
    color: var(--lr-ink-soft);
    margin-top: 0.15rem;
}

.post-meta__line span {
    white-space: nowrap;
}

.post-meta__dot {
    margin: 0 0.5rem;
    color: var(--lr-clay);
}

/* ---------- Lesespalte (zentriert) ---------- */
.post-body {
    padding: 3.5rem 1.5rem 1rem;
    text-align: center;
}

.post-body > * {
    max-width: var(--lr-read);
    margin-left: auto;
    margin-right: auto;
}

.post-body p {
    font-size: 1.1875rem;
    line-height: 1.82;
    color: #38332e;
    margin: 0 auto 1.6rem;
}

/* Links im Fliesstext (Redaktion: [Text](https://…)) */
.post-body p a {
    color: var(--lr-clay-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.post-body p a:hover {
    color: var(--lr-wood);
}

.post-lead {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: var(--lr-wood) !important;
    font-weight: 400;
}

.post-body h2 {
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--lr-wood);
    margin: 3.4rem auto 1.3rem;
}

.post-body h2::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: var(--lr-clay);
    margin: 0 auto 1.1rem;
}

/* ---------- Stat-Leiste (nur handgebaute Beitraege) ---------- */
.post-stats {
    max-width: var(--lr-wide) !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.8rem auto 3rem;
    padding: 2.2rem 1.5rem;
    background: var(--lr-clay-light);
    border-radius: 14px;
    border: 1px solid #f0e3cd;
}

.post-stat {
    text-align: center;
}

.post-stat__num {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--lr-clay-deep);
    line-height: 1;
}

.post-stat__label {
    font-size: 0.82rem;
    color: var(--lr-ink-soft);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* ---------- Bilder / Figures ---------- */
.post-figure {
    margin: 2.6rem auto;
}

.post-figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 24px 50px -22px rgba(62, 43, 34, 0.35);
}

.post-figure figcaption {
    font-size: 0.85rem;
    color: var(--lr-ink-soft);
    margin-top: 0.8rem;
    font-style: italic;
    text-align: center;
}

.post-wide {
    max-width: var(--lr-wide) !important;
}

/* ---------- Pull Quote ---------- */
.post-quote {
    max-width: 900px !important;
    margin: 3.4rem auto;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.post-quote::before {
    content: "\201C";
    font-family: 'Fraunces', serif;
    font-size: 6rem;
    line-height: 0.7;
    color: var(--lr-clay);
    display: block;
    margin-bottom: -0.5rem;
}

.post-quote blockquote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.4;
    color: var(--lr-wood);
    margin: 0 0 1.2rem;
}

.post-quote cite {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lr-clay-deep);
    text-transform: uppercase;
}

/* ---------- Danke / Partner (nur handgebaute Beitraege) ---------- */
.thanks-logos {
    max-width: var(--lr-wide) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3rem;
    margin: 2.4rem auto 0.5rem;
    padding: 2.2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--lr-line);
    border-radius: 14px;
}

.thanks-logos img {
    height: 54px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.thanks-logos img:hover {
    opacity: 1;
}

.thanks-caption {
    font-size: 0.85rem !important;
    color: var(--lr-ink-soft) !important;
    font-style: italic;
    margin: 1rem auto 0 !important;
}

/* ---------- Autoren-Box ---------- */
.post-body--autor {
    padding-top: 0;
}

.author-box {
    max-width: var(--lr-read) !important;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    text-align: center;
    background: var(--lr-clay-light);
    border: 1px solid #f0e3cd;
    border-radius: 14px;
    padding: 1.8rem;
    margin: clamp(1.5rem, 4vw, 3rem) auto 1rem;
}

.author-box img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px -6px rgba(62, 43, 34, 0.4);
}

.author-box__name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--lr-wood);
    margin: 0 0 0.2rem;
}

.author-box__role {
    font-size: 0.85rem;
    color: var(--lr-clay-deep);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 0.6rem;
}

.author-box__bio {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--lr-ink-soft) !important;
    margin: 0 !important;
}

/* ---------- Abschluss ---------- */
.post-end {
    max-width: var(--lr-read) !important;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem 4rem;
}

.post-end p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--lr-wood);
    margin: 0 0 1.6rem;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--lr-clay-deep);
}

.post-back:hover {
    color: var(--lr-wood);
}

.post-back--top {
    max-width: var(--lr-read);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: block;
    text-align: center;
}

/* ---------- Bild-Duo (zwei Bilder nebeneinander) ---------- */
.post-duo {
    max-width: var(--lr-wide) !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: start;
    margin: 2.6rem auto;
}

.post-duo .post-figure {
    margin: 0;
    max-width: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .post-hero { min-height: 68vh; }
    .post-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
    .post-duo { grid-template-columns: 1fr; gap: 2rem; }
    .author-box { flex-direction: column; text-align: center; }
    .post-body p { font-size: 1.12rem; }
}
