/*
Theme Name: Ganzheitsforschung
Template: twentytwentyfive
Description: Schlankes Child-Theme auf Basis von Twenty Twenty-Five fuer das digitale Archiv der Gesellschaft fuer Ganzheitsforschung (Othmar Spann Gesamtausgabe). Boxed Layout, Pergament/Bordeaux, kein Page-Builder.
Author: Gesellschaft fuer Ganzheitsforschung
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: ganzheitsforschung
*/

/* ──────────────────────────────────────────────────────────
   Boxed Layout: der Inhalt liegt als Pergamentbogen auf
   getoentem Grund — mit Luft nach allen vier Seiten.
   ────────────────────────────────────────────────────────── */
.wp-site-blocks {
	max-width: 1320px;
	width: calc(100% - 48px);
	margin-inline: auto;
	margin-block: 48px;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	box-shadow: 0 2px 40px rgba(42, 36, 32, .08);
}

/* Nichts bricht aus dem Bogen aus */
.wp-site-blocks .alignfull {
	margin-inline: 0;
	max-width: 100%;
}

/* Ab hier fuellt der Bogen den Schirm — Rahmen und Schatten waeren Ballast */
@media (max-width: 1100px) {
	.wp-site-blocks { margin-block: 24px; }
}

/* Auf Tablet und Handy fuellt der Bogen den Schirm — Rahmen waere dort Ballast */
@media (max-width: 860px) {
	.wp-site-blocks {
		width: 100%;
		margin-block: 0;
		border: 0;
		box-shadow: none;
	}
}

/* ── Kopf- und Fussbereich: Innenrand mitwachsend, Linien ueber volle Breite ── */
.gf-kopf,
.gf-fuss {
	padding-inline: clamp(24px, 5vw, 56px);
}

.gf-kopf {
	padding-block: clamp(24px, 3vw, 34px);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

.gf-fuss {
	padding-block: clamp(24px, 2.5vw, 30px);
}

.gf-kopf .wp-block-site-title a:hover {
	text-decoration: none;
}

/* Fokusrahmen im Kopfbereich nur bei Tastaturbedienung zeigen, nicht bei Mausklick */
.gf-kopf a:focus {
	outline: none;
}

.gf-kopf a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}

/* ── Punkt-Trenner: Linie · Punkt · Linie ── */
.gf-punkt {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 860px;
	margin-inline: auto;
}

.gf-punkt::before,
.gf-punkt::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--accent-6);
}

.gf-punkt span {
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
}

/* ── Baende-Galerie ── */
.gf-baende.wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	max-width: 860px;
	margin-inline: auto;
}

.gf-baende.wp-block-gallery .wp-block-image {
	margin: 0;
	width: auto !important;
}

.gf-baende.wp-block-gallery .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--accent-6);
}

@media (max-width: 700px) {
	.gf-baende.wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 460px) {
	.gf-baende.wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* ── Buchcover in den Band-Eintraegen ── */
.wp-block-image img[class*="wp-image-4"],
.wp-block-image img[class*="wp-image-5"],
.wp-block-image img[class*="wp-image-6"] {
	border: 1px solid var(--wp--preset--color--accent-6);
}

/* ── Spalten stapeln sauber, ohne haengende Trennlinie ── */
@media (max-width: 781px) {
	.wp-block-column[style*="border-left"] {
		border-left: 0 !important;
		padding-left: 0 !important;
		border-top: 1px solid var(--wp--preset--color--accent-6);
		padding-top: var(--wp--preset--spacing--40);
	}
}
