/* Magazin-Artikel (gespiegelte WordPress-Beiträge, body.single-post) im Raster der neuen Seiten, Runde 4 (01.12.2026).
   Eingebunden von werkzeuge/artikel_seiten.py direkt nach rahmen.css. Das Theme setzte main auf 880 px mittig, darum
   mit body-Klasse und, wo das Theme stärker ist, !important.

   Titel, Autorzeile und Titelbild über die Inhaltsbreite (max-width var(--breite), padding var(--rand): Logokante bis
   Kante „Projekt anfragen“). Einleitung und Fließtext in einer Spalte von höchstens --artikel-spalte (rund 70 Zeichen)
   an der Logokante, rechts daneben die Teilen-Knöpfe. „Aktuelle Beiträge“ im selben Raster. */

body.single-post{--artikel-spalte:620px}

/* ---------- Raster ---------- */
body.single-post main.site-main{box-sizing:border-box;width:100%;max-width:var(--breite) !important;margin:0 auto !important;padding:0 var(--rand) !important;display:grid;grid-template-columns:minmax(0,var(--artikel-spalte)) minmax(0,1fr);column-gap:clamp(48px,7vw,120px);align-items:start}
body.single-post main.site-main > *{grid-column:1 / -1;min-width:0;max-width:none}
body.single-post main.site-main > :is(.post_intro,.post_content){grid-column:1}
body.single-post main.site-main > .post_social{grid-column:2;grid-row:5;justify-self:start;position:sticky;top:calc(var(--kopf-h,104px) + 32px);display:flex;flex-direction:column;gap:12px;padding:0 !important;margin:0;border:0 !important}

/* ---------- Kopf des Artikels ---------- */
body.single-post main.site-main > h1{margin:clamp(16px,2.4vw,40px) 0 28px !important;font-size:clamp(38px,4.4vw,72px) !important;line-height:1.06 !important;color:var(--tinte) !important;text-wrap:balance}
body.single-post main.site-main > .author_row{display:flex;align-items:center;gap:14px;margin:0 0 clamp(28px,3vw,44px) !important;padding:0 0 clamp(20px,2vw,28px);border-bottom:1px solid var(--sand)}
body.single-post .author_row img{width:44px;height:44px;border-radius:50%;margin:0 !important}
body.single-post .author_name{margin:0 !important;font-family:var(--archivo);font-size:15px !important;line-height:1.5 !important;color:var(--text)}
body.single-post .author_name b{font-weight:600;color:var(--tinte)}
body.single-post main.site-main > .post_intro{margin:0 0 clamp(32px,3.4vw,52px) !important;font-family:var(--archivo);font-size:clamp(19px,1.5vw,22px) !important;line-height:1.55 !important;color:var(--tinte)}
/* Titelbild über die volle Breite: festes Seitenverhältnis, sonst wird ein Hochformat über 1300 px hoch */
body.single-post main.site-main > img{display:block;width:100% !important;height:auto !important;aspect-ratio:16 / 9;object-fit:cover;object-position:center;border-radius:var(--r-karte);margin:0 0 clamp(40px,4.4vw,72px) !important}

/* ---------- Fließtext ---------- */
body.single-post .post_content{font-family:var(--archivo);font-size:19px !important;line-height:1.7 !important;color:var(--text)}
body.single-post .post_content :is(p,li){font-size:inherit !important;line-height:inherit !important;color:inherit}
body.single-post .post_content p{margin:0 0 1.15em}
body.single-post .post_content :is(h2,h3,h4){font-family:var(--playfair) !important;font-weight:400 !important;color:var(--tinte) !important;line-height:1.2 !important;margin:1.9em 0 .6em !important}
body.single-post .post_content h2{font-size:clamp(26px,2.2vw,32px) !important}
body.single-post .post_content :is(strong,b){color:var(--tinte)}
body.single-post .post_content a{color:var(--tinte);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
body.single-post .post_content a u{text-decoration:none}
body.single-post .post_content figure{margin:2em 0 !important}
body.single-post .post_content figure img{display:block;width:100%;height:auto;border-radius:var(--r-karte)}
body.single-post .post_content figcaption{margin-top:10px;font-size:14px;line-height:1.5;color:var(--oliv)}

/* ---------- Teilen und Aktuelle Beiträge im Raster ---------- */
body.single-post .post_social .share-btn{width:44px;height:44px}
body.single-post :is(hr.post_line,.more_posts){box-sizing:border-box;width:calc(100% - 2 * var(--rand)) !important;max-width:calc(var(--breite) - 2 * var(--rand)) !important;margin-left:auto !important;margin-right:auto !important}

/* ---------- Tablet und Handy: eine Spalte, Teilen unter dem Text ---------- */
@media (max-width:1023px){
  body.single-post main.site-main{grid-template-columns:minmax(0,1fr)}
  body.single-post main.site-main > .post_social{grid-column:1;grid-row:auto;position:static;flex-direction:row;padding:8px 0 0 !important}
  body.single-post main.site-main > :is(.post_intro,.post_content){max-width:var(--artikel-spalte)}
}
@media (max-width:620px){
  body.single-post main.site-main > img{aspect-ratio:4 / 3}
  body.single-post .post_content{font-size:17px !important}
}
