/* spezifische Definitionen für Backend */
html[data-backend] {
	.rte_wrapper table {
		margin-top: 1.500rem;
	}
	.external table {
		margin-top: 0px;
	}
}
.rte_wrapper table {
	border: none; /* Legacy - es gibt Tabellen die Rahmen haben */
	border-collapse: separate !important;
	border-spacing: 1px;
	background-color: var(--white-100);
	color: var(--text-color);
	font-variation-settings: var(--fsu-font-variation-text-condensed);

	/* geschachtelte Tabellen ausblenden */
	table {
		display: none;
	}
	th {
		font-weight: normal;
		text-align: left;
	}
	:is(td, th) {
		padding: 15px;
		box-sizing: border-box;
		vertical-align: top;
		border: 1px solid rgba(51, 57, 57, 0.3); /* #333939 - 30% */
	}
	:is(td, th).no_break  {
		white-space: nowrap;
	}
	:is(td, th).w_10 {
		width: 10%;
	}
	:is(td, th).w_20 {
		width: 20%;
	}
	:is(td, th).w_30 {
		width: 30%;
	}
	:is(td, th).w_40 {
		width: 40%;
	}
	:is(td, th).w_50 {
		width: 50%;
	}
	:is(a, p, ol, ul) {
		color: inherit !important;
		font-size: inherit !important;
		line-height: inherit !important;
	}
	:is(ol, ul)  {
		text-align: left; /* muss gesetzt werden, da in Zelle rechtsbündig erlaubt */
	}
	:is(p, ol, ul):first-child {
		margin-top: 0px;
	}
	/* Fett */
	strong {
		font-weight: 600;
		font-variation-settings: var(--fsu-font-variation-text-condensed-bold);
	}
	/* Kursiv */
	em {
		font-style: italic;
		font-synthesis: none; /* Vermischung von slnt und Italic verhindern */
		font-variation-settings: var(--fsu-font-variation-text-condensed-italic);
	}
	/* Kopfzeile */
	tr:first-of-type:not(thead + tbody tr, tbody + tfoot tr) :is(td, th) {
		border-color: var(--fsu-blue);
		background-color: var(--fsu-blue);
		--icon-font-fill: 1; /* Sonderfall */
		color: var(--white-100);
		font-size: 1.125rem;
		line-height: 1.500rem;

		ul > li::before {
			color: var(--white-100);
		}
		a:focus-visible {
			outline-color: var(--white-100);
		}
		@media (hover: hover) {
			a:hover {
				text-decoration-thickness: 2px;
			}
		}
	}
	/* Kopfzeile - Matrix */
	&.matrix :is(td, th):first-child:not(.reset) { /* .reset - siehe tinymceEventChange() */
		padding-left: 20px;
		border-color: var(--copyright-color);
		background: linear-gradient(
			90deg,
			var(--skin-color, var(--fsu-gold)) 10px,
			var(--bg-gradient, var(--white-100)) 11px /* --bg-gradient wird in fsuTable() definiert */
		);
		background-origin: border-box;
		--icon-font-fill: 0; /* Sonderfall */
		color: var(--fsu-blue);
	}
	&.matrix tr:first-of-type:not(thead + tbody tr, tbody + tfoot tr) :is(td, th):first-child {
		background: var(--white-100);
		border-color: var(--white-100);
		color: var(--fsu-blue);

		a:focus-visible {
			outline-color: var(--hover-color-dark);
		}
	}
}
/* Tabellen-Definition */
.rte_wrapper :is(table + p.table_definition, .fsu-table-wrapper + p.table_definition, .fsu-table-wrapper + button + p.table_definition) {
	margin-top: 1.000rem;
	color: var(--copyright-color);
	font-variation-settings: var(--fsu-font-variation-text-condensed);
	font-size: 0.750rem;
	line-height: 1.000rem;
}