/*
 * Reusable component classes (see components.md).
 * Naming: .wilke-<component>, .wilke-<component>__<part>, .wilke-<component>--<variant>
 * Apply in Elementor via Advanced → CSS Classes.
 *
 * Order: layout helpers → text styles → buttons → header → footer → hero → section heading
 * → grid → cards → badge → spec table → CTA → breadcrumb → FAQ → placeholders.
 */

/* ── Layout helpers ───────────────────────────────────────── */

/* Centered content column with responsive side gutters. */
.wilke-container {
	width: 100%;
	max-width: calc(var(--wilke-content-max) + 2 * var(--wilke-gutter));
	margin-inline: auto;
	padding-inline: var(--wilke-gutter);
}

/* Standard vertical rhythm for a page section. */
.wilke-section {
	padding-block: var(--wilke-section-space);
}

.wilke-section--light { background-color: var(--wilke-color-bg-light); }

/* Follows another section with the same background: no double spacing. */
.wilke-section--flush-top { padding-block-start: 0; }

.wilke-section--dark {
	background-color: var(--wilke-color-dark);
	color: var(--wilke-color-white);
}

.wilke-section--dark :is(h1, h2, h3, h4, h5, h6) { color: var(--wilke-color-white); }

/* On dark backgrounds the bright brand green is readable (6.3:1) and the focus ring must stay visible. */
.wilke-section--dark {
	--wilke-color-focus: var(--wilke-color-brand-green);
}

.wilke-section--dark a:not(.wilke-btn) { color: var(--wilke-color-brand-green); }
.wilke-section--dark a:not(.wilke-btn):hover { color: var(--wilke-color-white); }

/* ── Frame: precise grid lines around the content (design.md §6) ──
 * Two thin vertical lines run 24px outside the content edges through every section, hero and the footer;
 * sections are separated by full-width hairlines; small "+" marks sit where the lines cross.
 * Drawn with backgrounds only (no extra markup), so it works for theme templates and Elementor containers alike.
 * Tablet and desktop only — on phones the gutter is too narrow for it.
 */

@media (min-width: 768px) {
	.wilke-section,
	.wilke-hero,
	.wilke-footer {
		/* Content edge = max(gutter, half of the space beside the 1280px column); line sits 24px further out. */
		--wilke-frame-x: calc(max(var(--wilke-gutter), 50% - var(--wilke-content-max) / 2) - var(--wilke-frame-inset));
		--wilke-frame-line: var(--wilke-color-border);
		position: relative;
		background-image:
			linear-gradient(var(--wilke-frame-line), var(--wilke-frame-line)),
			linear-gradient(var(--wilke-frame-line), var(--wilke-frame-line));
		background-repeat: no-repeat;
		background-size: 1px 100%;
		background-position: left var(--wilke-frame-x) top 0, right var(--wilke-frame-x) top 0;
	}

	.wilke-section--dark { --wilke-frame-line: #2e2e2e; }

	/* Hairline between sections + "+" marks on both frame lines. */
	.wilke-section:not(.wilke-section--flush-top),
	.wilke-footer { border-top: var(--wilke-border-width) solid var(--wilke-color-border); }

	.wilke-section:not(.wilke-section--flush-top)::after,
	.wilke-footer::after {
		--wilke-mark: var(--wilke-color-frame-mark);
		content: "";
		position: absolute;
		top: -9px;
		left: 0;
		right: 0;
		z-index: 1;
		height: 17px;
		pointer-events: none;
		background-image:
			linear-gradient(var(--wilke-mark), var(--wilke-mark)),
			linear-gradient(var(--wilke-mark), var(--wilke-mark)),
			linear-gradient(var(--wilke-mark), var(--wilke-mark)),
			linear-gradient(var(--wilke-mark), var(--wilke-mark));
		background-repeat: no-repeat;
		background-size: 17px 1px, 1px 17px, 17px 1px, 1px 17px;
		background-position:
			left calc(var(--wilke-frame-x) - 8px) top 8px,
			left var(--wilke-frame-x) top 0,
			right calc(var(--wilke-frame-x) - 8px) top 8px,
			right var(--wilke-frame-x) top 0;
	}
}

/* ── Text styles ──────────────────────────────────────────── */

/* Small uppercase label above a heading, e.g. "SOFTWARE". */
.wilke-eyebrow {
	display: block;
	margin-block-end: var(--wilke-space-sm);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	font-weight: var(--wilke-weight-medium);
	letter-spacing: var(--wilke-tracking-wide);
	text-transform: uppercase;
	color: var(--wilke-color-text-secondary);
}

/* Larger intro paragraph under a section heading. */
.wilke-lead {
	font-size: var(--wilke-text-lead);
	line-height: var(--wilke-leading-body);
	color: var(--wilke-color-text-secondary);
	max-width: var(--wilke-text-max);
}

/* Technical / specification text (values, part numbers, interfaces). */
.wilke-spec {
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-spec);
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

/* ── Buttons ──────────────────────────────────────────────── */

.wilke-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wilke-space-xs);
	min-height: 44px; /* touch target (WCAG 2.2: ≥24px; we keep 44px) */
	padding: 0.625rem 1.25rem;
	font-family: var(--wilke-font-sans);
	font-size: var(--wilke-text-button);
	font-weight: var(--wilke-weight-medium);
	line-height: var(--wilke-leading-snug);
	text-decoration: none;
	border: var(--wilke-border-width) solid transparent;
	border-radius: var(--wilke-radius-pill);
	cursor: pointer;
	transition:
		background-color var(--wilke-duration-fast) var(--wilke-ease),
		border-color var(--wilke-duration-fast) var(--wilke-ease),
		color var(--wilke-duration-fast) var(--wilke-ease);
}

/* Primary: one main action per section. Wilke green with dark text (7.6:1 — white text on green fails contrast). */
.wilke-btn--primary {
	background-color: var(--wilke-color-primary);
	color: var(--wilke-color-on-primary);
}

.wilke-btn--primary:hover,
.wilke-btn--primary:focus-visible {
	background-color: var(--wilke-color-primary-hover);
	color: var(--wilke-color-white);
}

.wilke-section--dark .wilke-btn--primary:hover,
.wilke-section--dark .wilke-btn--primary:focus-visible {
	background-color: var(--wilke-color-white);
	color: var(--wilke-color-dark);
}

/* Secondary: quiet outline, for supporting actions. */
.wilke-btn--secondary {
	background-color: var(--wilke-color-white);
	border-color: var(--wilke-color-border-strong);
	color: var(--wilke-color-text);
}

