/*
Theme Name: Bibliothek Graenichen
Description: Child-Theme von Twenty Twenty-Five fuer die Gemeindebibliothek Graenichen. Uebernimmt Anmutung und Typografie der bisherigen Website (Times, Special Elite, schwarz/weiss, dreispaltig).
Author: alixon
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: biblio-gr
*/

/* ---------------------------------------------------------------
 * Grundraster: links Logo + Navigation, Mitte Inhalt, rechts
 * Symbolbild. Entspricht der alten Seite (200 / 460 / 260 px).
 * ------------------------------------------------------------- */
.bg-shell {
	display: grid;
	grid-template-columns: 200px minmax(0, 460px) 260px;
	justify-content: space-between;
	align-items: start;
	max-width: 990px;
	margin: 30px auto 0;
	padding: 0 16px 48px 30px;
	box-sizing: border-box;
}

.bg-shell > * {
	margin-block-start: 0 !important;
}

/* Alter "Kopfbereich" ueber dem Inhalt: luftiger Abstand oben. */
.bg-spalte-mitte {
	padding-top: 209px;
}

.bg-spalte-rechts img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------
 * Linke Spalte: Logo und Navigation
 * ------------------------------------------------------------- */
.bg-spalte-links .wp-block-site-logo img {
	height: auto;
}

.bg-spalte-links .wp-block-navigation {
	margin-top: 48px;
}

/* Leerzeile vor einer neuen Gruppe in der Navigation. */
.bg-spalte-links .wp-block-navigation-item.bg-abstand {
	margin-top: 24px;
}

.bg-spalte-links .wp-block-navigation .current-menu-item > a,
.bg-spalte-links .wp-block-navigation .current-menu-ancestor > a {
	font-weight: 700;
	text-decoration: none;
}

/* ---------------------------------------------------------------
 * Listen (Neuheiten, Events): Trennlinie nach jedem Eintrag
 * ------------------------------------------------------------- */
.bg-liste > li {
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.bg-liste .wp-block-post-featured-image {
	margin-bottom: 12px;
}

.bg-liste .wp-block-post-title {
	margin-top: 0;
}

.wp-block-post-excerpt__more-link {
	font-family: var(--wp--preset--font-family--verdana);
	font-size: var(--wp--preset--font-size--small);
}

/* Absaetze wie bisher: kein Abstand oben, 12 px unten. */
.bg-spalte-mitte p {
	margin-bottom: 12px;
}

.bg-spalte-mitte > footer {
	margin-top: 48px;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--contrast);
}

/* ---------------------------------------------------------------
 * Kleinere Bildschirme
 * ------------------------------------------------------------- */
@media (max-width: 1020px) {
	.bg-shell {
		grid-template-columns: 200px minmax(0, 1fr);
		column-gap: 30px;
		padding-right: 30px;
	}

	.bg-spalte-rechts {
		grid-column: 1;
		grid-row: 2;
		margin-top: 48px !important;
	}
}

@media (max-width: 700px) {
	.bg-shell {
		display: block;
		margin-top: 16px;
		padding: 0 16px 32px;
	}

	.bg-spalte-links {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
	}

	.bg-spalte-links .wp-block-site-logo img {
		max-width: 160px;
	}

	.bg-spalte-links .wp-block-navigation {
		margin-top: 0;
	}

	.bg-spalte-mitte {
		padding-top: 32px;
	}

	.bg-spalte-rechts {
		max-width: 260px;
		margin: 32px auto 0 !important;
	}
}
