/*
 * MH Portfolio – warm-editorialer Onepager.
 *
 * Eigene Bildsprache (inspiriert, nicht kopiert): warmes Creme-Papier, tiefes
 * Waldgruen, Lime-Signalfarbe + Violett-Akzent, Marker-Eyebrows, Pill-Buttons,
 * runde Karten mit weichem Schatten. Kein Dark-Glass, kein Neon-Glow.
 *
 * Die 6 Kern-Tokens (primary/secondary/bg/surface/text/text-muted) kommen zur
 * Laufzeit aus dem Customizer (css-output.php). Alles andere sind statische
 * Ableitungen hier. Komponenten nutzen nur var(--mh-*), damit ein Farbwechsel
 * global durchschlaegt.
 */

/* ============================================================
 * Design-Tokens
 * ============================================================ */
:root {
	/* Vom Customizer ueberschrieben (Fallback = neue Palette) */
	--mh-primary: #c7e94a;   /* Lime – Signal / Marker / CTA-Fill */
	--mh-secondary: #6e52d9; /* Violett – Akzent / Links */
	--mh-bg: #f5f2e9;        /* warmes Creme-Papier */
	--mh-surface: #ffffff;   /* Karten */
	--mh-text: #16261f;      /* Tinte (tiefes Waldschwarz) */
	--mh-text-muted: #5e6e64;

	/* Statische Marken-Ableitungen */
	--mh-lime: var(--mh-primary);
	--mh-lime-deep: #b3d834;
	--mh-violet: var(--mh-secondary);
	--mh-forest: #0e241c;    /* dunkle Sektionen / Footer */
	--mh-cream: var(--mh-bg);
	--mh-sand: #f4e7d0;
	--mh-mint: #e0efdf;

	--mh-font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--mh-font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--mh-font-size: 16px;
	--mh-heading-weight: 700;

	--mh-container: 1180px;
	--mh-radius: 22px;
	--mh-radius-sm: 14px;

	--mh-border: color-mix(in srgb, var(--mh-text) 14%, transparent);
	--mh-border-soft: color-mix(in srgb, var(--mh-text) 8%, transparent);
	--mh-shadow: 0 20px 45px -24px color-mix(in srgb, var(--mh-forest) 55%, transparent);
	--mh-shadow-sm: 0 10px 26px -16px color-mix(in srgb, var(--mh-forest) 45%, transparent);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--mh-font-base);
	font-size: var(--mh-font-size);
	line-height: 1.65;
	color: var(--mh-text);
	background-color: var(--mh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mh-font-display);
	font-weight: var(--mh-heading-weight);
	line-height: 1.04;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }

a { color: var(--mh-violet); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--mh-text); }

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

:focus-visible { outline: 2px solid var(--mh-violet); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--mh-lime); color: var(--mh-forest); }

/* ============================================================
 * Layout
 * ============================================================ */
