/*
Theme Name: hensch
Theme URI: https://hens.ch
Author: Jean-Marc Hensch
Description: Schlankes Block-Theme für hens.ch – Kolumnen, Kultur und Quartierführungen. Schriften: Source Serif 4 und Source Sans 3 (SIL Open Font License), lokal eingebunden.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hensch
*/

/* Grundlagen ------------------------------------------------------------- */

body {
	border-top: 6px solid var(--wp--preset--color--blau);
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration-color: var(--wp--preset--color--blau);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--blau);
	outline-offset: 2px;
}

::selection {
	background: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

/* Kopfzeile -------------------------------------------------------------- */

.hh-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.hh-brand img {
	width: 52px;
	height: 52px;
	display: block;
}

.hh-brand__name {
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.1;
}

.hh-brand__claim {
	display: block;
	margin-top: 3px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau);
}

.wp-block-navigation a {
	text-decoration: none;
	padding: 10px 0;
}

.wp-block-navigation .current-menu-item > a,
.wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--wp--preset--color--blau);
}

/* Kleine Textformen ------------------------------------------------------ */

.hh-kicker {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau);
}

.hh-kicker a {
	color: inherit;
	text-decoration: none;
}

.hh-rule {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hh-rule::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--wp--preset--color--linie);
}

.hh-meta {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--grau);
}

.hh-meta a {
	color: inherit;
}

.hh-meta--rule {
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--linie);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.hh-lead {
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: #2e2b27;
}

/* Schlagworte als Pillen ------------------------------------------------- */

.hh-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
}

.hh-chips__label,
.hh-chips .wp-block-post-terms__prefix {
	color: var(--wp--preset--color--grau);
	margin-right: 6px;
}

.hh-chips a {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #c9c1b2;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.2;
}

.hh-chips a:hover {
	border-color: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--blau);
}

.hh-chips .wp-block-post-terms__separator {
	display: none;
}

/* Beitragslisten --------------------------------------------------------- */

.hh-lead-block {
	border-left: 4px solid var(--wp--preset--color--blau);
	padding-left: 28px;
}

.hh-grid .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--linie);
	padding-top: 20px;
}

.hh-grid--akzent .wp-block-post {
	border-top: 3px solid var(--wp--preset--color--blau);
}

.hh-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.hh-card {
	border-top: 3px solid var(--wp--preset--color--blau);
	padding-top: 18px;
}

.hh-card__title {
	margin: 8px 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

.hh-card__title a {
	text-decoration: none;
}

.hh-card__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.55;
}

.hh-zeilen .wp-block-post {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.hh-zeilen .wp-block-post-date {
	flex: 0 0 150px;
}

.hh-zeilen .wp-block-post-title {
	flex: 1 1 380px;
	margin: 0;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
}

/* Archiv ----------------------------------------------------------------- */

.hh-filter {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	margin-bottom: 24px;
	background: var(--wp--preset--color--sand);
}

.hh-filter .wp-block-search__inside-wrapper,
.hh-filter form {
	display: flex;
	gap: 10px;
	max-width: 640px;
}

.hh-jahr {
	padding-top: 28px;
}

.hh-jahr h2 {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--x-large);
}

.hh-jahr ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--wp--preset--color--blau);
}

.hh-jahr li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.hh-jahr li a {
	flex: 1 1 380px;
	min-width: 0;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.hh-jahr__datum {
	flex: 0 0 120px;
}

.hh-jahr__datum,
.hh-jahr__rubrik {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	color: var(--wp--preset--color--grau);
}

/* Quartierführungen ------------------------------------------------------ */

.hh-fakten {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
}

.hh-fakten dt {
	color: var(--wp--preset--color--grau);
}

.hh-fakten dd {
	margin: 0;
	font-weight: 600;
}

.hh-tourkarte {
	border-top: 4px solid var(--wp--preset--color--blau);
}

/* Formulare (Contact Form 7 und Suche) ----------------------------------- */

.wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.wpcf7 select,
.wpcf7 textarea,
.wp-block-search__input,
.hh-suche input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #8a837a;
	border-radius: 0;
	background: var(--wp--preset--color--papier);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 17px;
	color: var(--wp--preset--color--ink);
}

.wpcf7 label {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 17px;
}

.wpcf7 input[type="submit"],
.wp-block-search__button,
.hh-suche button {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--creme);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wp-block-search__button:hover {
	background: var(--wp--preset--color--blau);
}

/* Fusszeile -------------------------------------------------------------- */

.hh-footer a {
	color: var(--wp--preset--color--creme);
	text-decoration-color: rgba(247, 244, 238, 0.5);
}

.hh-footer a:hover {
	color: var(--wp--preset--color--weiss);
}

.hh-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 32px;
}

.hh-footer__nav a {
	padding: 10px 0;
}

/* Fussnoten -------------------------------------------------------------- */

.wp-block-footnotes {
	border-top: 1px solid var(--wp--preset--color--linie);
	padding-top: 16px;
}

sup.fn a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--sans);
}

/* Lebenslauf-Tabellen (Seite Über mich) ---------------------------------- */

.hh-cv table {
	border-collapse: collapse;
	width: 100%;
}

.hh-cv td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
	padding: 12px 0;
	vertical-align: top;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.hh-cv td:first-child {
	width: 150px;
	padding-right: 20px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	color: var(--wp--preset--color--grau);
	white-space: nowrap;
}

/* Fusszeile immer unten -------------------------------------------------- */

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:is(main) {
	flex: 1 0 auto;
}

.wp-site-blocks > footer {
	margin-top: auto;
}

.hh-suche {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 640px;
}

.hh-suche input {
	flex: 1 1 260px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Zwischentitel im Fliesstext deutlich kleiner als der Titel */
.wp-block-post-content h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2em; }
.wp-block-post-content h3 { font-size: var(--wp--preset--font-size--body); margin-top: 1.6em; }
