/*
Theme Name:   Zeit
Theme URI:    https://zeit.engineering
Description:  Zeit theme: child-theme fork of Inspiro 2.1.7 for zahner-fahrwerk.ch. Koenigsblau token ramp anchored to the Zahner logo (#1d3d7d), typography and contrast fixes, and zeit.engineering footer credit.
Author:       zeit.engineering
Author URI:   https://zeit.engineering
Template:     inspiro
Version:      1.0.0
Requires PHP: 7.4
Requires at least: 5.3
Text Domain:   zeit
*/

/* ------------------------------------------------------------------
Tokens. One source of truth.

Primary ramp comes from the registered "koenigsblau" Inspiro palette
(functions.php + config/theme-mods.json) via --inspiro-*-color.
Neutral, on-dark, spacing (4pt ladder), radius and motion live here.
------------------------------------------------------------------- */
:root {
	--zf-blue: var(--inspiro-primary-color, #1d3d7d);
	--zf-blue-hover: var(--inspiro-secondary-color, #2e5cb8);
	--zf-blue-deep: var(--inspiro-tertiary-color, #142a59);
	--zf-blue-accent: var(--inspiro-accent-color, #3b6fd4);
	--zf-blue-ink: #0e1d3d;
	--zf-blue-tint: #edf1fa;
	--zf-ink: #1a1f2b;
	--zf-muted: #4b5568;
	--zf-on-dark: #c5ccea;
	--zf-on-dark-link: #a8bff5;
	--zf-space-1: 0.25rem;
	--zf-space-2: 0.5rem;
	--zf-space-3: 0.75rem;
	--zf-space-4: 1rem;
	--zf-space-6: 1.5rem;
	--zf-space-8: 2rem;
	--zf-radius-sm: 4px;
	--zf-radius-md: 8px;
	--zf-motion: 200ms;
}

/* ------------------------------------------------------------------
Base and typography.
Body >= 16px everywhere (incl. mobile), nothing under 14px, softer dark
slate ink on light surfaces, tighter heading line-height and tracking.
------------------------------------------------------------------- */
html,
body {
	overflow-x: clip;
}

body {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--zf-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title {
	line-height: 1.2;
	color: var(--zf-ink);
}

h1,
.entry-title,
.page-title {
	letter-spacing: -0.025em;
}

h2 {
	letter-spacing: -0.02em;
}

h3 {
	letter-spacing: -0.01em;
}

h6,
.entry-content h6,
.page-content h6,
.comment-content h6,
.entry-meta,
.wp-caption-text,
figcaption,
.site-info {
	font-size: 0.875rem;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer .widget-title,
.site-footer .title,
.side-nav h1,
.side-nav h2,
.side-nav h3,
.wp-block-cover:not(.is-light) h1,
.wp-block-cover:not(.is-light) h2,
.wp-block-cover:not(.is-light) h3 {
	color: #fff;
}

/* Preserved from legacy Customizer custom_css post 7044 */
img.is-style-round,
img .is-style-round {
	border-radius: 5px;
}

/* ------------------------------------------------------------------
Header and navigation.
Keep a solid/frosted Koenigsblau bar on top of the homepage hero so the
white-bordered logo and white nav links stay >= 10:1 from first paint.
------------------------------------------------------------------- */
.has-header-image .navbar,
.has-header-video .navbar {
	background-color: rgba(29, 61, 125, 0.94);
	background-image: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.headroom--not-top .navbar,
.has-header-image.inspiro-front-page .headroom--not-top .navbar,
.has-header-video.inspiro-front-page .headroom--not-top .navbar {
	background-color: rgba(20, 42, 89, 0.96);
	box-shadow: 0 2px 12px rgba(14, 29, 61, 0.24);
}

.navbar-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	transition: border-color var(--zf-motion) ease-out, color var(--zf-motion) ease-out;
}

.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current_page_item > a,
.navbar-nav > li.current-menu-parent > a {
	border-bottom: 2px solid #fff;
}

.navbar-nav > li > a:hover {
	border-bottom: 2px solid var(--zf-on-dark);
	opacity: 1;
}

.navbar-toggle {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* ------------------------------------------------------------------
Links and buttons.
Clear affordance, >= 44px touch targets, full state set.
------------------------------------------------------------------- */
.entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--zf-blue);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color var(--zf-motion) ease-out;
}

.entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover {
	color: var(--zf-blue-hover);
	text-decoration-thickness: 2px;
}

.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition:
		background-color var(--zf-motion) ease-out,
		border-color var(--zf-motion) ease-out,
		color var(--zf-motion) ease-out,
		transform 120ms ease-out;
}

.wp-block-button__link:active,
.wp-element-button:active,
input[type="submit"]:active {
	transform: translateY(1px);
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background-color: var(--zf-blue);
	border: 2px solid var(--zf-blue);
	color: #fff;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background-color: var(--zf-blue-deep);
	border-color: var(--zf-blue-deep);
	color: #fff;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-white-color) {
	border: 2px solid var(--zf-blue);
	color: var(--zf-blue);
	background-color: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-white-color):hover {
	background-color: var(--zf-blue);
	border-color: var(--zf-blue);
	color: #fff;
}

.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link.has-white-color {
	border: 2px solid #fff;
	color: #fff;
}

.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link.has-white-color:hover {
	background-color: var(--zf-blue);
	border-color: var(--zf-blue);
	color: #fff;
}

/* ------------------------------------------------------------------
Footer. 10.7:1 text and 9.8:1 links on #0e1d3d (was 3.6:1).
------------------------------------------------------------------- */
.site-footer {
	color: var(--zf-on-dark);
	border-top: 3px solid var(--zf-blue);
}

.site-footer .footer-widgets a,
.site-footer .site-info a {
	color: var(--zf-on-dark-link);
	display: inline-block;
	/* keeps inline flow, grows the hit area to the 44px minimum */
	padding-block: var(--zf-space-3);
	margin-block: calc(-1 * var(--zf-space-3));
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.site-footer .footer-widgets a:hover,
.site-footer .site-info a:hover {
	color: #fff;
}

/* Emoji replaced by functions.php; same line weight as the text colour. */
.zf-icon {
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.18em;
	margin-right: 0.3em;
}

.site-info .site-credit {
	color: var(--zf-on-dark);
}

/* ------------------------------------------------------------------
Focus. Visible ring everywhere, >= 3:1 on light and dark surfaces.
------------------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--zf-blue);
	outline-offset: 2px;
}

:where(.navbar, .site-footer, .side-nav, .wp-block-cover) :where(a, button, [tabindex]):focus-visible {
	outline-color: #fff;
}

/* ------------------------------------------------------------------
Motion. Feedback only, and none when the visitor asks for less.
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
