/*
Theme Name: Burgturm Facelift
Theme URI: https://burgturm.de/
Author: Marcus O. Mielke
Description: Behutsames Child-Theme für Burgturm auf Basis von Kanso.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Template: kanso
Text Domain: burgturm-facelift
Tags: blog, block-patterns, full-site-editing
*/

/* Startseite: nur etwas breiter als die ursprünglichen 440 Pixel. */
.burgturm-home-content {
	--wp--style--global--content-size: 540px;
	--wp--style--global--wide-size: 720px;
}

/* Der Schriftzug bleibt ruhig in der Mitte. */
.home .burgturm-home-content > h1:first-of-type,
.home .burgturm-home-content > .wp-block-group:first-child h1:first-of-type {
	text-align: center;
}

/* Kein Blocksatz. Bewusst ausgerichtete Blöcke bleiben unangetastet. */
.wp-block-post-content p:not(.has-text-align-center):not(.has-text-align-right),
.wp-block-post-excerpt p:not(.has-text-align-center):not(.has-text-align-right) {
	text-align: left;
}

/* Die weichen Kanso-Rundungen bleiben erhalten. */
.wp-block-post-featured-image img,
.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-gallery img,
.wp-block-post-content .wp-block-media-text__media img,
.burgturm-home-content .wp-block-image img {
	border-radius: 20px;
}

/* Ähnliche Texte: kleine, unaufdringliche Liste statt Kartenraster. */
.burgturm-related-title {
	font-size: 0.8rem;
	font-weight: 500;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.burgturm-related-list {
	margin: 0;
}

.burgturm-related-row {
	align-items: baseline;
	display: flex;
	gap: var(--wp--preset--spacing--20);
	justify-content: space-between;
	padding: 3px 0;
}

.burgturm-related-row h3 {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 550;
	line-height: 1.25;
	margin: 0;
}

.burgturm-related-row h3 a {
	color: inherit;
	text-decoration: none;
}

.burgturm-related-row h3 a:hover {
	text-decoration: underline;
}

.burgturm-related-row time {
	color: var(--wp--preset--color--theme-5);
	flex: 0 0 auto;
	font-size: 0.6rem;
	line-height: 1.25;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.burgturm-related-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
		padding: 6px 0;
	}
}
