/* © 2026 Böttger & Sevgi GbR – thyssenkrupp Carbon2Chem®, Divi-Fassung: Aktuelles/Blog.
   Beitragsliste (Divi-Blogmodul .c2c-blog, Seite /aktuelles/ + „Weitere Beiträge“) und
   Beitragsvorlage (Theme-Builder-Body: .bphero Kopf, .bpost Inhalt, .bmore weitere Beiträge).
   Setzt site.css voraus (Variablen, .c2cn-Grundregeln). Hochladen: python _build_aktuelles.py --css */

/* ================================================================ Beitragsliste */
body .c2cn .c2c-blog .et_pb_ajax_pagination_container{display:block}
body .c2cn .c2c-blog .et_pb_blog_posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin:0;padding:0}
body .c2cn .c2c-blog article.et_pb_post{position:relative;display:flex;flex-direction:column;margin:0;padding:0;background:#fff;border:1px solid var(--line);box-shadow:none;border-radius:0;overflow:hidden;
  transition:border-color .25s,transform .35s var(--ease)}
body .c2cn .c2c-blog article.et_pb_post:hover{border-color:var(--brand);transform:translateY(-3px)}
body .c2cn.sec--tint .c2c-blog article.et_pb_post{border-color:#fff}
body .c2cn.sec--tint .c2c-blog article.et_pb_post:hover{border-color:var(--brand)}

/* Bild (oder Platzhalter, solange kein Beitragsbild gesetzt ist) */
body .c2cn .c2c-blog .et_pb_image_container{order:0;margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--paper-2)}
body .c2cn .c2c-blog .et_pb_image_container a,body .c2cn .c2c-blog .et_pb_image_container .et_pb_image_wrap{display:block;height:100%}
body .c2cn .c2c-blog .et_pb_image_container img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
body .c2cn .c2c-blog article:hover .et_pb_image_container img{transform:scale(1.04)}
body .c2cn .c2c-blog article.et_pb_no_thumb::before{content:"";order:0;display:block;aspect-ratio:3/2;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='3'%3E%3Ccircle cx='60' cy='60' r='44'/%3E%3Ccircle cx='60' cy='16' r='9' fill='%2300a0e3' fill-opacity='.5'/%3E%3Ccircle cx='98' cy='82' r='9' fill='%2300f562' fill-opacity='.45'/%3E%3Ccircle cx='22' cy='82' r='9' fill='%235fe3a1' fill-opacity='.4'/%3E%3C/svg%3E") center/38% no-repeat,
  radial-gradient(120% 90% at 85% 10%,rgba(0,160,227,.55),rgba(0,160,227,0) 60%),linear-gradient(135deg,#063a52,#0a4d6c)}

/* Text: Datum · Kategorie über dem Titel wie auf den übrigen Karten */
body .c2cn .c2c-blog .post-meta{order:1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;padding:20px 22px 0;font-size:0;line-height:1.3;color:var(--blue)}
body .c2cn .c2c-blog .post-meta .published{font-size:14px;font-weight:700;color:var(--blue)}
body .c2cn .c2c-blog .post-meta .entry-categories{position:relative;z-index:2;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
body .c2cn .c2c-blog .post-meta .entry-categories a{color:var(--ink-soft)}
body .c2cn .c2c-blog .post-meta .entry-categories a:hover{color:var(--blue)}
body .c2cn .c2c-blog .entry-title{order:2;margin:10px 0 0;padding:0 22px;font-size:clamp(20px,1.7vw,23px);font-weight:700;line-height:1.2;color:var(--deep);letter-spacing:-.01em}
body .c2cn .c2c-blog .entry-title a{color:inherit}
body .c2cn .c2c-blog .entry-title a::after{content:"";position:absolute;inset:0;z-index:1}
body .c2cn .c2c-blog .post-content{order:3;flex:1;display:flex;flex-direction:column;gap:12px;padding:10px 22px 22px}
body .c2cn .c2c-blog .post-content-inner p{margin:0;padding:0;font-size:16px;line-height:1.5;color:var(--ink-soft);
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
body .c2cn .c2c-blog .more-link{margin-top:auto;padding-top:4px;display:inline-flex;align-items:center;gap:8px;font-size:0;color:var(--blue)}
body .c2cn .c2c-blog .more-link::before{content:"Weiterlesen";font-size:15.5px;font-weight:700}
body .c2cn .c2c-blog .more-link::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-arr) center/contain no-repeat;mask:var(--i-arr) center/contain no-repeat;transition:transform .25s var(--ease)}
body .c2cn .c2c-blog article:hover .more-link::after{transform:translateX(4px)}

/* Aufmacher: erster Beitrag doppelt breit (nur Hauptliste) */
body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_post:first-child{grid-column:span 2}
body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_post:first-child :is(.et_pb_image_container),
body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_no_thumb:first-child::before{aspect-ratio:16/8}
body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_post:first-child .entry-title{font-size:clamp(24px,2.3vw,32px)}

/* „Weitere Beiträge“: kompakt, ohne Auszug */
body .c2cn .c2c-blog--more .post-content-inner{display:none}

/* Blättern */
body .c2cn .c2c-blog .pagination{display:flex;justify-content:space-between;gap:16px;margin-top:clamp(32px,4vw,48px);padding:0}
body .c2cn .c2c-blog .pagination::before,body .c2cn .c2c-blog .pagination::after{display:none}
body .c2cn .c2c-blog .pagination > div{float:none;margin:0}
body .c2cn .c2c-blog .pagination a{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border:2px solid var(--blue);font-size:16px;font-weight:700;color:var(--blue);transition:background .2s,color .2s}
body .c2cn .c2c-blog .pagination a:hover{background:var(--blue);color:#fff}
body .c2cn .c2c-blog .pagination:not(:has(a)){display:none}

@media (max-width:980px){
  body .c2cn .c2c-blog .et_pb_blog_posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .c2cn .c2c-blog--more article.et_pb_post:nth-child(3){display:none}
}
@media (max-width:640px){
  body .c2cn .c2c-blog .et_pb_blog_posts{grid-template-columns:1fr}
  body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_post:first-child{grid-column:auto}
  body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_post:first-child :is(.et_pb_image_container),
  body .c2cn .c2c-blog:not(.c2c-blog--more) article.et_pb_no_thumb:first-child::before{aspect-ratio:3/2}
  body .c2cn .c2c-blog--more article.et_pb_post:nth-child(3){display:flex}
}
/* Lade-Modul auf /aktuelles/ unsichtbar */
body .c2cn .c2c-boot{display:none}

/* ================================================================ Beitrag: Kopf */
/* Kopf: Tiefblau mit Lichtverlauf; das Beitragsbild (LinkedIn-Fotos: nur 800 px) steht als scharfe Bildkarte
   rechts neben dem Titel statt bildschirmbreit – mobil unter dem Titel */
body .c2cn.bphero{position:relative;background-image:radial-gradient(70% 120% at 85% 10%,rgba(0,160,227,.5),rgba(0,160,227,0) 60%),linear-gradient(135deg,#063a52,#0a4d6c)}
body .c2cn.bphero::before{display:none}
body .c2cn.bphero .phero__in{position:relative;z-index:2}
body .c2cn.bphero .phero__in > .et_pb_column,body .c2cn.bphero .bphero__title{position:static}
body .c2cn.bphero .bphero__title{display:flex;flex-direction:column}
body .c2cn.bphero .et_pb_title_featured_container{margin:0;width:auto;max-width:none;overflow:hidden;background:rgba(255,255,255,.06);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
body .c2cn.bphero .et_pb_title_featured_container .et_pb_image_wrap{display:block;width:100%;height:100%}
body .c2cn.bphero .et_pb_title_featured_container img{display:block;width:100%;height:100%;object-fit:cover}
body .c2cn.bphero .bphero__top,body .c2cn.bphero .et_pb_title_container{position:relative}
@media (min-width:981px){
  body .c2cn.bphero .et_pb_title_featured_container{position:absolute;right:0;top:50%;transform:translateY(-50%);width:min(40%,500px);aspect-ratio:4/3}
  body .c2cn.bphero:has(.et_pb_title_featured_container) :is(.et_pb_title_container,.bphero__top){max-width:calc(60% - 48px)}
}
@media (max-width:980px){
  body .c2cn.bphero .et_pb_title_featured_container{order:2;margin-top:28px;aspect-ratio:16/10}
}
body .c2cn.bphero .bphero__top .et_pb_code_inner{display:flex;flex-direction:column;align-items:flex-start;gap:0}
body .c2cn.bphero .bphero__top .crumbs{padding-bottom:0;margin-bottom:0}
body .c2cn.bphero .bphero__top .eyebrow{margin-top:clamp(40px,7vw,96px)}
body .c2cn.bphero .et_pb_title_container{padding:0;margin:0}
body .c2cn.bphero h1.entry-title{margin:14px 0 0;padding:0;font-size:clamp(34px,4.6vw,60px);line-height:1.06;font-weight:400;letter-spacing:-.015em;color:#fff;max-width:22ch;text-wrap:balance}
body .c2cn.bphero .et_pb_title_meta_container{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:20px 0 0;padding:0;font-size:0;color:rgba(255,255,255,.9)}
body .c2cn.bphero .et_pb_title_meta_container > *{font-size:15px;line-height:1.4}
body .c2cn.bphero .et_pb_title_meta_container .published{font-weight:700}
body .c2cn.bphero .et_pb_title_meta_container a{position:relative;z-index:2;padding:4px 10px;border:1px solid rgba(255,255,255,.45);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#fff}
body .c2cn.bphero .et_pb_title_meta_container a:hover{background:#fff;color:var(--deep)}

/* ================================================================ Beitrag: Inhalt */
body .c2cn.bpost{padding-block:clamp(56px,7vw,96px)}
body .c2cn.bpost .bpost__row{max-width:min(760px,100%)}
body .c2cn .bpost__body{font-size:18px;line-height:1.7;color:var(--ink)}
body .c2cn .bpost__body :is(p,ul,ol,figure,blockquote,.wp-block-image,.wp-block-gallery,.wp-block-embed){margin:0 0 1.15em;padding:0}
body .c2cn .bpost__body > :first-child{margin-top:0}
body .c2cn .bpost__body > p:first-of-type,body .c2cn .bpost__body .et_pb_post_content > p:first-of-type{font-size:clamp(19px,1.6vw,21px);line-height:1.6;color:var(--deep)}
body .c2cn .bpost__body :is(h2,h3,h4){margin:1.6em 0 .5em;font-weight:700;line-height:1.2;color:var(--deep)}
body .c2cn .bpost__body h2{font-size:clamp(26px,2.6vw,34px)}
body .c2cn .bpost__body h3{font-size:clamp(21px,1.9vw,25px)}
body .c2cn .bpost__body a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body .c2cn .bpost__body a:hover{color:var(--blue-ink)}
body .c2cn .bpost__body ul li,body .c2cn .bpost__body ol li{position:relative;padding-left:26px;margin:0 0 .55em}
body .c2cn .bpost__body ul li::before{content:"";position:absolute;left:2px;top:.62em;width:9px;height:9px;background:var(--brand)}
body .c2cn .bpost__body ol{counter-reset:li;list-style:none}
body .c2cn .bpost__body ol li::before{counter-increment:li;content:counter(li) ".";position:absolute;left:0;font-weight:700;color:var(--blue)}
body .c2cn .bpost__body img{display:block;max-width:100%;height:auto}
body .c2cn .bpost__body :is(figure,.wp-block-image){margin-block:32px}
body .c2cn .bpost__body figcaption{margin-top:10px;font-size:14px;line-height:1.45;color:var(--ink-soft)}
body .c2cn .bpost__body .wp-block-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:32px}
body .c2cn .bpost__body .wp-block-gallery.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
body .c2cn .bpost__body .wp-block-gallery figure{margin:0!important;width:auto!important}
body .c2cn .bpost__body .wp-block-gallery img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
body .c2cn .bpost__body blockquote{margin-block:32px;padding:4px 0 4px 24px;border-left:4px solid var(--accent);font-size:clamp(20px,1.8vw,24px);line-height:1.45;color:var(--deep)}
body .c2cn .bpost__body .bpost__src{margin-top:40px;padding-top:18px;border-top:1px solid var(--line);font-size:15px;line-height:1.5;color:var(--ink-soft)}
@media (max-width:640px){body .c2cn .bpost__body .wp-block-gallery,body .c2cn .bpost__body .wp-block-gallery.columns-3{grid-template-columns:1fr 1fr}}

/* Fuß des Beitrags */
body .c2cn .bpost__nav{margin-top:40px}
body .c2cn .bpost__foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px}
body .c2cn .bpost__foot a{display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--blue)}
body .c2cn .bpost__foot a:hover{color:var(--blue-ink)}
body .c2cn .bpost__back::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-arr) center/contain no-repeat;mask:var(--i-arr) center/contain no-repeat;transform:scaleX(-1);transition:transform .25s var(--ease)}
body .c2cn .bpost__back:hover::before{transform:scaleX(-1) translateX(4px)}
body .c2cn .bpost__li::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--i-ext) center/contain no-repeat;mask:var(--i-ext) center/contain no-repeat}

/* ================================================================ Beitrag: weitere Beiträge */
body .c2cn.bmore .head{align-items:end}
body .c2cn.bmore .h2{color:var(--deep)}
body .c2cn .bmore__all{justify-self:end}
body .c2cn .bmore__all a{display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--blue)}
body .c2cn .bmore__all a::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-arr) center/contain no-repeat;mask:var(--i-arr) center/contain no-repeat;transition:transform .25s var(--ease)}
body .c2cn .bmore__all a:hover::after{transform:translateX(4px)}
@media (max-width:900px){body .c2cn .bmore__all{justify-self:start}}
