/*
 * TechNavigator 3 – Leseseite nach FachartikelC.dc.html.
 * Eine zentrierte Spalte von 760 px mit einer linken Kante: Kopf, Aufmacher, Kurzfassung,
 * Inhaltsverzeichnis, Lesetext, Rechtshinweis, Quellen. Nur „Weiterlesen" ist breiter (1000 px).
 *
 * Die Regeln für den Lesetext gelten über .is-root-container auch im Editor.
 */

.tn-artikel {
	padding-top: clamp(36px, 5vw, 52px);
	padding-bottom: 64px;
}

/* ---------- Artikelkopf ---------- */
.tn-artikelkopf {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tn-artikelkopf .tn-meta a {
	color: var(--tn-link);
}

/* H1 auf Papier immer Tinte, nie Navy */
.tn-artikelkopf h1 {
	margin: 0;
	font-family: var(--tn-serif);
	font-weight: 600;
	font-size: clamp(32px, 3.8vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--tn-tinte);
	hyphens: auto;
	overflow-wrap: anywhere;
}

.tn-vorspann {
	margin: 0;
	font-family: var(--tn-serif);
	font-size: clamp(19px, 2vw, 21px);
	line-height: 1.45;
	color: var(--tn-text);
}

.tn-autorzeile {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2px;
}

.tn-autorzeile img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: var(--tn-radius-bild);
}

.tn-autorzeile p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--tn-gedaempft);
}

.tn-autorzeile a,
.tn-autorzeile__name {
	color: var(--tn-tinte);
	font-weight: 600;
	text-decoration: none;
}

.tn-autorzeile a:hover {
	text-decoration: underline;
}

/* ---------- Aufmacher: volle Spaltenbreite, höchstens 400 px hoch (VORGABEN Richtung C, Regel 5) ---------- */
.tn-aufmacher {
	margin: 32px 0 36px;
}

.tn-aufmacher img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	border: 1px solid var(--tn-linie);
	border-radius: var(--tn-radius-bild);
}

.tn-aufmacher figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tn-gedaempft);
}

/* Ohne Aufmacher Abstand zwischen Kopf und dem, was folgt */
.tn-artikelkopf + .tn-kurzfassung,
.tn-artikelkopf + .tn-inhalt,
.tn-artikelkopf + .tn-lesetext {
	margin-top: 32px;
}

/* ---------- Das Wichtigste in Kürze: zwischen zwei Linien, kein Kasten ---------- */
.tn-kurzfassung {
	margin: 0;
	border-top: 1px solid var(--tn-tinte);
	border-bottom: 1px solid var(--tn-tinte);
	padding: 18px 0 22px;
}

.tn-kurzfassung h2 {
	margin: 0 0 12px;
	font-family: var(--tn-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tn-tinte);
}

.tn-kurzfassung ul {
	margin: 0;
	padding: 0 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--tn-text);
}

.tn-kurzfassung strong {
	font-weight: 600;
	color: var(--tn-tinte);
}

/* ---------- Inhaltsverzeichnis: direkt unter der Kurzfassung, nur untere Linie ---------- */
.tn-inhalt {
	margin: 0 0 36px;
}

.tn-inhalt li {
	padding: 6px 0;
}

.tn-inhalt a {
	color: var(--tn-tinte);
	text-decoration: none;
}

.tn-inhalt a:hover {
	text-decoration: underline;
}

/* Steht keine Kurzfassung darüber, bekommt das Verzeichnis auch die obere Linie */
.tn-aufmacher + .tn-inhalt > .tn-aufklapper,
.tn-artikelkopf + .tn-inhalt > .tn-aufklapper {
	border-top: 1px solid var(--tn-linie);
}

.tn-kurzfassung + .tn-lesetext {
	margin-top: 36px;
}

/* ---------- Lesetext: Source Serif 4, 19 px, Zeilenabstand 1,7 ---------- */
:is(.tn-lesetext, .is-root-container) {
	font-family: var(--tn-serif);
	font-size: 19px;
	line-height: 1.7;
	color: var(--tn-text);
}

