/* ==========================================================================
   Merkscha Onepager
   Farben werden im Customizer gesetzt (--mk-brand, --mk-accent, --mk-dark).
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	/* Palette aus dem Merkscha-Auftritt: Espresso, Off-White, Creme + Tannengrün und Eiche */
	--mk-brand: #2f4a3a;
	--mk-accent: #c8914b;
	--mk-dark: #23211a;
	--mk-ink: #23211a;
	--mk-muted: #6b665b;
	--mk-sand: #f3f1ed;
	--mk-cream: #dfddd2;
	--mk-line: rgba(35, 33, 26, .12);
	--mk-white: #fff;

	--mk-font-head: "Fraunces", Georgia, serif;
	--mk-font-ui: "Inter", system-ui, sans-serif;
	--mk-font-body: "Inter", system-ui, sans-serif;

	--mk-container: 1240px;
	--mk-gutter: clamp(20px, 5vw, 48px);
	--mk-section-y: clamp(80px, 12vw, 160px);
	--mk-radius: 18px;
	--mk-ease: cubic-bezier(.22, 1, .36, 1);
	/* Weiche Kurve für Hover-Effekte: fährt sanft an statt ruckartig */
	--mk-ease-soft: cubic-bezier(.45, .05, .25, 1);
	--mk-header-h: 84px;
	/* Höhe der WP-Admin-Leiste (nur wenn eingeloggt, sonst 0) */
	--mk-adminbar: var(--wp-admin--admin-bar--height, 0px);
}

/* --------------------------------------------------------------------------
   Basis
   ----------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(72px + var(--mk-adminbar));
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--mk-font-body);
	font-size: clamp(16px, 1.05vw + 10px, 18px);
	line-height: 1.7;
	color: var(--mk-ink);
	background: var(--mk-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--mk-brand); text-underline-offset: .2em; }

h1, h2, h3, h4 {
	font-family: var(--mk-font-head);
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
	font-weight: 600;
}
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 700; }

p { margin: 0 0 1.1em; }

::selection { background: var(--mk-accent); color: var(--mk-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.mk-skip {
	position: fixed; top: -100px; left: 16px; z-index: 1000;
	background: var(--mk-accent); color: var(--mk-ink);
	padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.mk-skip:focus { top: 16px; }

.mk-container {
	width: 100%;
	max-width: calc(var(--mk-container) + 2 * var(--mk-gutter));
	margin-inline: auto;
	padding-inline: var(--mk-gutter);
}
.mk-container--narrow { max-width: calc(820px + 2 * var(--mk-gutter)); }
.mk-center { text-align: center; }
.mk-center .mk-btn { margin-inline: auto; }

/* Scroll-Fortschritt */
.mk-progress {
	position: fixed; inset: var(--mk-adminbar) 0 auto; height: 3px; z-index: 200;
	background: var(--mk-accent);
	transform-origin: 0 50%;
	transform: scaleX(var(--progress, 0));
}

/* --------------------------------------------------------------------------
   Typo-Bausteine
   ----------------------------------------------------------------------- */

.mk-title {
	font-size: clamp(2rem, 4.4vw, 3.6rem);
	max-width: 18ch;
}
.mk-center .mk-title, .mk-head .mk-title { margin-inline: auto; }

/* *Hervorhebung*: kursive Serife, auf hellem Grund in Markenfarbe mit Eichen-Unterstrich */
.mk-title em, .mk-hero__title em, .mk-page__title em {
	font-style: italic;
	font-weight: 400;
	color: var(--mk-brand);
	background: linear-gradient(color-mix(in srgb, var(--mk-accent) 45%, transparent), color-mix(in srgb, var(--mk-accent) 45%, transparent)) no-repeat 0 90% / 100% .14em;
	padding-inline: .02em;
}
.mk-bg--dunkel .mk-title em, .mk-bg--blau .mk-title em, .mk-hero__title em {
	background: none;
	color: var(--mk-accent);
}

.mk-kicker {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--mk-font-ui);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mk-brand);
	margin-bottom: 1.4em;
}
.mk-kicker::before {
	content: ""; width: 36px; height: 2px; background: var(--mk-accent);
}
.mk-kicker__num { color: var(--mk-muted); font-weight: 600; }
.mk-kicker--light { color: var(--mk-cream); }

