/*
Theme Name:   Tech-Blogs (Blocksy Child)
Description:  Child Theme von Blocksy für tech-blogs.de (Entwurf B „Ticker“). Verwaltet im Repository, Übertragung mit scripts/deploy.sh theme.
Template:     blocksy
Version:      0.1.0
Requires PHP: 8.2
Text Domain:  tech-blogs
*/

/*
 * Farben nur über die Blocksy-Palette (var(--theme-palette-color-N), Werte in
 * scripts/lib/theme-einstellungen.php). Klassen beginnen mit "tb-".
 *
 * Palette: 1 Orange dunkel (Links), 2 Orange Hover, 3 Text, 4 Band (dunkle Flächen),
 * 5 Linie, 6 Hellgrund, 7 Fläche, 8 Weiß, 9 Orange (auf dunklem Grund),
 * 10 Grau (Nebentext), 11 Band hell, 12 Grau hell, 13 Weiß fest (Schrift auf dem Band,
 * ändert sich im Dunkelmodus nicht). Dunkelmodus: Abschnitt am Ende, überschreibt 1 bis 12.
 */

/* ---------- Wortmarke im Logo-Element (Text kommt aus der Kopfzeilen-Einstellung) ---------- */

.site-title .tb-t,
.site-title .tb-b {
	font-weight: 800;
	letter-spacing: -0.02em;
}
.site-title .tb-t {
	color: var(--theme-palette-color-9);
}
.site-title .tb-b {
	display: inline-block;
	margin-left: 2px;
	padding: 1px 8px 3px;
	border: 2px solid var(--theme-palette-color-9);
	border-radius: 7px;
	color: var(--theme-palette-color-13);
	line-height: 1.15;
}
.site-title a:hover .tb-b {
	background: var(--theme-palette-color-9);
	color: var(--theme-palette-color-4);
}

/* ---------- Menüleiste bleibt beim Scrollen oben stehen (Vorgabe Alois 2026-11-26) ----------
   Per CSS statt Blocksy-Option "has_sticky_header" (kopfzeile.php), damit nur das Band mit Logo
   und Menü stehen bleibt und das Laufband darunter normal wegscrollt. Höhe der Leiste in
   --tb-kopf-h für die mitlaufenden Spalten (Blogliste, rechte Spalte). Bei angemeldeten
   Benutzern rückt die Leiste unter die WordPress-Werkzeugleiste. */

:root {
	--tb-kopf-h: 65px;
	--tb-kopf-top: var(--wp-admin--admin-bar--height, 0px);
}
#header {
	position: sticky;
	top: var(--tb-kopf-top);
	z-index: 50;
}
html {
	scroll-padding-top: calc(var(--tb-kopf-top) + var(--tb-kopf-h) + 12px);
}
@media (max-width: 999.98px) {
	:root {
		--tb-kopf-h: 57px;
	}
}
/* Die Werkzeugleiste von WordPress scrollt auf schmalen Handys selbst weg */
@media (max-width: 600px) {
	:root {
		--tb-kopf-top: 0px;
	}
}

/* ---------- Laufband unter der Kopfzeile (functions.php) ---------- */

.tb-laufband {
	display: flex;
	align-items: stretch;
	height: 34px;
	overflow: hidden;
	background: var(--theme-palette-color-4);
	border-bottom: 1px solid var(--theme-palette-color-11);
	font-size: 13px;
	white-space: nowrap;
}
.tb-laufband-label {
	display: flex;
	align-items: center;
	flex: none;
	padding: 0 12px;
	background: var(--theme-palette-color-9);
	color: var(--theme-palette-color-4);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	z-index: 1;
}
.tb-laufband-fenster {
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
}
.tb-laufband-spur,
.tb-laufband-kopie {
	display: inline-flex;
	gap: 36px;
}
.tb-laufband-spur {
	padding-left: 24px;
	animation: tb-lauf 110s linear infinite;
}
.tb-laufband:hover .tb-laufband-spur,
.tb-laufband:focus-within .tb-laufband-spur {
	animation-play-state: paused;
}
.tb-laufband a {
	color: var(--theme-palette-color-12);
	text-decoration: none;
}
.tb-laufband a:hover {
	color: var(--theme-palette-color-13);
}
.tb-laufband a b {
	margin-right: 6px;
	color: var(--theme-palette-color-9);
	font-weight: 600;
}
/* Läuft bewusst auch bei "Bewegung reduzieren" (Vorgabe Alois, wie bei excel-inside.de);
   anhalten mit der Maus oder per Tastatur-Fokus. */
