/*
Theme Name: Kanzlei Gentz
Theme URI: https://example.invalid/gentz
Description: Child-Theme von Twenty Twenty-Five. Gestaltung nach dem Briefbogen der Kanzlei: weiß, schwarz, Kanzleiblau, Arial, zwei überlappende Quadrate. Wird von tools/build_themes.py erzeugt - nicht von Hand ändern, sondern in src/common ändern.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: gentz
*/

/* Zweck dieser Datei: Theme-Kopf (oben) und alle Gestaltung, die theme.json nicht abdeckt. */

/* ---------- Kopfbereich: grau, beim Scrollen fixiert; links Kontakt + Navigation, rechts Logo ---------- */
/* Der Header ist "position: fixed" (nicht "sticky"): das verhalten sich alle mobilen Browser gleich, auch Firefox für Android.
   --kopfhoehe hält darunter den Platz frei; Ersatzwerte hier, genaue Höhe setzt assets/js/kopfhoehe.js. */
:root {
	--kopfhoehe: 96px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	margin: 0;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.wp-site-blocks {
	padding-top: var(--kopfhoehe);
}

html {
	scroll-padding-top: calc(var(--kopfhoehe) + 0.75rem);
}

.site-header {
	background: var(--wp--preset--color--hellgrau);
	border-bottom: 1px solid #d3d9e6;
	padding-block: 0.6rem;
	padding-inline: 1.5rem;
}

.site-header__inner {
	gap: 1.5rem;
}

.site-header__left {
	flex: 1 1 auto;
	min-width: 0;
}

.site-header__kontakt {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	line-height: 1.35;
}

.kontakt-kurz {
	display: none;
}

.site-logo {
	margin: 0;
	flex: 0 0 auto;
}

/* Feste Logohöhe (statt fester Breite): Header und Quadrate sind auf beiden Webseiten gleich groß,
   auch wenn der Name unterschiedlich lang ist. */
.site-logo img {
	display: block;
	width: auto;
	height: 76px;
}

.site-header .wp-block-navigation {
	font-size: 0.95rem;
}

.site-header .wp-block-navigation__container {
	gap: 0.3rem 1.3rem;
}

.site-header .wp-block-navigation a {
	text-decoration: none;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--kanzleiblau);
	text-decoration: underline;
}

/* ---------- Info-Spalte (Kontaktblock wie rechts auf dem Briefbogen) ---------- */
.info-column strong,
.page-section strong {
	font-weight: 700;
}

.info-column strong a {
	color: inherit;
	text-decoration: none;
}

.info-column strong a:hover {
	color: var(--wp--preset--color--kanzleiblau);
	text-decoration: underline;
}

.info-column p {
	margin-block: 0 1.1em;
	font-size: 0.95rem;
	line-height: 1.35;
}

/* ---------- Absenderzeile (unterstrichen, klein, blau) ---------- */
.sender-line {
	font-size: 0.8rem;
	color: var(--wp--preset--color--kanzleiblau);
	text-decoration: underline;
	margin-block: 0 1em;
}

/* ---------- Fußbereich: grau, schwarze Oberkante, Zier-Quadrate unten rechts (wie auf der Visitenkarte) ---------- */
.site-footer {
	margin-top: var(--wp--preset--spacing--70);
	padding: var(--wp--preset--spacing--50) 1.5rem var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--hellgrau) url("assets/svg/ornament.svg") no-repeat right bottom / 150px auto;
	border-top: 3px solid var(--wp--preset--color--schwarz);
}

.site-footer p {
	font-size: 0.9rem;
	margin-block: 0 0.6em;
}

/* ---------- Zierlinie unter Überschriften: kleines blaues Quadrat ---------- */
h1.wp-block-heading::before,
h1.wp-block-post-title::before {
	content: "";
	display: block;
	width: 0.9rem;
	height: 0.9rem;
	margin-bottom: 0.6rem;
	background: var(--wp--preset--color--kanzleiblau);
}

/* ---------- Kleine Bildschirme: kompakter, fixierter Kopf (Logo rechts, Kurzkontakt + Menü-Symbol links) ---------- */
@media (max-width: 781px) {
	.kontakt-lang {
		display: none;
	}

	.kontakt-kurz {
		display: block;
		font-size: 0.82rem;
	}

	:root {
		--kopfhoehe: 99px;
	}

	.site-header {
		padding-inline: 1rem;
	}

	.site-logo img {
		height: 56px;
	}

	.site-footer {
		padding-bottom: 150px;
	}
}

/* ---------- One-Pager: Abschnitte und Sprungmarken ---------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.page-section {
	margin-top: var(--wp--preset--spacing--60);
}

.page-section h2::before {
	content: "";
	display: block;
	width: 0.7rem;
	height: 0.7rem;
	margin-bottom: 0.5rem;
	background: var(--wp--preset--color--schwarz);
}

.quelle,
.demo-hinweis {
	font-size: 0.8rem;
	color: #444;
}

/* ---------- Akkordeon (Block "Details"): schwarze Trennlinien, blaues Aufklapp-Zeichen ---------- */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--schwarz);
	padding-block: 0.7rem;
}

.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--schwarz);
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
}

.wp-block-details summary::marker {
	color: var(--wp--preset--color--kanzleiblau);
}

.wp-block-details p {
	margin-block: 0.3rem 0;
}

.wp-block-details {
	margin-block: 0;
}

/* Sammel-Block "Weitere Fortbildungen/Veröffentlichungen": blaue Linie, Einträge eingerückt */
.details-weitere {
	border-top: 3px solid var(--wp--preset--color--kanzleiblau);
}

.details-weitere > .wp-block-details {
	margin-left: 1.2rem;
}

.details-weitere > summary {
	color: var(--wp--preset--color--kanzleiblau);
}

/* ---------- Porträt im Kopfbereich der Seite: einheitliches Format 4:5, auch bei unterschiedlichen Fotos ---------- */
.portrait {
	margin: 0;
}

.portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* ---------- Kontaktformular: eckige Felder, schwarze Linien, blauer Fokus ---------- */
.kontaktformular {
	max-width: 640px;
}

.kontaktformular p {
	margin: 0 0 1rem;
}

.kontaktformular label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
	font-size: 0.95rem;
}

.kontaktformular input[type="text"],
.kontaktformular input[type="email"],
.kontaktformular input[type="tel"],
.kontaktformular textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0.7rem;
	font: inherit;
	color: var(--wp--preset--color--schwarz);
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--schwarz);
	border-radius: 0;
}

.kontaktformular input:focus,
.kontaktformular textarea:focus {
	outline: 3px solid var(--wp--preset--color--kanzleiblau);
	outline-offset: 1px;
}

.kontaktformular .kf-einwilligung input {
	margin-top: 0.3rem;
	flex: 0 0 auto;
}

.kontaktformular .kf-einwilligung {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.kontaktformular .kf-einwilligung label {
	font-weight: 400;
	margin: 0;
}

.kontaktformular .kf-hinweis {
	font-size: 0.85rem;
	color: #444;
}

/* Honigtopf: für Menschen unsichtbar (nicht display:none, damit einfache Bots es ausfüllen) */
.kontaktformular .kf-falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kf-meldung {
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 0 1.2rem;
	padding: 0.8rem 1rem;
	border-left: 6px solid var(--wp--preset--color--kanzleiblau);
	background: var(--wp--preset--color--hellgrau);
}

.kf-meldung--fehler {
	border-left-color: var(--wp--preset--color--schwarz);
	font-weight: 700;
}
