/**
 * Dice Age – Stile für Inhaltsblöcke (Zitat, Listen, Tabelle, Trenner …).
 * Gilt auf der Website und im Editor. Eigene Block-Stile tragen das Präfix is-style-diceage-…
 */

/* ---------- Überschriften im Text ---------- */
.wp-block-post-content h2 {
	margin-top: var(--wp--preset--spacing--60);
}
.wp-block-post-content h3,
.editor-styles-wrapper h3 {
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	margin-top: 2.25rem;
}
.wp-block-post-content h4,
.editor-styles-wrapper h4 {
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-top: 2rem;
}

/* ---------- Absatz-Stil „Einleitung“ ---------- */
.is-style-diceage-einleitung {
	font-size: 1.3em;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Markierung (Textauszeichnung „Hervorheben“) ---------- */
mark:not(.has-inline-color) {
	background: var(--wp--preset--color--accent-2);
	color: inherit;
	padding: 0 0.15em;
}

/* ---------- Zitat ---------- */
.wp-block-quote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border: 0;
	border-left: 6px solid var(--wp--preset--color--accent-1);
	font-size: 1.2em;
	font-weight: 500;
	line-height: 1.5;
}
.wp-block-quote p { margin: 0 0 0.75rem; }
.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
}
.wp-block-quote cite::before,
.wp-block-pullquote cite::before { content: "— "; }

/* Zitat-Stil „Groß“ */
.wp-block-quote.is-style-diceage-gross {
	border-left: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-stretch: 78%;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	line-height: 1.08;
}
.wp-block-quote.is-style-diceage-gross::before {
	content: "";
	display: block;
	width: 3rem;
	height: 6px;
	margin-bottom: 1rem;
	background: var(--wp--preset--color--accent-1);
}

/* ---------- Pullquote (hervorgehobenes Zitat) ---------- */
.wp-block-pullquote {
	margin: 2.5rem 0;
	padding: 2rem 2.25rem;
	border: 0;
	border-top: 8px solid var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-align: left;
}
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-stretch: 78%;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.1;
	margin: 0;
}
.wp-block-pullquote cite { color: var(--wp--preset--color--accent-2); }

/* ---------- Listen ---------- */
.wp-block-post-content ul.wp-block-list:not([class*="is-style-"]),
.editor-styles-wrapper ul.wp-block-list:not([class*="is-style-"]) {
	list-style: none;
	padding-left: 1.5rem;
}
.wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) > li,
.editor-styles-wrapper ul.wp-block-list:not([class*="is-style-"]) > li {
	position: relative;
	margin: 0.35rem 0;
}
.wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) > li::before,
.editor-styles-wrapper ul.wp-block-list:not([class*="is-style-"]) > li::before {
	content: "";
	position: absolute;
	left: -1.35rem;
	top: 0.62em;
	width: 0.5em;
	height: 0.5em;
	background: var(--wp--preset--color--accent-1);
}
.wp-block-post-content ol.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	list-style: none;
	counter-reset: diceage-liste;
	padding-left: 2.5rem;
}
.wp-block-post-content ol.wp-block-list > li,
.editor-styles-wrapper ol.wp-block-list > li {
	position: relative;
	margin: 0.6rem 0;
	counter-increment: diceage-liste;
}
.wp-block-post-content ol.wp-block-list > li::before,
.editor-styles-wrapper ol.wp-block-list > li::before {
	content: counter(diceage-liste);
	position: absolute;
	left: -2.5rem;
	top: -0.1em;
	width: 1.9rem;
	text-align: right;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-stretch: 72%;
	font-size: 1.5em;
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
}