@keyframes tb-lauf {
	to { transform: translateX(-50%); }
}

/* ---------- Startseite: Zeitleiste und rechte Spalte (home.php) ---------- */

.tb-raster {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 290px;
	gap: 36px;
	padding-top: 32px;
	padding-bottom: 64px;
}
.tb-raster > * {
	min-width: 0;
}
/* Große Monitore (Seitenbreite bis 1680 px, theme-einstellungen.php): Seitenspalten leicht,
   Zeitleiste in der Mitte am stärksten breiter */
@media (min-width: 1500px) {
	.tb-raster {
		grid-template-columns: 260px minmax(0, 1fr) 320px;
		gap: 44px;
	}
}
.tb-kopf h1 {
	margin: 0 0 4px;
}
.tb-kopf p {
	margin: 0 0 8px;
	color: var(--theme-palette-color-10);
}

/* Tag und Stunde */
.tb-tag {
	margin: 28px 0 12px;
	font-size: 20px;
}
.tb-tag span {
	font-weight: 400;
	color: var(--theme-palette-color-10);
}
.tb-stunde {
	position: relative;
	padding-left: 72px;
	margin-bottom: 6px;
}
.tb-stunde::before {
	content: "";
	position: absolute;
	left: 52px;
	top: 10px;
	bottom: -6px;
	width: 2px;
	background: var(--theme-palette-color-5);
}
.tb-uhr {
	position: absolute;
	left: 0;
	top: 2px;
	font-weight: 700;
	font-size: 13px;
	color: var(--theme-palette-color-1);
	font-variant-numeric: tabular-nums;
}

/* Eintrag: Farbe je Blog über den Farbton --tb-h (inc/quellen.php) */
.tb-eintrag {
	--tb-farbe: hsl(var(--tb-h, 30) 65% 38%);
	position: relative;
	padding: 11px 48px 11px 14px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.12s;
}
.tb-eintrag::before {
	content: "";
	position: absolute;
	left: -25px;
	top: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--theme-palette-color-8);
	border: 2px solid var(--tb-farbe);
}
.tb-eintrag:hover {
	background: var(--theme-palette-color-6);
}
.tb-meta {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-size: 13px;
	color: var(--theme-palette-color-10);
}
.tb-meta b {
	color: var(--tb-farbe);
	font-weight: 600;
}
.tb-eintrag h3 {
	margin: 2px 0 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.tb-eintrag h3 a {
	color: var(--theme-palette-color-3);
	text-decoration: none;
}
.tb-eintrag h3 a:hover {
	color: var(--theme-palette-color-1);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Kurzfassung auf- und zuklappen (assets/js/zeitleiste.js) */
.tb-auf {
	position: absolute;
	right: 8px;
	top: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--theme-palette-color-10);
	cursor: pointer;
}
.tb-auf::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 9px auto 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}
.tb-auf:hover,
.tb-auf:focus-visible {
	background: var(--theme-palette-color-5);
	color: var(--theme-palette-color-3);
}
.tb-eintrag.ist-offen .tb-auf::before {
	transform: rotate(225deg);
	margin-top: 13px;
}
.tb-mehr {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.2s;
}
.tb-mehr > div {
	overflow: hidden;
}
.tb-eintrag.ist-offen .tb-mehr {
	grid-template-rows: 1fr;
}
.tb-mehr p {
	margin: 8px 0 6px;
	color: var(--theme-palette-color-10);
	font-size: 15px;
}
.tb-weiter {
	font-weight: 600;
	font-size: 14px;
}