:is(.tn-lesetext, .is-root-container) > :first-child {
	margin-top: 0;
}

:is(.tn-lesetext, .is-root-container) p {
	margin: 0 0 22px;
}

:is(.tn-lesetext, .is-root-container) :is(h2, h3, h4) {
	font-family: var(--tn-serif);
	font-weight: 600;
	color: var(--tn-tinte);
	hyphens: auto;
	scroll-margin-top: 16px;
}

:is(.tn-lesetext, .is-root-container) h2 {
	margin: 48px 0 16px;
	font-size: clamp(26px, 2.8vw, 34px);
	line-height: 1.2;
}

:is(.tn-lesetext, .is-root-container) h3 {
	margin: 36px 0 12px;
	font-size: clamp(21px, 2.2vw, 23px);
	line-height: 1.25;
}

:is(.tn-lesetext, .is-root-container) h4 {
	margin: 28px 0 10px;
	font-size: 19px;
	line-height: 1.3;
}

:is(.tn-lesetext, .is-root-container) :is(ul, ol) {
	margin: 0 0 22px;
	padding: 0 0 0 26px;
}

:is(.tn-lesetext, .is-root-container) li {
	margin: 0 0 12px;
}

:is(.tn-lesetext, .is-root-container) li > :is(ul, ol) {
	margin: 12px 0 0;
}

:is(.tn-lesetext, .is-root-container) a {
	color: var(--tn-link);
	text-decoration: underline;
	text-underline-offset: 4px;
}

:is(.tn-lesetext, .is-root-container) a:hover {
	color: var(--tn-link-dunkel);
}

:is(.tn-lesetext, .is-root-container) :is(strong, b) {
	font-weight: 600;
	color: var(--tn-tinte);
}

:is(.tn-lesetext, .is-root-container) img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tn-radius-bild);
}

:is(.tn-lesetext, .is-root-container) figure {
	margin: 32px 0 36px;
	max-width: 100%;
}

:is(.tn-lesetext, .is-root-container) figure:not(.wp-block-table) figcaption {
	margin-top: 10px;
	font-family: var(--tn-sans);
	font-size: 13px;
	line-height: 1.5;
	color: var(--tn-gedaempft);
	text-align: left;
}

:is(.tn-lesetext, .is-root-container) hr {
	margin: 36px 0;
	border: 0;
	border-top: 1px solid var(--tn-linie);
}

/* Keine Schreibmaschinenschrift, auch nicht für Code-Auszeichnungen */
:is(.tn-lesetext, .is-root-container) :is(code, kbd, samp, pre) {
	font-family: var(--tn-sans);
	font-size: 0.9em;
}

:is(.tn-lesetext, .is-root-container) pre {
	overflow-x: auto;
	padding: 14px 16px;
	background: var(--tn-papier-2);
	white-space: pre-wrap;
}

/* Eingebettetes und Breites läuft nie über die Spalte hinaus */
.tn-lesetext iframe,
.tn-lesetext video,
.tn-lesetext audio {
	max-width: 100%;
}

.tn-lesetext > table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* Seit 3.0.22: Tabellen tiefer im Text rollen in sich statt die Seite zu verbreitern. Die Hülle
   tn-rollbereich setzt tn3_tabellen_rollbar() (inc/inhalt.php) bei der Ausgabe; Hüllen mit der
   Tailwind-Klasse overflow-x-auto (alte Kästen, z. B. Pillar-Beiträge) hatten bisher keine Wirkung. */
.tn-lesetext .tn-rollbereich,
.tn-lesetext div[class*="overflow-x-auto"],
.tn-lesetext div[class*="overflow-x-scroll"] {
	max-width: 100%;
	overflow-x: auto;
}

.tn-seitenzahlen {
	margin: 28px 0 0;
	font-family: var(--tn-sans);
	font-size: 15px;
	display: flex;
	gap: 14px;
}