.mh-container {
	width: 100%;
	max-width: var(--mh-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.mh-section { padding-block: clamp(3rem, 7vw, 6rem); }
.mh-section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.mh-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
}

.mh-section__title {
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	color: var(--mh-text);
	margin: 0.35rem 0 0;
}

/* Zweiter Wortteil leichter + gedaempft = editoriale Zwei-Gewicht-Headline */
.mh-section__title .mh-accent,
.mh-hero__name .mh-accent {
	font-weight: 300;
	color: color-mix(in srgb, var(--mh-text) 62%, transparent);
}

/* Marker-Eyebrow: getuschter Lime-Highlighter */
.mh-eyebrow {
	display: inline-block;
	font-family: var(--mh-font-base);
	color: var(--mh-forest);
	background: var(--mh-lime);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.3em 0.6em;
	margin: 0;
	border-radius: 5px;
	transform: rotate(-1.4deg);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Karte */
.mh-card {
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow);
}

/* Buttons */
.mh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	font-family: var(--mh-font-base);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mh-btn:hover { transform: translateY(-2px); }
.mh-btn--primary {
	background: var(--mh-lime);
	color: var(--mh-forest);
	box-shadow: var(--mh-shadow-sm);
}
.mh-btn--primary:hover, .mh-btn--primary:focus-visible { background: var(--mh-lime-deep); color: var(--mh-forest); }
.mh-btn--violet {
	background: var(--mh-violet);
	color: #fff;
	box-shadow: var(--mh-shadow-sm);
}
.mh-btn--violet:hover, .mh-btn--violet:focus-visible { color: #fff; filter: brightness(1.08); }
.mh-btn--ghost {
	background: transparent;
	color: var(--mh-text);
	border-color: color-mix(in srgb, var(--mh-text) 22%, transparent);
}
.mh-btn--ghost:hover, .mh-btn--ghost:focus-visible {
	color: var(--mh-text);
	border-color: var(--mh-text);
	background: color-mix(in srgb, var(--mh-text) 4%, transparent);
}

/* ============================================================
 * Header (fixe Topbar, im Slider ueberlagernd)
 * ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--mh-cream) 82%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mh-border-soft);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 0.9rem;
}
.site-title { font-family: var(--mh-font-display); font-weight: 700; font-size: 1.1rem; color: var(--mh-text); letter-spacing: -0.02em; }
.custom-logo { max-height: 40px; width: auto; }

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-pills {
	display: flex; flex-wrap: wrap; gap: 0.25rem;
	list-style: none; margin: 0; padding: 0.35rem;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: 999px;
}
.nav-pills a {
	display: inline-block; padding: 0.5rem 1rem; border-radius: 999px;
	color: var(--mh-text-muted); font-size: 0.9rem; font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-pills a:hover,
.nav-pills .current-menu-item > a,
.nav-pills li.is-active > a { background: var(--mh-forest); color: #fff; }

/* ============================================================
 * Hero
 * ============================================================ */
.mh-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.mh-hero__card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: 2.5rem;
	padding: clamp(1.75rem, 4vw, 3.25rem);
	max-width: 100%;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow);
}
/* Weicher Pastell-Schimmer statt Neon-Glow */
.mh-hero__glow {
	position: absolute;
	inset: -30% -20% auto auto;
	width: 60%;
	height: 120%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--mh-lime) 55%, transparent), transparent 72%);
	pointer-events: none;
	z-index: 0;
}
.mh-hero__card--nomedia { grid-template-columns: minmax(0, 1fr); }
.mh-hero__card--nomedia .mh-hero__glow { display: none; }
.mh-hero__body { position: relative; z-index: 1; align-self: center; min-width: 0; }
.mh-hero__role, .mh-hero__name, .mh-hero__claim { overflow-wrap: break-word; }

.mh-badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.78rem; font-weight: 600; color: var(--mh-forest);
	background: color-mix(in srgb, var(--mh-lime) 30%, var(--mh-surface));
	border: 1px solid color-mix(in srgb, var(--mh-forest) 12%, transparent);
	padding: 0.32rem 0.7rem 0.32rem 0.6rem;
	border-radius: 999px;
	margin-bottom: 1.4rem;
}
.mh-badge__dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: #2fae63;
	box-shadow: 0 0 0 4px color-mix(in srgb, #2fae63 25%, transparent);
}