/* Blättern */
.tb-blaettern {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-left: 72px;
}
.tb-blaettern a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}
.tb-blaettern a:hover {
	border-color: var(--theme-palette-color-1);
}

/* ---------- Rechte Spalte (template-parts/seitenleiste-rechts.php) ---------- */

.tb-rechts {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: calc(var(--tb-kopf-top) + var(--tb-kopf-h) + 24px);
	align-self: start;
}
.tb-kachel {
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 12px;
	padding: 18px;
}
.tb-rubrik {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-palette-color-10);
}
.tb-cta {
	background: var(--theme-palette-color-4);
	border-color: var(--theme-palette-color-4);
	color: var(--theme-palette-color-13);
}
.tb-cta .tb-rubrik {
	color: var(--theme-palette-color-9);
}
.tb-cta strong {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
	line-height: 1.25;
}
.tb-cta p {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--theme-palette-color-12);
}
.tb-knopf {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	background: var(--theme-palette-color-9);
	color: var(--theme-palette-color-4);
	font-weight: 700;
	text-decoration: none;
}
.tb-knopf:hover {
	background: var(--theme-palette-color-13);
	color: var(--theme-palette-color-4);
}
.tb-zahlen {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.tb-zahlen b {
	display: block;
	font-size: 22px;
	letter-spacing: -0.02em;
	color: var(--theme-palette-color-3);
}
.tb-zahlen small {
	color: var(--theme-palette-color-10);
}
.tb-balken > div {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	align-items: center;
	gap: 8px;
	margin: 7px 0;
	font-size: 13px;
}
.tb-balken-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tb-balken-spur i {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: var(--theme-palette-color-9);
}
.tb-balken em {
	font-style: normal;
	color: var(--theme-palette-color-10);
	font-variant-numeric: tabular-nums;
}

/* Feste Werbeplätze (functions.php, tb_anzeige): mit Kennzeichnung, ohne Rahmen um die Anzeige */
.tb-anzeige {
	margin: 18px 0 22px 72px;
	text-align: center;
}
.tb-anzeige-spalte {
	margin: 0;
}
.tb-anzeige-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-palette-color-10);
}
@media (max-width: 689.98px) {
	.tb-anzeige { margin-left: 0; }
}

/* Bezahlte Links (Backlinkseller) in der rechten Spalte: schlichte Liste */
.tb-partner a {
	display: inline-block;
	margin: 2px 0;
	font-size: 14px;
}

/* ---------- Blogliste links (template-parts/blogliste.php, assets/js/blogliste.js) ---------- */

.tb-links {
	position: sticky;
	top: calc(var(--tb-kopf-top) + var(--tb-kopf-h) + 24px);
	align-self: start;
}
.tb-blogs {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - var(--tb-kopf-top) - var(--tb-kopf-h) - 48px);
}
.tb-blogs-filter {
	width: 100%;
	height: 36px;
	margin-bottom: 8px;
	padding: 0 10px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 8px;
	background: var(--theme-palette-color-6);
	font-size: 14px;
}
.tb-blogs-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	scrollbar-width: thin;
}
.tb-blogs-liste li[hidden] {
	display: none;
}
.tb-blogs-liste a,
.tb-blogs-ohne {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 8px;
	border-radius: 7px;
	font-size: 14px;
	color: var(--theme-palette-color-3);
	text-decoration: none;
}
.tb-blogs-liste a:hover,
.tb-blogs-liste a.ist-aktiv {
	background: var(--theme-palette-color-6);
}
.tb-blogs-liste a.ist-aktiv {
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--theme-palette-color-9);
}
.tb-blogs-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tb-blogs-zahl {
	margin-left: auto;
	padding-left: 6px;
	font-size: 12px;
	color: var(--theme-palette-color-10);
	font-variant-numeric: tabular-nums;
}
.tb-blogs-liste .ist-inaktiv {
	opacity: 0.5;
}
.tb-punkt {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: hsl(var(--tb-h, 30) 65% 45%);
}
.tb-punkt-alle {
	background: var(--theme-palette-color-9);
}