.mk-lead { font-size: 1.12em; color: var(--mk-muted); max-width: 60ch; }
.mk-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.mk-head .mk-lead { margin-inline: auto; }

.mk-content > :last-child { margin-bottom: 0; }
.mk-content ul { padding-left: 1.2em; }
.mk-content li::marker { color: var(--mk-accent); }
.mk-content blockquote {
	margin: 1.6em 0; padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--mk-accent);
	font-family: var(--mk-font-head); font-size: 1.2em; font-weight: 600;
}

/* --------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */

.mk-btn {
	--btn-bg: var(--mk-brand);
	--btn-fg: var(--mk-white);
	position: relative;
	display: inline-flex; align-items: center; gap: 12px;
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--mk-font-ui);
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .02em;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: transform .4s var(--mk-ease), box-shadow .4s var(--mk-ease), color .4s;
	margin-top: 1.2em;
}
.mk-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--mk-ink);
	transform: translateY(101%);
	transition: transform .5s var(--mk-ease);
}
.mk-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--mk-ease); }
.mk-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--mk-dark) 50%, transparent); }
.mk-btn:hover::before { transform: none; }
.mk-btn:hover svg { transform: translateX(4px); }
.mk-btn--accent { --btn-bg: var(--mk-accent); --btn-fg: var(--mk-ink); }
.mk-btn--accent:hover { color: var(--mk-white); }
.mk-btn--small { padding: 10px 20px; font-size: .82rem; margin: 0; }

/* --------------------------------------------------------------------------
   Header / Navigation
   ----------------------------------------------------------------------- */

.mk-header {
	position: fixed; inset: var(--mk-adminbar) 0 auto; z-index: 100;
	transition: top .3s;
}
/* Hintergrund als eigene Ebene: backdrop-filter direkt am Header würde das mobile Vollbild-Menü einsperren */
.mk-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	opacity: 0;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	box-shadow: 0 1px 0 var(--mk-line);
	transition: opacity .4s;
}
.mk-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: calc(var(--mk-container) + 2 * var(--mk-gutter));
	margin-inline: auto;
	padding: 0 var(--mk-gutter);
	height: var(--mk-header-h);
	transition: height .4s var(--mk-ease);
}

/* Auf Unterseiten oder nach dem Scrollen: helle Leiste */
.mk-subpage .mk-header::before,
.mk-header.is-scrolled::before { opacity: 1; }
.mk-header.is-scrolled .mk-header__inner { height: 68px; }

/* Bis 600px scrollt die WP-Admin-Leiste mit weg -> Menü rückt dann nach oben */
@media (max-width: 600px) {
	.mk-header.is-scrolled { top: 0; --mk-adminbar: 0px; }
	.mk-progress { top: 0; }
}

.mk-logo {
	display: inline-flex; align-items: center;
	text-decoration: none; color: var(--mk-sand);
	line-height: 1;
	transition: color .4s;
}
.mk-subpage .mk-logo, .is-scrolled .mk-logo { color: var(--mk-ink); }
/* Wortmarke als Inline-SVG: färbt sich automatisch passend zum Hintergrund */
.mk-logo__svg { height: 64px; width: auto; transition: height .4s var(--mk-ease); }
.is-scrolled .mk-logo__svg { height: 54px; }
.mk-logo__img { max-height: 56px; width: auto; }

.mk-nav { display: flex; align-items: center; gap: 28px; }
.mk-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mk-nav ul a {
	position: relative;
	display: block;
	padding: 8px 14px;
	font-family: var(--mk-font-ui);
	font-weight: 600;
	font-size: .9rem;
	color: var(--mk-white);
	text-decoration: none;
	transition: color .3s;
}
.mk-nav ul a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
	background: var(--mk-accent);
	transform: scaleX(0); transform-origin: right;
	transition: transform .45s var(--mk-ease);
}
.mk-nav ul a:hover::after, .mk-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }
.mk-subpage .mk-nav ul a, .is-scrolled .mk-nav ul a { color: var(--mk-ink); }

