/*
 * KK-Consulting · Steuernews (lädt nur auf Seiten mit dem Block
 * „Steuernews (Atikon)“, inc/steuernews.php).
 *
 * Zwei Teile: die Fläche vor der Einwilligung und der Bereich für das
 * fremde HTML von Atikon (Klasse kk-news, Blatt „Steuernews“, Befund D11).
 * Atikon liefert Artikel ohne eigene Stile; diese Regeln setzen sie in die
 * Schriften und Farben der Website. Liefert der Dienst ein H1, steht es wie
 * ein H2, damit die Seite eine H1 behält.
 */

.kk-steuernews__vorher {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
	min-height: clamp(320px, 26vw, 380px);
	padding: clamp(24px, 3.3vw, 48px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--mist);
}

.kk-symbol--gross {
	width: 56px;
	height: 56px;
}

.kk-steuernews__text {
	max-width: 620px;
	margin: 0;
	font-size: clamp(17px, 1.32vw, 19px);
	line-height: 1.55;
}

.kk-steuernews__aktion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
}

.kk-steuernews__mehr {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--primary-800);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.kk-steuernews__aktion,
	.kk-steuernews__aktion .kk-btn {
		width: 100%;
	}
}

.kk-steuernews__geladen {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kk-steuernews__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--text-secondary);
}

.kk-steuernews__widerruf {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--text-secondary);
	font-family: var(--wp--preset--font-family--source-sans-3);
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.kk-steuernews__leer {
	margin: 0;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
}

/* Das HTML von Atikon. */
.kk-news {
	font-family: var(--wp--preset--font-family--source-sans-3);
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

.kk-news:empty {
	display: none;
}

.kk-news h1,
.kk-news h2 {
	margin: 0 0 0.35em;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: clamp(20px, 1.53vw, 22px);
	line-height: 1.25;
	color: var(--wp--preset--color--text);
}

.kk-news h3,
.kk-news h4 {
	margin: 1.4em 0 0.4em;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
}

.kk-news p {
	max-width: 70ch;
	margin: 0 0 1em;
}

.kk-news a {
	color: var(--wp--preset--color--primary-800);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kk-news a:hover {
	color: var(--wp--preset--color--primary-900);
}

.kk-news a:focus-visible {
	outline: none;
	border-radius: 2px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--wp--preset--color--primary-500), 0 0 0 6px var(--wp--preset--color--primary-900);
}

.kk-news ul,
.kk-news ol {
	max-width: 70ch;
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.kk-news li {
	margin: 0.3em 0;
}

.kk-news li::marker {
	color: var(--wp--preset--color--primary-800);
}

.kk-news table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

/* Tabellen scrollen mobil waagrecht, statt die Seite zu verbreitern. */
@media (max-width: 767px) {
	.kk-news table {
		display: block;
		overflow-x: auto;
	}
}

.kk-news th,
.kk-news td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
}

.kk-news th {
	background: var(--wp--preset--color--mist);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
}

.kk-news .tbl {
	overflow-x: auto;
	margin: 0 0 1em;
}

.kk-news article {
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.kk-news article:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kk-news time,
.kk-news .date {
	display: block;
	margin: 0 0 0.5em;
	font-size: 14px;
	color: var(--wp--preset--color--text-secondary);
}

.kk-news img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--card);
}

.kk-news blockquote {
	margin: 0 0 1em;
	padding: 0 0 0 1em;
	border-left: 0;
	font-style: italic;
	color: var(--wp--preset--color--text-secondary);
}
