/* =====================================================
   Winkler & Team — Theme stylesheet
   ===================================================== */

/* -- Local font: SISans ------------------------------- */
@font-face {
	font-family: 'SISans';
	src: url('../fonts/SISans-Regular.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'SISans';
	src: url('../fonts/SISans-Medium.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'SISans';
	src: url('../fonts/SISans-SemiBold.woff2') format('woff2');
	font-weight: 600 700;   /* covers requests for both 600 and 700 */
	font-style: normal; font-display: swap;
}

/* =====================================================
   Design Tokens
   Single source of truth for the design system.
   Touch these to re-brand — every widget follows along.
   ===================================================== */
:root {
	/* ── Color ───────────────────────────────────────── */
	--wk-color-primary:        #1A3691;
	--wk-color-primary-dark:   #132768;
	--wk-color-primary-50:     #CCD6EB;
	--wk-color-accent:         #2AC5C4;
	--wk-color-bg:             #FBFCFF;
	--wk-color-surface:        #FFFFFF;
	--wk-color-text:           #1B2236;
	--wk-color-muted:          #4A526B;
	--wk-color-border:         #E5E9F3;

	/* Semantic link colors. */
	--wk-color-link:           var(--wk-color-primary);
	--wk-color-link-hover:     var(--wk-color-accent);

	/* Tinted surfaces — rgba fallback first, color-mix override second.
	   Browser ohne color-mix bekommen den Static-Wert; moderne tracken
	   automatisch die Primary-Variable, wenn sich das Branding ändert. */
	--wk-color-soft-surface:   rgba(26, 54, 145, 0.04);
	--wk-color-hover-surface:  rgba(26, 54, 145, 0.08);
	--wk-color-focus-ring:     rgba(26, 54, 145, 0.18);

	--wk-color-soft-surface:   color-mix(in srgb, var(--wk-color-primary)  4%, transparent);
	--wk-color-hover-surface:  color-mix(in srgb, var(--wk-color-primary)  8%, transparent);
	--wk-color-focus-ring:     color-mix(in srgb, var(--wk-color-primary) 18%, transparent);

	/* ── Typography ──────────────────────────────────── */
	--wk-font-sans:            'SISans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Section-level type scale (page title, section headings, hero). */
	--wk-fs-h1:                clamp(1.5rem, 1rem + 1.6vw, 2.375rem);
	--wk-fs-h2:                clamp(1.625rem, 1.2rem + 1.7vw, 2.25rem);
	--wk-fs-h3:                clamp(1.15rem, 0.95rem + 0.7vw, 1.4rem);

	/* In-content type scale — headings inside rich text (wk-text widget,
	   wk-split__text, etc.). Deliberately smaller than the section scale so
	   nested headings always stay subordinate to a Heading/Section widget. */
	--wk-fs-text-h2:           1.5rem;     /* 24px */
	--wk-fs-text-h3:           1.25rem;    /* 20px */
	--wk-fs-text-h4:           1.125rem;   /* 18px */
	--wk-fs-text-h5:           1rem;       /* 16px */
	--wk-fs-text-h6:           0.9375rem;  /* 15px */

	--wk-fs-body:              1.0625rem;
	--wk-fs-small:             0.875rem;

	--wk-lh-tight:             1.18;
	--wk-lh-snug:              1.3;
	--wk-lh-body:              1.65;

	/* ── Spacing ─────────────────────────────────────── */
	--wk-space-3:              0.75rem;
	--wk-space-4:              1rem;
	--wk-space-5:              1.5rem;
	--wk-space-6:              2rem;
	--wk-space-7:              3rem;
	--wk-space-8:              4rem;

	--wk-section-y:            clamp(3rem, 2rem + 4vw, 6rem);
	--wk-container:            1240px;
	--wk-container-px:         clamp(1.5rem, 1rem + 2vw, 2.5rem);

	/* ── Surface ─────────────────────────────────────── */
	--wk-radius:                 4px;

	--wk-shadow-card:            0 2px 6px rgba(19, 39, 104, 0.05);
	--wk-shadow-md:              0 4px 12px rgba(19, 39, 104, 0.06), 0 1px 3px rgba(19, 39, 104, 0.04);
	--wk-shadow-header:          0 2px 8px rgba(19, 39, 104, 0.04);
	--wk-shadow-header-scrolled: 0 6px 20px rgba(19, 39, 104, 0.08);

	/* ── Motion ──────────────────────────────────────── */
	--wk-transition:           200ms cubic-bezier(.2,.6,.2,1);

	/* ── Header offsets ──────────────────────────────── */
	/* Min-height for the floating header chrome (white box + CTA box). */
	--wk-header-h:             20px;

	/* Scroll offset for anchor-link target sections — clears the visual
	   space the sticky header occupies. Mobile gets a larger value because
	   the toggle button stacks below the brand on small screens. */
	--wk-anchor-offset:        20px;

	/* Visual height of the header — used by the Hero to pull itself up
	   behind the floating header boxes. */
	--wk-hero-offset:          88px;
}

/* -- Base ---------------------------------------------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
/* Safety net against horizontal overflow.
   `overflow-x: clip` clips overflow without creating a scroll container,
   so `position: sticky` on the header still works. */
html, body {
	overflow-x: clip;
	max-width: 100%;
}
@supports not (overflow-x: clip) {
	html, body { overflow-x: hidden; }
}

body {
	margin: 0;
	font-family: var(--wk-font-sans);
	font-size: var(--wk-fs-body);
	line-height: var(--wk-lh-body);
	color: var(--wk-color-text);
	background: var(--wk-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Headings: use the bare tags so widget-class rules (specificity 0,1,0)
   easily override the heading color. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wk-font-sans);
	color: var(--wk-color-primary);
	font-weight: 600;
	line-height: var(--wk-lh-snug);
	margin: 0 0 var(--wk-space-4);
	letter-spacing: -0.005em;
}

/* Links — base behaviour. Underline is added by contexts that contain
   rich text (see "Rich-text content links" further down). Buttons, menu
   items and other "non-text" links override this with their own styles. */
a {
	color: var(--wk-color-link);
	text-decoration: none;
	transition: color var(--wk-transition), text-decoration-color var(--wk-transition);
}
a:hover,
a:focus-visible {
	color: var(--wk-color-link-hover);
}

img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--wk-color-primary); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

/* =====================================================
   Header — constrained to content width, two side-by-side
   floating boxes that stick to top.
   ===================================================== */
.wk-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	pointer-events: none;
}
.wk-header {
	max-width: var(--wk-container);
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	pointer-events: none;
}
.wk-header > * { pointer-events: auto; }