.mk-burger {
	display: none;
	position: relative; z-index: 2;
	width: 46px; height: 46px;
	border: 0; border-radius: 50%;
	background: var(--mk-accent);
	cursor: pointer;
}
.mk-burger span {
	position: absolute; left: 13px; right: 13px; height: 2px; background: var(--mk-ink);
	transition: transform .4s var(--mk-ease), opacity .3s;
}
.mk-burger span:nth-child(1) { top: 16px; }
.mk-burger span:nth-child(2) { top: 22px; }
.mk-burger span:nth-child(3) { top: 28px; }
.mk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.mk-burger { display: block; }
	.mk-nav {
		position: fixed; inset: 0;
		flex-direction: column; justify-content: center; gap: 40px;
		background: var(--mk-dark);
		clip-path: circle(0 at calc(100% - var(--mk-gutter) - 23px) calc(var(--mk-adminbar) + 42px));
		transition: clip-path .7s var(--mk-ease);
		visibility: hidden;
	}
	.mk-nav.is-open { clip-path: circle(150% at calc(100% - var(--mk-gutter) - 23px) calc(var(--mk-adminbar) + 42px)); visibility: visible; }
	.mk-nav ul { flex-direction: column; align-items: center; gap: 6px; }
	.mk-nav ul a, .is-scrolled .mk-nav ul a, .mk-subpage .mk-nav ul a {
		color: var(--mk-white);
		font-size: clamp(1.6rem, 7vw, 2.4rem);
		font-family: var(--mk-font-head); font-weight: 500;
		opacity: 0; transform: translateY(20px);
		transition: opacity .5s, transform .6s var(--mk-ease);
	}
	.mk-nav.is-open ul a { opacity: 1; transform: none; }
	.mk-nav.is-open li:nth-child(2) a { transition-delay: .05s; }
	.mk-nav.is-open li:nth-child(3) a { transition-delay: .1s; }
	.mk-nav.is-open li:nth-child(4) a { transition-delay: .15s; }
	.mk-nav.is-open li:nth-child(5) a { transition-delay: .2s; }
	.mk-nav.is-open li:nth-child(6) a { transition-delay: .25s; }
	.mk-nav.is-open li:nth-child(n+7) a { transition-delay: .3s; }
	.mk-nav ul a::after { bottom: 0; }
	body.mk-menu-open { overflow: hidden; }
	.mk-nav__cta { --btn-bg: var(--mk-accent); --btn-fg: var(--mk-ink); }
}

/* --------------------------------------------------------------------------
   Sektionen allgemein
   ----------------------------------------------------------------------- */

.mk-section { position: relative; padding-block: var(--mk-section-y); }
.mk-bg--sand { background: var(--mk-sand); }
.mk-bg--blau { background: var(--mk-brand); color: var(--mk-sand); }
.mk-bg--dunkel { background: var(--mk-dark); color: var(--mk-sand); overflow: hidden; }
.mk-bg--blau .mk-lead, .mk-bg--dunkel .mk-lead { color: rgba(255, 255, 255, .72); }
.mk-bg--blau .mk-kicker, .mk-bg--dunkel .mk-kicker { color: var(--mk-accent); }
.mk-bg--blau .mk-kicker__num, .mk-bg--dunkel .mk-kicker__num { color: rgba(255, 255, 255, .5); }
.mk-bg--blau a:not(.mk-btn), .mk-bg--dunkel a:not(.mk-btn) { color: var(--mk-accent); }
.mk-bg--blau .mk-btn:not(.mk-btn--accent), .mk-bg--dunkel .mk-btn:not(.mk-btn--accent) { --btn-bg: var(--mk-accent); --btn-fg: var(--mk-ink); }
.mk-bg--blau .mk-btn::before, .mk-bg--dunkel .mk-btn::before { background: var(--mk-white); }
.mk-bg--blau .mk-btn:hover, .mk-bg--dunkel .mk-btn:hover { color: var(--mk-ink); }

/* Jahresringe – dezentes, langsam drehendes Holz-Motiv */
.mk-bg--dunkel::before, .mk-hero__rings {
	content: "";
	position: absolute;
	width: 1400px; aspect-ratio: 1.15;
	right: -520px; top: 50%;
	translate: 0 -50%;
	border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
	background: repeating-radial-gradient(ellipse at 46% 52%,
		transparent 0 22px,
		rgba(255, 255, 255, .06) 23px 24px,
		transparent 25px 41px,
		color-mix(in srgb, var(--mk-accent) 7%, transparent) 42px 43px);
	animation: mk-rings 90s linear infinite;
	pointer-events: none;
}
.mk-bg--dunkel > * { position: relative; }

