/*
Theme Name: Mensch und Berge
Theme URI: https://www.menschundberge.com/
Author: Frei & Zeit
Author URI: https://www.freiundzeit.it/
Description: Block-Theme für menschundberge.com.
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 8.1
Version: 0.1.1
License: proprietary
Text Domain: mub
*/

/* ---------- Basis ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

:where(a, button, summary):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--weiss);
}

/* ---------- Block-Styles ---------- */

/* core/group → „Intro“: zentrierter, größerer Fließtext */
.is-style-mub-intro {
	text-align: center;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

/* core/paragraph → „Kompetenzen“: fettes Label in eigener Zeile */
.is-style-mub-kompetenzen strong:first-child {
	display: block;
	font-weight: 700;
}

/* core/quote → „Profilzitat“: große Anführungszeichen */
.wp-block-quote.is-style-mub-profilzitat {
	border: 0;
	padding: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
}
.wp-block-quote.is-style-mub-profilzitat::before,
.wp-block-quote.is-style-mub-profilzitat::after {
	display: block;
	font-size: 4em;
	line-height: 0.6;
	font-weight: 700;
}
.wp-block-quote.is-style-mub-profilzitat::before { content: "„"; }
.wp-block-quote.is-style-mub-profilzitat::after { content: "“"; margin-top: 0.4em; }

/* core/gallery → „Logos“: Partner-/Sponsorenlogos */
.wp-block-gallery.is-style-mub-logos {
	align-items: center;
	justify-content: center;
}
.wp-block-gallery.is-style-mub-logos .wp-block-image img {
	max-height: 70px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	transition: filter 0.2s;
}
.wp-block-gallery.is-style-mub-logos .wp-block-image a:is(:hover, :focus-visible) img {
	filter: none;
}

/* ---------- Logo ---------- */
.mub-logo {
	display: inline-block;
	line-height: 0;
}
.mub-logo img {
	width: clamp(180px, 22vw, 240px);
	height: auto;
}
.site-footer .mub-logo img {
	width: 160px;
}

/* Hero direkt unter dem Header: kein Abstand */
.wp-site-blocks > main > .entry-content > .wp-block-mub-hero:first-child,
main .wp-block-post-content > .wp-block-mub-hero:first-child {
	margin-top: 0;
}