.wk-header__main {
	flex: 1 1 auto;
	background: #fff;
	display: flex;
	align-items: center;
	gap: var(--wk-space-6);
	padding: 1rem clamp(1rem, 1vw + 0.5rem, 2rem) 1rem 2rem;
	box-shadow: var(--wk-shadow-header);
	min-height: var(--wk-header-h);
	transition:
		padding 240ms cubic-bezier(.2,.6,.2,1),
		box-shadow var(--wk-transition);
}
/* Scrolled-State: Header wird leicht größer (mehr Padding) und betonter
   (stärkerer Schatten). JS toggelt die Klasse bei scrollY > 40. */
.wk-header-wrap.is-scrolled .wk-header__main {
	padding-top: 1.2rem;
	padding-bottom: 1.2rem;
	box-shadow: var(--wk-shadow-header-scrolled);
}
.wk-header-wrap.is-scrolled .wk-header__brand img { max-height: 52px; }
.wk-header__brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wk-header__brand img { max-height: 48px; width: auto; transition: max-height 240ms cubic-bezier(.2,.6,.2,1); }
.wk-header__brand-text {
	font-weight: 600;
	color: var(--wk-color-primary);
	font-size: 1.25rem;
	letter-spacing: 0.02em;
}
.wk-header__nav { flex: 1; }
.wk-header .wk-header__menu {
	display: flex; gap: 0.25rem; flex-wrap: wrap;
	list-style: none; margin: 0; padding: 0;
	justify-content: center;
}
.wk-header .wk-header__menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 1rem;
	color: var(--wk-color-text);
	font-weight: 500;
	font-size: 1rem;
	border-radius: var(--wk-radius);
}
.wk-header .wk-header__menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	margin-left: 0.15rem;
}
.wk-header .wk-header__menu a:hover,
.wk-header .wk-header__menu a:focus-visible,
.wk-header .wk-header__menu .current-menu-item > a,
.wk-header .wk-header__menu .current-menu-parent > a,
.wk-header .wk-header__menu .is-active > a { color: var(--wk-color-primary); font-weight: 600; }

/* CTA box: explicit white text — chained selector beats `a { color: primary; }` */
.wk-header .wk-header__cta {
	flex: 0 0 auto;
	background: var(--wk-color-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(1.5rem, 2.5vw, 3rem);
	min-width: clamp(200px, 22vw, 320px);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	min-height: var(--wk-header-h);
	transition: background-color var(--wk-transition), color var(--wk-transition);
}
.wk-header .wk-header__cta:hover { background: var(--wk-color-primary-dark); color: #fff; }
.wk-header .wk-header__cta span { color: inherit; }

.wk-header__toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--wk-radius);
	cursor: pointer;
	color: var(--wk-color-primary);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: background-color var(--wk-transition);
}
.wk-header__toggle:hover { background: var(--wk-color-hover-surface); }
.wk-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	margin: 3px 0;
	border-radius: 1px;
	transform-origin: center;
	transition: transform 260ms cubic-bezier(.2,.6,.2,1), opacity 200ms ease;
}

/* Hamburger ↔ X morph. JS sets aria-expanded on the toggle whenever the
   overlay opens/closes — the CSS handles the visual transition. Bars are
   stacked 8px center-to-center (2px tall + 3px margin top/bottom). */
.wk-header__toggle[aria-expanded="true"] .wk-header__toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.wk-header__toggle[aria-expanded="true"] .wk-header__toggle-bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.2);
}
.wk-header__toggle[aria-expanded="true"] .wk-header__toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.wk-header__main { padding: 0.75rem 1rem; gap: 1rem; }
	.wk-header .wk-header__cta { min-width: 0; padding: 0 1.25rem; font-size: 0.85rem; letter-spacing: 0.04em; }
}

/* =====================================================
   Mobile menu — full-screen overlay
   ===================================================== */
.wk-mobile {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 200;
	background:
		linear-gradient(180deg, #FFFFFF 0%, #F4F7FD 60%, #ECF1FB 100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity 280ms ease, transform 320ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 320ms;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
.wk-mobile[data-open="true"] {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition: opacity 280ms ease, transform 360ms cubic-bezier(.2,.6,.2,1), visibility 0s;
}
/* Cyan-Akzent oben — bindet das Overlay an den Akzentstreifen der Hero. */
.wk-mobile::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--wk-color-accent);
	z-index: 1;
}

/* Use the dynamic viewport height when supported so the address bar on
   mobile browsers doesn't clip the bottom CTA. */
.wk-mobile__inner {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	padding: 1rem clamp(1.25rem, 5vw, 2rem) 1.5rem;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
	gap: 1rem;
}

.wk-mobile__top {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 48px;
}
.wk-mobile__brand { display: inline-flex; align-items: center; }
.wk-mobile__brand img { max-height: 40px; width: auto; }

.wk-mobile__close {
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	color: var(--wk-color-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: var(--wk-radius);
	transition: background-color var(--wk-transition);
	flex: 0 0 auto;
}
.wk-mobile__close:hover { background: var(--wk-color-hover-surface); }
.wk-mobile__close svg { width: 24px; height: 24px; }

.wk-mobile__nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 0;
}
.wk-mobile .wk-mobile__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.wk-mobile .wk-mobile__menu li { margin: 0; }
.wk-mobile .wk-mobile__menu a {
	position: relative;
	display: block;
	padding: 0.9rem 0.5rem;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wk-color-primary);
	text-align: center;
	border-radius: var(--wk-radius);
	transition: color var(--wk-transition);
	line-height: 1.2;
}
/* Underline-Indikator unter dem Item — wächst beim Hover/Active aus der
   Mitte. Cleaner als ein Hintergrund-Hover. */