@keyframes mk-rings { to { rotate: 360deg; } }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */

.mk-section--hero { padding: 0; color: var(--mk-sand); background: var(--mk-dark); }
.mk-hero {
	position: relative;
	min-height: 100svh;
	display: flex; align-items: center;
	overflow: hidden;
	padding-block: calc(var(--mk-header-h) + 60px) 120px;
}
.mk-hero__media { position: absolute; inset: -6% 0; will-change: transform; }
.mk-hero__img {
	width: 100%; height: 100%; object-fit: cover;
	animation: mk-kenburns 24s var(--mk-ease) both;
}
.mk-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--mk-dark) 92%, transparent) 10%, color-mix(in srgb, var(--mk-dark) 55%, transparent) 55%, color-mix(in srgb, var(--mk-dark) 20%, transparent)),
		linear-gradient(0deg, color-mix(in srgb, var(--mk-dark) 70%, transparent), transparent 40%);
}
@keyframes mk-kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }

.mk-hero__rings { left: -700px; right: auto; opacity: .8; }
.mk-hero__content { position: relative; z-index: 1; }
.mk-hero__title {
	font-size: clamp(2.6rem, 7.2vw, 6.2rem);
	font-weight: 600;
	max-width: 14ch;
	letter-spacing: -.035em;
	line-height: 1;
	margin-bottom: .45em;
}
.mk-hero__text { max-width: 54ch; font-size: 1.12em; color: rgba(255, 255, 255, .82); }

/* Wörter fliegen einzeln ein (Klassen setzt main.js) */
.mk-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mk-word > span {
	display: inline-block;
	transform: translateY(105%) rotate(4deg);
	transform-origin: 0 100%;
	transition: transform 1.1s var(--mk-ease);
	transition-delay: calc(var(--i) * 70ms + 150ms);
}
.is-split .mk-word > span { transform: none; }
.mk-js [data-split] { visibility: hidden; }
.mk-js [data-split].is-ready { visibility: visible; }

/* Siegel: Merkscha-Signet, umlaufender Text dreht sich langsam */
.mk-seal {
	position: absolute; z-index: 1;
	right: clamp(20px, 7vw, 120px); bottom: clamp(48px, 9vw, 120px);
	width: clamp(130px, 14vw, 200px); aspect-ratio: 1;
	color: var(--mk-sand);
}
.mk-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: mk-spin 30s linear infinite; color: var(--mk-accent); }
.mk-seal text {
	fill: var(--mk-accent);
	font-family: var(--mk-font-ui);
	font-size: 12.5px; font-weight: 600; letter-spacing: .28em;
	text-transform: uppercase;
}
.mk-seal__signet {
	position: absolute; inset: 17%;
	width: 66%; height: 66%;
	animation: mk-float 6s ease-in-out infinite;
	transition: transform 2s var(--mk-ease-soft);
}
.mk-seal:hover .mk-seal__signet { transform: rotate(-6deg) scale(1.03); }
@keyframes mk-spin { to { rotate: 360deg; } }
@keyframes mk-float { 50% { translate: 0 -6px; } }

/* Scroll-Hinweis: der Merkscha-Pfeil */
.mk-scrollcue {
	position: absolute; left: 50%; bottom: 26px; z-index: 1;
	width: 24px; margin-left: -12px;
	color: var(--mk-cream);
	animation: mk-cue 2.4s var(--mk-ease) infinite;
}
.mk-scrollcue svg { width: 100%; height: auto; }
.mk-scrollcue:hover { color: var(--mk-accent); }
@keyframes mk-cue { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(10px); opacity: 1; } }

@media (max-width: 700px) {
	.mk-seal { opacity: .45; right: -24px; bottom: 96px; }
}

/* --------------------------------------------------------------------------
   Text + Bild
   ----------------------------------------------------------------------- */

.mk-split {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(40px, 7vw, 110px);
	align-items: center;
}
.mk-split--reverse .mk-split__media { order: -1; }
.mk-split--noimage { grid-template-columns: minmax(0, 820px); }

