/*
 * EasyClaims – Dokument-Template (templates/document.php), z. B. /ai-knowledge-base/.
 * Eigenständig: style.css und die GP-Farbvariablen werden hier nicht geladen,
 * daher die Projektfarben einmal als eigene Variablen (Werte = GP Global Colors).
 */
:root {
	--ink: #052a1d;     /* contrast   */
	--muted: #315b4d;   /* contrast-2 */
	--line: #cceee1;    /* base       */
	--soft: #e5fbf2;    /* base-2     */
	--accent: #09a977;  /* accent-2   */
	--max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
a:hover,
a:focus-visible { color: var(--accent); }

.ec-doc {
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
	padding: 72px 0 90px;
}

/* Kopf: Titel, Untertitel, Metadaten */
.ec-doc h1 {
	max-width: 850px;
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 4.6rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}
.ec-doc-subtitle {
	max-width: 760px;
	margin: 20px 0 0;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 1.2rem;
	font-weight: 700;
}
.ec-doc-meta {
	display: inline-block;
	margin: 14px 20px 0 0;
	color: var(--muted);
	font-size: .95rem;
}

/* Inhalt */
.ec-doc h2 {
	margin: 58px 0 18px;
	padding-top: 34px;
	border-top: 1px solid var(--line);
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
}
.ec-doc h3 { margin: 38px 0 12px; font-size: 1.55rem; line-height: 1.25; }
.ec-doc h4 { margin: 28px 0 8px; font-size: 1.12rem; line-height: 1.35; }
.ec-doc p { margin: 0 0 14px; }
.ec-doc ul,
.ec-doc ol { margin: 8px 0 22px; padding-left: 1.35rem; }
.ec-doc li { margin: 4px 0; }

/* Tabellen */
.ec-doc .wp-block-table {
	margin: 18px 0 28px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.ec-doc table { width: 100%; min-width: 560px; border-collapse: collapse; }
.ec-doc th,
.ec-doc td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.ec-doc th { background: var(--soft); font-weight: 700; }
.ec-doc tbody tr:last-child td { border-bottom: 0; }

/* Casino-Liste [ec_casino_list] */
.ec-doc-count { color: var(--muted); font-size: .96rem; }
.ec-doc .ec-casino-list {
	column-count: var(--ec-columns, 3);
	column-gap: 32px;
	margin: 8px 0 22px;
	padding-left: 0;
	list-style: none;
}
.ec-doc .ec-casino-list li {
	margin: 0;
	padding: 5px 0;
	border-bottom: 1px solid var(--line);
	break-inside: avoid;
	color: var(--muted);
}
.ec-doc .ec-casino-list a { font-weight: 700; text-decoration: none; }
.ec-doc .ec-casino-list a:hover,
.ec-doc .ec-casino-list a:focus-visible { text-decoration: underline; }

.ec-doc-end { margin-top: 42px; font-weight: 700; color: var(--muted); }

@media (max-width: 1024px) {
	.ec-doc .ec-casino-list { column-count: 2; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.ec-doc { width: min(100% - 24px, var(--max)); padding-top: 42px; }
	.ec-doc th,
	.ec-doc td { padding: 10px 11px; }
	.ec-doc .ec-casino-list { column-count: 1; }
}

@media print {
	body { font-size: 11pt; color: #000; }
	.ec-doc { width: 100%; padding: 0; }
	a { color: #000; text-decoration: none; }
	.ec-doc h2,
	.ec-doc h3,
	.ec-doc h4 { break-after: avoid; }
	.ec-doc table,
	.ec-doc ul,
	.ec-doc ol { break-inside: avoid; }
}