/* ---------- Rechtshinweis (fester Wortlaut, ohne Sternchen); im Fachartikel unter den Quellen ---------- */
.tn-rechtshinweis {
	margin: 44px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--tn-gedaempft);
}

/* ---------- Quellen ---------- */
.tn-quellen {
	margin-top: 52px;
}

.tn-rechtshinweis + .tn-quellen {
	margin-top: 16px;
}

/* Fachartikel: der Rechtshinweis steht unter den Quellen (Mockup FachartikelC) */
.tn-quellen + .tn-rechtshinweis {
	margin-top: 16px;
}

/* ---------- Textzeile zum Newsletter im Lesetext: ohne Feld, ohne Fläche ----------
   Seit 3.0.12 etwas deutlicher (Wunsch Mathias 15.11.2026: „leicht prominenter, nicht aufdringlich“):
   feine Linie darüber und darunter, kleine Marke mit dem Namen des Briefs („Schwarzbrot Digital“, Text
   artikel_brief_marke) wie die Marken der Seitenspalten, Satz in Textfarbe statt gedämpft. Keine
   Farbfläche, kein Knopf. */
:is(.tn-lesetext, .is-root-container) p.tn-textzeile {
	margin: 36px 0 32px;
	border-top: 1px solid var(--tn-linie);
	border-bottom: 1px solid var(--tn-linie);
	padding: 14px 0 15px;
	font-family: var(--tn-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--tn-text);
}

:is(.tn-lesetext, .is-root-container) p.tn-textzeile .tn-textzeile__marke {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tn-gedaempft);
}

:is(.tn-lesetext, .is-root-container) p.tn-textzeile a {
	font-weight: 600;
}
.tn-quellen ol {
	padding: 4px 0 20px 26px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tn-text);
}

.tn-quellen li {
	padding: 3px 0;
	overflow-wrap: anywhere;
}

.tn-quellen li:target,
.tn-quellen li:focus {
	background: var(--tn-papier-2);
	outline: 0;
}

.tn-quellen__abruf {
	color: var(--tn-gedaempft);
}

/* ---------- Autor am Artikelende ---------- */
.tn-autorkasten {
	margin-top: 44px;
	border-top: 1px solid var(--tn-linie);
	padding-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 18px 24px;
}

.tn-autorkasten img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: var(--tn-radius-bild);
}

.tn-autorkasten__text {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.tn-autorkasten h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

.tn-autorkasten p {
	margin: 0;
	font-size: 16px;
	color: var(--tn-text);
}

.tn-autorkasten .tn-meta {
	font-size: 13px;
	color: var(--tn-gedaempft);
}

/* ---------- Weiterlesen: ein großes Stück, ein kleineres ---------- */
.tn-weiterlesen {
	padding-bottom: 72px;
}

.tn-weiterlesen__liste {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 56px;
}

.tn-weiterlesen__eintrag {
	flex: 3 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tn-weiterlesen__eintrag--gross {
	flex: 5 1 420px;
	gap: 12px;
}

.tn-weiterlesen__bild,
.tn-weiterlesen__bild img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tn-radius-bild);
}

.tn-weiterlesen .tn-meta {
	margin-top: 2px;
	font-size: 13px;
}

.tn-weiterlesen h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

.tn-weiterlesen__eintrag--gross h3 {
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.18;
}

.tn-weiterlesen h3 a {
	color: var(--tn-tinte);
	text-decoration: none;
}

.tn-weiterlesen h3 a:hover {
	text-decoration: underline;
}

.tn-weiterlesen__auszug {
	margin: 0;
	max-width: 38em;
	font-size: 16px;
	color: var(--tn-text);
}

/* ---------- Breite Seite (vorlagen/seite-breit.php) ---------- */
.tn-artikel--breit .tn-seiteninhalt {
	font-size: 17px;
	line-height: 1.6;
}