.mk-split__media { position: relative; margin: 0; }
.mk-split__media::before {
	content: ""; position: absolute;
	inset: 28px -28px -28px 28px;
	border: 2px solid var(--mk-accent);
	border-radius: var(--mk-radius);
	transition: inset 1s var(--mk-ease) .4s;
}
.mk-split--reverse .mk-split__media::before { inset: 28px 28px -28px -28px; }
.mk-split__frame {
	position: relative;
	border-radius: var(--mk-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3.4;
	box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--mk-dark) 45%, transparent);
}
.mk-split__frame img { width: 100%; height: 100%; object-fit: cover; }

.mk-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 20px; margin: 2em 0 0; padding-top: 1.6em;
	border-top: 1px solid var(--mk-line);
}
.mk-facts dt { font-family: var(--mk-font-head); font-weight: 600; font-size: 1.6rem; color: var(--mk-brand); line-height: 1.1; }
.mk-facts dd { margin: 4px 0 0; color: var(--mk-muted); font-size: .9rem; }
.mk-bg--dunkel .mk-facts, .mk-bg--blau .mk-facts { border-color: rgba(255, 255, 255, .15); }
.mk-bg--dunkel .mk-facts dt, .mk-bg--blau .mk-facts dt { color: var(--mk-accent); }
.mk-bg--dunkel .mk-facts dd, .mk-bg--blau .mk-facts dd { color: rgba(255, 255, 255, .7); }

@media (max-width: 860px) {
	.mk-split { grid-template-columns: 1fr; }
	.mk-split__media, .mk-split--reverse .mk-split__media { order: 0; margin-right: 28px; }
}

/* --------------------------------------------------------------------------
   Merkscha-Badges („100 % Holz“)
   ----------------------------------------------------------------------- */

.mk-badge { display: block; color: inherit; }
.mk-badge svg { width: 100%; height: auto; overflow: visible; }
.mk-badge--inline { width: 92px; margin-bottom: 28px; }
.mk-badge--inline.mk-badge--edelholz { width: 104px; }
.mk-center .mk-badge--inline, .mk-head:not(.mk-head--media) .mk-badge--inline { margin-inline: auto; }

/* Stempel auf dem Bild */
.mk-head__mediawrap { position: relative; }
.mk-badge--stamp {
	position: absolute; z-index: 2;
	left: -48px; bottom: -48px;
	width: clamp(112px, 12vw, 156px); aspect-ratio: 1;
	border-radius: 50%;
	background: var(--mk-sand);
	color: var(--mk-ink);
	box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--mk-dark) 60%, transparent), inset 0 0 0 6px var(--mk-sand), inset 0 0 0 7px color-mix(in srgb, var(--mk-accent) 60%, transparent);
	rotate: -10deg;
	transition: rotate 2s var(--mk-ease-soft), scale 2s var(--mk-ease-soft);
}
/* Grafik absolut im Stempel (Prozent-Padding würde sich auf die Bildbreite beziehen) */
.mk-badge--stamp svg { position: absolute; inset: 20%; width: 60%; height: 60%; }
.mk-badge--stamp.mk-badge--holz svg { translate: 0 -4%; }
.mk-badge--stamp.mk-badge--edelholz svg { inset: 11%; width: 78%; height: 78%; }
.mk-badge--stamp:hover { rotate: -3deg; scale: 1.03; }
.mk-split--reverse .mk-badge--stamp { left: auto; right: -48px; }
.mk-head__mediawrap .mk-badge--stamp { left: auto; right: -36px; bottom: -40px; }

.mk-js [data-reveal-badge] { opacity: 0; transform: scale(.4) rotate(-50deg); transition: opacity .6s, transform 1.2s cubic-bezier(.34, 1.56, .64, 1); transition-delay: .7s; }
.mk-js [data-reveal-badge].is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
	.mk-badge--stamp { left: -16px; bottom: -36px; }
	.mk-split--reverse .mk-badge--stamp, .mk-head__mediawrap .mk-badge--stamp { left: auto; right: -12px; }
}

/* --------------------------------------------------------------------------
   Kennzahlen
   ----------------------------------------------------------------------- */