.wilke-btn--secondary:hover,
.wilke-btn--secondary:focus-visible {
	background-color: var(--wilke-color-bg-muted);
	border-color: var(--wilke-color-text-secondary);
	color: var(--wilke-color-text);
}

.wilke-section--dark .wilke-btn--secondary {
	background-color: transparent;
	border-color: #5c5c5c;
	color: var(--wilke-color-white);
}

.wilke-section--dark .wilke-btn--secondary:hover,
.wilke-section--dark .wilke-btn--secondary:focus-visible {
	background-color: var(--wilke-color-white);
	color: var(--wilke-color-dark);
}

.wilke-btn--small {
	min-height: 36px;
	padding: 0.375rem 0.875rem;
	font-size: var(--wilke-text-small);
}

/* Text link with arrow, for tertiary actions ("Mehr erfahren →"). */
.wilke-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wilke-space-xs);
	font-weight: var(--wilke-weight-medium);
	text-decoration: none;
}

.wilke-link-arrow::after {
	content: "→";
	transition: transform var(--wilke-duration-fast) var(--wilke-ease);
}

.wilke-link-arrow:hover::after { transform: translateX(3px); }

/* Pointer: one quiet line that sends visitors from a "twin" page to the right one ("Sie suchen …? → Seite").
   Several links stack as rows (e.g. "Wo Sie Beispiele finden"). */
.wilke-pointer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wilke-space-xs) var(--wilke-space-md);
	margin: 0;
	padding-block: var(--wilke-space-md);
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	font-size: 1.0625rem;
	color: var(--wilke-color-text-secondary);
}

.wilke-pointer + .wilke-pointer { border-top-style: dashed; }
.wilke-pointer a { color: var(--wilke-color-text); }
.wilke-pointer a:hover { color: var(--wilke-color-primary-text); }

/* ── Header ───────────────────────────────────────────────── */

.wilke-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wilke-color-white);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.admin-bar .wilke-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .wilke-header { top: 46px; }
}

.wilke-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wilke-space-md);
	min-height: var(--wilke-header-height);
}

.wilke-header__logo {
	display: flex;
	flex-shrink: 0;
}

.wilke-header__logo img {
	display: block;
	width: auto;
	height: 52px;
}

.wilke-header__nav { display: none; }

.wilke-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wilke-space-sm);
}

.wilke-header__cta { display: none; }

.wilke-nav__hint { display: none; }

/* Language switch (TranslatePress): "DE EN", current language on a light pill. */
.wilke-lang ul {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wilke-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 32px;
	padding-inline: var(--wilke-space-xs);
	border-radius: var(--wilke-radius-pill);
	font-size: var(--wilke-text-nav);
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-text-secondary);
	text-decoration: none;
}

.wilke-lang a:hover { color: var(--wilke-color-text); background-color: var(--wilke-color-bg-muted); }
.wilke-lang a[aria-current] { color: var(--wilke-color-text); background-color: var(--wilke-color-bg-muted); }

.wilke-header .wilke-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: var(--wilke-border-width) solid var(--wilke-color-border-strong);
	border-radius: var(--wilke-radius-pill);
	color: var(--wilke-color-text);
	cursor: pointer;
}

.wilke-header .wilke-header__toggle:hover,
.wilke-header .wilke-header__toggle:focus {
	border-color: var(--wilke-color-text);
	background: none;
	color: var(--wilke-color-text);
}

.wilke-header__toggle-icon,
.wilke-header__toggle-icon::before,
.wilke-header__toggle-icon::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform var(--wilke-duration-fast) var(--wilke-ease);
}

.wilke-header__toggle-icon { position: relative; }

.wilke-header__toggle-icon::before,
.wilke-header__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.wilke-header__toggle-icon::before { top: -6px; }
.wilke-header__toggle-icon::after { top: 6px; }

.wilke-header__toggle[aria-expanded="true"] .wilke-header__toggle-icon { background: transparent; }
.wilke-header__toggle[aria-expanded="true"] .wilke-header__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.wilke-header__toggle[aria-expanded="true"] .wilke-header__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Search button (magnifier, turns into × while the search bar is open) + search bar under the header. */
.wilke-header .wilke-header__search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--wilke-radius-pill);
	color: var(--wilke-color-text);
	cursor: pointer;
}

.wilke-header .wilke-header__search-toggle:hover,
.wilke-header .wilke-header__search-toggle:focus,
.wilke-header .wilke-header__search-toggle[aria-expanded="true"] { background: var(--wilke-color-bg-muted); color: var(--wilke-color-text); }

.wilke-header__search-close,
.wilke-header__search-toggle[aria-expanded="true"] .wilke-header__search-icon { display: none; }
.wilke-header__search-toggle[aria-expanded="true"] .wilke-header__search-close { display: block; }

.wilke-header__search {
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	padding-block: var(--wilke-space-md);
}

.wilke-header__search .wilke-search { max-width: 720px; margin: 0; }

/* Navigation list (shared by desktop and mobile). */
.wilke-nav,
.wilke-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wilke-nav a {
	display: block;
	font-size: var(--wilke-text-nav);
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-text);
	text-decoration: none;
}

.wilke-nav a:hover,
.wilke-nav .current-menu-item > a,
.wilke-nav .current-menu-ancestor > a { color: var(--wilke-color-primary-text); }

/* Mobile panel */
.wilke-header__panel {
	/* glass comes from the header layer behind it (motion.css) */
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	padding-block: var(--wilke-space-md) var(--wilke-space-lg);
	max-height: calc(100vh - var(--wilke-header-height));
	overflow-y: auto;
}

.wilke-header__panel .wilke-nav > li {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-header__panel .wilke-nav > li > a { padding-block: var(--wilke-space-sm); font-size: 1.0625rem; }

.wilke-header__panel .wilke-nav .sub-menu {
	grid-column: 1 / -1;
	padding-block-end: var(--wilke-space-sm);
	padding-inline-start: var(--wilke-space-sm);
	border-inline-start: 2px solid var(--wilke-color-brand-green);
}

.wilke-header__panel .wilke-nav .sub-menu a {
	padding-block: var(--wilke-space-xs);
	color: var(--wilke-color-text-secondary);
	font-weight: var(--wilke-weight-regular);
}

.wilke-header__panel .wilke-nav .sub-menu .current-menu-item > a {
	color: var(--wilke-color-primary-text);
	font-weight: var(--wilke-weight-medium);
}

/* Fold button next to a section in the mobile menu (added by navigation.js). */
.wilke-header .wilke-subtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--wilke-color-text);
	cursor: pointer;
}

