/* Liveblog – im Stil der Akkordeon-Blöcke (IBM Plex Mono / Noto Serif) */

.lb-box,
.lb-wrap {
	--lb-ink: #111;
	--lb-muted: #666;
	--lb-line: #cfcfcf;
	--lb-red: #d0021b;
	--lb-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
	--lb-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
	color: var(--lb-ink);
}

/* ---------- Akkordeon auf der Startseite ---------- */

.lb-box {
	max-width: 1024px;
	margin: 0 auto 48px;
}
.lb-box details {
	border-top: 1px solid var(--lb-ink);
	border-bottom: 1px solid var(--lb-ink);
}
.lb-box summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 20px 0;
	position: relative;
}
.lb-box summary::-webkit-details-marker { display: none; }
.lb-box summary:focus-visible { outline: 2px solid var(--lb-ink); outline-offset: 4px; }

.lb-label {
	font-family: var(--lb-serif);
	font-size: 1.35rem;
	line-height: 1.2;
	font-weight: 700;
}
.lb-title {
	font-family: var(--lb-serif);
	font-size: 1.35rem;
	line-height: 1.2;
	font-weight: 400;
	transition: color .2s;
}
.lb-box details[open] .lb-title { color: #9a9a9a; }
.lb-meta {
	font-family: var(--lb-mono);
	font-size: 13px;
	color: var(--lb-muted);
	margin-left: auto;
}

/* Plus/Minus-Kreis wie in den Bücher-Blöcken */
.lb-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #d6d6d6;
	position: relative;
	transition: background .2s;
}
.lb-icon::before,
.lb-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: #fff;
	opacity: 0;
	transition: opacity .2s;
}
.lb-icon::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.lb-icon::after  { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.lb-box summary:hover .lb-icon,
.lb-box summary:focus-visible .lb-icon { background: #9a9a9a; }
.lb-box summary:hover .lb-icon::before,
.lb-box summary:hover .lb-icon::after,
.lb-box details[open] .lb-icon::before { opacity: 1; }
.lb-box details[open] .lb-icon::after { opacity: 0; }

.lb-panel {
	border-top: 1px solid var(--lb-line);
	padding: 8px 0 4px;
}
.lb-more {
	font-family: var(--lb-mono);
	font-size: 14px;
	margin: 20px 0 16px;
}
.lb-more a { color: var(--lb-ink); }

/* ---------- Blinkender roter Punkt ---------- */

.lb-dot {
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--lb-red);
	box-shadow: 0 0 0 0 rgba(208, 2, 27, .5);
	animation: lb-blink 1.4s ease-in-out infinite;
}
.is-ended .lb-dot {
	background: #9a9a9a;
	animation: none;
	box-shadow: none;
}
@keyframes lb-blink {
	0%   { opacity: 1;  box-shadow: 0 0 0 0 rgba(208, 2, 27, .45); }
	50%  { opacity: .25; box-shadow: 0 0 0 6px rgba(208, 2, 27, 0); }
	100% { opacity: 1;  box-shadow: 0 0 0 0 rgba(208, 2, 27, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.lb-dot { animation: none; }
}

/* ---------- Einträge ---------- */

.lb-entry {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 0 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--lb-line);
}
.lb-entry:last-child { border-bottom: 0; }
.lb-entry.is-new { animation: lb-flash 2.5s ease-out; }
@keyframes lb-flash { from { background: #fff3f4; } to { background: transparent; } }

.lb-time {
	font-family: var(--lb-mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--lb-red);
	text-decoration: none;
	padding-top: 3px;
}
.is-ended .lb-time { color: var(--lb-muted); }
.lb-time:hover { text-decoration: underline; }

.lb-body {
	font-family: var(--lb-serif);
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 68ch;
	min-width: 0;
}
.lb-body > :first-child { margin-top: 0; }
.lb-body > :last-child { margin-bottom: 0; }
.lb-body p { margin: 0 0 .8em; }
.lb-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lb-lead { font-weight: 700; }
.lb-body blockquote {
	margin: .9em 0;
	padding: 0 0 0 18px;
	border-left: 3px solid var(--lb-ink);
	font-style: italic;
}
.lb-body blockquote p { margin: 0 0 .6em; }
.lb-body img { max-width: 100%; height: auto; }

.lb-source {
	font-family: var(--lb-mono);
	font-size: 13px;
	line-height: 1.45;
	color: var(--lb-muted);
	margin-top: .6em !important;
}
.lb-source a { color: var(--lb-ink); }
.lb-source-name { color: var(--lb-muted); }
.lb-source .lb-favicon,
.lb-body img.lb-favicon {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin: 0;
	vertical-align: -0.15em;
	border-radius: 2px;
	object-fit: contain;
}

/* ---------- Teilen ---------- */

.lb-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 4px 14px;
	margin-top: .6em;
}
.lb-foot .lb-source { margin: 0 !important; }

.lb-share { margin: 0; }
.lb-share > summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: max-content;
	cursor: pointer;
	font-family: var(--lb-mono);
	font-size: 13px;
	color: var(--lb-muted);
	padding: 2px 0;
}
.lb-share > summary::-webkit-details-marker { display: none; }
.lb-share > summary:hover,
.lb-share[open] > summary { color: var(--lb-ink); }
.lb-share > summary:focus-visible { outline: 2px solid var(--lb-ink); outline-offset: 3px; }
.lb-share .lb-ico { width: 1em; height: 1em; display: block; }

.lb-share-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.lb-share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--lb-ink);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.lb-share-link .lb-ico { width: 16px; height: 16px; }
.lb-share-link:hover {
	background: var(--lb-ink);
	color: #fff;
	border-color: var(--lb-ink);
}
.lb-share-link:focus-visible { outline: 2px solid var(--lb-ink); outline-offset: 2px; }
.lb-share-copy { font: inherit; }
.lb-share-copy.is-done {
	background: var(--lb-ink);
	color: #fff;
	border-color: var(--lb-ink);
}
.lb-empty { font-family: var(--lb-mono); font-size: 14px; color: var(--lb-muted); }

/* ---------- Einzelansicht ---------- */

.lb-statusbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	font-family: var(--lb-mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lb-ink);
}
.lb-statusbar .lb-meta { text-transform: none; letter-spacing: 0; }
.lb-single { margin-top: 8px; }
.lb-updated {
	font-family: var(--lb-mono);
	font-size: 13px;
	color: var(--lb-muted);
	border-top: 1px solid var(--lb-ink);
	padding-top: 14px;
	margin-top: 8px;
}

