/* ==========================================================================
   IB Zeitstrahl (inc/timeline.php) – Frontend und Block-Editor
   ========================================================================== */
.ib-tl { --tl-blue: var(--ib-blue, #3f51b5); --tl-orange: var(--ib-orange, #f97339); --tl-font: var(--ib-font, Roboto, sans-serif); --tl-text: var(--ib-text, #666); --tl-dark: var(--ib-text-dark, #111); --tl-muted: var(--ib-muted, #999); --tl-line: #e1e4ec; --tl-dot: var(--tl-orange); --tl-x: 9px; }
.ib-tl__list { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
.ib-tl__list::before { content: ""; position: absolute; left: var(--tl-x); top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--tl-line); }
.ib-tl__list > li { position: relative; margin: 0; padding: 0; }
.ib-tl__list > li::before { display: none; }
.ib-tl__group { margin: 6px 0 14px !important; }
.ib-tl__group:not(:first-child) { margin-top: 26px !important; }
.ib-tl__group span {
	position: relative; left: -34px; display: inline-block; padding: 4px 14px; border-radius: 999px;
	background: var(--tl-blue); color: #fff; font: 700 13px/1.4 var(--tl-font); letter-spacing: .02em;
}
.ib-tl__item { margin: 0 0 16px !important; }
.ib-tl__dot {
	position: absolute; left: calc(var(--tl-x) - 34px - 5px); top: 18px;
	width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--tl-dot);
	box-shadow: 0 0 0 4px #fff;
}
.ib-tl__card {
	display: flex; gap: 14px; align-items: flex-start;
	background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 12px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .05); transition: box-shadow .2s, transform .2s;
}
.ib-tl__card:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .10); transform: translateY(-1px); }
.ib-tl__img { flex: 0 0 140px; line-height: 0; border-radius: 8px; overflow: hidden; }
.ib-tl__img img { display: block; width: 140px; height: 93px; object-fit: cover; }
.ib-tl__body { min-width: 0; }
.ib-tl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12px; color: var(--tl-muted); }
.ib-tl__meta time { font-weight: 700; color: var(--tl-orange); }
.ib-tl__title { margin: 0 !important; font: 700 16px/1.3 var(--tl-font) !important; }
.ib-tl__title a { color: var(--tl-dark); text-decoration: none; }
.ib-tl__title a:hover { color: var(--tl-blue); }
.ib-tl__excerpt { margin: 6px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--tl-text); }
.ib-tl__more { margin-top: 8px; }
.ib-tl__empty { padding: 12px; border: 1px dashed #c9ccd6; border-radius: 8px; color: var(--tl-muted); }
@media (max-width: 600px) {
	.ib-tl__card { flex-direction: column; gap: 10px; }
	.ib-tl__img, .ib-tl__img img { width: 100%; flex-basis: auto; height: auto; aspect-ratio: 3 / 2; }
}
/* Linie in der Mitte, Einträge abwechselnd (nur breit genug) */
@media (min-width: 900px) {
	.ib-tl--wechselnd .ib-tl__list { padding-left: 0; }
	.ib-tl--wechselnd .ib-tl__list::before { left: calc(50% - 1px); }
	.ib-tl--wechselnd .ib-tl__group { text-align: center; }
	.ib-tl--wechselnd .ib-tl__group span { left: 0; }
	.ib-tl--wechselnd .ib-tl__item { width: calc(50% - 28px); }
	.ib-tl--wechselnd .ib-tl__item:nth-child(odd of .ib-tl__item) { margin-left: auto !important; }
	.ib-tl--wechselnd .ib-tl__item .ib-tl__dot { left: -34px; }
	.ib-tl--wechselnd .ib-tl__item:nth-child(even of .ib-tl__item) .ib-tl__dot { left: auto; right: -34px; }
	.ib-tl--wechselnd .ib-tl__card { flex-direction: column; }
	.ib-tl--wechselnd .ib-tl__img, .ib-tl--wechselnd .ib-tl__img img { width: 100%; flex-basis: auto; height: auto; aspect-ratio: 3 / 2; }
}
/* Ohne Theme-CSS (Block-Editor) */
.ib-tl .ib-label { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--tl-blue); color: #fff; font: 700 11px/1.5 var(--tl-font); text-transform: uppercase; text-decoration: none; }
.editor-styles-wrapper .ib-tl__list, .editor-styles-wrapper .ib-tl__list > li { list-style: none; }
.editor-styles-wrapper .ib-tl a { pointer-events: none; }
.editor-styles-wrapper .ib-tl .ib-section__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 16px; background: #f9f9f9; border-left: 4px solid var(--tl-orange); border-radius: 0 6px 6px 0; }
.editor-styles-wrapper .ib-tl .penci-block__title { margin: 0; font: 400 20px/1.3 Oswald, sans-serif; color: #333; }
.editor-styles-wrapper .ib-tl .ib-section__all { font-size: 13px; color: var(--tl-blue); text-decoration: none; }
.editor-styles-wrapper .ib-tl .ib-more { padding: 8px 26px; border: 2px solid var(--tl-blue); border-radius: 999px; background: #fff; color: var(--tl-blue); font: 700 14px var(--tl-font); }
.editor-styles-wrapper .ib-tl img { max-width: 100%; }