.wilke-header .wilke-subtoggle:hover,
.wilke-header .wilke-subtoggle:focus { background: var(--wilke-color-bg-light); color: var(--wilke-color-text); }

.wilke-subtoggle::before {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform var(--wilke-duration-fast) var(--wilke-ease);
}

.wilke-subtoggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }

.wilke-header__panel .wilke-btn { width: 100%; margin-block-start: var(--wilke-space-md); }

/* Desktop */
@media (min-width: 1025px) {
	.wilke-header__nav { display: block; }
	.wilke-header__cta { display: inline-flex; }

	.wilke-header__toggle,
	.wilke-header__panel { display: none !important; }

	.wilke-header__nav .wilke-nav {
		display: flex;
		align-items: center;
		gap: var(--wilke-space-2xs);
	}

	/* Each item fills the header height, so the pointer can travel to the dropdown without losing it. */
	.wilke-header__nav .wilke-nav > li {
		position: relative;
		display: flex;
		align-items: center;
		min-height: var(--wilke-header-height);
	}

	/* Restrained links: grey, a soft pill behind on hover, black when active. */
	.wilke-header__nav .wilke-nav > li > a {
		padding: 0.375rem 0.75rem;
		border-radius: var(--wilke-radius-pill);
		color: var(--wilke-color-text-secondary);
		transition: background-color var(--wilke-duration-fast) var(--wilke-ease), color var(--wilke-duration-fast) var(--wilke-ease);
	}

	.wilke-header__nav .wilke-nav > li:hover > a,
	.wilke-header__nav .wilke-nav > li:focus-within > a { background-color: var(--wilke-color-bg-muted); color: var(--wilke-color-text); }

	.wilke-header__nav .wilke-nav > .current-menu-item > a,
	.wilke-header__nav .wilke-nav > .current-menu-ancestor > a { color: var(--wilke-color-text); }

	.wilke-header__nav .wilke-nav > .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		margin-inline-start: 0.4em;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-0.2em) rotate(45deg);
	}

	/* Dropdown */
	.wilke-header__nav .sub-menu {
		position: absolute;
		top: calc(100% - var(--wilke-space-xs));
		left: 0;
		min-width: 290px;
		padding: var(--wilke-space-xs);
		background: var(--wilke-glass-bg-strong);
		-webkit-backdrop-filter: var(--wilke-glass-blur-strong);
		backdrop-filter: var(--wilke-glass-blur-strong);
		border: var(--wilke-border-width) solid var(--wilke-color-border);
		border-radius: var(--wilke-radius-lg);
		box-shadow: var(--wilke-shadow-float);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition:
			opacity var(--wilke-duration-fast) var(--wilke-ease),
			transform var(--wilke-duration-fast) var(--wilke-ease),
			visibility var(--wilke-duration-fast);
	}

	.wilke-header__nav li:hover > .sub-menu,
	.wilke-header__nav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.wilke-header__nav .sub-menu a {
		display: flex;
		flex-direction: column;
		gap: 1px;
		padding: var(--wilke-space-xs) 0.75rem;
		border-radius: var(--wilke-radius-md);
		font-weight: var(--wilke-weight-regular);
		color: var(--wilke-color-text);
	}

	/* Hint under each dropdown item (menu item description): tells twins apart ("Downloads: Software zum Installieren"). */
	.wilke-header__nav .wilke-nav__hint {
		display: block;
		font-size: 0.8125rem;
		line-height: 1.35;
		color: var(--wilke-color-text-secondary);
	}

	.wilke-header__nav .sub-menu a:hover,
	.wilke-header__nav .sub-menu .current-menu-item > a { background: var(--wilke-color-bg-muted); color: var(--wilke-color-text); }
}

/* Between tablet and wide desktop the nav is tight (7 items + search + DE/EN + CTA): shrink gaps, never wrap. */
@media (min-width: 1025px) and (max-width: 1240px) {
	.wilke-header__inner { gap: var(--wilke-space-xs); }
	.wilke-header__actions { gap: var(--wilke-space-2xs); }
	.wilke-header__nav .wilke-nav { gap: 0; }
	.wilke-header__nav .wilke-nav > li > a { padding-inline: 0.5rem; }
	.wilke-header .wilke-header__search-toggle { width: 40px; height: 40px; }
	.wilke-lang a { min-width: 32px; }
}

@media (min-width: 1025px) {
	.wilke-header__nav .wilke-nav > li > a,
	.wilke-header__cta { white-space: nowrap; }
}

/* ── Footer ───────────────────────────────────────────────── */

.wilke-footer {
	background-color: var(--wilke-color-bg-light);
	color: var(--wilke-color-text);
	padding-block: var(--wilke-space-xl) var(--wilke-space-md);
}

.wilke-footer__grid {
	display: grid;
	gap: var(--wilke-space-lg);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.wilke-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.wilke-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

.wilke-footer__brand img {
	display: block;
	width: auto;
	height: 72px;
	margin-block-end: var(--wilke-space-md);
}

.wilke-footer__claim {
	margin-block-end: var(--wilke-space-md);
	font-size: var(--wilke-text-h4);
	font-weight: var(--wilke-weight-semibold);
	line-height: var(--wilke-leading-snug);
}

.wilke-footer__claim span { color: var(--wilke-color-primary-text); }

.wilke-footer address {
	font-style: normal;
	font-size: var(--wilke-text-small);
	line-height: 1.7;
	color: var(--wilke-color-text-secondary);
}

.wilke-footer__title {
	margin-block-end: var(--wilke-space-sm);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	font-weight: var(--wilke-weight-medium);
	letter-spacing: var(--wilke-tracking-wide);
	text-transform: uppercase;
	color: var(--wilke-color-text);
}

.wilke-footer ul { margin: 0; padding: 0; list-style: none; }
.wilke-footer li + li { margin-block-start: var(--wilke-space-xs); }

.wilke-footer a {
	color: var(--wilke-color-text-secondary);
	font-size: var(--wilke-text-small);
	text-decoration: none;
}

.wilke-footer a:hover { color: var(--wilke-color-text); }

.wilke-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wilke-space-sm);
	margin-block-start: var(--wilke-space-xl);
	padding-block-start: var(--wilke-space-md);
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	font-size: var(--wilke-text-small);
	color: var(--wilke-color-text-secondary);
}

.wilke-footer__legal { display: flex; flex-wrap: wrap; gap: var(--wilke-space-md); }
.wilke-footer__legal li + li { margin: 0; }

/* ── Hero ─────────────────────────────────────────────────── */

