/* MH Projekte-Rad v2. Handy: Karte oben, Rad als Bogen darunter. Desktop: Rad links, Karte rechts. */
.mhpr {
	--pr-accent: var(--e-global-color-primary, #f15b43);
	--pr-navy: var(--e-global-color-secondary, #364f75);
	--pr-text: var(--e-global-color-text, #383838);
	--pr-muted: #66707d;
	--pr-soft: #f6f3f2;
	--pr-line: #e6e1de;
	--pr-surface: #ffffff;
	--pr-head: "Playfair Display", Georgia, serif;
	--pr-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--pr-body);
	color: var(--pr-text);
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 16px 56px;
	box-sizing: border-box;
}
.mhpr *, .mhpr *::before, .mhpr *::after { box-sizing: border-box; }
body.mhpr-page .page-header, body.mhpr-page .entry-title { display: none; }

/* Schutz gegen Button-Stile des Elementor-Kits */
body .mhpr-ui button {
	background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0;
	color: inherit; font: inherit; text-transform: none; letter-spacing: normal; text-decoration: none;
	min-width: 0; min-height: 0; width: auto; height: auto; line-height: normal; transition: none;
}
body .mhpr-ui .mhpr-meta { text-align: left; }
body .mhpr-ui .mhpr-card, body .mhpr-ui .mhpr-card:hover { text-decoration: none; }


.mhpr-ui { -webkit-user-select: none; user-select: none; }
.mhpr-head { text-align: center; margin: 0 auto 24px; max-width: 680px; }
.mhpr-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-accent); }
.mhpr .mhpr-h { font-family: var(--pr-head); font-size: clamp(32px, 6vw, 56px); line-height: 1.08; font-weight: 700; color: var(--pr-navy); margin: 0 0 12px; text-wrap: balance; }
.mhpr-intro { margin: 0 auto; font-size: 15px; line-height: 1.65; color: var(--pr-muted); max-width: 60ch; text-wrap: pretty; }

/* Grundlayout (Handy): Karte, dann Rad, dann Steuerung */
.mhpr-body { display: flex; flex-direction: column; }
.mhpr-stage { display: contents; }
.mhpr-card { order: 1; }
.mhpr-wheel { order: 2; }
.mhpr-controls { order: 3; }
.mhpr-hint { order: 4; }

.mhpr-card {
	position: relative; display: grid; grid-template-columns: 1fr;
	width: 100%; max-width: 760px; margin: 0 auto; text-decoration: none; color: inherit;
	background: var(--pr-surface); border-radius: 16px; overflow: hidden;
	box-shadow: 0 18px 50px -24px rgba(54, 79, 117, .45), 0 2px 8px rgba(0, 0, 0, .05);
	touch-action: pan-y;
}
.mhpr-photo { display: block; aspect-ratio: 16 / 10; max-width: 100%; background: var(--pr-soft); overflow: hidden; }
.mhpr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; pointer-events: none; }
.mhpr-meta { display: block; padding: 16px 18px 18px; min-width: 0; }
.mhpr-chip {
	display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: var(--pr-accent); border: 1px solid var(--pr-accent); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.mhpr-chip[hidden] { display: none; }
.mhpr-title { display: block; font-family: var(--pr-head); font-size: clamp(20px, 3.2vw, 28px); line-height: 1.2; font-weight: 700; color: var(--pr-navy); margin: 0 0 6px; text-wrap: balance; }
.mhpr-sub { display: block; font-size: 14px; color: var(--pr-muted); margin-bottom: 10px; }
.mhpr-cta { font-size: 14px; font-weight: 600; color: var(--pr-accent); }
.mhpr-card:hover .mhpr-cta, .mhpr-card:focus-visible .mhpr-cta { text-decoration: underline; text-underline-offset: 3px; }
.mhpr-card:focus-visible { outline: 3px solid var(--pr-accent); outline-offset: 3px; }
.mhpr-card.is-in .mhpr-photo img, .mhpr-card.is-in .mhpr-meta { animation: mhpr-in .3s ease both; }
@keyframes mhpr-in { from { opacity: .2; } to { opacity: 1; } }

/* Rad */
.mhpr-wheel { position: relative; overflow: hidden; touch-action: none; margin-top: 14px; cursor: grab; outline: none; }
.mhpr-wheel:active { cursor: grabbing; }
.mhpr-wheel:focus-visible { box-shadow: inset 0 0 0 2px var(--pr-accent); border-radius: 12px; }
.mhpr-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(54, 79, 117, .22); background: radial-gradient(circle, rgba(54, 79, 117, .035) 0 69%, transparent 70%); pointer-events: none; }
.mhpr-slots { position: absolute; inset: 0; }
body .mhpr-ui button.mhpr-slot {
	position: absolute; left: 0; top: 0; padding: 0; border: 2px solid var(--pr-surface); border-radius: 50%;
	background: var(--pr-soft); box-shadow: 0 3px 10px rgba(0, 0, 0, .14); cursor: pointer;
	transform-origin: 50% 50%; will-change: transform; touch-action: none;
}
body .mhpr-ui button.mhpr-slot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; pointer-events: none; }
.mhpr-noimg { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--pr-line); }
body .mhpr-ui button.mhpr-slot.is-active { border-color: var(--pr-accent); box-shadow: 0 0 0 2px rgba(241, 91, 67, .18), 0 6px 14px rgba(0, 0, 0, .18); }
.mhpr-tick {
	position: absolute; left: 50%; top: -6px; font-size: 10px; font-weight: 700; color: var(--pr-navy);
	white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums;
}
body .mhpr-ui button.mhpr-slot.is-active .mhpr-tick { color: var(--pr-accent); }