.mh-hero__role { color: var(--mh-violet); font-weight: 600; margin: 0 0 0.6rem; letter-spacing: 0.01em; }
.mh-hero__name {
	font-family: var(--mh-font-display);
	font-size: clamp(2.75rem, 7vw, 5.25rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: var(--mh-text);
	letter-spacing: -0.03em;
}
.mh-hero__claim { color: var(--mh-text-muted); max-width: 46ch; margin-bottom: 1.75rem; font-size: 1.05rem; }

.mh-contact {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1.5rem; margin: 0; padding: 0; list-style: none;
}
.mh-contact li { display: flex; align-items: center; gap: 0.6rem; color: var(--mh-text-muted); font-size: 0.92rem; min-width: 0; }
.mh-contact a { color: var(--mh-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-contact a:hover { color: var(--mh-violet); }
.mh-contact .mh-ico { color: var(--mh-violet); flex: none; width: 18px; height: 18px; }

.mh-hero__media { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.mh-hero__photo {
	width: min(100%, 320px);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	filter: saturate(1.03);
	border: 5px solid var(--mh-surface);
	box-shadow: 0 0 0 3px var(--mh-lime), var(--mh-shadow);
}
.mh-hero__photo-btn {
	position: relative; display: block; width: 100%;
	padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; font: inherit;
}
.mh-hero__photo-wrap { display: flex; justify-content: center; line-height: 0; }
.mh-hero__photo-btn .mh-hero__photo { display: block; transition: filter .25s ease, box-shadow .25s ease; }
.mh-hero__photo-btn:hover .mh-hero__photo,
.mh-hero__photo-btn:focus-visible .mh-hero__photo { filter: saturate(1.06) brightness(.97); box-shadow: 0 0 0 4px var(--mh-lime), var(--mh-shadow); }
.mh-hero__zoomhint {
	position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
	padding: .4rem .85rem; border-radius: 999px;
	background: color-mix(in srgb, var(--mh-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	border: 1px solid var(--mh-border); color: var(--mh-text);
	font-size: .78rem; font-weight: 600; box-shadow: 0 8px 22px -8px rgba(0,0,0,.4);
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.mh-hero__zoomhint svg { width: 16px; height: 16px; }
.mh-hero__photo-btn:hover .mh-hero__zoomhint,
.mh-hero__photo-btn:focus-visible .mh-hero__zoomhint { border-color: var(--mh-lime); color: var(--mh-forest); background: color-mix(in srgb, var(--mh-lime) 22%, var(--mh-surface)); }
.mh-lightbox--single .mh-lb__img { border-radius: 16px; }
.mh-hero__photo-fallback {
	display: flex; align-items: center; justify-content: center;
	width: min(100%, 320px); aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 2px dashed var(--mh-border);
	color: var(--mh-text-muted);
	background: var(--mh-mint);
	text-align: center; padding: 2rem;
}

/* ============================================================
 * Skills – gruppierte Chips
 * ============================================================ */
.mh-skillgroups { display: grid; gap: 1.75rem; }
.mh-skillgroup__title {
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--mh-text-muted); margin: 0 0 0.9rem;
	display: flex; align-items: center; gap: 0.75rem;
}
.mh-skillgroup__title::after { content: ""; flex: 1; height: 1px; background: var(--mh-border-soft); }
.mh-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.mh-chip {
	display: inline-flex; align-items: center; gap: 0.6rem;
	padding: 0.5rem 0.95rem 0.5rem 0.55rem;
	border-radius: 999px;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	box-shadow: var(--mh-shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.mh-chip:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow); }
.mh-chip__icon {
	width: 32px; height: 32px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px;
	background: var(--mh-mint);
	flex: none;
}
.mh-chip__icon svg, .mh-chip__icon img { width: 19px; height: 19px; object-fit: contain; }
.mh-chip__letter { font-weight: 700; color: var(--mh-forest); font-size: 0.95rem; }
.mh-chip__name { font-size: 0.9rem; font-weight: 500; color: var(--mh-text); white-space: nowrap; }

/* ============================================================
 * Sprachen / Level-Balken
 * ============================================================ */
.mh-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 560px; }
.mh-bar__head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.mh-bar__name { color: var(--mh-text); font-weight: 600; }
.mh-bar__val { color: var(--mh-text-muted); }
.mh-bar__track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--mh-text) 10%, transparent); overflow: hidden; }
.mh-bar__fill {
	height: 100%; border-radius: 999px;
	background: var(--mh-lime);
	width: 0;
	transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================================
 * Werdegang / Timeline
 * ============================================================ */
.mh-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.mh-timeline::before {
	content: ""; position: absolute; left: 87px; top: 10px; bottom: 10px;
	width: 2px; background: linear-gradient(to bottom, var(--mh-lime), var(--mh-border-soft));
}
.mh-tl { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem; padding-bottom: 1.4rem; }
.mh-tl:last-child { padding-bottom: 0; }
.mh-tl__rail { position: relative; text-align: right; padding-right: 1.25rem; padding-top: 0.15rem; }
.mh-tl__year { font-family: var(--mh-font-display); font-size: 1.2rem; font-weight: 700; color: var(--mh-text); letter-spacing: -0.02em; }
.mh-tl__dot {
	position: absolute; right: -6px; top: 0.4rem; width: 13px; height: 13px; border-radius: 50%;
	background: var(--mh-lime);
	box-shadow: 0 0 0 4px var(--mh-bg), 0 0 0 5px color-mix(in srgb, var(--mh-forest) 20%, transparent);
}
.mh-tl__card {
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: var(--mh-radius-sm);
	padding: 1.25rem 1.5rem;
	box-shadow: var(--mh-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.mh-tl__card:hover { box-shadow: var(--mh-shadow); transform: translateX(3px); }
.mh-tl__period {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.76rem; font-weight: 700; color: var(--mh-forest);
	background: color-mix(in srgb, var(--mh-lime) 45%, var(--mh-surface));
	padding: 0.32rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.mh-tl__period svg { width: 14px; height: 14px; }
.mh-tl__role { font-size: 1.2rem; margin: 0 0 0.3rem; color: var(--mh-text); }
.mh-tl__company { display: flex; gap: 0.4rem 0.9rem; flex-wrap: wrap; margin: 0 0 0.8rem; font-size: 0.9rem; }
.mh-tl__companyname { color: var(--mh-violet); font-weight: 600; }
.mh-tl__loc { color: var(--mh-text-muted); }
.mh-tl__loc::before { content: "· "; }
.mh-tl__body { color: var(--mh-text-muted); }
.mh-tl__body ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.mh-tl__body li { margin-bottom: 0.2rem; }
.mh-tl__body > :last-child { margin-bottom: 0; }

@media (max-width: 560px) {
	.mh-timeline::before { left: 55px; }
	.mh-tl { grid-template-columns: 56px 1fr; gap: 0.85rem; }
	.mh-tl__year { font-size: 0.95rem; }
	.mh-tl__card { padding: 1rem 1.15rem; }
}

/* ============================================================
 * Projekte
 * ============================================================ */
.mh-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.mh-project {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.mh-project:hover { transform: translateY(-5px); box-shadow: var(--mh-shadow); }
.mh-project__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mh-mint); }
.mh-project__media img { width: 100%; height: 100%; object-fit: cover; }
.mh-project__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.mh-project__type { color: var(--mh-violet); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.mh-project__title { font-size: 1.3rem; margin: 0; }
.mh-project__title a { color: var(--mh-text); }
.mh-project__title a:hover { color: var(--mh-violet); }
.mh-project__excerpt { color: var(--mh-text-muted); font-size: 0.92rem; margin: 0; }
.mh-project__more { margin-top: auto; padding-top: 0.75rem; font-weight: 600; font-size: 0.9rem; color: var(--mh-violet); }
.mh-project__more:hover { color: var(--mh-text); }

/* ============================================================
 * Ausbildung
 * ============================================================ */
.mh-edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.mh-edu li { position: relative; padding-left: 1.5rem; }
.mh-edu li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--mh-lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-lime) 30%, transparent); }
.mh-edu__title { color: var(--mh-text); font-weight: 600; }
.mh-edu__meta { color: var(--mh-text-muted); font-size: 0.9rem; }

/* ============================================================
 * Single-Projekt + Seiten
 * ============================================================ */
.mh-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--mh-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.mh-back:hover { color: var(--mh-violet); }
.mh-single__media { border-radius: var(--mh-radius); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--mh-border-soft); box-shadow: var(--mh-shadow-sm); }
.mh-single__title { font-size: clamp(2rem, 5vw, 3.25rem); }
.mh-single__type { color: var(--mh-violet); font-weight: 600; margin-bottom: 1.5rem; }

.mh-prose { color: var(--mh-text-muted); max-width: 72ch; }
.mh-prose h1, .mh-prose h2, .mh-prose h3, .mh-prose h4 { color: var(--mh-text); margin-top: 2rem; }
.mh-prose a { color: var(--mh-violet); text-decoration: underline; text-underline-offset: 3px; }
.mh-prose a:hover { color: var(--mh-text); }
.mh-prose img { border-radius: var(--mh-radius-sm); margin-block: 1.5rem; }
.mh-prose ul, .mh-prose ol { padding-left: 1.25rem; }
.mh-prose strong { color: var(--mh-text); }

/* ============================================================
 * Footer (dunkel – Wald)
 * ============================================================ */
.site-footer {
	background: var(--mh-forest);
	color: color-mix(in srgb, #fff 78%, var(--mh-forest));
	margin-top: 4rem;
	padding-block: 2.5rem;
}
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-menu { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: color-mix(in srgb, #fff 72%, var(--mh-forest)); font-size: 0.9rem; }
.footer-menu a:hover { color: var(--mh-lime); }
.site-footer__copy { color: color-mix(in srgb, #fff 55%, var(--mh-forest)); font-size: 0.85rem; margin: 0; }

/* Backend-Hinweis (nur eingeloggt sichtbar) */
.mh-empty-hint {
	color: var(--mh-text-muted); font-size: 0.9rem;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--mh-border);
	border-radius: var(--mh-radius-sm);
	background: color-mix(in srgb, var(--mh-text) 3%, transparent);
}

/* ============================================================
 * Accessibility
 * ============================================================ */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	padding: 0.75rem 1rem; background: var(--mh-lime); color: var(--mh-forest);
	border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 860px) {
	.mh-hero__card { grid-template-columns: minmax(0, 1fr); }
	.mh-hero__media { order: -1; min-height: auto; }
	.mh-hero__photo, .mh-hero__photo-fallback { width: min(52%, 180px); }
	.site-nav { display: none; }
	.site-header__inner { justify-content: space-between; }
}

@media (max-width: 560px) {
	.mh-contact { grid-template-columns: 1fr; }
	.mh-section__head { margin-bottom: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
	.mh-bar__fill { transition: none !important; }
	.mh-slides { scroll-behavior: auto; }
}

/* ============================================================
 * Vollbild-Slider (Startseite: body.mh-front-slider)
 * ============================================================ */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 200;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--mh-cream) 90%, transparent), transparent);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom: none;
}
.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.site-legal-nav { display: flex; }
.legal-menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.legal-menu a { color: var(--mh-text-muted); font-size: 0.85rem; }
.legal-menu a:hover { color: var(--mh-violet); }

body:not(.mh-front-slider) .site-main { padding-top: 5.5rem; }

body.mh-front-slider { overflow: hidden; height: 100dvh; }
body.mh-front-slider .site-footer { display: none; }

.mh-slider { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; }
.mh-slides {
	display: flex; height: 100%;
	overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.mh-slides::-webkit-scrollbar { display: none; }

.mh-slide {
	flex: 0 0 100%; width: 100%; height: 100%;
	scroll-snap-align: start; scroll-snap-stop: always;
	overflow-y: auto; overflow-x: hidden;
	display: flex; flex-direction: column; justify-content: safe center;
	padding: clamp(5rem, 11vh, 7rem) clamp(0.75rem, 2vw, 1.25rem) clamp(6rem, 13vh, 8rem);
	scrollbar-width: thin;
	scrollbar-color: var(--mh-border) transparent;
	background-color: var(--mh-bg);
}
.mh-slide > .mh-container { width: 100%; }

/* Panel-Rhythmus: jede Sektion eine eigene warme Flaeche */
#slide-hero {
	background:
		radial-gradient(120% 90% at 82% 8%, color-mix(in srgb, var(--mh-sand) 85%, transparent) 0%, transparent 55%),
		linear-gradient(160deg, var(--mh-mint) 0%, var(--mh-cream) 46%, color-mix(in srgb, var(--mh-sand) 70%, var(--mh-cream)) 100%);
}
#slide-about { background: linear-gradient(160deg, color-mix(in srgb, var(--mh-mint) 55%, var(--mh-cream)) 0%, var(--mh-cream) 100%); }
#slide-skills { background-color: var(--mh-cream); }
#slide-experience { background-color: var(--mh-mint); }
#slide-projects { background-color: #fbfaf4; }
#slide-references { background-color: #ffffff; }
#slide-education {
	background: linear-gradient(155deg, color-mix(in srgb, var(--mh-sand) 60%, var(--mh-cream)) 0%, var(--mh-cream) 60%, var(--mh-mint) 100%);
}
.mh-slide--hero { padding-top: clamp(5rem, 10vh, 6.5rem); }

/* Pfeile */
.mh-arrow {
	position: fixed; top: 50%; transform: translateY(-50%); z-index: 150;
	width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	color: var(--mh-text); cursor: pointer;
	box-shadow: var(--mh-shadow-sm);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.mh-arrow:hover { background: var(--mh-lime); color: var(--mh-forest); }
.mh-arrow--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.mh-arrow--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.mh-arrow[hidden] { display: none; }

/* Icon-Navbar unten (weisse Pille, ueber jedem hellen Panel lesbar) */
/* Wrapper haelt die fixe Position + die Rand-Verlaeufe (Scroll-Hinweis) */
.mh-slidenav-wrap {
	position: fixed;
	bottom: clamp(1rem, 3vh, 1.75rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 150;
	width: max-content;
	max-width: calc(100vw - 1.5rem);
	border-radius: 999px;
}
.mh-slidenav-wrap::before,
.mh-slidenav-wrap::after {
	content: "";
	position: absolute;
	top: 1px;
	bottom: 1px;
	width: 3.4rem;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.mh-slidenav-wrap::before {
	left: 1px;
	border-radius: 999px 0 0 999px;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235e6e64'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%206l-6%206%206%206'/%3E%3C/svg%3E") no-repeat left 0.55rem center,
		linear-gradient(to right, var(--mh-surface), transparent);
}
.mh-slidenav-wrap::after {
	right: 1px;
	border-radius: 0 999px 999px 0;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235e6e64'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206l6%206-6%206'/%3E%3C/svg%3E") no-repeat right 0.55rem center,
		linear-gradient(to left, var(--mh-surface), transparent);
}
.mh-slidenav-wrap.can-left::before { opacity: 1; }
.mh-slidenav-wrap.can-right::after { opacity: 1; animation: mh-navbob 1.5s ease-in-out infinite; }

@keyframes mh-navbob {
	0%, 100% { background-position: right 0.55rem center, 0 0; }
	50%      { background-position: right 0.28rem center, 0 0; }
}

.mh-slidenav {
	display: flex;
	gap: 0.2rem;
	padding: 0.4rem;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: 999px;
	box-shadow: var(--mh-shadow);
}
.mh-slidenav::-webkit-scrollbar { display: none; }
.mh-slidenav__item {
	display: inline-flex; align-items: center; gap: 0.45rem;
	flex: none;
	padding: 0.55rem 0.85rem; border-radius: 999px;
	color: var(--mh-text-muted); font-size: 0.82rem; font-weight: 500; white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.mh-slidenav__item:hover { color: var(--mh-forest); background: color-mix(in srgb, var(--mh-lime) 40%, transparent); text-decoration: none; }
.mh-slidenav__item.is-active { background: var(--mh-forest); color: #fff; }
.mh-slidenav__item.is-active:hover { color: #fff; background: var(--mh-forest); }
.mh-slidenav .mh-ico { width: 18px; height: 18px; flex: none; }

@media (max-width: 680px) {
	.mh-slidenav__label { display: none; }
	.mh-slidenav__item { padding: 0.6rem; }
	.site-legal-nav { display: none; }
	.mh-arrow { width: 42px; height: 42px; }
}

/* ============================================================
 * Reveal-Animationen
 * ============================================================ */
body.mh-js .mh-slide .mh-r {
	opacity: 0; transform: translateY(26px);
	transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}
body.mh-js .mh-slide.is-revealed .mh-r { opacity: 1; transform: none; }

/* Dezente Dauerbewegung (kein Neon) */
@keyframes mh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mh-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #2fae63 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.mh-badge__dot { animation: mh-pulse 2.4s ease-out infinite; }
body.mh-js .mh-slide.is-revealed .mh-hero__photo-btn,
body.mh-js .mh-slide.is-revealed .mh-hero__media > .mh-hero__photo { animation: mh-float 6s ease-in-out infinite; }

/* ============================================================
 * Hero: Kennzahlen + CTAs
 * ============================================================ */
.mh-hero__stats {
	display: flex; gap: clamp(1.25rem, 4vw, 2.75rem); list-style: none;
	margin: 1.75rem 0 0; padding: 1.35rem 0 0;
	border-top: 1px solid var(--mh-border-soft); flex-wrap: wrap;
}
.mh-hero__stats li { display: flex; flex-direction: column; }
.mh-stat__num {
	font-family: var(--mh-font-display);
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700; line-height: 1; letter-spacing: -0.03em;
	color: var(--mh-text);
}
.mh-stat__num::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--mh-lime); margin-top: 0.5rem; }
.mh-stat__label { font-size: 0.8rem; color: var(--mh-text-muted); margin-top: 0.5rem; }

.mh-hero__cta { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }

/* Hero-Sprachen */
.mh-hero__langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.mh-lang__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.mh-lang__name { font-size: 0.88rem; font-weight: 600; color: var(--mh-text); }
.mh-lang__sub { font-size: 0.72rem; color: var(--mh-text-muted); }
.mh-hero__langs .mh-bar__track { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--mh-text) 10%, transparent); overflow: hidden; }
.mh-hero__langs .mh-bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--mh-lime); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Rechtliches-Links im Slider */
.mh-sliderlegal { position: fixed; left: clamp(1rem, 4vw, 2.5rem); bottom: clamp(1rem, 3vh, 1.75rem); z-index: 150; }
.mh-sliderlegal__menu { display: flex; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }
.mh-sliderlegal__menu a { font-size: 0.72rem; color: var(--mh-text-muted); }
.mh-sliderlegal__menu a:hover { color: var(--mh-violet); }
body.mh-front-slider .site-legal-nav { display: none; }

@media (max-width: 680px) {
	.mh-sliderlegal {
		bottom: 4.9rem; left: 50%; transform: translateX(-50%);
		background: var(--mh-surface);
		border: 1px solid var(--mh-border-soft);
		border-radius: 999px; padding: 0.3rem 0.85rem;
		box-shadow: var(--mh-shadow-sm);
	}
	.mh-sliderlegal__menu { gap: 0.85rem; }
	.mh-sliderlegal__menu a { font-size: 0.7rem; }
}

/* ============================================================
 * Referenzen-Gallery
 * ============================================================ */
.mh-ref-subhead {
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--mh-text-muted); margin: 0 0 1rem;
	display: flex; align-items: center; gap: 0.75rem;
}
.mh-ref-subhead::after { content: ""; flex: 1; height: 1px; background: var(--mh-border-soft); }
.mh-ref-subhead:not(:first-child) { margin-top: 2.75rem; }
.mh-ref-lead { color: var(--mh-text-muted); font-size: 0.92rem; margin: -0.25rem 0 1.25rem; max-width: 60ch; }

/* Klickbare Live-Website-Karten */
.mh-reflinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.mh-reflink {
	display: flex; align-items: center; gap: 0.9rem;
	padding: 1rem 1.15rem;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	border-radius: var(--mh-radius-sm);
	box-shadow: var(--mh-shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mh-reflink:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow); border-color: var(--mh-lime); }
.mh-reflink__icon {
	flex: none; width: 46px; height: 46px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--mh-surface);
	border: 1px solid var(--mh-border-soft);
	overflow: hidden;
}
.mh-reflink__icon img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
/* Fallback-Monogramm, falls eine Seite kein Favicon liefert */
.mh-reflink__icon--mono {
	background: var(--mh-mint); border-color: transparent; color: var(--mh-forest);
	font-family: var(--mh-font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.mh-reflink__text { display: flex; flex-direction: column; min-width: 0; }
.mh-reflink__name { font-weight: 600; color: var(--mh-text); font-size: 1rem; }
.mh-reflink:hover .mh-reflink__name { color: var(--mh-violet); }
.mh-reflink__url { color: var(--mh-text-muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-reflink__url::after { content: " ↗"; color: var(--mh-violet); font-weight: 600; }

/* Ueber mich / Anschreiben – Brief-Karte */
.mh-about { max-width: 820px; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.75rem); }
.mh-about .mh-prose { max-width: none; color: var(--mh-text-muted); }
.mh-about .mh-prose > p:first-child { font-size: 1.2rem; color: var(--mh-text); }
.mh-about .mh-prose p { margin: 0 0 1.15rem; }
.mh-about__sign { font-family: var(--mh-font-display); font-weight: 700; font-size: 1.35rem; color: var(--mh-text); margin-top: 1.75rem; letter-spacing: -0.02em; }

.mh-refgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.15rem; align-items: start; }
.mh-ref { margin: 0; }
.mh-ref a {
	position: relative; display: block; aspect-ratio: 4 / 5;
	border-radius: var(--mh-radius-sm); overflow: hidden;
	border: 1px solid var(--mh-border-soft);
	background: var(--mh-mint);
	box-shadow: var(--mh-shadow-sm);
	cursor: zoom-in;
}
.mh-ref img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.mh-ref a::after {
	content: "Ansehen"; position: absolute; inset: 0;
	display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem;
	background: linear-gradient(to top, color-mix(in srgb, var(--mh-forest) 82%, transparent), transparent 55%);
	color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
	opacity: 0; transition: opacity 0.3s ease;
}
.mh-ref a:hover { border-color: var(--mh-lime); }
.mh-ref a:hover img { transform: scale(1.05); }
.mh-ref a:hover::after { opacity: 1; }

/* Lightbox */
.mh-lightbox {
	position: fixed; inset: 0; z-index: 1000; display: none;
	align-items: center; justify-content: center; padding: 5vh 6vw;
	background: color-mix(in srgb, var(--mh-forest) 92%, #000);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mh-lightbox.is-open { display: flex; }
.mh-lb__img { max-width: 90vw; max-height: 86vh; border-radius: 12px; border: 1px solid var(--mh-border); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7); }
.mh-lb__close { position: fixed; top: 16px; right: 22px; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }
.mh-lb__nav {
	position: fixed; top: 50%; transform: translateY(-50%);
	width: 52px; height: 52px; border-radius: 50%;
	background: color-mix(in srgb, #fff 14%, transparent);
	border: 1px solid color-mix(in srgb, #fff 30%, transparent);
	color: #fff; font-size: 1.25rem; cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.mh-lb__prev { left: 18px; }
.mh-lb__next { right: 18px; }
.mh-lb__nav:hover, .mh-lb__close:hover { color: var(--mh-lime); border-color: var(--mh-lime); }
.mh-lb__count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: color-mix(in srgb, #fff 70%, transparent); font-size: 0.85rem; }
body.mh-lb-open { overflow: hidden; }
.mh-refvideos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.mh-embed {
	position: relative; padding-top: 62%; border-radius: var(--mh-radius-sm); overflow: hidden;
	border: 1px solid var(--mh-border-soft);
	background: var(--mh-mint);
	box-shadow: var(--mh-shadow-sm);
}
.mh-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
 * Persistent-Avatar
 * ============================================================ */
.mh-avatar {
	position: fixed; top: 11px; left: clamp(1rem, 4vw, 2.5rem);
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover; z-index: 210;
	border: 2px solid var(--mh-lime);
	box-shadow: var(--mh-shadow-sm);
	opacity: 0; transform: translate(16px, 12px) scale(0.7); pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
body.mh-past-hero .mh-avatar { opacity: 1; transform: none; }
body.mh-past-hero .site-title { margin-left: 58px; }
.site-title { transition: margin-left 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
	.mh-avatar, .site-title { transition: none !important; }
}