.wilke-hero {
	padding-block: var(--wilke-space-xl) var(--wilke-section-space);
}

.wilke-hero__grid {
	display: grid;
	gap: var(--wilke-space-xl);
	align-items: center;
}

@media (min-width: 1025px) {
	.wilke-hero__grid { grid-template-columns: 1.1fr 1fr; }
}

.wilke-hero__title { margin-block-end: var(--wilke-space-md); }
.wilke-hero__title span:not(.wilke-word) { color: var(--wilke-color-text-secondary); }

.wilke-hero__lead {
	max-width: 52ch;
	margin-block-end: var(--wilke-space-lg);
	font-size: var(--wilke-text-lead);
	color: var(--wilke-color-text-secondary);
}

.wilke-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-sm);
}

.wilke-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-xs) var(--wilke-space-lg);
	margin: var(--wilke-space-lg) 0 0;
	padding: var(--wilke-space-md) 0 0;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	list-style: none;
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-spec);
	color: var(--wilke-color-text-secondary);
}

.wilke-hero__facts li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: var(--wilke-space-xs);
	background: var(--wilke-color-brand-green);
}

.wilke-hero__media { aspect-ratio: 4 / 3; }

/* Compact hero for sub-pages. */
.wilke-hero--page {
	padding-block: var(--wilke-space-xl);
}

.wilke-hero--page .wilke-hero__title { font-size: var(--wilke-text-h2); }
.wilke-hero--page .wilke-hero__lead { margin-block-end: 0; }

/* ── Section heading ──────────────────────────────────────── */

.wilke-section-heading {
	max-width: 760px;
	margin-block-end: var(--wilke-space-lg);
}

.wilke-section-heading__title { margin-block-end: var(--wilke-space-sm); }
.wilke-section-heading__lead { margin: 0; }

.wilke-section-heading--center {
	margin-inline: auto;
	text-align: center;
}

.wilke-section-heading--split {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--wilke-space-md);
	max-width: none;
}

.wilke-section-heading--split > div { max-width: 760px; }

/* ── Grid ─────────────────────────────────────────────────── */

.wilke-grid {
	display: grid;
	gap: var(--wilke-grid-gap);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.wilke-grid--2,
	.wilke-grid--3,
	.wilke-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.wilke-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.wilke-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column text + media split. */
.wilke-split {
	display: grid;
	gap: var(--wilke-space-xl);
	align-items: center;
}

@media (min-width: 1025px) {
	.wilke-split { grid-template-columns: 1fr 1fr; }
	.wilke-split--reverse > :first-child { order: 2; }
}

/* ── Cards (shared base) ──────────────────────────────────── */

.wilke-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--wilke-color-white);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-lg);
	overflow: hidden;
	transition:
		border-color var(--wilke-duration-fast) var(--wilke-ease),
		box-shadow var(--wilke-duration-fast) var(--wilke-ease);
}

/* Clickable cards: flat hover — the surface tints, nothing jumps. */
.wilke-card:has(a):hover { background-color: var(--wilke-color-bg-light); }
.wilke-section--light .wilke-card:has(a):hover { background-color: var(--wilke-color-white); }
.wilke-section--light .wilke-card { background-color: var(--wilke-color-bg-light); }

/* Joined card grid: cards sit edge to edge and share their borders, like cells of one table.
 * The grid draws top + left, every card right + bottom — works with incomplete last rows too. */
.wilke-grid:has(> .wilke-card:not(.wilke-feature-card)) {
	gap: 0;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	border-left: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-grid > .wilke-card:not(.wilke-feature-card) {
	border: 0;
	border-right: var(--wilke-border-width) solid var(--wilke-color-border);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: 0;
}

.wilke-section--light .wilke-grid > .wilke-card:not(.wilke-feature-card) { background-color: var(--wilke-color-white); }
.wilke-section--light .wilke-grid > .wilke-card:has(a):hover { background-color: var(--wilke-color-bg-light); }

.wilke-card__media {
	aspect-ratio: 4 / 3;
	background-color: var(--wilke-color-bg-light);
	overflow: hidden;
}

.wilke-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wilke-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--wilke-space-xs);
	padding: var(--wilke-space-md);
}

.wilke-card__title {
	margin: 0;
	font-size: var(--wilke-text-h4);
}

.wilke-card__text {
	margin: 0;
	color: var(--wilke-color-text-secondary);
}

/* Whole card clickable via the title link. */
.wilke-card__link {
	color: inherit;
	text-decoration: none;
}

.wilke-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wilke-card__more {
	margin-block-start: auto;
	padding-block-start: var(--wilke-space-sm);
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-primary-text);
}

.wilke-card__more::after { content: " →"; }

/* Product card */
.wilke-product-card .wilke-card__media { aspect-ratio: 1 / 1; }

.wilke-product-card__specs {
	margin: var(--wilke-space-xs) 0 0;
	padding: var(--wilke-space-sm) 0 0;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
	list-style: none;
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-spec);
	color: var(--wilke-color-text-secondary);
}

.wilke-product-card__specs li + li { margin-block-start: var(--wilke-space-2xs); }

/* Feature card: no image, top rule + green marker. */
.wilke-feature-card,
.wilke-section--light .wilke-feature-card {
	border: 0;
	border-top: var(--wilke-border-width) solid var(--wilke-color-text);
	border-radius: 0;
	background: transparent;
}

.wilke-feature-card .wilke-card__body { padding: var(--wilke-space-md) 0 0; }

.wilke-feature-card__icon {
	display: block;
	width: 12px;
	height: 12px;
	margin-block-end: var(--wilke-space-sm);
	background: var(--wilke-color-brand-green);
}

/* Card image from a small real photo (old site, product cut-out on white): whole, never enlarged. */
.wilke-card__media--contain { background-color: var(--wilke-color-white); border-bottom: var(--wilke-border-width) solid var(--wilke-color-border); }
.wilke-card__media--contain img { object-fit: scale-down; padding: var(--wilke-space-sm); }

/* Flagship card ([wilke_flagships]): the main Tiger modules, larger photo + badge. */
.wilke-flagship-card .wilke-card__media { aspect-ratio: 4 / 3; }
.wilke-flagship-card .wilke-badge { margin-block-end: var(--wilke-space-xs); }
.wilke-flagship-card .wilke-card__title { font-size: var(--wilke-text-h3, 1.5rem); }

/* Application card: image-led. */
.wilke-application-card .wilke-card__media { aspect-ratio: 16 / 10; }

/* Success story card */
.wilke-story-card .wilke-card__media { aspect-ratio: 16 / 9; }