/* Jahre im Rad: Handy waagrecht, Desktop senkrecht; mittleres Jahr groß */
.mhpr-hub { position: absolute; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; z-index: 120; }
.mhpr-years { position: relative; flex: 1 1 auto; min-width: 0; height: 64px; overflow: hidden; touch-action: none; cursor: grab; outline: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.mhpr-years:active { cursor: grabbing; }
.mhpr-ytrack { position: absolute; inset: 0; }
body .mhpr-ui button.mhpr-y { position: absolute; left: 0; top: 0; width: 96px; height: 52px; padding: 0; border: 0; background: none;
	font: 700 36px/1 var(--pr-head); color: var(--pr-muted); font-variant-numeric: lining-nums tabular-nums;
	cursor: pointer; transform-origin: 50% 50%; will-change: transform; touch-action: none; border-radius: 8px; }
body .mhpr-ui button.mhpr-y.is-mid { color: var(--pr-navy); }
body .mhpr-ui button.mhpr-y.is-word { font-size: 24px; }
body .mhpr-ui button.mhpr-y:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 2px; }
.mhpr-hubn { flex: 0 0 100%; text-align: center; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pr-accent); }
body .mhpr-ui button.mhpr-arr { flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: none; color: var(--pr-navy); opacity: .45; cursor: pointer; transition: opacity .15s, color .15s; }
body .mhpr-ui button.mhpr-arr:hover, body .mhpr-ui button.mhpr-arr:focus-visible { opacity: 1; color: var(--pr-accent); outline: none; }
body .mhpr-ui button.mhpr-arr svg { display: block; }
.mhpr-ya-prev svg, .mhpr-ra-prev svg { transform: rotate(-90deg); }
.mhpr-ya-next svg, .mhpr-ra-next svg { transform: rotate(90deg); }
body .mhpr-ui button.mhpr-ra { position: absolute; z-index: 130; }

/* Steuerung: Pfeile und Zähler */
.mhpr-controls { display: grid; gap: 8px; justify-items: center; margin-top: 4px; }
.mhpr-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
body .mhpr-ui button.mhpr-btn {
	width: 48px; height: 44px; border-radius: 22px; border: 1px solid var(--pr-line); background: var(--pr-surface);
	font-size: 24px; line-height: 1; color: var(--pr-navy); cursor: pointer; padding: 0 0 3px;
}
body .mhpr-ui button.mhpr-btn:hover, body .mhpr-ui button.mhpr-btn:focus-visible { border-color: var(--pr-accent); color: var(--pr-accent); outline: none; }
.mhpr-yearpick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pr-muted); }
.mhpr-yearpick select { min-height: 44px; border: 1px solid var(--pr-line); border-radius: 10px; padding: 0 12px; font: 600 15px var(--pr-body); color: var(--pr-navy); background: var(--pr-surface); }
.mhpr-count { font-size: 13px; color: var(--pr-muted); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.mhpr-hint { text-align: center; font-size: 12px; color: var(--pr-muted); margin: 10px 0 0; }

/* Desktop: Rad links, Karte und Steuerung rechts */
.mhpr-ui.is-desk .mhpr-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 36px; align-items: center; }
.mhpr-ui.is-desk .mhpr-stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mhpr-ui.is-desk .mhpr-wheel { margin-top: 0; order: 1; }
.mhpr-ui.is-desk .mhpr-stage { order: 0; }
.mhpr-ui.is-desk .mhpr-card { grid-template-columns: 1fr; max-width: none; }
.mhpr-ui.is-desk .mhpr-photo { aspect-ratio: auto; height: clamp(260px, 42vh, 380px); }
.mhpr-ui.is-desk .mhpr-meta { padding: 20px 24px 22px; }
.mhpr-ui.is-desk .mhpr-controls { justify-items: stretch; }
.mhpr-ui.is-desk .mhpr-row { justify-content: center; }
.mhpr-ui.is-desk .mhpr-hint { margin: 0; }
.mhpr-ui.is-desk .mhpr-ui.is-desk .mhpr-ui.is-desk .mhpr-tick { left: -6px; top: 50%; }