/* Kopf der Blogseite (tag.php) und der Suche (search.php) */
.tb-kopf h1 {
	display: flex;
	align-items: center;
	gap: 12px;
}
.tb-punkt-gross {
	width: 14px;
	height: 14px;
}
.tb-kopf-angaben {
	color: var(--theme-palette-color-10);
}
.tb-kopf-angaben a {
	font-weight: 600;
}
.tb-leer {
	margin-top: 24px;
	color: var(--theme-palette-color-10);
}

/* ---------- Suchpalette (inc/suche.php, assets/js/suche.js) ---------- */

.tb-palette {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 12vh;
	background: rgba(10, 12, 16, 0.55);
}
.tb-palette[hidden] {
	display: none;
}
html.tb-palette-offen {
	overflow: hidden;
}
.tb-palette-box {
	width: min(640px, 92vw);
	overflow: hidden;
	border-radius: 14px;
	background: var(--theme-palette-color-8);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.tb-palette form {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--theme-palette-color-5);
}
.tb-palette input[type="search"] {
	flex: 1;
	height: 56px;
	padding: 0 18px;
	border: 0;
	background: none;
	font-size: 17px;
	outline: none;
	box-shadow: none;
}
.tb-palette kbd {
	margin-right: 14px;
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-10);
	font: 12px system-ui, sans-serif;
}
.tb-palette ul {
	max-height: 55vh;
	margin: 0;
	padding: 6px;
	list-style: none;
	overflow-y: auto;
}
.tb-palette li a {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--theme-palette-color-3);
	text-decoration: none;
	font-size: 15px;
}
.tb-palette li a small {
	width: 100%;
	color: var(--theme-palette-color-10);
	font-size: 13px;
}
.tb-palette li a .tb-punkt + * {
	flex: 1;
}
.tb-palette li a:hover,
.tb-palette li a.ist-gewaehlt {
	background: var(--theme-palette-color-6);
}
.tb-palette-gruppe {
	padding: 10px 12px 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-palette-color-10);
}
.tb-palette-hinweis {
	padding: 14px 12px;
	color: var(--theme-palette-color-10);
	font-size: 14px;
}
.tb-palette-fuss {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 10px 18px;
	border-top: 1px solid var(--theme-palette-color-5);
	font-size: 12px;
	color: var(--theme-palette-color-10);
}
.tb-palette-fuss span:last-child {
	margin-left: auto;
}

/* ---------- Tablet und Handy ---------- */