/* ── Badge ────────────────────────────────────────────────── */

.wilke-badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	padding: 0.2rem 0.5rem;
	font-family: var(--wilke-font-mono);
	font-size: 0.75rem;
	font-weight: var(--wilke-weight-medium);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--wilke-radius-pill);
	background: var(--wilke-color-bg-muted);
	color: var(--wilke-color-text);
}

.wilke-badge--current { background: var(--wilke-color-primary); color: var(--wilke-color-on-primary); }
.wilke-badge--established { background: var(--wilke-color-text); color: var(--wilke-color-white); }

/* ── Technical specification table ────────────────────────── */

.wilke-spec-table { overflow-x: auto; }

.wilke-spec-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wilke-text-small);
}

.wilke-spec-table th,
.wilke-spec-table td {
	padding: var(--wilke-space-sm);
	text-align: left;
	vertical-align: top;
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-spec-table th {
	width: 35%;
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-text-secondary);
}

.wilke-spec-table td {
	font-family: var(--wilke-font-mono);
	font-variant-numeric: tabular-nums;
}

/* Comparison (feature + 2 or more products as columns): fits phone width instead of scrolling. */
.wilke-spec-table--compare thead th {
	width: auto;
	color: var(--wilke-color-text);
}

.wilke-spec-table--compare th[scope="row"] {
	width: 30%;
	hyphens: auto;
}

@media (max-width: 767px) {
	.wilke-spec-table--compare th,
	.wilke-spec-table--compare td { padding-inline: var(--wilke-space-2xs); }
}

/* Plain: names instead of technical values (e.g. distributors on Kontakt), so no mono. */
.wilke-spec-table--plain td { font-family: inherit; }

/* Tiger Multitasking logo: family mark above the Tiger sections (home generations, Produkte comparison). */
.wilke-family-logo { margin: 0 0 var(--wilke-space-sm); line-height: 0; }
.wilke-family-logo img { display: block; width: auto; height: 44px; }
.wilke-page-content > .wilke-family-logo { margin-top: var(--wilke-space-xl); }
.wilke-page-content > .wilke-family-logo + .wilke-heading--group { margin-top: 0; }

@media (min-width: 768px) {
	.wilke-family-logo img { height: 56px; }
}

/* Tiger modules compared (Produkte overview): grouped column heads like a data sheet; scrolls sideways on
   phones inside its own box with the row labels fixed on the left. */
.wilke-family table { min-width: 860px; }

.wilke-family th,
.wilke-family td { padding: var(--wilke-space-sm) var(--wilke-space-sm); }

.wilke-family tbody th[scope="row"],
.wilke-family thead td {
	position: sticky;
	left: 0;
	z-index: 1;
	width: 14%;
	background: var(--wilke-color-white);
}

.wilke-family thead th { width: auto; color: var(--wilke-color-text); vertical-align: bottom; }
.wilke-family thead tr > td { border-top: 0; border-bottom: 0; }