.mk-stats {
	list-style: none; margin: 0 0 1em; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2px;
	border-radius: var(--mk-radius);
	overflow: hidden;
}
.mk-stat {
	padding: clamp(28px, 4vw, 48px) 28px;
	background: rgba(255, 255, 255, .05);
	text-align: center;
	transition: background .4s;
}
.mk-bg--hell .mk-stat, .mk-bg--sand .mk-stat { background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-line); }
.mk-bg--hell .mk-stat { background: var(--mk-sand); box-shadow: none; }
.mk-stat:hover { background: color-mix(in srgb, var(--mk-accent) 12%, transparent); }
.mk-stat__value {
	display: block;
	font-family: var(--mk-font-head);
	font-weight: 500;
	font-size: clamp(2.6rem, 5vw, 4.2rem);
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--mk-accent);
	font-variant-numeric: tabular-nums;
}
.mk-bg--hell .mk-stat__value, .mk-bg--sand .mk-stat__value { color: var(--mk-brand); }
.mk-stat__value small { font-size: .42em; margin-left: .15em; letter-spacing: 0; font-weight: 700; }
.mk-stat__label { display: block; margin-top: 12px; font-size: .92rem; opacity: .75; }

/* --------------------------------------------------------------------------
   Schritte
   ----------------------------------------------------------------------- */

.mk-steps {
	--line: 0;
	position: relative;
	list-style: none; margin: 0 0 1em; padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
	gap: 28px;
}
.mk-steps::before, .mk-steps::after {
	content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px;
	background: var(--mk-line);
}
.mk-steps::after {
	background: var(--mk-accent);
	transform-origin: 0 50%;
	transform: scaleX(var(--line));
	transition: transform 2.2s var(--mk-ease) .3s;
}
.mk-steps.is-visible { --line: 1; }
.mk-bg--dunkel .mk-steps::before, .mk-bg--blau .mk-steps::before { background: rgba(255, 255, 255, .15); }

.mk-step { position: relative; z-index: 1; }
.mk-step__num {
	display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%;
	margin-bottom: 22px;
	font-family: var(--mk-font-ui); font-weight: 800; font-size: .95rem;
	background: var(--mk-white);
	color: var(--mk-brand);
	box-shadow: inset 0 0 0 2px var(--mk-accent);
	transition: background .4s, color .4s, transform .5s var(--mk-ease);
}
.mk-bg--dunkel .mk-step__num { background: var(--mk-dark); color: var(--mk-white); }
.mk-bg--blau .mk-step__num { background: var(--mk-brand); color: var(--mk-white); }
.mk-step:hover .mk-step__num { background: var(--mk-accent); color: var(--mk-ink); transform: scale(1.1) rotate(-8deg); }
.mk-step p { font-size: .95rem; opacity: .75; }

@media (max-width: 860px) {
	.mk-steps { grid-template-columns: 1fr; gap: 8px; }
	.mk-steps::before, .mk-steps::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.mk-steps::after { transform-origin: 50% 0; transform: scaleY(var(--line)); }
	.mk-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; padding-bottom: 18px; }
	.mk-step__num { grid-row: span 2; margin: 0; }
	.mk-step h3 { margin: 14px 0 .3em; }
}

/* --------------------------------------------------------------------------
   Kacheln
   ----------------------------------------------------------------------- */

.mk-head--media {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px);
	align-items: end; text-align: left;
}
.mk-head--media .mk-title, .mk-head--media .mk-lead { margin-inline: 0; }
.mk-head__media { margin: 0; border-radius: var(--mk-radius); overflow: hidden; aspect-ratio: 16 / 10; }
.mk-head__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .mk-head--media { grid-template-columns: 1fr; } }