.wk-mobile .wk-mobile__menu a::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0.45rem;
	width: 0;
	height: 2px;
	background: var(--wk-color-accent);
	border-radius: 1px;
	transform: translateX(-50%);
	transition: width 240ms cubic-bezier(.2,.6,.2,1);
}
.wk-mobile .wk-mobile__menu a:hover { color: var(--wk-color-primary-dark); }
.wk-mobile .wk-mobile__menu a:hover::after,
.wk-mobile .wk-mobile__menu a:focus-visible::after,
.wk-mobile .wk-mobile__menu .is-active > a::after,
.wk-mobile .wk-mobile__menu .current-menu-item > a::after { width: 28px; }
.wk-mobile .wk-mobile__menu .is-active > a,
.wk-mobile .wk-mobile__menu .current-menu-item > a { color: var(--wk-color-primary-dark); }
.wk-mobile .wk-mobile__menu .menu-item-has-children > a::after { content: ''; }

/* Stagger-Entrance — Items steigen kurz versetzt von unten ein, sobald
   das Overlay öffnet. Nutzt `backwards` damit der Startzustand vor dem
   Animations-Delay schon gesetzt ist (keine Flicker beim Öffnen). */
.wk-mobile[data-open="true"] .wk-mobile__menu li {
	animation: wk-mobile-item-in 480ms cubic-bezier(.2,.6,.2,1) backwards;
}
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(1) { animation-delay:  80ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(2) { animation-delay: 140ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(3) { animation-delay: 200ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(4) { animation-delay: 260ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(5) { animation-delay: 320ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(6) { animation-delay: 380ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(7) { animation-delay: 440ms; }
.wk-mobile[data-open="true"] .wk-mobile__menu li:nth-child(8) { animation-delay: 500ms; }
.wk-mobile[data-open="true"] .wk-mobile__cta {
	animation: wk-mobile-item-in 480ms cubic-bezier(.2,.6,.2,1) backwards;
	animation-delay: 540ms;
}

@keyframes wk-mobile-item-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wk-mobile__cta {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	padding-top: 0.5rem;
}
.wk-mobile__cta .wk-btn {
	width: 100%;
	max-width: 360px;
	padding: 1rem 1.5rem;
	font-size: 1rem;
}

/* Tiny phones (e.g. iPhone SE in landscape) — scale down further. */
@media (max-height: 520px) {
	.wk-mobile__nav { padding: 0.5rem 0; }
	.wk-mobile .wk-mobile__menu a { padding: 0.55rem 0.5rem; font-size: 1.05rem; }
	.wk-mobile__inner { gap: 0.5rem; padding-top: 0.5rem; padding-bottom: 0.75rem; }
}

/* Lock the page scroll while the overlay is open. */
body.wk-no-scroll {
	overflow: hidden;
	touch-action: none;
}
@media (max-width: 860px) {
	.wk-header__toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; margin-left: auto; }
	.wk-header__nav { display: none; }
	.wk-header .wk-header__cta { display: none; }
	/* Logo im Header gleich groß wie im Overlay — visuell konsistent beim
	   Öffnen/Schließen des Menüs. */
	.wk-header__brand img { max-height: 40px; }
}

/* =====================================================
   Footer — minimal one-pager strip
   ===================================================== */
.wk-footer {
	background: var(--wk-color-primary-dark);
	color: #DCE3F2;
}
.wk-footer a { color: #DCE3F2; }
.wk-footer a:hover { color: #fff; }
.wk-footer ul { list-style: none; margin: 0; padding: 0; }

.wk-footer__bottom {
	max-width: var(--wk-container);
	margin: 0 auto;
	padding: var(--wk-space-5) var(--wk-container-px);
	display: flex; justify-content: space-between; align-items: center;
	gap: var(--wk-space-4);
	flex-wrap: wrap;
	font-size: var(--wk-fs-small); color: #B6C2DC;
}
.wk-footer__legal { display: flex; gap: var(--wk-space-5); flex-wrap: wrap; }
.wk-footer__legal li { margin: 0; }

@media (max-width: 600px) {
	.wk-footer__bottom { justify-content: center; text-align: center; }
}

/* =====================================================
   Section wrapper
   ===================================================== */
.wk-section {
	padding-top: var(--wk-section-y);
	padding-bottom: var(--wk-section-y);
	padding-left: var(--wk-container-px);
	padding-right: var(--wk-container-px);
}
.wk-section--tight        { padding-top: var(--wk-space-7); padding-bottom: var(--wk-space-7); }
.wk-section--no-y         { padding-top: 0; padding-bottom: 0; }
.wk-section--only-top     { padding-top: var(--wk-section-y); padding-bottom: 0; }
.wk-section--only-bottom  { padding-top: 0; padding-bottom: var(--wk-section-y); }
.wk-section--tight-top    { padding-top: var(--wk-space-7); padding-bottom: 0; }
.wk-section--tight-bottom { padding-top: 0; padding-bottom: var(--wk-space-7); }
.wk-section--surface     { background: var(--wk-color-surface); }
.wk-section--primary     { background: var(--wk-color-primary); color: #fff; }
.wk-section--dark        { background: var(--wk-color-primary-dark); color: #fff; }
.wk-section--soft        { background: linear-gradient(180deg, #F2F5FC 0%, #FBFCFF 100%); }
.wk-section--flush-bottom { padding-bottom: 0; }

.wk-section__inner { max-width: var(--wk-container); margin: 0 auto; }
.wk-section { overflow-x: clip; }
@supports not (overflow-x: clip) {
	.wk-section { overflow-x: hidden; }
}

/* Anchor-link target sections: stop scrolling early so the sticky
   header doesn't cover the heading. */
.wk-section[id],
.wk-hero[id] {
	scroll-margin-top: var(--wk-anchor-offset);
}
@media (max-width: 860px) {
	:root { --wk-anchor-offset: 70px; }
}
html { scroll-behavior: smooth; }

.wk-section--primary :is(h1,h2,h3,h4,h5,h6),
.wk-section--dark    :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.wk-section--primary p, .wk-section--dark p { color: rgba(255,255,255,0.92); }

/* =====================================================
   Section heading block
   ===================================================== */
.wk-heading { margin-bottom: var(--wk-space-7); }
.wk-heading--center { text-align: center; }
.wk-heading--center .wk-heading__intro { margin-left: auto; margin-right: auto; }
.wk-heading .wk-heading__title {
	font-size: var(--wk-fs-h2);
	line-height: var(--wk-lh-tight);
	font-weight: 600;
	color: var(--wk-color-primary);
	margin: 0;
}
.wk-heading .wk-heading__intro {
	margin-top: var(--wk-space-4);
	color: var(--wk-color-text);
	font-size: 1.0625rem;
	max-width: 88ch;
}
.wk-section--primary .wk-heading .wk-heading__title,
.wk-section--dark    .wk-heading .wk-heading__title { color: #fff; }
.wk-section--primary .wk-heading .wk-heading__intro,
.wk-section--dark    .wk-heading .wk-heading__intro { color: rgba(255,255,255,0.92); }

/* =====================================================
   Buttons
   ===================================================== */
.wk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.95rem 1.75rem;
	font-family: var(--wk-font-sans);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1;
	border-radius: var(--wk-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color var(--wk-transition), color var(--wk-transition), transform var(--wk-transition), border-color var(--wk-transition), box-shadow var(--wk-transition);
	text-decoration: none;
	white-space: nowrap;
}
.wk-btn.wk-btn--primary { background: var(--wk-color-primary); color: #fff; border-color: var(--wk-color-primary); }
.wk-btn.wk-btn--primary:hover { background: var(--wk-color-primary-dark); border-color: var(--wk-color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--wk-shadow-md); }
.wk-btn.wk-btn--ghost { background: transparent; color: var(--wk-color-primary); border-color: var(--wk-color-primary); }
.wk-btn.wk-btn--ghost:hover { background: var(--wk-color-primary); color: #fff; }
.wk-btn.wk-btn--light { background: #fff; color: var(--wk-color-primary); border-color: #fff; }
.wk-btn.wk-btn--light:hover { background: var(--wk-color-primary-50); border-color: var(--wk-color-primary-50); color: var(--wk-color-primary-dark); }
.wk-btn.wk-btn--inverse-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.wk-btn.wk-btn--inverse-ghost:hover { background: #fff; color: var(--wk-color-primary); }

/* Keyboard focus — consistent across all button variants. Uses the accent
   color so the ring stays visible on every background (primary blue, dark,
   light surface). */
.wk-btn:focus-visible {
	outline: 3px solid var(--wk-color-accent);
	outline-offset: 2px;
}

/* =====================================================
   Widget: Hero — full-bleed split
   Flex layout (with align-items: stretch) ensures both columns
   share an identical height — so the image always matches the
   blue panel on the left.
   ===================================================== */
.wk-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: clamp(640px, 85vh, 920px);
	margin-top: calc(var(--wk-hero-offset) * -1);
	width: 100%;
}
.wk-hero .wk-hero__body {
	flex: 1 1 50%;
	min-width: 0;
	background: var(--wk-color-primary);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: calc(var(--wk-hero-offset) + 2rem);
	padding-bottom: 4rem;
	padding-right: clamp(2rem, 4vw, 4.5rem);
	/* Inner text aligns with the container's left edge — same alignment
	   the other widgets get via `.wk-section__inner { max-width; margin auto }`. */
	padding-left: max(var(--wk-container-px), calc((100% - var(--wk-container)) / 2));
}
.wk-hero__body-inner { max-width: 36rem; }

.wk-hero .wk-hero__title {
	font-size: var(--wk-fs-h1);
	line-height: var(--wk-lh-tight);
	font-weight: 600;
	color: #fff;
	margin: 0 0 var(--wk-space-5);
}
.wk-hero .wk-hero__intro {
	color: rgba(255,255,255,0.92);
	font-size: 1.0625rem;
	margin: 0 0 var(--wk-space-4);
}
.wk-hero .wk-hero__intro:last-of-type { margin-bottom: var(--wk-space-6); }
.wk-hero__actions { display: flex; gap: var(--wk-space-4); flex-wrap: wrap; margin-top: var(--wk-space-3); }

/* Hero + Mobile-Overlay-CTA bekommen den Cyan-Hover — bindet beide an die
   Akzentlinie der Hero und sorgt für stärkeren Kontrast als das defaulte
   Primary-Blau-Hover. */
.wk-hero .wk-btn:hover,
.wk-hero .wk-btn:focus-visible,
.wk-mobile__cta .wk-btn:hover,
.wk-mobile__cta .wk-btn:focus-visible {
	background: var(--wk-color-accent);
	border-color: var(--wk-color-accent);
	color: #fff;
}

/* Media half — same 50% share as the body, full-bleed to the right edge. */
.wk-hero .wk-hero__media {
	flex: 1 1 50%;
	min-width: 0;
	align-self: stretch;
	position: relative;
	overflow: hidden;
	height: auto;
	min-height: 100%;
}
.wk-hero__media::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 6px;
	background: var(--wk-color-accent);
	z-index: 2;
}
/* The image MUST fill the entire flex cell (= full height of the blue
   panel on the left), even when the source image has a wide/landscape
   aspect ratio. Elementor's own `.elementor img { height:auto }` rule
   has the same specificity as `.wk-hero__media img`, so we both raise
   specificity and use !important to win deterministically. */
.wk-hero .wk-hero__media > img,
.elementor .wk-hero .wk-hero__media > img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
}

/* Centered (text-only) variant */
.wk-hero--center {
	display: block;
	min-height: 0;
	margin-top: 0;
	padding: var(--wk-section-y) var(--wk-container-px);
	text-align: center;
	background: var(--wk-color-bg);
}
.wk-hero--center .wk-hero__body {
	background: transparent; color: var(--wk-color-text);
	padding: 0; max-width: 56rem; margin: 0 auto;
}
.wk-hero--center .wk-hero__title { color: var(--wk-color-primary); }
.wk-hero--center .wk-hero__intro { color: var(--wk-color-text); }
.wk-hero--center .wk-hero__actions { justify-content: center; }
.wk-hero--center .wk-hero__media { display: none; }

@media (max-width: 880px) {
	.wk-hero { flex-direction: column; min-height: 0; margin-top: 0; }
	.wk-hero .wk-hero__body, .wk-hero .wk-hero__media { flex: 0 0 auto; }
	.wk-hero .wk-hero__body {
		padding-top: 3rem;
		padding-bottom: 3rem;
		padding-left: var(--wk-container-px);
		padding-right: var(--wk-container-px);
	}
	.wk-hero .wk-hero__media { aspect-ratio: 4 / 3; }
	.wk-hero__media::before { width: 100%; height: 6px; top: 0; bottom: auto; }
}

/* =====================================================
   Widget: Service-Cards
   ===================================================== */
.wk-cards {
	display: grid;
	gap: var(--wk-space-8);
	grid-template-columns: repeat(var(--wk-cards-cols, 4), minmax(0, 1fr));
}
@media (max-width: 1100px) { .wk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Mobile single-column + tighter gap is handled below in the 768px block. */

.wk-card {
	position: relative;
	background: var(--wk-color-surface);
	border: 1px solid var(--wk-color-border);
	border-radius: var(--wk-radius);
	padding: var(--wk-space-7) var(--wk-space-6) var(--wk-space-6);
	text-align: center;
	overflow: hidden;
	transition: transform var(--wk-transition), box-shadow var(--wk-transition);
	box-shadow: var(--wk-shadow-card);
}
.wk-card:hover { transform: translateY(-2px); box-shadow: var(--wk-shadow-md); }
/* Hover-Akzent: Cyan-Linie wandert oben über die Karte. */
.wk-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--wk-color-accent);
	transition: width 420ms cubic-bezier(.2,.6,.2,1);
}
.wk-card:hover::before,
.wk-card:focus-within::before { width: 100%; }
.wk-card__icon {
	width: 120px; height: 120px;
	background: var(--wk-color-primary);
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 3.5rem;
	margin: 0 auto var(--wk-space-5);
	border-radius: var(--wk-radius);
}
.wk-card__icon i, .wk-card__icon svg { color: #fff; fill: #fff; width: 1em; height: 1em; }
.wk-card .wk-card__title {
	font-size: 1.25rem; font-weight: 600;
	margin: 0 0 var(--wk-space-4);
	color: var(--wk-color-primary);
}
.wk-card .wk-card__text { margin: 0; color: var(--wk-color-text); font-size: 1rem; }
.wk-section--primary .wk-card,
.wk-section--dark .wk-card { border-color: transparent; }
.wk-section--primary .wk-card .wk-card__title,
.wk-section--dark    .wk-card .wk-card__title { color: var(--wk-color-primary); }
.wk-section--primary .wk-card .wk-card__text,
.wk-section--dark    .wk-card .wk-card__text { color: var(--wk-color-text); }

/* =====================================================
   Widget: Image + Text (Philosophy)
   Default: flush bottom — the image sits at the section bottom edge.
   ===================================================== */
.wk-split {
	display: grid;
	gap: clamp(2rem, 4vw, 5rem);
	align-items: end;
	grid-template-columns: 1fr 1fr;
}
.wk-split--reverse .wk-split__media { order: 2; }
.wk-split--reverse .wk-split__body  { order: 1; }
.wk-split__body { align-self: center; padding-bottom: var(--wk-space-7); }
.wk-split__media {
	align-self: end;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}
.wk-split__media img {
	max-width: 100%;
	height: auto;
	display: block;
}
.wk-split .wk-split__title {
	font-size: var(--wk-fs-h2);
	line-height: var(--wk-lh-tight);
	margin: 0 0 var(--wk-space-4);
	color: var(--wk-color-primary);
}
.wk-split__text { color: var(--wk-color-text); margin: 0 0 var(--wk-space-6); }
.wk-split__text p { margin: 0 0 var(--wk-space-4); }
.wk-split__text p:last-child { margin-bottom: 0; }
.wk-split__actions { display: flex; gap: var(--wk-space-4); flex-wrap: wrap; }

@media (max-width: 880px) {
	.wk-split {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: var(--wk-space-6);
	}
	/* Always render body first, media second on mobile — regardless of the
	   image-position setting in the widget. Image then flushes against the
	   next section because the wrapper has `wk-section--flush-bottom`. */
	.wk-split__body  { order: 1; padding-bottom: 0; }
	.wk-split__media { order: 2; margin-bottom: 0; }
	.wk-split--reverse .wk-split__body  { order: 1; }
	.wk-split--reverse .wk-split__media { order: 2; }
}

/* =====================================================
   Widget: Process-Steps
   ===================================================== */
.wk-steps {
	display: grid;
	gap: var(--wk-space-8);
	grid-template-columns: repeat(var(--wk-steps-cols, 2), minmax(0, 1fr));
	list-style: none; margin: 0; padding: 0;
}
@media (max-width: 880px) { .wk-steps { grid-template-columns: 1fr; } }

.wk-step {
	position: relative;
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: var(--wk-space-5);
	align-items: flex-start;
	padding: var(--wk-space-6);
	background: var(--wk-color-surface);
	border: 1px solid var(--wk-color-border);
	border-radius: var(--wk-radius);
	box-shadow: var(--wk-shadow-card);
}
.wk-step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 96px; height: 96px;
	background: var(--wk-color-primary);
	color: #fff;
	font-family: var(--wk-font-sans);
	font-weight: 700;
	font-size: 2.75rem;
	line-height: 1;
	border-radius: var(--wk-radius);
	font-feature-settings: "lnum" 1, "tnum" 1;   /* lining + tabular figures */
}
.wk-step__body { padding-top: 0.25rem; }
.wk-step .wk-step__title {
	font-size: 1.25rem; font-weight: 600;
	margin: 0 0 var(--wk-space-3);
	color: var(--wk-color-primary);
}
.wk-step__text { margin: 0; color: var(--wk-color-text); }
@media (max-width: 480px) {
	.wk-step { grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.25rem; }
	.wk-step__num { width: 72px; height: 72px; font-size: 2rem; }
}

/* =====================================================
   Widget: Team — carousel with prev/next and dots
   ===================================================== */
.wk-team__layout {
	display: grid;
	gap: clamp(2rem, 4vw, 5rem);
	align-items: center;
}
.wk-team__layout--side  { grid-template-columns: minmax(280px, 1.25fr) 1fr; }
.wk-team__layout--stack { grid-template-columns: 1fr; }
.wk-team__layout--stack > .wk-team__intro { display: none; }

.wk-team__intro { max-width: 48ch; }
.wk-team__intro h2 { font-size: var(--wk-fs-h2); color: var(--wk-color-primary); margin: 0 0 var(--wk-space-4); }
.wk-team__intro p { color: var(--wk-color-text); margin: 0 0 var(--wk-space-4); }
.wk-team__intro p:last-child { margin-bottom: 0; }

.wk-team__carousel { position: relative; }

.wk-team__viewport {
	overflow: hidden;
}
.wk-team__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--wk-space-5) * (var(--wk-team-cols, 2) - 1)) / var(--wk-team-cols, 2));
	gap: var(--wk-space-5);
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 6px 2px;   /* room for hover-lift shadow */
}
.wk-team__track::-webkit-scrollbar { display: none; }

.wk-team__member {
	background: var(--wk-color-surface);
	border-radius: var(--wk-radius);
	padding: var(--wk-space-7) var(--wk-space-5) var(--wk-space-6);
	text-align: center;
	box-shadow: var(--wk-shadow-card);
	transition: transform var(--wk-transition), box-shadow var(--wk-transition);
	scroll-snap-align: start;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.wk-team__member:hover { transform: translateY(-2px); box-shadow: var(--wk-shadow-md); }
.wk-team__media {
	width: clamp(120px, 60%, 180px);
	aspect-ratio: 1 / 1;
	margin: 0 auto var(--wk-space-5);
	border-radius: 50%;
	overflow: hidden;
	background: var(--wk-color-primary-50);
}
.wk-team__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}
.wk-team__member .wk-team__name {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wk-color-primary);
}
.wk-team__role { margin: 0; color: var(--wk-color-text); font-size: 0.95rem; font-weight: 400; }

/* Carousel navigation */
.wk-team__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	color: var(--wk-color-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0;
	transition: color var(--wk-transition), opacity var(--wk-transition);
	z-index: 2;
}
.wk-team__nav:hover { color: var(--wk-color-primary-dark); }
.wk-team__nav[disabled] { opacity: 0.25; cursor: default; }
.wk-team__nav svg { width: 24px; height: 24px; }
.wk-team__nav--prev { left: -2.5rem; }
.wk-team__nav--next { right: -2.5rem; }
.wk-team__nav[hidden] { display: none; }

.wk-team__dots {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: var(--wk-space-5);
}
.wk-team__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 0;
	background: var(--wk-color-primary-50);
	cursor: pointer;
	padding: 0;
	transition: background-color var(--wk-transition), transform var(--wk-transition);
}
.wk-team__dot:hover { background: var(--wk-color-primary); }
.wk-team__dot[aria-current="true"] { background: var(--wk-color-primary); transform: scale(1.15); }
.wk-team__dots[hidden] { display: none; }

@media (max-width: 1340px) {
	.wk-team__nav--prev { left: -1rem; }
	.wk-team__nav--next { right: -1rem; }
}
@media (max-width: 880px) {
	.wk-team__layout--side { grid-template-columns: 1fr; }
}

/* =====================================================
   Widget: Heading (standalone)
   ===================================================== */
.wk-h { margin: 0; font-family: var(--wk-font-sans); font-weight: 600; line-height: var(--wk-lh-snug); }
.wk-h--sm { font-size: var(--wk-fs-h3); }
.wk-h--md { font-size: var(--wk-fs-h2); }
.wk-h--lg { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.25rem); }
.wk-h--xl { font-size: clamp(2rem, 1.4rem + 2vw, 2.875rem); line-height: var(--wk-lh-tight); }
.wk-h--align-left   { text-align: left; }
.wk-h--align-center { text-align: center; }
.wk-h--align-right  { text-align: right; }
.wk-h.wk-h--color-primary { color: var(--wk-color-primary); }
.wk-h.wk-h--color-dark    { color: var(--wk-color-primary-dark); }
.wk-h.wk-h--color-text    { color: var(--wk-color-text); }
.wk-h.wk-h--color-white   { color: #fff; }

/* =====================================================
   Widget: Text — rich body copy
   ===================================================== */
.wk-text {
	color: var(--wk-color-text);
	font-size: var(--wk-fs-body);
	line-height: var(--wk-lh-body);
}
.wk-text--reading { max-width: 72ch; }
.wk-text--narrow  { max-width: 560px; }
.wk-text--full    { max-width: none; }
.wk-text--align-left   { margin-left: 0; margin-right: auto; }
.wk-text--align-center { margin-left: auto; margin-right: auto; }
.wk-text--text-left    { text-align: left; }
.wk-text--text-center  { text-align: center; }
.wk-text--text-right   { text-align: right; }
.wk-text--text-justify { text-align: justify; hyphens: auto; }

.wk-text > * { margin: 0 0 1em; }
.wk-text > *:last-child { margin-bottom: 0; }
.wk-text p { margin: 0 0 1em; }
.wk-text :is(h1,h2,h3,h4,h5,h6) {
	color: var(--wk-color-primary);
	margin: 1.5em 0 0.5em;
	line-height: var(--wk-lh-snug);
}
.wk-text :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0; }
/* In-content heading scale — see --wk-fs-text-* tokens. Stays subordinate
   to any Heading/Section widget on the page. */
.wk-text h2 { font-size: var(--wk-fs-text-h2); }
.wk-text h3 { font-size: var(--wk-fs-text-h3); }
.wk-text h4 { font-size: var(--wk-fs-text-h4); font-weight: 600; }
.wk-text h5 { font-size: var(--wk-fs-text-h5); font-weight: 600; }
.wk-text h6 { font-size: var(--wk-fs-text-h6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.wk-text :is(ul,ol) {
	margin: 0 0 1em;
	padding-left: 1.4em;
}
.wk-text li { margin-bottom: 0.35em; }
.wk-text li:last-child { margin-bottom: 0; }

/* Rich-text content links — applied to every WYSIWYG context so links
   look identical whether they live in the Text widget, the Image+Text
   body or the Team-Grid intro. Standardmäßig dezent unterstrichen, beim
   Hover wechselt die Farbe auf accent + dickere Linie. */
.wk-text a,
.wk-split__text a,
.wk-team__intro a {
	color: var(--wk-color-link);
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
	transition:
		color var(--wk-transition),
		text-decoration-thickness var(--wk-transition);
}
.wk-text a:hover,
.wk-split__text a:hover,
.wk-team__intro a:hover,
.wk-text a:focus-visible,
.wk-split__text a:focus-visible,
.wk-team__intro a:focus-visible {
	color: var(--wk-color-link-hover);
	text-decoration-thickness: 2px;
}
.wk-text strong, .wk-text b { font-weight: 600; color: var(--wk-color-primary-dark); }
.wk-text blockquote {
	margin: 1em 0;
	padding: 0.75em 1.25em;
	border-left: 3px solid var(--wk-color-primary);
	color: var(--wk-color-muted);
	background: var(--wk-color-soft-surface);
	border-radius: var(--wk-radius);
}
.wk-text hr {
	border: 0;
	border-top: 1px solid var(--wk-color-border);
	margin: 2em 0;
}
.wk-text table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
	font-size: 0.95rem;
}
.wk-text th, .wk-text td {
	text-align: left;
	padding: 0.65em 0.85em;
	border-bottom: 1px solid var(--wk-color-border);
	vertical-align: top;
}
.wk-text th { font-weight: 600; color: var(--wk-color-primary-dark); background: var(--wk-color-soft-surface); }
.wk-text code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: var(--wk-color-hover-surface);
	padding: 0.1em 0.35em;
	border-radius: var(--wk-radius);
}

/* =====================================================
   Widget: Form-Section — shortcode-embedded form
   Light normalisation so plugins like CF7 / WPForms inherit the theme look.
   ===================================================== */
.wk-form { width: 100%; margin: 0; }

.wk-form__placeholder {
	padding: 2rem;
	border: 1px dashed var(--wk-color-border);
	border-radius: var(--wk-radius);
	color: var(--wk-color-muted);
	text-align: center;
}

.wk-form input[type="text"],
.wk-form input[type="email"],
.wk-form input[type="tel"],
.wk-form input[type="url"],
.wk-form input[type="number"],
.wk-form input[type="date"],
.wk-form select,
.wk-form textarea {
	width: 100%;
	padding: 0.75rem 0.95rem;
	font-family: var(--wk-font-sans);
	font-size: 1rem;
	color: var(--wk-color-text);
	background-color: var(--wk-color-surface);
	/* Cyan-Underline wächst beim Focus aus der Mitte. Trick: ein
	   horizontaler Gradient als background-image, positioniert center-bottom,
	   skaliert per background-size von 0% auf 100%. */
	background-image: linear-gradient(to right, var(--wk-color-accent), var(--wk-color-accent));
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 0% 2px;
	border: 1px solid var(--wk-color-border);
	border-radius: var(--wk-radius);
	transition:
		background-size 320ms cubic-bezier(.2,.6,.2,1),
		border-color var(--wk-transition),
		box-shadow var(--wk-transition);
}
.wk-form input:focus,
.wk-form select:focus,
.wk-form textarea:focus {
	outline: none;
	border-color: var(--wk-color-primary);
	box-shadow: 0 0 0 3px var(--wk-color-focus-ring);
	background-size: 100% 2px;
}
.wk-form textarea { min-height: 140px; resize: vertical; }
.wk-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: var(--wk-color-text);
}
.wk-form p { margin: 0 0 1rem; }
.wk-form input[type="submit"],
.wk-form button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 0.5rem;
	padding: 0.95rem 1.75rem;
	background: var(--wk-color-primary);
	color: #fff;
	border: 2px solid var(--wk-color-primary);
	border-radius: var(--wk-radius);
	font-family: var(--wk-font-sans);
	font-weight: 500; font-size: 1rem; line-height: 1;
	cursor: pointer;
	transition: background-color var(--wk-transition), border-color var(--wk-transition), transform var(--wk-transition), box-shadow var(--wk-transition);
}
.wk-form input[type="submit"]:hover,
.wk-form button[type="submit"]:hover {
	background: var(--wk-color-primary-dark);
	border-color: var(--wk-color-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--wk-shadow-md);
}

/* =====================================================
   Widget: CTA-Section
   ===================================================== */
.wk-cta {
	border-radius: var(--wk-radius);
	padding: var(--wk-space-8) var(--wk-space-7);
	background: var(--wk-color-primary);
	color: #fff;
	display: grid;
	gap: var(--wk-space-5);
	grid-template-columns: 1fr auto;
	align-items: center;
}
.wk-cta--dark { background: var(--wk-color-primary-dark); }
.wk-cta--center { grid-template-columns: 1fr; text-align: center; }
.wk-cta--center .wk-cta__actions { justify-content: center; }
.wk-cta .wk-cta__title {
	margin: 0 0 0.5rem;
	font-size: var(--wk-fs-h2);
	line-height: var(--wk-lh-tight);
	color: #fff;
}
.wk-cta__text { margin: 0; color: rgba(255,255,255,0.9); max-width: 60ch; }
.wk-cta--center .wk-cta__text { margin-left: auto; margin-right: auto; }
.wk-cta__actions { display: flex; gap: var(--wk-space-4); flex-wrap: wrap; }
@media (max-width: 760px) {
	.wk-cta { grid-template-columns: 1fr; padding: var(--wk-space-7) var(--wk-space-5); }
}

/* =====================================================
   Mobile polish — applied below 768 / 600 / 480.
   ===================================================== */
@media (max-width: 768px) {
	/* Tighter vertical rhythm + comfortable horizontal padding. */
	:root {
		--wk-section-y:    clamp(2.5rem, 1.5rem + 4vw, 4rem);
		--wk-container-px: clamp(1.5rem, 4vw, 2rem);
	}
	/* Service-cards: single column with smaller gap (was --wk-space-8) */
	.wk-cards { gap: var(--wk-space-6); grid-template-columns: 1fr; }
	.wk-card { padding: var(--wk-space-6) var(--wk-space-5); }

	/* Steps: tighter gap */
	.wk-steps { gap: var(--wk-space-5); grid-template-columns: 1fr; }

	/* Headings: don't squeeze the intro */
	.wk-heading .wk-heading__intro { max-width: none; }
}

@media (max-width: 768px) {
	/* Team: always 1 card on mobile.
	   The widget renders `style="--wk-team-cols: N"` inline (highest specificity),
	   so the override below needs !important. */
	.wk-team__carousel {
		--wk-team-cols: 1 !important;
		max-width: 100%;
		overflow: hidden;        /* keep nav arrows and track inside the carousel */
		padding-bottom: 3.5rem;  /* room for the dots, which we move below */
	}
	.wk-team__layout--side { grid-template-columns: 1fr; gap: var(--wk-space-6); max-width: 100%; }
	.wk-team__layout--side .wk-team__intro { max-width: none; }
	.wk-team__viewport { max-width: 100%; }
	.wk-team__track { padding: 6px 0; }

	/* Move nav arrows inside the carousel (overlaid on the card edges)
	   instead of poking out to the side. */
	.wk-team__nav {
		top: auto;
		bottom: 0;
		transform: none;
		width: 40px; height: 40px;
		background: var(--wk-color-surface);
		border-radius: 50%;
		box-shadow: var(--wk-shadow-card);
	}
	.wk-team__nav--prev { left: 0.5rem; }
	.wk-team__nav--next { right: 0.5rem; }
	.wk-team__nav svg { width: 20px; height: 20px; }

	.wk-team__dots {
		position: absolute;
		bottom: 0.75rem;
		left: 50%;
		transform: translateX(-50%);
		margin: 0;
	}
}

@media (max-width: 600px) {

	/* Hero: tighten paddings, headline smaller */
	.wk-hero .wk-hero__title { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.875rem); }
	.wk-hero__body { padding-right: var(--wk-container-px); padding-bottom: 2.5rem; }

	/* CTA on mobile */
	.wk-cta { padding: var(--wk-space-6) var(--wk-space-5); }
	.wk-cta .wk-cta__title { font-size: 1.5rem; }
	.wk-cta__actions .wk-btn { width: 100%; }

	/* Footer */
	.wk-footer__bottom { padding: var(--wk-space-5) var(--wk-container-px); }
}

@media (max-width: 420px) {
	/* Buttons fluid */
	.wk-btn { padding: 0.85rem 1.25rem; font-size: 0.95rem; }
	.wk-hero__actions .wk-btn,
	.wk-split__actions .wk-btn { width: 100%; }
}

/* =====================================================
   Polish & Animations
   Alles unterhalb läuft nur, wenn der User KEIN reduced-motion will.
   Statisches Styling (Eyebrow, Button-Arrow, Carousel-Mask) liegt
   außerhalb des Guards, weil es nicht animiert ist.
   ===================================================== */

/* --- Section-Heading Eyebrow ---------------------------------- */
.wk-heading__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wk-color-primary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 var(--wk-space-3);
}
.wk-heading__eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--wk-color-accent);
	border-radius: 1px;
	flex: 0 0 auto;
}
.wk-heading--center .wk-heading__eyebrow { justify-content: center; }
.wk-section--primary .wk-heading__eyebrow,
.wk-section--dark    .wk-heading__eyebrow { color: var(--wk-color-accent); }