/* (long selector: wins over Hello's "table thead:first-child tr:first-child th" border) */
.wilke-family thead tr:first-child > .wilke-family__group {
	padding-block: var(--wilke-space-xs);
	border-top: 3px solid var(--wilke-color-text);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wilke-family thead tr:first-child > .wilke-family__group--current { border-top-color: var(--wilke-color-brand-green); }
.wilke-family thead tr:first-child > .wilke-family__group + .wilke-family__group { border-left: var(--wilke-border-width) solid var(--wilke-color-border); }

.wilke-family thead tr:last-child th {
	font-family: var(--wilke-font-sans);
	font-size: var(--wilke-text-body);
	font-weight: var(--wilke-weight-semibold);
	border-bottom: 2px solid var(--wilke-color-text);
}

.wilke-page-content .wilke-family thead a { color: inherit; background: none; }
.wilke-page-content .wilke-family thead a:hover { color: var(--wilke-color-primary-text); }
.wilke-family thead a::after { content: " →"; color: var(--wilke-color-primary-text); }

@media (max-width: 767px) {
	.wilke-family table { min-width: 720px; }
	.wilke-family th,
	.wilke-family td { padding: var(--wilke-space-xs); }
	.wilke-family tbody th[scope="row"],
	.wilke-family thead td { width: 6.5rem; hyphens: auto; border-right: var(--wilke-border-width) solid var(--wilke-color-border); }
}

/* First module column (current generation) slightly tinted, the line runs down the whole table. */
.wilke-family :is(tbody td, thead tr:last-child th):nth-child(2) { background: var(--wilke-color-bg-light); }

/* Key figures (product pages, "auf einen Blick"): big values in a joined row, label below. */
.wilke-keyfigures {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: var(--wilke-space-xl) 0 0;
	padding: 0;
	list-style: none;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-keyfigures li {
	display: flex;
	flex-direction: column;
	gap: var(--wilke-space-2xs);
	padding: var(--wilke-space-md) var(--wilke-space-sm) var(--wilke-space-md) 0;
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-keyfigures li:nth-child(even) { padding-left: var(--wilke-space-sm); border-left: var(--wilke-border-width) solid var(--wilke-color-border); }

.wilke-keyfigures__value {
	font-size: var(--wilke-text-h3);
	font-weight: var(--wilke-weight-semibold);
	line-height: 1.1;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	color: var(--wilke-color-text);
}

.wilke-keyfigures__label {
	font-size: var(--wilke-text-small);
	line-height: 1.4;
	color: var(--wilke-color-text-secondary);
}

.wilke-keyfigures__more { margin: var(--wilke-space-sm) 0 0; font-size: var(--wilke-text-small); }

@media (min-width: 1025px) {
	.wilke-keyfigures { grid-template-columns: repeat(4, 1fr); }
	.wilke-keyfigures li { padding-inline: var(--wilke-space-md); }
	.wilke-keyfigures li:first-child { padding-left: 0; }
	.wilke-keyfigures li + li { border-left: var(--wilke-border-width) solid var(--wilke-color-border); }
}

/* Page navigation bar (product pages): sticks under the compact header (60 px), links to the sections,
   the current one underlined in green (navigation.js), inquiry button right (tablet + desktop). */
.wilke-subnav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wilke-space-md);
}

.wilke-subnav__list {
	display: flex;
	gap: var(--wilke-space-2xs);
	margin: 0 calc(-1 * var(--wilke-space-sm));
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.wilke-subnav__list::-webkit-scrollbar { display: none; }

.wilke-subnav__list a {
	display: block;
	padding: 0.875rem var(--wilke-space-sm) calc(0.875rem - 2px);
	border-bottom: 2px solid transparent;
	font-size: var(--wilke-text-nav);
	font-weight: var(--wilke-weight-medium);
	white-space: nowrap;
	color: var(--wilke-color-text-secondary);
	text-decoration: none;
	transition: color var(--wilke-duration-fast) var(--wilke-ease), border-color var(--wilke-duration-fast) var(--wilke-ease);
}

.wilke-subnav__list a:hover { color: var(--wilke-color-text); }
.wilke-subnav__list a[aria-current="true"] { color: var(--wilke-color-text); border-bottom-color: var(--wilke-color-brand-green); }

.wilke-subnav__cta { display: none; flex-shrink: 0; }

@media (min-width: 768px) {
	.wilke-subnav__cta { display: inline-flex; }
}

/* ── CTA block ────────────────────────────────────────────── */

.wilke-cta {
	--wilke-color-focus: var(--wilke-color-brand-green);
	display: grid;
	gap: var(--wilke-space-lg);
	align-items: center;
	padding: var(--wilke-space-xl) var(--wilke-space-lg);
	border-radius: var(--wilke-radius-lg);
	background-color: var(--wilke-color-dark);
	color: var(--wilke-color-white);
}

@media (min-width: 1025px) {
	.wilke-cta {
		grid-template-columns: 1.5fr 1fr;
		padding: var(--wilke-space-2xl) var(--wilke-space-xl);
	}
}

.wilke-cta :is(h2, h3) { color: var(--wilke-color-white); }
.wilke-cta p { max-width: 56ch; color: #c7c7c7; }
.wilke-cta .wilke-eyebrow { color: var(--wilke-color-brand-grey); }

.wilke-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-sm);
	margin-block-start: var(--wilke-space-md);
}

.wilke-cta .wilke-btn--primary:hover,
.wilke-cta .wilke-btn--primary:focus-visible { background-color: var(--wilke-color-white); color: var(--wilke-color-dark); }

.wilke-cta .wilke-btn--secondary { background: transparent; border-color: #5c5c5c; color: var(--wilke-color-white); }
.wilke-cta .wilke-btn--secondary:hover { background: var(--wilke-color-white); color: var(--wilke-color-dark); }

.wilke-cta__contact {
	display: flex;
	flex-direction: column;
	gap: var(--wilke-space-xs);
	padding: var(--wilke-space-md);
	border: var(--wilke-border-width) solid #333333;
	border-radius: var(--wilke-radius-md);
	font-size: var(--wilke-text-small);
	color: #c7c7c7;
}

.wilke-cta__contact strong { color: var(--wilke-color-white); font-size: 1rem; }

.wilke-cta__contact a {
	font-family: var(--wilke-font-mono);
	font-size: 1rem;
	color: var(--wilke-color-brand-green);
	text-decoration: none;
}

.wilke-cta__contact a:hover { color: var(--wilke-color-white); }

/* Contact box on its own (e.g. Technische Beratung page): dark card. */
.wilke-contact-box {
	--wilke-color-focus: var(--wilke-color-brand-green);
	padding: var(--wilke-space-lg);
	background: var(--wilke-color-dark);
	border: 0;
	border-radius: var(--wilke-radius-lg);
}

.wilke-contact-box strong { font-size: var(--wilke-text-h4); }

.wilke-cta--light {
	background-color: var(--wilke-color-bg-light);
	color: var(--wilke-color-text);
}

.wilke-cta--light :is(h2, h3) { color: var(--wilke-color-text); }
.wilke-cta--light p { color: var(--wilke-color-text-secondary); }

/* ── Breadcrumb ───────────────────────────────────────────── */

.wilke-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-2xs) var(--wilke-space-xs);
	margin: 0 0 var(--wilke-space-md);
	padding: 0;
	list-style: none;
	font-size: var(--wilke-text-small);
	color: var(--wilke-color-text-secondary);
}

.wilke-breadcrumb li + li::before {
	content: "/";
	margin-inline-end: var(--wilke-space-xs);
	color: var(--wilke-color-brand-grey);
}

.wilke-breadcrumb a { color: var(--wilke-color-text-secondary); text-decoration: none; }
.wilke-breadcrumb a:hover { color: var(--wilke-color-text); text-decoration: underline; }

/* ── FAQ item ─────────────────────────────────────────────── */

.wilke-faq { border-bottom: var(--wilke-border-width) solid var(--wilke-color-border); }
.wilke-faq:first-of-type { border-top: var(--wilke-border-width) solid var(--wilke-color-border); }

.wilke-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--wilke-space-md);
	padding-block: var(--wilke-space-md);
	font-size: 1.125rem;
	font-weight: var(--wilke-weight-medium);
	cursor: pointer;
	list-style: none;
}

.wilke-faq__question::-webkit-details-marker { display: none; }

.wilke-faq__question::after {
	content: "+";
	flex-shrink: 0;
	font-family: var(--wilke-font-mono);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wilke-color-primary-text);
}

.wilke-faq[open] .wilke-faq__question::after { content: "−"; }

.wilke-faq__answer {
	max-width: var(--wilke-text-max);
	padding-block-end: var(--wilke-space-md);
	color: var(--wilke-color-text-secondary);
}

/* Download group: an FAQ fold-out holding a download list (Support → Downloads, Dokumentation, Support-Tipps). */
.wilke-download-group__count {
	margin-left: auto;
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-small);
	font-weight: var(--wilke-weight-regular);
	color: var(--wilke-color-text-secondary);
	white-space: nowrap;
}

.wilke-download-group > .wilke-downloads { margin-bottom: var(--wilke-space-md); }
.wilke-download-group .wilke-downloads__item { padding-block: var(--wilke-space-sm); }
.wilke-download-group .wilke-downloads__item:last-child { border-bottom: 0; }

/* ── Feature list (technical features, 1 → 2 columns) ─────── */

.wilke-feature-list {
	display: grid;
	gap: 0 var(--wilke-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
}

@media (min-width: 768px) {
	.wilke-feature-list { grid-template-columns: repeat(2, 1fr); }
}

.wilke-feature-list li {
	position: relative;
	padding: var(--wilke-space-sm) 0 var(--wilke-space-sm) var(--wilke-space-md);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
	font-variant-numeric: tabular-nums;
}

.wilke-feature-list li::before {
	content: "";
	position: absolute;
	top: calc(var(--wilke-space-sm) + 0.55em);
	left: 0;
	width: 8px;
	height: 8px;
	background: var(--wilke-color-brand-green);
}

/* Article numbers / order codes. */
.wilke-articles {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wilke-articles li {
	padding: 0.2rem 0.5rem;
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-spec);
	background: var(--wilke-color-bg-light);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-pill);
}