/* Listen-Stile „Häkchen“ (aus dem Eltern-Theme), „Plus“ und „Minus“ */
ul.is-style-checkmark-list,
ul.is-style-diceage-plus,
ul.is-style-diceage-minus {
	list-style: none;
	padding-left: 2rem;
}
ul.is-style-checkmark-list > li,
ul.is-style-diceage-plus > li,
ul.is-style-diceage-minus > li {
	position: relative;
	margin: 0.4rem 0;
	padding-left: 0;
}
ul.is-style-checkmark-list > li::before,
ul.is-style-diceage-plus > li::before,
ul.is-style-diceage-minus > li::before {
	position: absolute;
	left: -2rem;
	top: 0.15em;
	width: 1.3rem;
	height: 1.3rem;
	display: grid;
	place-items: center;
	font-weight: 900;
	font-size: 0.85rem;
	line-height: 1;
}
ul.is-style-checkmark-list > li::before {
	content: "✓";
	color: var(--wp--preset--color--accent-3);
	font-size: 1.1rem;
}
ul.is-style-diceage-plus > li::before {
	content: "+";
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}
ul.is-style-diceage-minus > li::before {
	content: "–";
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Tabelle ---------- */
.wp-block-table { margin: 2rem 0; overflow-x: auto; }
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}
.wp-block-table th,
.wp-block-table td {
	padding: 0.65rem 0.9rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead {
	border-bottom: 0;
}
.wp-block-table thead th {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wp-block-table tfoot td {
	font-weight: 700;
	border-top: 3px solid var(--wp--preset--color--contrast);
	border-bottom: 0;
}
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 45%, transparent);
}
.wp-block-table figcaption,
.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-4);
	text-align: left;
}

/* ---------- Trenner ---------- */
.wp-block-separator {
	border: 0 !important;
	margin-top: 2.5rem !important;
	margin-bottom: 2.5rem !important;
	opacity: 1;
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 4rem;
	height: 6px !important;
	background: var(--wp--preset--color--accent-1) !important;
}
.wp-block-separator.is-style-wide {
	width: 100%;
	max-width: 880px !important; /* Textspalte der Beitragsseiten */
	height: 4px !important;
	background: var(--wp--preset--color--contrast) !important;
}
.wp-block-separator.is-style-dots {
	height: auto !important;
	background: none !important;
	text-align: center;
}
.wp-block-separator.is-style-dots::before {
	content: "■ ■ ■";
	color: var(--wp--preset--color--accent-1);
	font-size: 0.7rem;
	letter-spacing: 1.2em;
	padding-left: 1.2em;
}

/* ---------- Code ---------- */
:not(pre) > code {
	background: var(--wp--preset--color--accent-2);
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}
.wp-block-code,
.wp-block-preformatted {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 0;
	padding: 1.25rem 1.5rem;
	font-size: 0.85rem;
	line-height: 1.6;
	overflow-x: auto;
}
.wp-block-code code { background: none; padding: 0; color: inherit; }

/* ---------- Details (aufklappbar) ---------- */
.wp-block-details {
	border-top: 2px solid var(--wp--preset--color--contrast);
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	padding: 0.9rem 0;
	margin: 2rem 0;
}
.wp-block-details + .wp-block-details { border-top: 0; margin-top: -2rem; }
.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details[open] > summary { margin-bottom: 0.75rem; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	font-weight: 700;
	padding: 0.8rem 1.4rem;
}
.wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 3px solid var(--wp--preset--color--contrast);
	padding: calc(0.8rem - 3px) calc(1.4rem - 3px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Gruppen-Stile „Hinweisbox“ und „Tipp vom Spieltisch“ ---------- */
.is-style-diceage-hinweis {
	background: var(--wp--preset--color--accent-2);
	border-left: 6px solid var(--wp--preset--color--accent-1);
	padding: 1.25rem 1.5rem !important;
	margin: 2rem 0;
}
.is-style-diceage-tipp {
	position: relative;
	background: var(--wp--preset--color--accent-5);
	border: 3px solid var(--wp--preset--color--contrast);
	padding: 1.75rem 1.5rem 1.25rem !important;
	margin: 2.5rem 0 2rem;
}
.is-style-diceage-tipp::before {
	content: "Tipp vom Spieltisch";
	position: absolute;
	top: -0.85rem;
	left: 1.25rem;
	padding: 0.2rem 0.6rem;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.is-style-diceage-hinweis > :first-child,
.is-style-diceage-tipp > :first-child { margin-top: 0; }
.is-style-diceage-hinweis > :last-child,
.is-style-diceage-tipp > :last-child { margin-bottom: 0; }

/* Nur für die Gestaltungsübersicht: Name des Bausteins über jedem Beispiel */
.diceage-stilname {
	margin-top: 2.5rem !important;
	margin-bottom: 0.5rem !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}
.diceage-stilname code { text-transform: none; letter-spacing: 0; }
.diceage-stilname + * { margin-top: 0 !important; }
.diceage-stilname + .is-style-diceage-tipp { margin-top: 1.4rem !important; }