.mk-cards {
	list-style: none; margin: 0 0 1em; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.mk-card {
	position: relative;
	padding: 36px 32px 32px;
	border-radius: var(--mk-radius);
	background: var(--mk-white);
	box-shadow: inset 0 0 0 1px var(--mk-line);
	overflow: hidden;
	transition: transform .5s var(--mk-ease), box-shadow .5s var(--mk-ease);
}
.mk-bg--hell .mk-card { background: var(--mk-sand); box-shadow: none; }
.mk-bg--dunkel .mk-card, .mk-bg--blau .mk-card { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.mk-card::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
	background: var(--mk-accent);
	transform: scaleY(0); transform-origin: bottom;
	transition: transform .5s var(--mk-ease);
}
.mk-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--mk-dark) 35%, transparent); }
.mk-card:hover::before { transform: scaleY(1); }
.mk-card__num {
	display: block; margin-bottom: 28px;
	font-family: var(--mk-font-head); font-weight: 400; font-style: italic; font-size: 3rem; line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--mk-brand);
	transition: color .4s;
}
.mk-bg--dunkel .mk-card__num, .mk-bg--blau .mk-card__num { -webkit-text-stroke-color: var(--mk-accent); }
.mk-card:hover .mk-card__num { color: var(--mk-accent); -webkit-text-stroke-color: var(--mk-accent); }
.mk-card p { font-size: .95rem; opacity: .78; margin: 0; }

/* --------------------------------------------------------------------------
   Laufband
   ----------------------------------------------------------------------- */

.mk-section--laufband { padding-block: clamp(26px, 3.5vw, 44px); overflow: hidden; }
.mk-section--laufband.mk-bg--hell { border-block: 1px solid var(--mk-line); }
.mk-marquee { display: flex; width: max-content; animation: mk-marquee 40s linear infinite; }
.mk-marquee:hover { animation-play-state: paused; }
.mk-marquee__track { display: flex; list-style: none; margin: 0; padding: 0; }
.mk-marquee__track li {
	display: flex; align-items: center;
	font-family: var(--mk-font-head);
	font-weight: 500;
	font-size: clamp(1.6rem, 3.6vw, 3rem);
	letter-spacing: -.02em;
	text-transform: uppercase;
	white-space: nowrap;
	padding-inline: .5em;
}
.mk-marquee__track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.mk-bg--hell .mk-marquee__track li:nth-child(even), .mk-bg--sand .mk-marquee__track li:nth-child(even) { -webkit-text-stroke-color: var(--mk-ink); }
.mk-marquee__track li::after {
	content: ""; width: .32em; height: .32em; margin-left: 1em; border-radius: 50%;
	background: var(--mk-accent); flex: none;
}
@keyframes mk-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Kontakt
   ----------------------------------------------------------------------- */