.wilke-badge--warning { background: #fff6d6; color: #6b5200; border: 1px solid #c9a227; }

/* ── Steps (numbered process) ─────────────────────────────── */

.wilke-steps {
	display: grid;
	gap: var(--wilke-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: wilke-step;
}

@media (min-width: 768px) {
	.wilke-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.wilke-steps { grid-template-columns: repeat(var(--wilke-steps-cols, 3), 1fr); }
	/* Exactly four steps: one row instead of 3 + 1. */
	.wilke-steps:has(> .wilke-steps__item:nth-child(4):last-child) { --wilke-steps-cols: 4; }
}

.wilke-steps__item {
	counter-increment: wilke-step;
	padding-block-start: var(--wilke-space-md);
	border-top: var(--wilke-border-width) solid var(--wilke-color-text);
}

.wilke-steps__item::before {
	content: counter(wilke-step, decimal-leading-zero);
	display: block;
	margin-block-end: var(--wilke-space-sm);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-h3);
	font-weight: var(--wilke-weight-medium);
	line-height: 1;
	color: var(--wilke-color-primary-text);
}

.wilke-steps__title {
	margin: 0 0 var(--wilke-space-xs);
	font-size: var(--wilke-text-h4);
}

.wilke-steps__text { margin: 0; color: var(--wilke-color-text-secondary); }

/* ── Code block (real code examples) ─────────────────────── */
/* Label row (language + source file) and code. Only comments (grey) and strings (green) are colored.
   Long lines scroll inside the block, never the page. Built by wilke_tpl_code() (tools/elementor/lib.php). */

.wilke-code-group {
	display: grid;
	gap: var(--wilke-space-sm);
	min-width: 0;
}

.wilke-code {
	min-width: 0;
	margin: 0;
	background: var(--wilke-color-bg-light);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-lg);
	overflow: hidden;
}

.wilke-section--light .wilke-code { background: var(--wilke-color-white); }

.wilke-code__label {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wilke-space-2xs) var(--wilke-space-sm);
	padding: var(--wilke-space-xs) var(--wilke-space-sm);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	font-style: normal; /* theme captions are italic */
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-text);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-code__source {
	font-weight: 400;
	color: var(--wilke-color-text-secondary);
}

.wilke-code__body {
	margin: 0;
	padding: var(--wilke-space-sm);
	overflow-x: auto;
	font-family: var(--wilke-font-mono);
	font-size: 0.8125rem; /* 13px on phones: more of each line fits */
	line-height: 1.6;
	color: var(--wilke-color-text);
	white-space: pre;
	tab-size: 4;
	background: none;
	border: 0;
	border-radius: 0;
}

@media (min-width: 768px) {
	.wilke-code__body { font-size: var(--wilke-text-spec); }
}

.wilke-code__body code {
	font: inherit;
	color: inherit;
	background: none;
	padding: 0;
}

.wilke-code__comment { color: var(--wilke-color-text-secondary); }
.wilke-code__string { color: var(--wilke-color-primary-text); }

.wilke-code__body:focus-visible {
	outline: 2px solid var(--wilke-color-focus);
	outline-offset: -2px;
}

/* ── Download list ────────────────────────────────────────── */

.wilke-downloads {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-downloads__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wilke-space-2xs) var(--wilke-space-md);
	align-items: center;
	padding-block: var(--wilke-space-md);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

@media (min-width: 768px) {
	.wilke-downloads__item { grid-template-columns: 64px 1fr auto; }
}

.wilke-downloads__type {
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--wilke-color-bg-light);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-md);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	font-weight: var(--wilke-weight-medium);
	letter-spacing: 0.04em;
	color: var(--wilke-color-text);
}

.wilke-downloads__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: var(--wilke-weight-semibold);
}

.wilke-downloads__meta {
	margin: 0;
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-spec);
	color: var(--wilke-color-text-secondary);
}

.wilke-downloads__link {
	grid-column: 2;
	justify-self: start;
}

@media (min-width: 768px) {
	.wilke-downloads__link { grid-column: 3; grid-row: 1 / span 2; }
}

/* Variant with a text line and several links (application reports). */
.wilke-downloads__text {
	grid-column: 2;
	margin: 0;
	font-size: var(--wilke-text-small);
	color: var(--wilke-color-text-secondary);
	max-width: 72ch;
}

.wilke-downloads__links {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-xs);
	margin-block-start: var(--wilke-space-xs);
}

@media (min-width: 1025px) {
	.wilke-reports .wilke-downloads__item { grid-template-columns: 64px 1fr auto; }
	.wilke-reports .wilke-downloads__type { grid-row: span 2; }
	.wilke-reports .wilke-downloads__links { grid-column: 3; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
}

/* ── Search form ──────────────────────────────────────────── */

.wilke-search {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-xs);
	max-width: 640px;
	margin-block-end: var(--wilke-space-xl);
}

.wilke-search__input {
	flex: 1 1 240px;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font: inherit;
	color: var(--wilke-color-text);
	background: var(--wilke-color-white);
	border: var(--wilke-border-width) solid var(--wilke-color-text-secondary);
	border-radius: var(--wilke-radius-md);
}

.wilke-search__input:focus-visible { outline: 2px solid var(--wilke-color-focus); outline-offset: 1px; }

/* Button inside the search form must not take Elementor's generic button styles. */
.wilke-search .wilke-btn { border-radius: var(--wilke-radius-pill); }

/* ── Link list (e.g. main sections on the 404 page) ───────── */

.wilke-link-list ul {
	display: grid;
	gap: 0 var(--wilke-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.wilke-link-list ul { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.wilke-link-list ul { grid-template-columns: repeat(3, 1fr); }
}

.wilke-link-list a {
	display: flex;
	justify-content: space-between;
	padding-block: var(--wilke-space-sm);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
	font-size: 1.125rem;
	font-weight: var(--wilke-weight-medium);
	color: var(--wilke-color-text);
	text-decoration: none;
}

.wilke-link-list a::after { content: "→"; color: var(--wilke-color-primary-text); }
.wilke-link-list a:hover { color: var(--wilke-color-primary-text); }

/* ── Search results ───────────────────────────────────────── */

.wilke-results {
	max-width: 760px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wilke-results__item {
	padding-block: var(--wilke-space-md);
	border-bottom: var(--wilke-border-width) solid var(--wilke-color-border);
}

.wilke-results__item .wilke-eyebrow { margin-block-end: var(--wilke-space-2xs); }

.wilke-results__title {
	margin: 0;
	font-size: var(--wilke-text-h4);
}

.wilke-results__title a { color: var(--wilke-color-text); text-decoration: none; }
.wilke-results__title a:hover { color: var(--wilke-color-primary-text); text-decoration: underline; }

.wilke-results__text { margin: var(--wilke-space-xs) 0 0; color: var(--wilke-color-text-secondary); }
.wilke-results__empty { font-size: var(--wilke-text-lead); color: var(--wilke-color-text-secondary); }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wilke-space-xs);
	margin-block-start: var(--wilke-space-lg);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--wilke-space-sm);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-md);
	color: var(--wilke-color-text);
	text-decoration: none;
}

