/* dt monthly — Artikelbereich auf dt-report.de (Frontend + Editor-Vorschau) */

:root {
	--dtm-coral: #ee766c;
	--dtm-coral-text: #c0463b; /* AA-Kontrast auf Weiß (5.0:1) für Text und Buttons */
	--dtm-blue: #237bc0;
	--dtm-navy: #1b5685;
	--dtm-link: #1a5f98; /* AA-Kontrast auch auf --dtm-mist */
	--dtm-ink: #1e2a38;
	--dtm-muted: #5b6b7c;
	--dtm-line: #d9e2ec;
	--dtm-mist: #f2f6fa;
	--dtm-paper: #ffffff;
	--dtm-radius: 8px;
}

/* ---------- Layout im Divi-Container ---------- */
.dtm-page #main-content .container::before { display: none; }
.dtm-page #left-area { float: none; width: 100% !important; padding: 0; }

.dtm-layout {
	padding-bottom: 56px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	color: var(--dtm-ink);
	line-height: 1.55;
}
@media (min-width: 981px) {
	.dtm-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
	.dtm-side { position: sticky; top: 90px; }
}
.dtm-issue { max-width: 720px; min-width: 0; }
.dtm-issue.et_pb_post { margin-bottom: 0; }

/* ---------- Banner ---------- */
.dtm-banner img { width: 100%; height: auto; display: block; border-radius: var(--dtm-radius); }

/* ---------- Kopf ---------- */
.dtm-issue__meta {
	display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
	margin: 18px 0 6px; font-size: 14px; color: var(--dtm-muted); font-variant-numeric: tabular-nums;
}
.dtm-issue__no, .dtm-card__no { font-weight: 700; color: var(--dtm-coral-text); letter-spacing: .04em; font-size: 14px; }
.dtm-issue__title {
	font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--dtm-navy); line-height: 1.15;
	margin: 0 0 8px; padding: 0; text-wrap: balance;
}

/* ---------- Inhaltsverzeichnis ---------- */
.dtm-toc { border: 1px solid var(--dtm-line); border-radius: 6px; padding: 14px 18px; margin: 22px 0; background: var(--dtm-mist); }
.dtm-toc summary { font-weight: 600; font-size: 14px; cursor: pointer; color: var(--dtm-navy); }
.dtm-toc__list { margin: 10px 0 0 !important; padding: 0 !important; columns: 2; column-gap: 28px; font-size: 15px; list-style: none; counter-reset: dtm; line-height: 1.5; }
.dtm-toc__item--h2 { counter-increment: dtm; }
.dtm-toc__item--h2::before { content: counter(dtm) "."; position: absolute; left: 0; width: 20px; text-align: right; color: var(--dtm-muted); }
.dtm-toc__item { break-inside: avoid; margin: 2px 0; list-style: none !important; padding: 0 0 0 28px; position: relative; }
.dtm-toc__item--h3 { padding-left: 44px; }
.dtm-toc__item--h3::before { content: "–"; position: absolute; left: 30px; color: var(--dtm-muted); }
.dtm-toc a { color: var(--dtm-link); text-decoration: none; }
.dtm-toc a:hover, .dtm-toc a:focus-visible { text-decoration: underline; }
@media (max-width: 560px) { .dtm-toc__list { columns: 1; } }

/* ---------- Inhalt ---------- */
.dtm-issue__content { font-size: 17px; }
.dtm-issue__content h2 { font-weight: 700; font-size: 22px; color: var(--dtm-navy); margin: 38px 0 10px; padding: 0; scroll-margin-top: 90px; line-height: 1.25; }
.dtm-issue__content h3 { font-weight: 700; font-size: 18px; color: var(--dtm-ink); line-height: 1.3; margin: 0 0 6px; padding: 0; scroll-margin-top: 90px; }
.dtm-issue__content p { padding-bottom: 0; margin: 8px 0; }
.dtm-issue__content a { color: var(--dtm-link); text-decoration: underline; text-underline-offset: 2px; }