.mk-contact {
	display: grid; grid-template-columns: 1fr minmax(0, 480px);
	gap: clamp(40px, 7vw, 110px); align-items: center;
}
.mk-contact__card {
	padding: clamp(24px, 4vw, 44px);
	border-radius: calc(var(--mk-radius) + 6px);
	background: var(--mk-white);
	color: var(--mk-ink);
	box-shadow: 0 50px 100px -50px color-mix(in srgb, var(--mk-dark) 50%, transparent);
}
.mk-bg--hell .mk-contact__card { background: var(--mk-sand); }
.mk-contact__card .mk-btn { width: 100%; justify-content: center; }
.mk-contact__row, .mk-bg--dunkel a.mk-contact__row, .mk-bg--blau a.mk-contact__row {
	display: flex; gap: 18px; align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--mk-line);
	color: var(--mk-ink);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.45;
}
.mk-contact__row small { display: block; font-weight: 500; font-size: .78rem; color: var(--mk-muted); letter-spacing: .04em; }
.mk-contact__icon {
	flex: none; display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 14px;
	background: color-mix(in srgb, var(--mk-brand) 8%, transparent);
	transition: background .3s, transform .4s var(--mk-ease);
}
.mk-contact__icon svg { width: 22px; fill: none; stroke: var(--mk-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-contact__row:hover .mk-contact__icon { background: var(--mk-accent); transform: rotate(-8deg); }
.mk-contact__row:hover .mk-contact__icon svg { stroke: var(--mk-ink); }

.mk-hours { margin: 2em 0 0; display: grid; gap: 8px; max-width: 360px; }
.mk-hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed currentColor; padding-bottom: 6px; opacity: .85; }
.mk-hours dt { font-weight: 600; }
.mk-hours dd { margin: 0; }

@media (max-width: 860px) { .mk-contact { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz …)
   ----------------------------------------------------------------------- */

.mk-page { padding: calc(var(--mk-header-h) + 80px) 0 var(--mk-section-y); }
.mk-page__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.mk-page .mk-content h2 { font-size: 1.5rem; margin-top: 2em; }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */

.mk-footer { background: var(--mk-dark); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.mk-footer a { color: var(--mk-white); text-decoration: none; }
.mk-footer a:hover { color: var(--mk-accent); }
.mk-footer__inner, .mk-footer__bottom {
	max-width: calc(var(--mk-container) + 2 * var(--mk-gutter));
	margin-inline: auto; padding-inline: var(--mk-gutter);
}
.mk-footer__inner {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
	padding-block: 72px 56px;
}
.mk-footer address { font-style: normal; }
.mk-footer strong { color: var(--mk-white); }
.mk-footer__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; }
.mk-footer__brand p { grid-column: 1 / -1; margin-top: 20px; }
.mk-footer__signet { display: block; width: 92px; color: var(--mk-cream) !important; transition: transform 2s var(--mk-ease-soft), color .6s; }
.mk-footer__signet:hover { transform: rotate(-8deg); color: var(--mk-accent) !important; }
.mk-footer__signet svg { width: 100%; height: auto; }
.mk-logo--footer { color: var(--mk-sand) !important; justify-self: start; }
.mk-logo--footer .mk-logo__svg { height: 72px; }
.mk-footer__bottom {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .85rem;
}
.mk-footer__menu { display: flex; gap: 20px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.mk-footer__bottom > span { margin-right: 20px; }
.mk-totop {
	display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	margin-left: auto;
	transition: background .3s, transform .4s var(--mk-ease);
}
.mk-totop svg { width: 18px; fill: none; stroke: var(--mk-white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-totop:hover { background: var(--mk-accent); transform: translateY(-4px); }
.mk-totop:hover svg { stroke: var(--mk-ink); }

@media (max-width: 760px) { .mk-footer__inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Scroll-Animationen (nur aktiv, wenn JS läuft -> html.mk-js)
   ----------------------------------------------------------------------- */

.mk-js [data-reveal] {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 1s var(--mk-ease), transform 1.1s var(--mk-ease);
	transition-delay: var(--delay, 0s);
}
.mk-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Clip sitzt am Kind-Element: komplett weggeclippte Elemente meldet der IntersectionObserver nie */
.mk-js [data-reveal-image] > :not(.mk-badge) { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--mk-ease); }
.mk-js .mk-split--reverse [data-reveal-image] > :not(.mk-badge) { clip-path: inset(0 0 0 100%); }
.mk-js [data-reveal-image].is-visible > :not(.mk-badge) { clip-path: inset(-80px); }
.mk-js [data-reveal-image] > :not(.mk-badge) img, .mk-js [data-reveal-image] > img { transform: scale(1.25); transition: transform 2s var(--mk-ease), scale .4s ease-in-out; }
/* Bild direkt in der Reveal-Figur: Clip-, Reveal- und Hover-Zoom-Transition zusammenführen (sonst gewinnt die Clip-Regel) */
.mk-js [data-reveal-image] > img:not(.mk-badge) { transition: clip-path 1.4s var(--mk-ease), transform 2s var(--mk-ease), scale .4s ease-in-out; }
.mk-js [data-reveal-image].is-visible img { transform: none; }
.mk-js .mk-split__media::before { inset: 0; }
.mk-js .mk-split__media.is-visible::before { inset: 28px -28px -28px 28px; }
.mk-js .mk-split--reverse .mk-split__media.is-visible::before { inset: 28px 28px -28px -28px; }

/* Sanfter Zoom (wie acl.at: 0.4s ease-in-out, 4 %) für alle Bilder, die nicht volle Breite haben – bleibt im Rahmen.
   Gilt für Sektionsbilder ([data-zoom]) und Bilder, die im Editor in den Text eingefügt werden. */
[data-zoom],
.mk-content .wp-block-image:not(.alignfull):not(.alignwide) { overflow: hidden; }
[data-zoom] img,
.mk-content .wp-block-image:not(.alignfull):not(.alignwide) img { transition: scale .4s ease-in-out; }
[data-zoom]:hover img,
.mk-content .wp-block-image:not(.alignfull):not(.alignwide):hover img { scale: 1.04; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.mk-marquee { animation: none; flex-wrap: wrap; width: auto; }
	.mk-marquee__track + .mk-marquee__track { display: none; }
}