.pagination .page-numbers.current { background: var(--wilke-color-text); border-color: var(--wilke-color-text); color: var(--wilke-color-white); }

/* ── Skip link (visible on keyboard focus) ────────────────── */

.skip-link:focus {
	position: fixed;
	top: var(--wilke-space-xs);
	left: var(--wilke-space-xs);
	z-index: 1000;
	padding: var(--wilke-space-xs) var(--wilke-space-sm);
	background: var(--wilke-color-white);
	border: 2px solid var(--wilke-color-focus);
	border-radius: var(--wilke-radius-md);
	color: var(--wilke-color-text);
	font-weight: var(--wilke-weight-medium);
}

/* ── Placeholders (visible markers for content still to come) ── */

/* Image placeholder: shows where a real photo must go. */
.wilke-media-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wilke-space-xs);
	width: 100%;
	height: 100%;
	min-height: 200px;
	padding: var(--wilke-space-md);
	background:
		repeating-linear-gradient(-45deg, transparent 0 12px, rgb(0 0 0 / 0.025) 12px 24px),
		var(--wilke-color-bg-light);
	border: 1px dashed var(--wilke-color-brand-grey);
	border-radius: var(--wilke-radius-lg);
	font-family: var(--wilke-font-mono);
	font-size: var(--wilke-text-eyebrow);
	letter-spacing: 0.04em;
	text-align: center;
	color: var(--wilke-color-text-secondary);
}

.wilke-card__media .wilke-media-placeholder {
	min-height: 0;
	border: 0;
	border-radius: 0;
}

/* Text placeholder: content still to be supplied by Wilke. */
.wilke-placeholder {
	padding: 0.1em 0.35em;
	background: #fff6d6;
	border: 1px dashed #c9a227;
	border-radius: var(--wilke-radius-sm);
	font-size: 0.9em;
	color: #6b5200;
}

.wilke-section--dark .wilke-placeholder,
.wilke-cta .wilke-placeholder,
.wilke-footer .wilke-placeholder { background: #3a3419; color: #f2dc8d; }

/* ── Cookie banner (Complianz) in the Wilke look ──────────── */
/* Complianz reads these variables (it sets defaults on :root); colors/texts also live in WP Admin → Complianz,
   set by tools/consent-setup.php. Selectors start with "body" to win over the plugin's stylesheet. */
.cmplz-cookiebanner,
.cmplz-manage-consent {
	--cmplz_banner_background_color: var(--wilke-glass-bg-strong);
	--cmplz_banner_border_color: var(--wilke-color-border);
	--cmplz_text_color: var(--wilke-color-text);
	--cmplz_hyperlink_color: var(--wilke-color-text-secondary);
	--cmplz_text_font_size: 0.9375rem;
	--cmplz_text_line_height: 1.55;
	--cmplz_title_font_size: 1.0625rem;
	--cmplz_button_font_size: 0.9375rem;
	--cmplz_link_font_size: var(--wilke-text-small);
	--cmplz_category_header_title_font_size: 0.9375rem;
	--cmplz_category_body_font_size: var(--wilke-text-small);
	--cmplz_category_header_always_active_color: var(--wilke-color-primary-text);
}

body .cmplz-cookiebanner {
	font-family: var(--wilke-font-sans);
	padding: var(--wilke-space-md);
	border-radius: var(--wilke-radius-lg);
	box-shadow: var(--wilke-shadow-float);
	-webkit-backdrop-filter: var(--wilke-glass-blur-strong);
	backdrop-filter: var(--wilke-glass-blur-strong);
}

body .cmplz-cookiebanner .cmplz-title {
	grid-column: 1 / 3;
	justify-self: start;
	font-weight: var(--wilke-weight-semibold);
	letter-spacing: var(--wilke-tracking-snug);
}

body .cmplz-cookiebanner .cmplz-message {
	color: var(--wilke-color-text-secondary);
	text-wrap: pretty;
}

body .cmplz-cookiebanner .cmplz-buttons { gap: var(--wilke-space-xs) !important; }

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	font-family: inherit;
	font-weight: var(--wilke-weight-medium);
	line-height: 1.3;
	transition:
		background-color var(--wilke-duration-fast) var(--wilke-ease),
		border-color var(--wilke-duration-fast) var(--wilke-ease),
		color var(--wilke-duration-fast) var(--wilke-ease);
}

/* Same hover as the site's buttons: primary → anthracite + white, secondary → light fill. */
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover {
	background-color: var(--wilke-color-primary-hover);
	border-color: var(--wilke-color-primary-hover);
	color: var(--wilke-color-white);
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
	background-color: var(--wilke-color-bg-muted);
	border-color: var(--wilke-color-text-secondary);
}

body .cmplz-cookiebanner .cmplz-btn:focus-visible,
body .cmplz-cookiebanner .cmplz-link:focus-visible,
body .cmplz-cookiebanner .cmplz-category-toggle:focus-visible,
body .cmplz-manage-consent:focus-visible {
	outline: 2px solid var(--wilke-color-focus);
	outline-offset: 2px;
}

body .cmplz-cookiebanner .cmplz-links .cmplz-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body .cmplz-cookiebanner .cmplz-links .cmplz-link:hover { color: var(--wilke-color-text); }

body .cmplz-cookiebanner .cmplz-categories { width: 100%; }

body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background-color: rgb(255 255 255 / 0.6);
	border: var(--wilke-border-width) solid var(--wilke-color-border);
	border-radius: var(--wilke-radius-md);
}

/* Small tab that reopens the settings after a choice. */
body .cmplz-manage-consent {
	font-family: var(--wilke-font-sans);
	font-size: var(--wilke-text-small);
	font-weight: var(--wilke-weight-medium);
	box-shadow: var(--wilke-shadow-sm);
	-webkit-backdrop-filter: var(--wilke-glass-blur);
	backdrop-filter: var(--wilke-glass-blur);
}