/* --- Button-Arrow-Nudge -------------------------------------- */
/* Pfeil-Glyph nach dem Buttontext. Beim Hover/Focus wandert er
   4px nach rechts — minimaler Micro-Interaction. */
.wk-btn::after {
	content: '→';
	display: inline-block;
	font-weight: 400;
	line-height: 1;
	transition: transform var(--wk-transition);
}
.wk-btn:hover::after,
.wk-btn:focus-visible::after { transform: translateX(4px); }

/* --- Team-Carousel Edge-Mask --------------------------------- */
/* JS setzt `.has-overflow` auf das Carousel, wenn mehr Karten existieren
   als sichtbar sind. Dann faden Track-Ränder weich aus → Hinweis, dass
   horizontal mehr Inhalt vorhanden ist. */
.wk-team__carousel.has-overflow .wk-team__track {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {

	/* --- Scroll-Reveal ---------------------------------------- */
	/* JS fügt jeder Section die `.wk-reveal`-Klasse hinzu und schaltet
	   `.is-visible` um, sobald sie 5 % in den Viewport rutscht.
	   Nur Opacity-Fade — kein translateY, damit zwischen Sections keine
	   Lücke entsteht, solange die nächste Section noch unsichtbar ist. */
	.wk-reveal {
		opacity: 0;
		transition: opacity 700ms ease;
		will-change: opacity;
	}
	.wk-reveal.is-visible {
		opacity: 1;
	}

	/* --- Hero Entrance ---------------------------------------- */
	/* Title → Absatz 1 → Absatz 2 → Button → Bild staffeln rein, sobald
	   die Seite lädt. Verleiht der Hero ein "premium feel" beim ersten
	   Eindruck. */
	.wk-hero__title,
	.wk-hero__intro,
	.wk-hero__actions {
		animation: wk-fade-up 700ms cubic-bezier(.2,.6,.2,1) backwards;
	}
	.wk-hero__title { animation-delay: 100ms; }
	.wk-hero__intro:nth-of-type(1) { animation-delay: 220ms; }
	.wk-hero__intro:nth-of-type(2) { animation-delay: 300ms; }
	.wk-hero__actions { animation-delay: 400ms; }

	.wk-hero__media > img {
		animation: wk-hero-image-in 900ms cubic-bezier(.2,.6,.2,1) backwards;
		animation-delay: 150ms;
	}

	/* Akzent-Linie schiebt sich von oben nach unten ein. Auf Mobile ist
	   die Linie horizontal, daher dort scaleX statt scaleY. */
	.wk-hero__media::before {
		transform: scaleY(0);
		transform-origin: top center;
		animation: wk-hero-line-y 700ms cubic-bezier(.2,.6,.2,1) 350ms forwards;
	}

	@keyframes wk-fade-up {
		from { opacity: 0; transform: translateY(14px); }
		to   { opacity: 1; transform: translateY(0); }
	}
	@keyframes wk-hero-image-in {
		from { opacity: 0; transform: scale(1.04); }
		to   { opacity: 1; transform: scale(1); }
	}
	@keyframes wk-hero-line-y {
		from { transform: scaleY(0); }
		to   { transform: scaleY(1); }
	}
	@keyframes wk-hero-line-x {
		from { transform: scaleX(0); }
		to   { transform: scaleX(1); }
	}
}

@media (max-width: 880px) and (prefers-reduced-motion: no-preference) {
	.wk-hero__media::before {
		transform: scaleX(0);
		transform-origin: left center;
		animation-name: wk-hero-line-x;
	}
}

/* --- Reduced-Motion-Safety-Net ------------------------------- */
/* Wer reduced-motion will, bekommt sofort die Endzustände — keine
   Transitions, keine Carousel-Smooth-Scroll-Animation, keine
   Stagger-Entrances im Mobile-Menü. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	html { scroll-behavior: auto; }
	.wk-team__track { scroll-behavior: auto; }
}