@media (max-width: 600px) {
	.lb-label, .lb-title { font-size: 1.2rem; }
	.lb-meta { margin-left: 30px; flex-basis: 100%; order: 5; }
	.lb-icon { margin-left: auto; }
	.lb-entry { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Position auf der Startseite (oben im <main>) ---------- */

.lb-home { padding-top: 32px; }
.lb-home .lb-box { margin-bottom: 32px; }

/* ---------- Einbettungen: Tweets (X), Videos usw. ---------- */

.lb-embed {
	margin: 14px 0 6px;
	max-width: 550px;
}
.lb-embed:first-child { margin-top: 0; }
.lb-embed iframe { max-width: 100%; }
.lb-embed iframe[src*="youtube"],
.lb-embed iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.lb-embed .twitter-tweet-rendered { margin: 0 !important; }

/* Karte, solange widgets.js von X noch nicht geladen ist (oder blockiert wird) */
.lb-body blockquote.twitter-tweet {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--lb-line);
	border-left: 1px solid var(--lb-line);
	border-radius: 12px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-style: normal;
	font-size: 15px;
	line-height: 1.45;
	color: #0f1419;
}
.lb-body blockquote.twitter-tweet p { margin: 0 0 10px; }
.lb-body blockquote.twitter-tweet a { color: #536471; text-decoration: none; }
.lb-body blockquote.twitter-tweet::before {
	content: "𝕏";
	float: right;
	font-size: 18px;
	color: #0f1419;
	margin-left: 10px;
}

/* ---------- Meta: Status + „Zuletzt aktualisiert“ ---------- */

.lb-meta {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
	line-height: 1.35;
}
.lb-meta-modified { font-size: 12px; color: #8a8a8a; }
.lb-statusbar .lb-meta { margin-left: auto; }
@media (max-width: 600px) {
	.lb-meta { align-items: flex-start; text-align: left; }
}