@media (max-width: 1240px) {
	.tb-raster {
		grid-template-columns: 220px minmax(0, 1fr);
	}
	.tb-rechts {
		grid-column: 2;
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}
@media (max-width: 1000px) {
	.tb-raster {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.tb-rechts {
		grid-column: auto;
	}
	/* Blogliste als waagrechte Leiste über der Zeitleiste */
	.tb-links {
		position: static;
	}
	.tb-blogs {
		max-height: none;
	}
	.tb-blogs .tb-rubrik,
	.tb-blogs-filter,
	.tb-blogs-zahl {
		display: none;
	}
	.tb-blogs-liste {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		padding-bottom: 6px;
	}
	.tb-blogs-liste a,
	.tb-blogs-ohne {
		white-space: nowrap;
		border: 1px solid var(--theme-palette-color-5);
	}
	.tb-blogs-name {
		overflow: visible;
	}
	.tb-palette-fuss span:not(:last-child) {
		display: none;
	}
}
@media (max-width: 689.98px) {
	.tb-raster {
		padding-top: 16px;
	}
	.tb-stunde,
	.tb-blaettern {
		padding-left: 0;
	}
	.tb-stunde::before,
	.tb-eintrag::before {
		display: none;
	}
	.tb-uhr {
		position: static;
		display: block;
		margin: 10px 0 2px;
	}
	.tb-eintrag {
		padding-left: 0;
		padding-right: 40px;
	}
	.tb-eintrag:hover {
		background: transparent;
	}
	.tb-auf {
		right: 0;
	}
	.tb-palette {
		padding-top: 0;
	}
	.tb-palette-box {
		width: 100vw;
		border-radius: 0 0 14px 14px;
	}
}

/* ---------- Umschalter hell/dunkel in der Kopfzeile (assets/js/modus.js) ---------- */

.tb-modus {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--theme-palette-color-11);
	border-radius: 9px;
	background: transparent;
	color: var(--theme-palette-color-12);
	cursor: pointer;
}
.tb-modus:hover,
.tb-modus:focus-visible {
	color: var(--theme-palette-color-13);
	border-color: var(--theme-palette-color-12);
}
/* Symbol: Mond im hellen Modus, Sonne im dunklen (nur CSS, keine Grafikdatei) */
.tb-modus-symbol {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset -4px -3px 0 0 currentColor;
	transform: rotate(-20deg);
}
html[data-tb-modus="dunkel"] .tb-modus-symbol {
	width: 10px;
	height: 10px;
	background: currentColor;
	box-shadow: 0 -8px 0 -3px currentColor, 0 8px 0 -3px currentColor, 8px 0 0 -3px currentColor, -8px 0 0 -3px currentColor,
		6px 6px 0 -3px currentColor, -6px -6px 0 -3px currentColor, 6px -6px 0 -3px currentColor, -6px 6px 0 -3px currentColor;
	transform: none;
}

/* ---------- Beitragsseite (single.php) ---------- */

.tb-beitrag {
	--tb-farbe: hsl(var(--tb-h, 30) 65% 38%);
	padding-bottom: 28px;
	border-bottom: 1px solid var(--theme-palette-color-5);
}
.tb-beitrag-blog {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--theme-palette-color-10);
}
.tb-beitrag-blog a {
	color: var(--tb-farbe);
	font-weight: 600;
	text-decoration: none;
}
.tb-beitrag h1 {
	margin: 0 0 16px;
}
.tb-beitrag-text {
	max-width: 70ch;
	font-size: 18px;
	line-height: 1.6;
}
.tb-knopf-gross {
	margin-top: 8px;
	padding: 12px 20px;
	font-size: 16px;
}
.tb-beitrag-hinweis {
	margin-top: 14px;
	font-size: 13px;
	color: var(--theme-palette-color-10);
}
.tb-weitere h2 {
	margin: 28px 0 8px;
	font-size: 20px;
}
.tb-eintrag-kurz {
	padding-right: 14px;
	cursor: default;
}
.tb-eintrag-kurz::before {
	display: none;
}

/* ---------- Seiten (FAQ, Blog registrieren, Teilnehmerliste, Impressum) ---------- */

/* Lesbare Textbreite auf Seiten, seit die Seitenbreite auf 1680 px gewachsen ist. Ausnahme:
   Teilnehmerliste, deren mehrspaltige Liste die volle Breite nutzt. */
body.page [data-content="normal"] > article:not(:has(#mcTagMap)) {
	--theme-block-max-width: 960px;
	--theme-block-wide-max-width: 1200px;
}

/* Teilnehmerliste (Plugin Multi-column Tag Map). Der Shortcode steht im Seiteninhalt in einem
   <code>-Block innerhalb einer Tabelle: Schreibmaschinenschrift, Hintergrund und Rahmen zurücksetzen. */
table:has(#mcTagMap),
table:has(#mcTagMap) td,
table:has(#mcTagMap) th {
	border: 0 !important;
	padding: 0 !important;
	background: none !important;
}
code:has(#mcTagMap) {
	display: block;
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	white-space: normal;
}
code:has(#mcTagMap),
#mcTagMap,
#mcTagMap a,
#mcTagMapNav,
#mcTagMapNav a {
	/* Systemschrift direkt: Blocksy setzt --theme-font-family innerhalb von <code> auf monospace */
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
#mcTagMap {
	border: 0 !important;
	padding: 0 !important;
}
#mcTagMapNav {
	border: 1px solid var(--theme-palette-color-5) !important;
	border-radius: 10px;
	background: var(--theme-palette-color-6) !important;
	padding: 8px !important;
}
#mcTagMapNav a {
	padding: 2px 6px;
	border-radius: 5px;
	font-weight: 600;
	text-decoration: none;
}
#mcTagMapNav a:hover {
	background: var(--theme-palette-color-5);
}
#mcTagMap .tagindex h4 {
	color: var(--theme-palette-color-9) !important;
	border-bottom-color: var(--theme-palette-color-5) !important;
}
#mcTagMap .tagindex a {
	text-decoration: none;
	font-weight: 500;
}
.mctagmap_count {
	color: var(--theme-palette-color-10);
	font-size: 0.9em;
}

