.posts-container,
.post-reading-column {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.posts-hero {
    padding: 92px 0 78px;
    color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(242,140,40,.28), transparent 25%), linear-gradient(130deg, #111315, #20252a);
}

.posts-hero h1,
.post-article-head h1 {
    max-width: 900px;
    margin: 14px 0 20px;
    color: inherit;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    overflow-wrap: anywhere;
}

.post-article-head .post-reading-column { max-width: 900px; }
.post-article-head h1 {
    line-height: 1.08;
    text-wrap: balance;
}
.post-article.is-layout-compact .post-article-head { padding-top: 54px; }
.post-article.is-layout-compact .post-article-head h1 { max-width: 880px; font-size: clamp(2.15rem, 3.8vw, 3.25rem); }
.post-article.is-layout-editorial .post-article-head h1 { font-size: clamp(2.35rem, 4.7vw, 4rem); }
.post-article.is-layout-visual .post-article-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }

.posts-hero > div > p:last-child,
.post-lead {
    max-width: 780px;
    margin: 0;
    color: #d8dde0;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.posts-section { padding: 76px 0 96px; background: #f4f5f6; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid #dfe3e6; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(17,19,21,.08); }
.post-card-image { aspect-ratio: 16 / 9; display: block; overflow: hidden; background: #e9ecef; }
.post-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-body { flex: 1; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.post-card h2 { margin: 10px 0 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
.post-card h2 a:hover { color: #d96e0c; }
.post-card-body > p:not(.post-meta) { margin: 0 0 22px; color: #596168; }
.post-read-more { margin-top: auto; color: #b85800; font-weight: 850; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; color: #687078; font-size: .84rem; font-weight: 750; }
.post-meta span { color: #b85800; }
.posts-empty { padding: 40px; border-radius: 22px; text-align: center; background: #fff; }

.post-article { padding-bottom: 96px; }
.post-article-head { padding: 70px 0 0; color: #111315; background: linear-gradient(180deg, #f4f5f6 0, #fff 100%); }
.post-article-head .eyebrow { margin-top: 30px; }
.post-article-head .post-lead { color: #596168; }
.post-back { color: #b85800; font-weight: 800; }
.post-article-head .post-meta { margin-top: 22px; }
.post-hero-image { width: min(100% - 40px, 1180px); aspect-ratio: 16 / 8; margin: 44px auto 0; overflow: hidden; border-radius: 28px; background: #e9ecef; box-shadow: 0 24px 65px rgba(17,19,21,.14); }
.post-hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-reading-column { max-width: 780px; }
/* Ab Version 4.0.0 (durchgehender Editor statt Blockliste): der gesamte
   Beitragsinhalt ist ein einziger, durchgehender Fließtext-Bereich in
   normaler Lesebreite - keine einzeln einstellbare Breite/Hintergrundfläche
   je Abschnitt mehr (siehe Update-Dokumentation). Bausteine (Galerie,
   Karussell, Kennzahlen, Video) erscheinen mit etwas Abstand direkt im
   Textfluss. */
.post-content { width: min(100% - 40px, 780px); margin: 0 auto; padding-top: 58px; color: #30363b; font-size: 1.08rem; }
.post-content > *,
.post-content > .post-widget-shell { margin: 0 0 30px; }
.post-content > *:last-child { margin-bottom: 0; }
.post-content h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.post-rich-text p { margin: 0 0 14px; }
.post-rich-text p:last-child { margin-bottom: 0; }
.post-rich-text ul,
.post-rich-text ol { margin: 0 0 14px; padding-left: 1.3em; }
.post-rich-text ul:last-child,
.post-rich-text ol:last-child { margin-bottom: 0; }
.post-rich-text li { margin: 0 0 6px; }
.post-rich-text a { color: #b85800; text-decoration: underline; text-underline-offset: 2px; }
.post-rich-text a:hover,
.post-rich-text a:focus-visible { color: #d96e0c; }
.post-rich-text strong,
.post-rich-text b { font-weight: 850; }
.text-color-orange { color: #d96e0c; }
.text-color-blue { color: #2f6f9e; }
.text-color-green { color: #2f7d32; }
.text-color-muted { color: #687078; }
.post-section.is-theme-dark .text-color-muted,
.post-section.is-theme-cool .text-color-muted { color: rgba(255,255,255,.72); }
.post-content-image { margin: 0; }
.post-content-image img { width: 100%; max-height: 680px; display: block; border-radius: 20px; object-fit: cover; background: #e9ecef; }
.post-content-image.is-aspect-square img,
.post-media-text figure.is-aspect-square img,
.post-gallery.is-aspect-square img { aspect-ratio: 1 / 1; max-height: none; }
.post-content-image.is-aspect-wide img,
.post-media-text figure.is-aspect-wide img,
.post-gallery.is-aspect-wide img { aspect-ratio: 16 / 9; max-height: none; }
.post-content-image.is-aspect-portrait img,
.post-media-text figure.is-aspect-portrait img,
.post-gallery.is-aspect-portrait img { aspect-ratio: 4 / 5; max-height: none; }
.post-html-block { overflow-x: auto; }
.post-content-image figcaption { margin-top: 10px; color: #687078; font-size: .88rem; }
.post-media-text { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); align-items: center; gap: clamp(24px, 5vw, 58px); }
.post-media-text.is-image-right .post-media-text-copy { order: -1; }
.post-media-text.is-image-top { grid-template-columns: 1fr; }
.post-media-text figure { margin: 0; overflow: hidden; border-radius: 20px; background: #e9ecef; }
.post-media-text img { width: 100%; min-height: 320px; max-height: 600px; display: block; object-fit: cover; }
.post-media-text figcaption { padding: 9px 12px; color: #687078; background: #fff; font-size: .86rem; }
.post-media-text-copy .post-rich-text:last-child { margin-bottom: 0; }
.post-media-text-copy .post-button { margin-top: 22px; }
.post-gallery { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-gallery figure { margin: 0; overflow: hidden; border-radius: 16px; background: #eef0f1; }
.post-gallery img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.post-gallery figcaption,
.post-carousel figcaption { padding: 10px 13px; color: #596168; background: #fff; font-size: .88rem; }
.post-carousel { margin: 0; }
.post-carousel-stage { position: relative; overflow: hidden; border-radius: 20px; background: #e9ecef; box-shadow: 0 16px 40px rgba(17,19,21,.12); touch-action: pan-y; }
.post-carousel-slide { margin: 0; }
.post-carousel-slide[hidden] { display: none; }
.post-carousel-slide img { width: 100%; max-height: 680px; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.post-carousel.is-aspect-square .post-carousel-slide img { aspect-ratio: 1 / 1; max-height: none; }
.post-carousel.is-aspect-wide .post-carousel-slide img { aspect-ratio: 16 / 9; max-height: none; }
.post-carousel.is-aspect-portrait .post-carousel-slide img { aspect-ratio: 4 / 5; max-height: none; }
.post-gallery.is-aspect-square img,
.post-gallery.is-aspect-wide img,
.post-gallery.is-aspect-portrait img { aspect-ratio: initial; }
/* Weicher Bildwechsel (Fade): alle Folien bleiben im Layout (kein [hidden]-
   Ausblenden per display), Sichtbarkeit läuft stattdessen über Opacity. */
.post-carousel.is-transition-fade .post-carousel-stage { display: grid; }
.post-carousel.is-transition-fade .post-carousel-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; }
.post-carousel.is-transition-fade .post-carousel-slide[hidden] { display: block; pointer-events: none; }
.post-carousel.is-transition-fade .post-carousel-slide:not([hidden]) { opacity: 1; }
.post-carousel-toggle { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid #dfe3e6; border-radius: 50%; background: #fff; font-size: .95rem; line-height: 1; cursor: pointer; }
.post-carousel-toggle:hover,
.post-carousel-toggle:focus-visible { border-color: #d96e0c; }
.post-carousel-toggle[aria-pressed="true"] { color: #d96e0c; border-color: #d96e0c; }
.post-carousel-arrow { position: absolute; top: 50%; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(17,19,21,.78); font-size: 2rem; line-height: 1; cursor: pointer; }
.post-carousel-arrow:hover,
.post-carousel-arrow:focus-visible { background: #d96e0c; outline: 3px solid rgba(255,255,255,.8); }
.post-carousel-arrow.is-prev { left: 14px; }
.post-carousel-arrow.is-next { right: 14px; }
.post-carousel-controls { min-height: 34px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #687078; font-size: .86rem; font-weight: 750; }
.post-carousel-dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.post-carousel-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #c7ccd0; cursor: pointer; }
.post-carousel-dots button.is-active { background: #d96e0c; transform: scale(1.2); }
.post-carousel-dots button:focus-visible { outline: 3px solid rgba(242,140,40,.35); outline-offset: 3px; }
.post-notice { padding: 24px 26px; border-left: 5px solid #f28c28; border-radius: 16px; color: #30363b; background: #fff5e9; text-align: left; }
.post-notice h2 { margin: 0 0 10px; font-size: 1.35rem; }
.post-notice.is-important { border-color: #bf2b32; background: #fff0f1; }
.post-notice.is-tip { border-color: #2f7d32; background: #eff8ef; }
.post-action { margin: 0; }
.post-button { display: inline-flex; min-height: 48px; padding: 11px 20px; align-items: center; justify-content: center; border-radius: 999px; color: #111315; background: #f28c28; font-weight: 850; }
.post-button:hover,
.post-button:focus-visible { background: #ffab50; outline: 3px solid rgba(242,140,40,.25); }
.post-faq { margin-bottom: 14px; border: 1px solid #dfe3e6; border-radius: 16px; background: #fff; }
.post-faq summary { padding: 18px 22px; cursor: pointer; color: #111315; font-weight: 850; }
.post-faq > div { padding: 0 22px 20px; }

.post-quote { margin: 0; padding: 0 0 0 26px; border-left: 5px solid #f28c28; }
.post-quote-text { color: #1b1d1f; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-style: italic; line-height: 1.5; quotes: "„" "“"; }
.post-quote-text::before { content: open-quote; }
.post-quote-text::after { content: close-quote; }
.post-quote-text p { margin: 0; display: inline; }
.post-quote cite { margin-top: 14px; display: block; font-style: normal; }
.post-quote-name { display: block; color: #111315; font-weight: 850; }
.post-quote-role { display: block; color: #687078; font-size: .88rem; }
.post-section.is-theme-dark .post-quote-text,
.post-section.is-theme-cool .post-quote-text { color: inherit; }
.post-section.is-theme-dark .post-quote-role,
.post-section.is-theme-cool .post-quote-role { color: rgba(255,255,255,.72); }

.post-video { margin: 0; }
.post-video video { width: 100%; max-height: 680px; display: block; border-radius: 20px; background: #111315; }
.post-video figcaption { margin-top: 10px; color: #687078; font-size: .88rem; }

.post-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.post-stat { padding: 22px 18px; display: grid; gap: 4px; border-radius: 16px; text-align: center; background: #fff; box-shadow: 0 10px 30px rgba(17,19,21,.08); }
.post-stat strong { display: block; color: #d96e0c; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; }
.post-stat span { color: #596168; font-size: .9rem; font-weight: 700; }
.post-section.is-theme-dark .post-stat,
.post-section.is-theme-cool .post-stat { background: rgba(255,255,255,.08); box-shadow: none; }
.post-section.is-theme-dark .post-stat span,
.post-section.is-theme-cool .post-stat span { color: rgba(255,255,255,.75); }

@media (max-width: 760px) {
    .posts-grid { grid-template-columns: 1fr; }
    .posts-hero { padding: 68px 0 58px; }
    .post-article-head { padding-top: 50px; }
    .post-article.is-layout-compact .post-article-head { padding-top: 38px; }
    .post-article.is-layout-compact .post-article-head h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
    .post-hero-image { aspect-ratio: 4 / 3; border-radius: 18px; }
    .post-content { padding-top: 42px; font-size: 1rem; }
    .post-section,
    .post-section.is-width-wide,
    .post-section.is-width-full { width: min(100% - 28px, 780px); }
    .post-section.is-theme-soft .post-section-inner,
    .post-section.is-theme-accent .post-section-inner,
    .post-section.is-theme-dark .post-section-inner { padding: 22px 18px; border-radius: 17px; }
    .post-media-text,
    .post-media-text.is-image-right { grid-template-columns: 1fr; }
    .post-media-text.is-image-right .post-media-text-copy { order: initial; }
    .post-media-text img { min-height: 230px; }
    .post-gallery { grid-template-columns: 1fr; }
    .post-carousel-slide img { aspect-ratio: 4 / 3; }
    .post-carousel-arrow { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .post-carousel * { scroll-behavior: auto !important; }
    .post-carousel-slide { transition: none !important; }
}
