/*
 * 5.1 Kopf und 5.13 Fuß (Template Parts mit den Patterns hilke/kopf und hilke/fuss).
 * Werte „Handy · Desktop“ aus DESIGN.md.
 */

/* ---------- Kopf ---------- */

.hk-kopf {
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	background-color: var(--wp--preset--color--paper);
}

.hk-kopf-innen.hk-wrap {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
}

.hk-kopf-logo,
.hk-kopf-logo a {
	display: block;
	margin: 0;
}

/* Ganze Wortmarke, nie beschnitten: nur die Höhe ist fest. */
.hk-kopf-logo img {
	width: auto;
	height: 34px;
}

.hk-kopf-buttons {
	flex: none;
	margin: 0;
}

.hk-kopf-buttons .wp-block-button__link.wp-element-button {
	min-height: 44px;
	padding: 0 18px;
	font-size: 14px;
}

/* ---------- Fuß ---------- */

.hk-fuss {
	padding: 48px 0 36px;
	text-align: center;
}

.hk-fuss a {
	color: var(--wp--preset--color--white);
}

.hk-fuss a:hover {
	color: var(--wp--preset--color--white);
	text-decoration-thickness: 2px;
}

.hk-fuss-raster {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Wortmarke als echter Text: beide Wörter gleich breit, ein Block. */
.hk-wortmarke {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin-bottom: 20px;
	font-family: var(--wp--preset--font-family--tan-nimbus);
	line-height: 1;
}

.hk-wortmarke p {
	line-height: 1;
}

.hk-wortmarke-oben {
	font-size: 52px;
}

.hk-wortmarke-unten {
	font-size: 32.3px;
}

.hk-herkunft {
	margin-bottom: 20px;
	font-size: 17px;
	text-align: center;
}

.hk-profile {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 24px;
	font-size: 16px;
	line-height: 1.4;
}

.hk-profile a,
.hk-rechtliches a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Trenner „ · “ zwischen Profilen und Mail (nur Handy, nur Deko). */
.hk-profile-mail::before {
	content: "\00a0·\00a0" / "";
}

.hk-rechtliches {
	font-size: 14px;
}

/* Linie über „Impressum · Datenschutz“, so breit wie der Inhalt. */
.hk-rechtliches > p {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 700px) {
	.hk-kopf-innen.hk-wrap {
		gap: 24px;
		padding-block: 14px;
	}

	.hk-kopf-logo img {
		height: 40px;
	}

	.hk-kopf-buttons .wp-block-button__link.wp-element-button {
		padding: 0 24px;
		font-size: 15px;
	}

	.hk-fuss {
		padding: 64px 0 40px;
	}

	.hk-wortmarke {
		gap: 6px;
	}

	.hk-wortmarke-oben {
		font-size: 64px;
	}

	.hk-wortmarke-unten {
		font-size: 39.7px;
	}

	.hk-herkunft {
		font-size: 19px;
	}

	.hk-profile {
		font-size: 17px;
	}

	.hk-rechtliches.hk-wrap {
		margin-top: 40px;
		font-size: 15px;
	}
}

/* Drei Spalten erst ab 861 px. */
@media (min-width: 861px) {
	.hk-fuss {
		text-align: left;
	}

	.hk-fuss-raster {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
		gap: 40px;
		align-items: center;
	}

	.hk-wortmarke {
		align-items: flex-start;
		margin-bottom: 0;
	}

	.hk-herkunft {
		margin-bottom: 0;
	}

	.hk-profile {
		flex-direction: column;
		align-items: flex-end;
		margin-bottom: 0;
		text-align: right;
	}

	.hk-profile-mail::before {
		content: none;
	}
}

/* Tippfläche des Logos mindestens 44 px hoch, ohne die Optik zu ändern. */
.hk-kopf-logo a {
	padding-block: 5px;
	margin-block: -5px;
}