/* Desktop: Jahre senkrecht links im Rad, Pfeile oben und unten */
.mhpr-ui.is-desk .mhpr-hub { flex-direction: column; flex-wrap: nowrap; }
.mhpr-ui.is-desk .mhpr-years { flex: 0 0 auto; width: 100%; height: 300px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); }
.mhpr-ui.is-desk .mhpr-y { width: 140px; height: 60px; font-size: 56px; }
.mhpr-ui.is-desk .mhpr-y.is-word { font-size: 34px; }
.mhpr-ui.is-desk .mhpr-hubn { flex: 0 0 auto; order: 4; margin-top: 6px; }
.mhpr-ui.is-desk .mhpr-ya-next { order: 3; }
.mhpr-ui.is-desk .mhpr-ya-prev svg, .mhpr-ui.is-desk .mhpr-ra-prev svg { transform: none; }
.mhpr-ui.is-desk .mhpr-ya-next svg, .mhpr-ui.is-desk .mhpr-ra-next svg { transform: rotate(180deg); }

/* Handy: Foto links, Rad senkrecht rechts, Jahre darunter */
.mhpr-ui.is-phone .mhpr-body { display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: 8px; align-items: center; }
.mhpr-ui.is-phone .mhpr-stage { display: contents; }
.mhpr-ui.is-phone .mhpr-card { grid-column: 1; grid-row: 1; }
.mhpr-ui.is-phone .mhpr-wheel { grid-column: 2; grid-row: 1; margin-top: 0; align-self: stretch; }
.mhpr-ui.is-phone .mhpr-controls { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
.mhpr-ui.is-phone .mhpr-hint { grid-column: 1 / -1; grid-row: 3; }
.mhpr-ui.is-phone .mhpr-photo { aspect-ratio: 4 / 5; }
.mhpr-ui.is-phone .mhpr-meta { padding: 12px 14px 14px; }
.mhpr-ui.is-phone .mhpr-title { font-size: 18px; }
.mhpr-ui.is-phone .mhpr-sub { font-size: 13px; margin-bottom: 6px; }
.mhpr-ui.is-phone .mhpr-cta { font-size: 13px; }
.mhpr-ui.is-phone .mhpr-tick { left: calc(100% + 4px); top: 50%; }
.mhpr-ui.is-phone .mhpr-hub { position: relative; width: 100%; }
.mhpr-ui.is-phone .mhpr-ra-prev svg { transform: none; }
.mhpr-ui.is-phone .mhpr-ra-next svg { transform: rotate(180deg); }

/* Liste (ohne JavaScript sichtbar, sonst aufklappbar) */
.mhpr-all { max-width: 760px; margin: 32px auto 0; font-size: 14px; }
.mhpr-all summary { cursor: pointer; color: var(--pr-navy); font-weight: 600; text-align: center; }
.mhpr-list { margin: 14px 0 0; padding-left: 22px; }
@media (min-width: 760px) { .mhpr-list { columns: 2; column-gap: 32px; } }
.mhpr-list li { margin: 0 0 6px; break-inside: avoid; }
.mhpr-list a { color: var(--pr-navy); }
.mhpr-list span { color: var(--pr-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
	.mhpr-card.is-in .mhpr-photo img, .mhpr-card.is-in .mhpr-meta { animation: none; }
}
