/*
 * VGL – Stil für normale WordPress-Tabellen (z. B. aus ChatGPT eingefügt).
 * Kopfzeile in der ersten Theme-Farbe (leicht abgedunkelt), Zebrastreifen, erste Spalte fett.
 * Nicht bei „Streifen“ oder „Ohne VGL-Stil“ (Blockstil in der Seitenleiste).
 */
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) {
	--vgl-table-accent: var(--theme-palette-color-1, var(--wp--preset--color--primary, #1f4f57));
	--vgl-table-head: color-mix(in srgb, var(--vgl-table-accent) 78%, #000);
	--vgl-table-head-text: #fff;
	--vgl-table-stripe: color-mix(in srgb, var(--vgl-table-accent) 6%, #fff);
	--vgl-table-line: color-mix(in srgb, var(--vgl-table-accent) 14%, #fff);
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	overflow-x: auto;
}
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: inherit;
	line-height: 1.6;
}
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) th,
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) td {
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--vgl-table-line);
	background: none;
	text-align: left;
	vertical-align: top;
}
/* Kopfzeile */
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) thead {
	border: 0;
}
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) thead th,
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) thead td {
	padding-top: 18px;
	padding-bottom: 18px;
	border-bottom: 0;
	background: var(--vgl-table-head);
	color: var(--vgl-table-head-text);
	font-weight: 700;
	vertical-align: middle;
}
/* Zebrastreifen */
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) tbody tr:nth-child(even) > * {
	background: var(--vgl-table-stripe);
}
/* Erste Spalte als Zeilenkopf: fett, in Überschriftenfarbe */
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) tbody th {
	color: var(--theme-headings-color, var(--theme-palette-color-4, inherit));
	font-weight: 700;
}
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) tfoot td,
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) tfoot th {
	border-top: 2px solid var(--vgl-table-head);
	border-bottom: 0;
	font-weight: 700;
}
.wp-block-table:not(.is-style-stripes):not(.is-style-plain) figcaption {
	margin-top: 8px;
	font-size: 0.875em;
	opacity: 0.8;
}

/* Handy: etwas enger */
@media (max-width: 690px) {
	.wp-block-table:not(.is-style-stripes):not(.is-style-plain) th,
	.wp-block-table:not(.is-style-stripes):not(.is-style-plain) td {
		padding: 12px 14px;
	}
}
