/* ==========================================================================
   IB Theme – Basis-Stylesheet
   --------------------------------------------------------------------------
   Bildet die Grundlage nach, auf der deine Anpassungen (custom.css) unter
   Penci aufgebaut haben: 10px-Basisschrift (1rem = 10px), Roboto für Text,
   Mukta Vaani für Überschriften, Oswald für Block-Titel, Penci-Farben.
   custom.css wird danach geladen und hat bei gleicher Spezifität Vorrang.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta Vaani"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mukta-vaani-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta Vaani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mukta-vaani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }

:root {
	--ib-orange: #f97339;
	--ib-orange-strong: #ff6600;
	--ib-blue: #3f51b5;
	--ib-blue-dark: #34459c;
	--ib-navy: #004467;
	--ib-text: #666666;
	--ib-text-dark: #111111;
	--ib-muted: #999999;
	--ib-surface: #f8f9fb;
	--ib-border: #e0e0e0;
	--ib-footer: #212121;
	--ib-radius: 8px;
	--ib-gap: 20px;
	--ib-max: 1420px;
	--ib-font: Roboto, sans-serif;
	--ib-font-head: "Mukta Vaani", sans-serif;
	--ib-font-block: Oswald, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 var(--ib-font); color: var(--ib-text); background: #fff; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ib-blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ib-blue-dark); }
:focus-visible { outline: 2px solid var(--ib-orange); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ib-font-head); margin: 0 0 .5em; }
p { margin: 0 0 17px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ib-skip { position: absolute; left: -999px; top: 0; background: #111; color: #fff; padding: 8px 16px; z-index: 1000; }
.ib-skip:focus { left: 16px; }

.ib-container { max-width: var(--ib-max); margin: 0 auto; padding: 0 15px; }
.ib-container--narrow { max-width: 900px; }
.ib-main { padding-bottom: 50px; }

/* ---------- Header: schwebende Karte (Form kommt aus custom.css) ---------- */
.site-header-wrapper { position: relative; z-index: 50; }
.header__top { background: #fff; }
.site-branding { text-align: center; padding: 2px 15px 20px; }
.site-branding img { margin: 0 auto; width: auto; max-height: 105px; }
.site-branding .ib-brand__name { font: 700 32px/1.2 var(--ib-font-head); color: var(--ib-blue); display: inline-block; padding-top: 20px; }

#masthead { display: flex; align-items: center; gap: 10px; min-height: 72px; }
.main-navigation { flex: 1; min-width: 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul > li { position: relative; }
.main-navigation > ul > li > a { display: block; font: 700 14px/24px var(--ib-font); text-transform: uppercase; color: var(--ib-text-dark); white-space: nowrap; }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.main-navigation .sub-menu { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; display: none; z-index: 60; }
.main-navigation .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* Brücke über den Abstand (margin-top aus custom.css), damit das Menü beim Hinüberfahren offen bleibt */
.main-navigation .sub-menu .sub-menu { left: 100%; top: 0; margin-top: 0 !important; }
.main-navigation .sub-menu a { display: block; color: var(--ib-text-dark); font-weight: 700; text-transform: uppercase; }
.main-navigation .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .ib-home-icon { width: 24px; height: 24px; flex: none; fill: currentColor; color: #fff; display: block; }
#masthead .main-navigation > ul > li.menu-item-home > a { padding: 0; } /* Icon mittig im 44px-Button */

.ib-icon-btn { background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ib-search-toggle { width: 60px; align-self: stretch; margin: -4px -20px -4px 0; background: var(--ib-blue); color: #fff; border-radius: 0 0 28px 0; }
.ib-search-toggle:hover { background: var(--ib-blue-dark); }
.ib-nav-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; }
.ib-search-panel { padding: 16px 20px 20px; }

.ib-searchform { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; }
.ib-searchform input { flex: 1; padding: 10px 14px; border: 1px solid #ccc; border-radius: 14px; font: inherit; font-size: 16px; }
.ib-searchform button { padding: 10px 20px; border: 0; border-radius: 14px; background: var(--ib-blue); color: #fff; font: 700 14px var(--ib-font); text-transform: uppercase; cursor: pointer; }

/* Mobil-Umschaltung (wie bei Penci unterhalb ca. 1100px).
   Höhere Spezifität (#masthead …), damit die Desktop-Regeln aus custom.css hier nicht greifen. */
@media (max-width: 1099px) {
	#masthead .ib-nav-toggle { display: inline-flex; }
	#masthead .main-navigation { display: none; position: absolute; left: 12px; right: 12px; top: 100%; margin-top: 8px; background: #fff; border-radius: 18px; box-shadow: 0 24px 48px rgba(15, 23, 42, .16); padding: 10px; max-height: 75vh; overflow-y: auto; }
	#masthead .main-navigation.is-open { display: block; }
	#masthead .main-navigation > ul { display: block; }
	#masthead .main-navigation > ul > li > a { padding: 10px 14px; white-space: normal; }
	#masthead .main-navigation .sub-menu { position: static; display: block; box-shadow: none !important; border: 0 !important; margin: 0 !important; padding: 0 0 0 14px !important; min-width: 0; }
	#masthead .main-navigation .sub-menu a { width: auto; }
	#masthead .main-navigation li.menu-item-home { display: none; }
	#masthead .ib-search-toggle { margin-left: auto; }
}
@media (max-width: 1400px) {
	body .site-header-wrapper { margin-left: 12px; margin-right: 12px; }
}
@media (max-width: 600px) {
	.site-branding img { max-height: 70px; }
	body .site-header-wrapper { margin-bottom: 30px; }
}

/* ---------- Block-Titel (Penci „style-title-2“, Form aus custom.css) ---------- */
.penci-block__title { font-family: var(--ib-font-block); display: flex; align-items: center; }
.penci-block__title span { font-family: var(--ib-font-block); font-weight: 400; }
.penci-block__title a { color: inherit; }
.ib-section__all { margin-left: auto; font: 400 13px var(--ib-font); color: var(--ib-muted); white-space: nowrap; }
.ib-section__all:hover { color: var(--ib-blue); }

/* ---------- Bausteine ---------- */
.ib-label { display: inline-block; font: 500 11px/1.4 var(--ib-font); color: #fff; background: #111; padding: 2px 6px; margin-bottom: 6px; }
.ib-label:hover { color: #fff; background: var(--ib-blue); }
.ib-meta { font-size: 12px; color: var(--ib-muted); display: flex; align-items: center; gap: 4px; }
.ib-meta__icon { width: 12px; height: 12px; fill: currentColor; flex: none; }
.ib-meta__sep { margin: 0 6px; }
.ib-thumb-placeholder { display: block; aspect-ratio: 16 / 9; background: #eee; }

.ib-section { margin-bottom: 40px; }

.ib-grid { display: grid; gap: var(--ib-gap); }
.ib-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ib-grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.ib-card__media { display: block; overflow: hidden; border-radius: var(--ib-radius); margin-bottom: 10px; position: relative; }
.ib-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.ib-card:hover .ib-card__media img { transform: scale(1.04); }
.ib-card__body .ib-label { margin-bottom: 4px; }
.ib-card__title { margin: 0 0 6px; line-height: 1.3 !important; }
.ib-card__title a { color: var(--ib-blue); }
.ib-card__excerpt { margin: 0 0 8px; }

/* Kachel mit Titel auf dem Bild (Topstory-Optik) */
.ib-overlay { position: relative; overflow: hidden; border-radius: var(--ib-radius); background: #222; }
.ib-overlay img, .ib-overlay .ib-thumb-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; opacity: .95; }
.ib-overlay:hover img { transform: scale(1.04); }
.ib-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.ib-overlay .ib-label { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ib-overlay__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 2; }
.ib-overlay__title { margin: 4px 0 0; line-height: 1.3 !important; }
.ib-overlay__title a, .ib-overlay .ib-meta { color: #fff; }
.ib-overlay .ib-meta { color: rgba(255,255,255,.75); }

.ib-list { display: grid; gap: 16px; }
.ib-list--cols { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 30px; }
.ib-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.ib-item__media img, .ib-item__media .ib-thumb-placeholder { width: 110px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.ib-item__title { margin: 0 0 4px; line-height: 1.3 !important; }
.ib-item__title a { color: var(--ib-blue); }
.ib-item__excerpt { margin: 0 0 6px; }
.ib-item .ib-label { margin-bottom: 3px; }

.ib-more { display: block; margin: 20px auto 0; width: 100%; max-width: 320px; padding: 10px 16px; border: 0; border-radius: 0; background: #777; color: #fff; font: 500 12px var(--ib-font); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.ib-more:hover { background: #555; }
.ib-more[disabled] { opacity: .6; cursor: wait; }

/* Topstory-Modul */
.ib-hero__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ib-gap); margin-bottom: var(--ib-gap); }
.ib-hero__big .ib-overlay__title { font-size: 1.4em !important; }
@media (max-width: 760px) { .ib-hero__big { grid-template-columns: 1fr; } }

/* Karussell */
.ib-carousel { position: relative; }
.ib-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 3 * var(--ib-gap)) / 4)); gap: var(--ib-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.ib-carousel__slide { scroll-snap-align: start; }
.ib-carousel__btn { position: absolute; top: 30%; z-index: 2; width: 40px; height: 40px; border-radius: 14px; border: 0; background: #fff; color: var(--ib-blue); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 18px rgba(15, 23, 42, .18); }
.ib-carousel__btn:hover { background: var(--ib-blue); color: #fff; }
.ib-carousel__btn--prev { left: -12px; }
.ib-carousel__btn--next { right: -12px; }
@media (hover: none) { .ib-carousel__btn { display: none; } }

/* ---------- Layout Beitrag / Archiv (Sidebar rechts, Breite aus custom.css) ---------- */
.ib-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.ib-layout .widget-area { width: 285px; }
.ib-layout:not(:has(.widget-area)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) {
	.ib-layout { grid-template-columns: minmax(0, 1fr); }
	body .ib-layout .widget-area { width: auto; }
}

.ib-breadcrumbs { font-size: 13px; color: var(--ib-muted); margin-bottom: 16px; }

/* Beitragsbild mit Bildunterschrift-Box unten rechts (Box-Optik aus custom.css) */
.ib-featured { position: relative; margin: 0 0 30px; }
.ib-featured .penci-single-featured-img { display: block; overflow: hidden; border-radius: 0; cursor: zoom-in; }
.ib-featured img { width: 100%; aspect-ratio: 16 / 9; max-height: 560px; object-fit: cover; }
.ib-featured .penci-wp-caption { margin: 0; }
/* Bildunterschrift im Beitragsbild: so breit wie die Sidebar (340px), unten rechts im Bild –
   dadurch wirkt auch der Vergrößerungseffekt beim Überfahren (scale 1.25 aus custom.css). */
.ib-featured figcaption.penci-wp-caption { width: 340px; max-width: calc(100% - 40px); }
/* Tablet/Handy: Bildunterschrift unter das Bild statt darüber (verdeckt sonst große Teile) */
@media (max-width: 1000px) {
	.ib-featured figcaption.penci-wp-caption {
		position: static !important; transform: none !important; width: auto; max-width: none;
		margin: 8px 0 0; cursor: default !important; box-shadow: none !important; padding: 8px 12px !important;
	}
	.ib-featured figcaption.penci-wp-caption::after { display: none !important; }
	.ib-featured figcaption.penci-wp-caption .penci-wp-caption-text { text-align: left; font-size: 13px; }
}

/* Breitbild: Beitragsbild so breit wie der Header (max. 1360 px), Format 16:9 (2000 × 1125
   proportional verkleinert), dahinter ein hellgrauer Streifen über die ganze Bildschirmbreite –
   genau so hoch wie das Bild (Streifen = Hülle ohne Innenabstand). */
.ib-featured-band { background: var(--ib-band, #dddddd); border-top: 1px solid #cccccc; margin: 0 0 30px; } /* Farben wie bisher in child.css */
.ib-featured-band .ib-featured.penci-entry-media { width: calc(100% - 24px); max-width: 1360px; margin: 0 auto; padding: 0; border: 0; background: none; } /* so breit wie der Header-Kasten */
body.ib-featured--band .ib-featured-band .ib-featured img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 2000 / 1125; object-fit: cover; }
/* Bildunterschrift bündig mit der Sidebar, nicht am Bildrand */
@media (min-width: 1001px) {
	body.ib-featured--band .ib-featured figcaption.penci-wp-caption { right: max(20px, calc((100% - 1080px) / 2)) !important; }
	body.ib-featured--band.ib-single--wide .ib-featured figcaption.penci-wp-caption { right: max(20px, calc((100% - 1400px) / 2)) !important; }
}
@media (max-width: 1000px) {
	.ib-featured-band { background: none; }
}

/* Ken-Burns-Effekt: Penci nutzte ein Hintergrundbild (background-size 100 % → 115 %,
   Position Mitte → rechts). Das Theme gibt ein echtes <img> aus (besser für Ladezeit
   und SEO), daher derselbe Effekt hier per transform. */
.ib-featured .penci-single-featured-img img { transform-origin: right center; animation: ibKenBurns 20s ease-out forwards; }
@keyframes ibKenBurns { from { transform: scale(1); } to { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ib-featured .penci-single-featured-img img { animation: none; } }

.penci-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.penci-entry-meta .fa { width: 13px; height: 13px; fill: currentColor; vertical-align: -1px; }
.penci-entry-meta .updated { display: none; }
.penci-cat-links { display: flex; flex-wrap: wrap; gap: 6px; }
.penci-post-subtitle { color: var(--ib-navy); }

.entry-content { font-size: 15px; line-height: 1.7; color: var(--ib-text); margin-top: 20px; }
.entry-content h2 { margin-top: 30px; }
.entry-content h3 { margin-top: 24px; }
.entry-content img { height: auto; }
.entry-content blockquote { position: relative; margin: 30px 0; padding-left: 70px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 13px; color: var(--ib-muted); margin-top: 6px; }
.entry-content .alignleft { float: left; margin: 4px 20px 16px 0; }
.entry-content .alignright { float: right; margin: 4px 0 16px 20px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content::after { clear: both; }

.ib-article__foot { margin: 30px 0; display: grid; gap: 16px; clear: both; }
.ib-tags { margin: 0; }
.ib-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; background: #f0f0f0; border-radius: 999px; font-size: 13px; color: var(--ib-text); }
.ib-tags a:hover { background: var(--ib-blue); color: #fff; }
.ib-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.ib-share a { padding: 5px 14px; border-radius: 999px; background: #f0f0f0; color: var(--ib-text); }
.ib-share a:hover { background: var(--ib-blue); color: #fff; }
.ib-related { margin: 40px 0; }

.ib-archive__head { margin-bottom: 24px; }
.ib-archive__desc { font-size: 15px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--ib-border); border-radius: 6px; }
.nav-links .current { background: var(--ib-blue); color: #fff; border-color: var(--ib-blue); }

/* Sidebar-Widgets bekommen dieselben Titel wie unter Penci */
.widget-area .widget { margin-bottom: 30px; }
.widget-area .widget ul { list-style: none; margin: 0; padding: 0; }
.widget-area .widget li { padding: 6px 0; border-bottom: 1px solid #eee; }
.ib-section--widgets .widget { margin: 0; }

/* WPBakery-Seiten in voller Breite */
.ib-builder { padding-top: 0; }
.ib-builder .entry-content { margin-top: 0; font-size: 14px; line-height: 1.6; }
.ib-builder .entry-content::after { content: none; }
.ib-builder .vc_row { margin-bottom: 0; }
/* WPBakery „Zeile strecken“: Das Script zieht solche Zeilen per Inline-Style auf 100 % Fensterbreite.
   PenNews hielt sie in der 1400px-Spalte – das IB Theme auch (Inhalt bleibt in der Spalte). */
.ib-container .vc_row[data-vc-full-width] {
	position: relative !important;
	left: 0 !important;
	width: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.ib-container .vc_row-full-width { display: none; }
.ib-builder .ib-section { margin-bottom: 30px; }

/* ---------- Footer (wie PenNews, Footer-Stil 2) ---------- */
.ib-footer { background: var(--ib-footer); color: #666; font-size: 14px; }
.ib-footer a { color: #ddd; }
.ib-footer a:hover { color: #fff; }
.ib-footer .penci-block__title span { background: var(--ib-footer) !important; color: #fff; }
.footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding: 50px 0 20px; }
.footer__bottom_container { padding-top: 50px; padding-bottom: 40px; }
.ib-footer__row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: start; }
.footer__logo img { max-width: 100%; height: auto; display: block; }
.ib-footer .block-title { color: #fff; font-size: 18px; font-weight: 700; padding-bottom: 14px; }
.penci-footer-text-content { line-height: 1.6; }
.penci-footer-text-content p { margin: 0 0 10px; }
.footer__social-media { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social-media .block-title { flex-basis: 100%; }
.ib-footer .social-media-item { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; background: #555; transition: opacity .2s; }
.ib-footer .social-media-item:hover { opacity: .85; color: #fff; }
.socail-media-item__content { display: inline-flex; align-items: center; justify-content: center; }
.penci-footer-text-content { display: block; }
.footer-email-wrap { margin-top: 15px; color: #fff; }
.footer-email-wrap a { color: #fff; text-decoration: underline; }
.socail_media__facebook { background: #3f51b5 !important; }
.socail_media__twitter { background: #55acee !important; }
.socail_media__pinterest { background: #bd081c !important; }
.socail_media__youtube { background: #f00 !important; }
.socail_media__instagram { background: #c13584 !important; }
.socail_media__linkedin { background: #0077b5 !important; }
.footer__copyright_menu { background: #111; }
.footer__copyright_menu .footer__sidebars-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 30px; padding-bottom: 30px; }
.sub-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 767px) {
	.ib-footer__row { grid-template-columns: 1fr; }
	.footer__logo img { max-width: 240px; }
	.footer__copyright_menu .footer__sidebars-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- zurück / vorwärts (wie PenNews .penci-post-pagination) ---------- */
.penci-post-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 30px; padding: 20px 0; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.penci-post-pagination .penci_media_object { display: flex; gap: 15px; align-items: center; }
.penci-post-pagination .penci_mobj-image-right { flex-direction: row-reverse; text-align: right; }
.penci-post-pagination .post-nav-thumb { flex: none; width: 70px; }
.penci-post-pagination .post-nav-thumb img { width: 70px; height: 70px; object-fit: cover; display: block; }
.penci-post-pagination .prev-post-title, .penci-post-pagination .next-post-title { font-size: 12px; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.penci-post-pagination h5 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; }
.penci-post-pagination h5 a { color: inherit; }
@media (max-width: 600px) {
	.penci-post-pagination { grid-template-columns: 1fr; }
	.penci-post-pagination .penci_mobj-image-right { flex-direction: row; text-align: left; }
}

/* ---------- Kommentare ---------- */
.ib-comments { margin-top: 40px; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="submit"] { padding: 10px 20px; border: 0; border-radius: 8px; background: var(--ib-blue); color: #fff; font: 700 13px var(--ib-font); text-transform: uppercase; cursor: pointer; }

/* ---------- Kopfbanner (Hook ib_header_banner, z. B. Advanced Ads) – wie bisher rechts ---------- */
.header__top::after { content: ""; display: block; clear: both; }
.header__top .header__banner { float: right; padding: 12px 24px 0; max-width: 50%; }
@media (max-width: 1099px) { .header__top .header__banner { display: none; } }

/* ---------- Sidebar-Widget „Beitragsliste“ (ehem. Penci block_6) ---------- */
.widget-area .ib-widget-list { gap: 14px; }
.widget-area .ib-item { grid-template-columns: 100px 1fr; gap: 12px; }
.widget-area .ib-item__media img, .widget-area .ib-item__media .ib-thumb-placeholder { width: 100px; }
.widget-area .ib-item__title.penci__post-title.entry-title { font-size: 14px !important; line-height: 1.35 !important; font-family: var(--ib-font); margin-bottom: 2px; }
.widget-area .ib-item__title a { color: #212121; }
.widget-area .ib-item__title a:hover { color: var(--ib-blue); }
.ib-item--nothumb { grid-template-columns: 1fr !important; }
.widget-area li.ib-item, .widget-area .ib-widget-list > * { border: 0; padding: 0; }
.widget-area .ib-more { max-width: none; margin-top: 16px; }

/* ---------- Breite wie unter Penci: Inhalt + Sidebar zusammen 1080px ----------
   (Textspalte 740px inkl. 20px Innenabstand je Seite ≈ 700px Text, Sidebar 340px aus custom.css).
   Nur das große Beitragsbild oben läuft weiterhin in voller Breite (bis 1420px). */
.ib-layout.site-main { max-width: 1110px; gap: 0; }
.ib-layout.site-main > .ib-article,
.ib-layout.site-main > .ib-archive { padding: 0 20px; width: 100%; max-width: 740px; }
/* Ohne Sidebar bleibt die Textspalte trotzdem schmal (mittig) – keine riesigen Bilder. */
body:not(.sidebar-right) .ib-layout.site-main { grid-template-columns: minmax(0, 1fr); max-width: 770px; }
@media (max-width: 1000px) {
	.ib-layout.site-main > .ib-article,
	.ib-layout.site-main > .ib-archive { padding: 0; }
	.ib-layout.site-main .widget-area { margin-top: 30px; }
}

/* Beitragsbild: kein „Bild ziehen“ beim Klicken (sonst zeigt der Browser das Verbotssymbol) */
.ib-featured .penci-single-featured-img,
.ib-featured .penci-single-featured-img img { -webkit-user-drag: none; user-select: none; }
.entry-content figure { margin: 0 0 20px; max-width: 100%; }

/* ==========================================================================
   Layout-Einstellungen (Design › Customizer › „IB Theme: Layout“)
   ========================================================================== */

/* Übersichtsseiten breit: 1400px wie „Kategorienanzeige“, Kacheln 3 pro Reihe */
body.ib-archive--wide:not(.single) .ib-layout.site-main { max-width: 1430px; gap: 0; }
body.ib-archive--wide:not(.single) .ib-layout.site-main > .ib-archive { max-width: none; }
.ib-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.ib-grid--archive .ib-card__excerpt { font-size: 14px; }
@media (max-width: 1240px) { .ib-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .ib-grid--archive { grid-template-columns: minmax(0, 1fr); } }
body.ib-archive--wide:not(.sidebar-right):not(.single) .ib-layout.site-main { max-width: 1430px; }

/* Textspalte im Beitrag breit */
body.single.ib-single--wide .ib-layout.site-main { max-width: 1430px; }
body.single.ib-single--wide .ib-layout.site-main > .ib-article { max-width: none; }

/* Beitragsbild nur in Textbreite */
body.ib-featured--content .ib-article .ib-featured { margin: 0 0 24px; }

/* Höhe des Beitragsbilds */
body.ib-ratio--original .ib-featured img { aspect-ratio: auto; height: auto; max-height: none; object-fit: fill; }
body.ib-ratio--3-2 .ib-featured img      { aspect-ratio: 3 / 2; height: auto; max-height: none; object-fit: cover; }
body.ib-ratio--16-9 .ib-featured img     { aspect-ratio: 16 / 9; height: auto; max-height: none; object-fit: cover; }
body.ib-ratio--fixed .ib-featured img    { aspect-ratio: auto; height: auto; max-height: var(--ib-featured-max-h, 560px); object-fit: cover; }

/* ---------- Penci-Inhalte in alten Beiträgen (siehe inc/penci-compat.php) ---------- */
/* „Verwandte Beiträge“ im Text ([penci_related_posts] / Block) – Grundlayout wie PenNews,
   Farben/Rahmen kommen aus custom.css (.penci-inline-related-posts). */
.penci-inline-related-posts { background: #f0f0f0; padding: 15px 20px; margin: 15px 0 36px; }
.penci-inline-related-posts .penci-irp-heading { color: #111; font-size: 15px; font-weight: 600; margin: -7px 0 10px; }
.penci-inline-related-posts ul { list-style: none; margin: 0; padding: 0; }
.penci-inline-related-posts li { margin: 0; padding: 0; }
.penci-inline-related-posts .penci_media_object { display: flex; align-items: flex-start; margin: 0 0 20px; }
.penci-inline-related-posts li:last-child .penci_media_object { margin-bottom: 0; }
.penci-inline-related-posts .penci_mobj__img { flex: none; width: 90px; margin-right: 20px; }
.penci-inline-related-posts .penci_mobj__img img { width: 90px; height: 60px; object-fit: cover; display: block; }
.penci-inline-related-posts .penci__post-title { font-size: 18px; line-height: 1.3; }
.penci-inline-related-posts .penci_post-meta { font-size: 12px; color: #999; }
.penci-inline-related-posts .penci_post-meta time { padding: 3px 0; }

/* Galerien ([penci_image_gallery], [gallery]) als Raster; Klick öffnet die Lightbox. */
.entry-content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .gallery br { display: none; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.entry-content .gallery-caption { font-size: 12px; color: #888; margin-top: 4px; }
@media (max-width: 600px) { .entry-content .gallery { grid-template-columns: repeat(2, 1fr); } }
.entry-content .penci-block-vc { margin-bottom: 24px; }

/* Penci-Blöcke aus alten Seiten/Beiträgen und der WPBakery-Startseite */
.ib-penci-block .penci-block-heading { margin-bottom: 15px; }
.ib-penci-block .ib-card--big, .ib-pb--big-list > .ib-card { margin-bottom: 20px; }
.ib-pb--big-list > .ib-card .ib-card__title { font-size: 2.2rem; }
.ib-pb-featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ib-pb-featured > :first-child { grid-column: span 2; grid-row: span 2; }
.ib-pb-featured > :first-child .ib-overlay__title { font-size: 2.6rem !important; }
.ib-pb-featured > :first-child > a:first-of-type { display: block; height: 100%; }
.ib-pb-featured > :first-child img { aspect-ratio: auto; height: 100%; min-height: 300px; }
@media (max-width: 760px) {
	.ib-pb-featured { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
	.ib-pb-featured > :first-child { grid-column: 1 / -1; grid-row: auto; }
}
.ib-pb--square .ib-item__media img { aspect-ratio: 1 / 1; object-fit: cover; }
.ib-penci-container, .ib-penci-column { min-width: 0; }
.ib-button { display: inline-block; padding: 10px 22px; border: 2px solid var(--ib-blue, #3f51b5); background: var(--ib-blue, #3f51b5); color: #fff !important; font-weight: 500; text-decoration: none !important; }
.ib-button:hover { opacity: .9; }
.ib-button--trans { background: transparent !important; color: var(--ib-blue, #3f51b5) !important; }
.ib-button-wrap { margin-bottom: 20px; }
.ib-video { margin: 0 0 20px; }
.ib-video video, .ib-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