/* Formulare (Contact Form 7 auf "Blog registrieren") */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
	border-radius: 8px;
}

/* ---------- Cookie-Hinweis (Plugin Cookie Notice) im Stil des Bandes ---------- */

#cookie-notice {
	background: var(--theme-palette-color-4) !important;
	border-top: 1px solid var(--theme-palette-color-11);
	font-family: inherit !important;
	min-width: 0 !important;
}
#cookie-notice .cookie-notice-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 12px 48px 12px 20px;
	text-align: left;
}
#cookie-notice #cn-notice-text {
	color: var(--theme-palette-color-12) !important;
	font-size: 14px;
	margin: 0;
}
#cookie-notice #cn-notice-buttons {
	display: inline-flex;
	gap: 8px;
	margin: 0;
}
#cookie-notice .cn-button {
	margin: 0 !important;
	padding: 7px 14px !important;
	border-radius: 7px !important;
	font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
#cookie-notice #cn-accept-cookie {
	background: var(--theme-palette-color-9) !important;
	color: var(--theme-palette-color-4) !important;
}
#cookie-notice #cn-more-info {
	background: transparent !important;
	border: 1px solid var(--theme-palette-color-11) !important;
	color: var(--theme-palette-color-13) !important;
}
#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after {
	background-color: var(--theme-palette-color-12) !important;
}

@media (max-width: 689.98px) {
	.tb-beitrag-text {
		font-size: 17px;
	}
	.tb-knopf-gross {
		display: block;
		text-align: center;
	}
}

/* ---------- Dunkelmodus: Werte der Palette 1 bis 12 überschreiben (13 bleibt Weiß) ---------- */

html[data-tb-modus="dunkel"] {
	color-scheme: dark;
	--theme-palette-color-1: #FF9F45;  /* Links: helles Orange, Kontrast 8,3 auf dem Grund */
	--theme-palette-color-2: #FFB673;
	--theme-palette-color-3: #E7EAF0;  /* Text */
	--theme-palette-color-4: #0B0D11;  /* Band, etwas dunkler als der Grund */
	--theme-palette-color-5: #2A303B;  /* Linien */
	--theme-palette-color-6: #1A1F27;  /* Flächen bei Hover, Eingabefelder */
	--theme-palette-color-7: #14181E;
	--theme-palette-color-8: #101318;  /* Seitengrund */
	--theme-palette-color-10: #9AA3B2; /* Nebentext */
	--theme-palette-color-11: #262C37;
	--theme-palette-color-12: #A7B0BE;
}
html[data-tb-modus="dunkel"] .tb-eintrag,
html[data-tb-modus="dunkel"] .tb-beitrag {
	--tb-farbe: hsl(var(--tb-h, 30) 75% 68%);
}
html[data-tb-modus="dunkel"] .tb-punkt {
	background: hsl(var(--tb-h, 30) 75% 62%);
}
html[data-tb-modus="dunkel"] .tb-punkt-alle {
	background: var(--theme-palette-color-9);
}
html[data-tb-modus="dunkel"] .tb-cta {
	border-color: var(--theme-palette-color-11);
}
html[data-tb-modus="dunkel"] .tb-palette {
	background: rgba(0, 0, 0, 0.7);
}
