/* STV Beitragslayout 1.1.0 – nur Einzelansicht von Beitraegen (body.stvb-post) */
.stvb-post{--stvb-blue:#1D61B2;--stvb-grey:#F2F2F2;--stvb-text:#333;--stvb-pad:44px}

/* Alte blaue Titelleiste aus */
.stvb-post .avada-page-titlebar-wrapper,
.stvb-post .fusion-page-title-bar{display:none!important}

.stvb-post #main{background:var(--stvb-grey)!important;padding-top:24px!important;padding-bottom:64px!important}
.stvb-post #content{float:none!important;width:100%!important;max-width:940px;margin:0 auto!important}

/* Brotkrumen */
.stvb-crumb{font-size:14px;color:#666;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px}
.stvb-crumb a{color:#666;text-decoration:none}
.stvb-crumb a:last-of-type{color:var(--stvb-blue);font-weight:600}
.stvb-crumb a:hover{color:var(--stvb-blue)}

/* Kopfbereich */
.stvb-hero{background:var(--stvb-blue);color:#fff;padding:40px var(--stvb-pad) 36px}
.stvb-hero p{margin:0}
.stvb-kicker{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#fff;opacity:.9;margin-bottom:12px!important}
.stvb-hero .stvb-title{color:#fff!important;font-size:clamp(28px,4.2vw,46px)!important;line-height:1.12!important;font-weight:500!important;margin:0 0 14px!important;overflow-wrap:break-word;hyphens:manual}
.stvb-date{font-size:15px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;opacity:.9}

/* Karte */
.stvb-ready #content > .single-navigation{display:none!important}
.stvb-ready article.post{background:#fff;padding:0 var(--stvb-pad) 40px;margin:0!important}
.stvb-ready article.post.stvb-noimg{padding-top:36px}
.stvb-ready article.post > .entry-title,
.stvb-ready article.post > .fusion-post-title{display:none!important}
.stvb-ready article.post > .fusion-meta-info{display:none!important}

/* Beitragsbild(er): einheitlicher 16:9-Rahmen, ganzes Bild sichtbar */
.stvb-post .post-slideshow,
.stvb-post article.post > .fusion-flexslider{margin:0 calc(var(--stvb-pad) * -1) 34px!important;max-width:none!important;background:#e9ecef}
.stvb-post .post-slideshow .flex-viewport{height:auto!important}
.stvb-post .post-slideshow .slides > li{aspect-ratio:16/9;background:#e9ecef;overflow:hidden}
.stvb-post .post-slideshow .slides > li > a,
.stvb-post .post-slideshow .slides > li > span{display:block;width:100%;height:100%}
.stvb-post .post-slideshow .slides img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;object-position:center;display:block}
.stvb-post .post-slideshow .flex-control-nav{bottom:12px!important}
.stvb-post .post-slideshow .flex-direction-nav a{background:rgba(29,97,178,.85)!important}

/* Text */
.stvb-post .post-content{font-size:17px;line-height:1.7;color:var(--stvb-text);max-width:720px;margin:0 auto}
.stvb-post .post-content p{margin:0 0 1.1em}
.stvb-post .post-content h2,.stvb-post .post-content h3,.stvb-post .post-content h4{color:var(--stvb-blue);line-height:1.25;margin:1.4em 0 .5em}
.stvb-post .post-content a{color:var(--stvb-blue);text-decoration:underline}
.stvb-post .post-content ul,.stvb-post .post-content ol{padding-left:1.3em;margin:0 0 1.1em}

/* Bilder im Text: einheitlich begrenzt, zentriert, nie ueberdimensional */
.stvb-post .post-content img[class*="wp-image-"],
.stvb-post .post-content img[class*="size-"],
.stvb-post .post-content .wp-caption img,
.stvb-post .post-content figure img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:480px!important;object-fit:contain;margin:28px auto!important;float:none!important;background:#e9ecef}
.stvb-post .post-content .wp-caption,
.stvb-post .post-content figure{width:auto!important;max-width:100%!important;margin:28px auto!important;float:none!important;text-align:center}
.stvb-post .post-content .wp-caption img,.stvb-post .post-content figure img{margin:0 auto!important}
.stvb-post .post-content .wp-caption-text,.stvb-post .post-content figcaption{font-size:14px;color:#666;margin-top:8px}
/* Emojis (Facebook-/Google-Emoji-Grafiken) klein in der Zeile */
.stvb-post .post-content img.an1,.stvb-post .post-content img.emoji,.stvb-post .post-content img[src*="emoji"]{display:inline!important;width:1.25em!important;height:1.25em!important;max-height:none!important;margin:0 .1em!important;vertical-align:-.2em;background:none!important}
.stvb-post .post-content iframe,.stvb-post .post-content video{max-width:100%}
.stvb-post .post-content iframe[src*="youtube"],.stvb-post .post-content iframe[src*="vimeo"]{width:100%;height:auto;aspect-ratio:16/9}

/* Buttons unten */
.stvb-foot{display:flex;flex-wrap:wrap;gap:12px;max-width:720px;margin:36px auto 0;padding-top:28px;border-top:1px solid #e3e3e3}
.stvb-btn{display:inline-block;padding:12px 22px;border:2px solid var(--stvb-blue);color:var(--stvb-blue)!important;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none!important;line-height:1.2}
.stvb-btn:hover{background:var(--stvb-blue);color:#fff!important}
.stvb-btn--primary{background:var(--stvb-blue);color:#fff!important}
.stvb-btn--primary:hover{background:#174f92;border-color:#174f92}

/* Teilen-Box */
.stvb-ready article.post > .fusion-sharing-box{max-width:720px;margin:24px auto 0!important;background:var(--stvb-grey)!important;border-radius:0}

/* Mobil */
@media (max-width:640px){
	.stvb-post{--stvb-pad:20px}
	.stvb-post #main{padding-top:14px!important;padding-bottom:40px!important}
	.stvb-hero{padding:28px var(--stvb-pad) 26px}
	.stvb-post .post-content{font-size:16px}
	.stvb-post .post-content img[class*="wp-image-"],
	.stvb-post .post-content img[class*="size-"],
	.stvb-post .post-content figure img{max-height:420px!important}
	.stvb-btn{flex:1 1 100%;text-align:center}
}
