/* Post-spezifische Styles */

.wp-block-post-featured-image img {
	border-radius: 12px;
}

.wp-block-post-template {
	padding: 0 !important;
}

.wp-block-post-template .wp-block-post-title {
	font-size: clamp(24px, 3vw, 32px);
}

.wp-block-post-excerpt__more-link {
	font-weight: 700;
}

.wp-block-post-excerpt__more-text {
	margin-top: 8px;
}

.wp-block-post-template :where(.is-layout-flow) > * {
	margin-block-start: 12px;
	margin-block-end: 0;
}

.single .wp-block-post-title {
	margin-top: 24px;
}

@media (max-width: 782px) {
	.wp-block-post-template .wp-block-post {
		display: flex;
		flex-direction: column;
	}

	.wp-block-post-template .wp-block-post-featured-image {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: auto !important;
	}
}

/* Category Links Styling */
.wp-block-post-terms a {
	color: black !important;
	text-decoration: none !important;
	font-weight: 400;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--primary-dark) !important;
	text-decoration: underline !important;
}

/* Post Title Links Styling */
.wp-block-query .wp-block-post-title {
	text-transform: none !important;
	font-weight: 700;
	margin-top: 8px;
}

.wp-block-query .wp-block-post-title a {
	color: black !important;
	text-decoration: none !important;
}

.wp-block-query .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-dark) !important;
}

/* IR-Post Breadcrumb: erste zwei Ebenen schwarz, nur die Kategorie
   (letztes Segment, per post-terms) durchgehend grün/unterstrichen. */
.pyrum-ir-breadcrumb a {
	color: black;
	text-decoration: none;
}

.pyrum-ir-breadcrumb a:hover {
	text-decoration: underline;
}

.pyrum-ir-breadcrumb .wp-block-post-terms a {
	color: var(--wp--preset--color--primary-dark) !important;
	text-decoration: underline !important;
	text-transform: none;
	font-weight: 400;
}

.ir-post-layout {
	margin-top: 6px;
}

/* Post Content UL */
.wp-block-post-content ul {
	padding-left: 1rem;
}

/* Post Content Tabellen - nur auf Beitragsseiten */
.single-post .wp-block-post-content table {
	border-collapse: collapse;
	width: auto;
	margin: 1.5rem 0;
}

.single-post .wp-block-post-content table td,
.single-post .wp-block-post-content table th {
	border: 1px solid #ddd;
	padding: 0.25rem 0.5rem;
	text-align: left;
}

.single-post .wp-block-post-content table th {
	font-weight: 600;
}

/* Kleinere Huge-Überschriften auf Artikeln/Beiträgen */
.single-post {
	--wp--preset--font-size--huge: clamp(24px, 4vw, 42px);
	--wp--style--global--content-size: 1200px;
}

/* Mobile Column-Reihenfolge */
@media (max-width: 781px) {
	/* Normale Single-Posts: rechte Spalte zuerst (Featured Image oben) */
	.single-post-layout {
		flex-direction: column-reverse !important;
	}

	/* IR-Posts: normale Reihenfolge (Content oben) */
	.ir-post-layout {
		flex-direction: column !important;
	}

	/* Breadcrumb + Datum untereinander statt nebeneinander */
	.pyrum-ir-meta-row,
	.pyrum-post-meta-row {
		flex-wrap: wrap !important;
	}

	/* Breadcrumb bricht auf mehrere Zeilen um, statt zu scrollen -
	   die einzelnen Segmente bleiben dabei am Stück. */
	.pyrum-ir-breadcrumb {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.pyrum-ir-breadcrumb p {
		white-space: nowrap;
	}
}