.dtm-byline { color: var(--dtm-muted); font-size: 15px; margin-top: 8px; }
.dtm-lead-key {
	font-size: 19px; font-weight: 600; color: var(--dtm-navy);
	border-top: 2px solid var(--dtm-coral); border-bottom: 2px solid var(--dtm-coral);
	padding: 12px 0 !important; margin: 12px 0 !important;
}
.dtm-why {
	border-left: 3px solid var(--dtm-blue); padding: 8px 14px !important; background: var(--dtm-mist); font-size: 16px; margin: 10px 0 !important;
}
.dtm-why strong { color: var(--dtm-link); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.dtm-ref { font-size: 13px; color: var(--dtm-muted); }
.dtm-finally { font-weight: 500; font-size: 19px; color: var(--dtm-navy); line-height: 1.4; }

/* Rubriken mit Kopfgrafik (Grafik per CSS, Überschrift bleibt für Screenreader/TOC erhalten) */
.dtm-rubric { margin-top: 44px; }
.dtm-rubric::before {
	content: ""; display: block; width: 100%;
	background: no-repeat left center / contain; margin-bottom: 8px;
}
.dtm-rubric--news::before { background-image: url("../img/rubric-news.png"); aspect-ratio: 1294 / 625; max-width: 438px; }
.dtm-rubric--debate::before { background-image: url("../img/rubric-debate.png"); aspect-ratio: 604 / 500; max-width: 204px; }
.dtm-rubric--finally::before { background-image: url("../img/rubric-finally.png"); aspect-ratio: 736 / 500; max-width: 249px; }
.dtm-rubric__title {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; margin: 0 !important;
}
.dtm-rubric__note { display: none; }
.dtm-rubric--news .dtm-rubric__note { display: none; }

.dtm-item { padding: 18px 0; border-top: 1px solid var(--dtm-line); scroll-margin-top: 90px; }
.dtm-item:first-of-type { border-top: 0; }
.dtm-item h3 { position: relative; }
.dtm-item h3::before {
	content: "#"; position: absolute; left: -1.1em; color: var(--dtm-line); font-weight: 500;
}
.dtm-item:hover h3::before, .dtm-item:target h3::before { color: var(--dtm-blue); }
@media (max-width: 720px) { .dtm-item h3::before { display: none; } }

/* dt-report-Box */
.dtm-dtbox {
	background: var(--dtm-coral); color: var(--dtm-ink); border-radius: 14px; padding: 22px 26px; margin: 30px 0;
	font-weight: 600; font-size: 17px; line-height: 1.45;
}
.dtm-dtbox__text { margin: 0 !important; padding: 0 !important; color: inherit; }
.dtm-dtbox__cta {
	color: var(--dtm-ink) !important; font-size: 14px; display: inline-block; margin-top: 12px; border: 2px solid currentColor;
	padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.dtm-dtbox__cta:hover, .dtm-dtbox__cta:focus-visible { background: var(--dtm-ink); color: #fff !important; }

/* ---------- Buttons ---------- */
.dtm-button {
	display: inline-block; font-weight: 700; font-size: 15px; background: var(--dtm-coral-text); color: #fff !important;
	border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; line-height: 1.3;
}
.dtm-button:hover, .dtm-button:focus-visible { background: var(--dtm-navy); }
.dtm-button--small { font-size: 14px; padding: 9px 16px; }
.dtm-page a:focus-visible, .dtm-page button:focus-visible, .dtm-page input:focus-visible, .dtm-page select:focus-visible {
	outline: 3px solid var(--dtm-coral); outline-offset: 2px;
}

/* ---------- Anmeldeblock ---------- */
.dtm-subscribe {
	background: var(--dtm-mist); border: 1px solid var(--dtm-line); border-radius: 10px; padding: 22px 24px; margin: 40px 0 10px;
	scroll-margin-top: 90px;
}
.dtm-subscribe h2 { margin: 0 0 6px; padding: 0; font-size: 20px; color: var(--dtm-navy); }
.dtm-subscribe__intro { margin: 0; padding: 0; }
.dtm-subscribe__cta { margin: 14px 0 10px !important; padding: 0; }
.dtm-subscribe__fine { font-size: 13px; color: var(--dtm-muted); margin: 0; padding: 0; }
.dtm-subscribe__fine a { color: var(--dtm-link); text-decoration: underline; }

/* ---------- Karten ---------- */
.dtm-previous { margin-top: 36px; }
.dtm-previous__title { font-size: 18px; color: var(--dtm-navy); margin: 0 0 12px; padding: 0; }
.dtm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dtm-card { border: 1px solid var(--dtm-line); border-radius: var(--dtm-radius); padding: 16px 18px; background: var(--dtm-paper); display: flex; flex-direction: column; gap: 6px; }
.dtm-card__no { font-size: 13px; }
.dtm-card__title { font-size: 17px; margin: 0; padding: 0; color: var(--dtm-navy); line-height: 1.3; }
.dtm-card__title a { color: inherit; text-decoration: none; }
.dtm-card__title a:hover { text-decoration: underline; }
.dtm-card__summary { margin: 0; padding: 0; font-size: 14px; color: var(--dtm-muted); flex: 1; }
.dtm-card__link { color: var(--dtm-link); font-weight: 600; font-size: 14px; text-decoration: none; }
.dtm-card__link:hover { text-decoration: underline; }

/* ---------- Seitenleiste ---------- */
.dtm-side { display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.dtm-side__box { border: 1px solid var(--dtm-line); border-radius: 10px; padding: 18px; background: var(--dtm-paper); }
.dtm-side__box p { margin: 0 0 8px; padding: 0; }
.dtm-side__title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dtm-muted); margin: 0 0 10px; padding: 0; }
.dtm-side__list { list-style: none; margin: 0; padding: 0; }
.dtm-side__list li { padding: 6px 0; border-top: 1px solid var(--dtm-line); display: flex; justify-content: space-between; gap: 8px; }
.dtm-side__list li:first-child { border-top: 0; }
.dtm-side__list li.is-current a { font-weight: 700; color: var(--dtm-navy); }
.dtm-side__list a { color: var(--dtm-link); text-decoration: none; }
.dtm-side__list a:hover { text-decoration: underline; }
.dtm-side__no { color: var(--dtm-muted); font-size: 13px; white-space: nowrap; }
.dtm-side__all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--dtm-link); text-decoration: none; }

/* ---------- Archiv ---------- */
.dtm-archive { max-width: 720px; min-width: 0; color: var(--dtm-ink); }
.dtm-archive__head { max-width: 720px; margin-bottom: 28px; }
.dtm-archive__title { font-size: clamp(26px, 3.4vw, 34px); color: var(--dtm-navy); margin: 18px 0 8px; padding: 0; font-weight: 700; }
.dtm-archive__intro { font-size: 17px; margin: 0 0 16px; padding: 0; }
.dtm-archive .dtm-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dtm-archive .dtm-subscribe { max-width: 720px; }
.dtm-pagination { margin: 24px 0; }
.dtm-archive__empty { font-size: 17px; }

/* ---------- Druck ---------- */
@media print {
	.dtm-side, .dtm-subscribe, .dtm-previous { display: none; }
	.dtm-layout { display: block; }
}

/* ---------- rapidmail-Popup über dem fixen Divi-Header (Divi: z-index 99999, rapidmail: 1000) ---------- */
.dtm-page #rmOrganism .rmPopup__container { z-index: 100001 !important; }
