/* =========================================================
   JustHealth Theme – Haupt-Stylesheet
   Design-System nach OnkoPass-Brand-Guide, Effekte inspiriert
   von MagicUI (Marquee, Shimmer-Button, Border-Beam, Blur-Fade).
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
	--blue: #41597D;
	--blue-700: #394C6B;
	--blue-light: #EAEDF4;
	--pink: #E88E82;
	--pink-100: #FBE8E5;
	--grey-50: #F8F8F8;
	--grey-100: #F0F0F0;
	--grey-500: #A4A3A3;
	--grey-700: #6B6A6A;
	--grey-950: #282727;
	--shadow-raised: 0px 1px 2px rgba(0, 0, 0, 0.1);
	--shadow-lift: 0px 12px 32px -12px rgba(40, 39, 39, 0.18);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--maxw: 1080px;
	--header-h: 68px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Anker-Ziele nicht unter dem fixierten Header verschwinden lassen */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-feature-settings: 'lnum' 1, 'tnum' 1;
	-webkit-font-smoothing: antialiased;
	color: var(--grey-950);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.6;
	background: #FFFFFF;
	overflow-x: hidden;
}

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

h1, h2, h3, h4 {
	font-weight: 600;
	letter-spacing: -0.5px;
	color: var(--grey-950);
	margin: 0;
}

a { color: var(--blue); }
a:hover { color: var(--blue-700); }

.jh-container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 32px;
}

/* ---------- Skip-Link ---------- */
.jh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--blue);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}
.jh-skip-link:focus { left: 0; color: #fff; }

/* Skip-Link-Ziel: kein Dauer-Outline beim programmatischen Fokus */
#jh-content:focus { outline: none; }

/* =========================================================
   HEADER
   ========================================================= */
.jh-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 500;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease, background 200ms ease;
}

.jh-header.is-scrolled {
	border-bottom-color: var(--grey-100);
	background: rgba(255, 255, 255, 0.92);
}

.jh-header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 32px;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.jh-brandmark {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.jh-brandmark-logo { width: 28px; height: 28px; display: block; }

/* Original-Schriftzug als Bild (aus dem Firmenlogo ausgeschnitten) */
.jh-brandmark-word { height: 17px; width: auto; display: block; }

.jh-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.jh-nav a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--grey-700);
	text-decoration: none;
	transition: color 150ms ease-out;
}

.jh-nav a:hover { color: var(--blue); }

.jh-nav-ext svg { width: 13px; height: 13px; opacity: 0.6; }

.jh-nav .jh-nav-cta {
	background: var(--blue);
	color: #FFFFFF;
	border-radius: 64px;
	padding: 9px 20px;
	box-shadow: var(--shadow-raised);
	transition: background-color 150ms ease-out;
}
.jh-nav .jh-nav-cta:hover { background: var(--blue-700); color: #FFFFFF; }

/* Mobile-Toggle */
.jh-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
}
.jh-nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--grey-950);
	border-radius: 2px;
	transition: transform 200ms var(--ease), opacity 200ms;
}
.jh-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.jh-nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.jh-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #FFFFFF;
}

.jh-hero-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Maus-Spotlight: weicher radialer Schein, Position via CSS-Variablen aus JS */
.jh-hero-spotlight {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(
		600px circle at var(--spot-x, 50%) var(--spot-y, 35%),
		rgba(65, 89, 125, 0.07),
		transparent 65%
	);
}

.jh-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 120px 24px 96px;
	max-width: 900px;
}

/* Badge */
.jh-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 7px 16px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--blue-700);
	background: rgba(234, 237, 244, 0.7);
	border: 1px solid rgba(65, 89, 125, 0.12);
	border-radius: 64px;
}

/* Headline */
.jh-hero-headline {
	font-size: clamp(2.375rem, 6vw, 4rem);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -2px;
	margin: 0 0 28px;
}

/* Animierter Verlaufstext (MagicUI "animated gradient text").
   Pink-Stop abgedunkelt (#D06B5E statt #E88E82), damit der Text
   auf Weiß jederzeit mindestens 3:1 Kontrast hält (WCAG large text). */
.jh-gradient-text {
	background: linear-gradient(90deg, var(--blue) 0%, #D06B5E 35%, var(--blue-700) 70%, var(--blue) 100%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: jh-gradient-shift 7s linear infinite;
}

@keyframes jh-gradient-shift {
	to { background-position: -300% 0; }
}

.jh-hero-sub {
	color: var(--grey-700);
	font-size: 1.1875rem;
	line-height: 1.65;
	max-width: 580px;
	margin: 0 auto 40px;
}

.jh-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Entrance-Animation: gestaffelter Fade (ohne Blur, compositor-freundlich).
   Die H1 bekommt sie bewusst nicht, damit das LCP-Element sofort zählt. */
.jh-enter {
	opacity: 0;
	transform: translateY(18px);
	animation: jh-enter 800ms var(--ease) forwards;
	animation-delay: calc(var(--enter, 1) * 140ms);
}

@keyframes jh-enter {
	to { opacity: 1; transform: translateY(0); }
}

/* Scroll-Indikator */
.jh-hero-scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(65, 89, 125, 0.55);
	border-radius: 16px;
	display: flex;
	justify-content: center;
	padding-top: 7px;
	opacity: 0;
	animation: jh-fade-in 800ms ease 1.4s forwards;
}

.jh-hero-scroll-wheel {
	width: 4px;
	height: 8px;
	border-radius: 4px;
	background: var(--blue);
	animation: jh-scroll-hint 1.8s ease-in-out infinite;
}

@keyframes jh-scroll-hint {
	0% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(12px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

@keyframes jh-fade-in { to { opacity: 1; } }

/* =========================================================
   HERO-VARIANTE "GALAXY" (dunkler Sternenhimmel)
   ========================================================= */
.jh-hero--galaxy {
	background:
		radial-gradient(ellipse 900px 540px at 50% 42%, rgba(95, 122, 165, 0.30), transparent 70%),
		radial-gradient(ellipse at 50% 40%, #232F47 0%, #161D2D 55%, #10141F 100%);
}

.jh-hero--galaxy .jh-hero-headline { color: #FFFFFF; }

.jh-hero--galaxy .jh-gradient-text {
	background: linear-gradient(90deg, #8FA8CE 0%, #E88E82 35%, #C9D6EC 70%, #8FA8CE 100%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.jh-hero--galaxy .jh-hero-sub { color: rgba(255, 255, 255, 0.74); }

.jh-hero--galaxy .jh-hero-badge {
	color: #C9D6EC;
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.16);
}

.jh-hero--galaxy .jh-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.22);
}
.jh-hero--galaxy .jh-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.13);
	color: #FFFFFF;
}

.jh-hero--galaxy .jh-hero-scroll { border-color: rgba(255, 255, 255, 0.5); }
.jh-hero--galaxy .jh-hero-scroll-wheel { background: #FFFFFF; }

/* Spotlight auf dunklem Grund: weicher weißer Schein */
.jh-hero--galaxy .jh-hero-spotlight {
	background: radial-gradient(
		600px circle at var(--spot-x, 50%) var(--spot-y, 35%),
		rgba(255, 255, 255, 0.05),
		transparent 65%
	);
}

.jh-hero--galaxy a:focus-visible,
.jh-hero--galaxy button:focus-visible { outline-color: #FFFFFF; }

/* Header über dem Sternenhimmel: transparent, solange ungescrollt.
   Browser ohne :has() zeigen einfach den weißen Header (graceful). */
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-brandmark-logo,
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-brandmark-word {
	filter: brightness(0) invert(1); /* dunkles Logo auf dunklem Grund weiß einfärben */
}

body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-nav a { color: rgba(255, 255, 255, 0.85); }
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-nav a:hover { color: #FFFFFF; }

body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-nav .jh-nav-cta {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #FFFFFF;
}
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-nav .jh-nav-cta:hover {
	background: rgba(255, 255, 255, 0.24);
}

body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) .jh-nav-toggle span { background: #FFFFFF; }

/* Fokus-Outline im transparenten Header über dem Galaxy-Hero: weiß statt blau */
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) a:focus-visible,
body:has(.jh-hero--galaxy) .jh-header:not(.is-scrolled) button:focus-visible { outline-color: #FFFFFF; }

/* iOS Safari: dunkle Basisfarbe hinterm Galaxy-Hero, damit beim Ein-/Ausklappen
   der URL-Leiste kein weißer Streifen unter dem Canvas aufblitzt */
body:has(.jh-hero--galaxy) { background: #10141F; }

/* =========================================================
   COMPLIANZ-COOKIE-BANNER (Sicherheitsnetz)
   Das generierte Banner-CSS (wp-content/uploads/complianz/css/) unterdrückt
   den nativen <summary>-Marker der Kategorie-Akkordeons bereits. Diese
   Regel greift nur, falls diese Datei je fehlt – sonst erscheint neben dem
   Complianz-Chevron ein zweiter, nativer Pfeil (doppelter Look).
   ========================================================= */
.cmplz-category > summary { list-style: none; }
.cmplz-category > summary::-webkit-details-marker { display: none; }
.cmplz-category > summary::marker { content: ""; }

/* =========================================================
   BUTTONS
   ========================================================= */
.jh-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 64px;
	font-family: var(--font);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
}

.jh-btn-icon { display: inline-flex; }
.jh-btn-icon svg { width: 16px; height: 16px; }

/* Shimmer-Button (MagicUI "shimmer-button"): wandernder Lichtstreifen */
.jh-btn-shimmer {
	position: relative;
	background: var(--blue);
	color: #FFFFFF;
	box-shadow: var(--shadow-raised);
	overflow: hidden;
	isolation: isolate;
}

.jh-btn-shimmer:hover { background: var(--blue-700); color: #FFFFFF; }

.jh-btn-shimmer::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		115deg,
		transparent 20%,
		rgba(255, 255, 255, 0.25) 40%,
		rgba(255, 255, 255, 0.45) 50%,
		rgba(255, 255, 255, 0.25) 60%,
		transparent 80%
	);
	transform: translateX(-100%);
	animation: jh-shimmer 3.2s ease-in-out infinite;
}

@keyframes jh-shimmer {
	0% { transform: translateX(-100%); }
	55%, 100% { transform: translateX(100%); }
}

.jh-btn-shimmer .jh-btn-icon { transition: transform 200ms var(--ease); }
.jh-btn-shimmer:hover .jh-btn-icon { transform: translateX(3px); }

/* Ghost-Button */
.jh-btn-ghost {
	background: #FFFFFF;
	color: var(--grey-950);
	border: 1px solid var(--grey-100);
	box-shadow: var(--shadow-raised);
}
.jh-btn-ghost:hover { background: var(--grey-50); color: var(--grey-950); }

/* Heller Button auf blauem Grund */
.jh-btn-light {
	background: #FFFFFF;
	color: var(--blue-700);
	box-shadow: var(--shadow-raised);
}
.jh-btn-light:hover { background: var(--blue-light); color: var(--blue-700); }

/* =========================================================
   PARTNER-MARQUEE (MagicUI "marquee")
   ========================================================= */
.jh-partners {
	padding: 56px 0 72px;
	background: #FFFFFF;
}

.jh-partners-label {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--grey-700); /* statt grey-500: 4,5:1 Kontrast */
	margin: 0 0 36px;
}

.jh-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
	mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.jh-marquee-track {
	display: flex;
	width: max-content;
	/* 4 Gruppen im Markup, -50% = 2 Gruppenbreiten pro Zyklus.
	   72s hält die sichtbare Geschwindigkeit von ~36px/s. */
	animation: jh-marquee 72s linear infinite;
}

.jh-marquee:hover .jh-marquee-track { animation-play-state: paused; }

.jh-marquee-group {
	display: flex;
	align-items: center;
	gap: 88px;
	padding-right: 88px;
}

.jh-marquee-group img {
	height: 40px;
	width: auto;
	max-width: 280px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.55;
	transition: filter 200ms ease-out, opacity 200ms ease-out;
}

.jh-marquee-group img:hover { filter: grayscale(0); opacity: 1; }

@keyframes jh-marquee {
	to { transform: translateX(-50%); }
}

/* =========================================================
   INHALTSSEKTIONEN
   ========================================================= */
.jh-section { padding: 104px 0; }

.jh-section--alt { background: var(--grey-50); }

.jh-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--blue);
	text-align: center;
	margin: 0 0 16px;
}

.jh-title {
	font-size: clamp(1.75rem, 4vw, 2.375rem);
	line-height: 1.2;
	letter-spacing: -1px;
	text-align: center;
	max-width: 720px;
	margin: 0 auto 24px;
}

.jh-lead {
	color: var(--grey-700);
	font-size: 1.0625rem;
	line-height: 1.7;
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
}

/* ---------- Werte-Karten ---------- */
.jh-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 64px;
}

.jh-value-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid var(--grey-100);
	border-radius: 16px;
	box-shadow: var(--shadow-raised);
	padding: 36px 28px;
	transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
	overflow: hidden;
}

/* Punktmuster (MagicUI "dot-pattern"), wird beim Hover sichtbar */
.jh-value-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(65, 89, 125, 0.18) 1px, transparent 1px);
	background-size: 16px 16px;
	-webkit-mask-image: radial-gradient(220px circle at 85% -10%, black, transparent);
	mask-image: radial-gradient(220px circle at 85% -10%, black, transparent);
	opacity: 0;
	transition: opacity 300ms ease;
}

.jh-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.jh-value-card:hover::before { opacity: 1; }

.jh-value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--blue-light);
	color: var(--blue);
	margin-bottom: 20px;
}

.jh-value-icon svg { width: 22px; height: 22px; }

.jh-value-card h3 {
	font-size: 1.125rem;
	letter-spacing: -0.3px;
	margin: 0 0 10px;
}

.jh-value-card p {
	color: var(--grey-700);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0;
}

/* =========================================================
   PRODUKTKARTE mit Border-Beam (MagicUI "border-beam")
   ========================================================= */
.jh-product-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid var(--grey-100);
	border-radius: 24px;
	box-shadow: var(--shadow-raised);
	padding: 72px 48px;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

/* Wandernder Lichtpunkt auf der Kartenkante */
.jh-border-beam {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}

/* offset-path: rect() kann Safari erst ab 18 – ohne Support
   bleibt der Beam komplett aus (Karte sieht trotzdem sauber aus). */
.jh-border-beam::before { display: none; }

@supports (offset-path: rect(0 0 0 0)) {
	.jh-border-beam::before { display: block; }
}

.jh-border-beam::before {
	content: '';
	position: absolute;
	aspect-ratio: 1;
	width: 220px;
	background: radial-gradient(closest-side, var(--pink), rgba(65, 89, 125, 0.6) 55%, transparent);
	offset-path: rect(0 100% 100% 0 round 24px);
	animation: jh-beam 9s linear infinite;
	opacity: 0.9;
}

/* Innenfläche überdecken, sodass nur die Kante leuchtet */
.jh-border-beam::after {
	content: '';
	position: absolute;
	inset: 1.5px;
	border-radius: 22px;
	background: #FFFFFF;
}

@keyframes jh-beam {
	to { offset-distance: 100%; }
}

/* Feines Gittermuster im Kartenhintergrund (MagicUI "grid-pattern") */
.jh-product-grid {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(rgba(65, 89, 125, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(65, 89, 125, 0.05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(closest-side at 50% 40%, black, transparent);
	mask-image: radial-gradient(closest-side at 50% 40%, black, transparent);
}

.jh-product-card > *:not(.jh-border-beam):not(.jh-product-grid) {
	position: relative;
	z-index: 2;
}

.jh-product-logo {
	width: 64px;
	height: auto;
	margin: 0 auto 24px;
	display: block;
}

.jh-product-title {
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	letter-spacing: -1.2px;
	margin: 0 0 18px;
}

.jh-product-text {
	color: var(--grey-700);
	font-size: 1.0625rem;
	line-height: 1.7;
	max-width: 540px;
	margin: 0 auto 36px;
}

/* =========================================================
   KONTAKT-CTA
   ========================================================= */
.jh-contact {
	position: relative;
	background: var(--blue);
	padding: 104px 0;
	text-align: center;
	overflow: hidden;
}

.jh-contact-pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(closest-side at 50% 50%, black, transparent);
	mask-image: radial-gradient(closest-side at 50% 50%, black, transparent);
}

.jh-contact .jh-container { position: relative; }

.jh-contact-title {
	color: #FFFFFF;
	font-size: clamp(1.875rem, 4.5vw, 2.75rem);
	letter-spacing: -1.2px;
	margin: 0 0 16px;
}

.jh-contact-text {
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.0625rem;
	line-height: 1.7;
	max-width: 520px;
	margin: 0 auto 36px;
}

/* =========================================================
   SCROLL-REVEAL (MagicUI "blur-fade", via IntersectionObserver)
   ========================================================= */
.jh-reveal {
	opacity: 0;
	filter: blur(6px);
	transform: translateY(24px);
	transition:
		opacity 700ms var(--ease),
		filter 700ms var(--ease),
		transform 700ms var(--ease);
	transition-delay: calc(var(--reveal, 0) * 120ms);
}

.jh-reveal.is-visible {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
}

/* Ohne JS oder mit reduzierter Bewegung: alles sofort sichtbar */
.no-js .jh-reveal { opacity: 1; filter: none; transform: none; }

/* =========================================================
   UNTERSEITEN (Impressum, Datenschutz)
   ========================================================= */
.jh-page-hero {
	padding: calc(var(--header-h) + 72px) 0 48px;
	background: var(--grey-50);
	border-bottom: 1px solid var(--grey-100);
}

.jh-page-title {
	font-size: clamp(1.875rem, 4.5vw, 2.625rem);
	letter-spacing: -1.2px;
	margin: 0;
}

.jh-page-body { padding: 64px 0 96px; }

.jh-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 32px;
	color: var(--grey-950);
	font-size: 1rem;
	line-height: 1.75;
}

.jh-prose h1 { font-size: 1.75rem; letter-spacing: -0.8px; margin: 0 0 24px; }
.jh-prose h2 { font-size: 1.375rem; letter-spacing: -0.5px; margin: 48px 0 16px; }
.jh-prose h3 { font-size: 1.125rem; letter-spacing: -0.3px; margin: 36px 0 12px; }
.jh-prose p, .jh-prose ul, .jh-prose ol { margin: 0 0 16px; color: var(--grey-700); }
.jh-prose li { margin-bottom: 6px; }
.jh-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.jh-prose a:hover { color: var(--blue-700); }
.jh-prose strong { color: var(--grey-950); font-weight: 600; }
.jh-prose table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.jh-prose td, .jh-prose th { border: 1px solid var(--grey-100); padding: 10px 14px; text-align: left; }

/* Erste H1 im Inhalt ausblenden, wenn das Template schon eine setzt
   (Impressum/Datenschutz haben eigene H1 im Content) */
.jh-page .jh-page-hero + .jh-page-body .jh-prose > h1:first-child { display: none; }

/* =========================================================
   BUCHUNGSSEITEN
   ========================================================= */
.jh-page-hero--booking { text-align: center; }
.jh-page-hero--booking .jh-eyebrow { margin-bottom: 12px; }

.jh-booking-sub {
	color: var(--grey-700);
	font-size: 1rem;
	margin: 12px 0 0;
}

/* Mini-Kosmos im Seitenkopf: ruhiger Sternenhimmel im Galaxy-Look */
.jh-page-hero--cosmos {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 700px 360px at 50% 30%, rgba(95, 122, 165, 0.30), transparent 70%),
		radial-gradient(ellipse at 50% 20%, #232F47 0%, #161D2D 55%, #10141F 100%);
	border-bottom: none;
}

.jh-cosmos-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.jh-page-hero--cosmos .jh-container { position: relative; z-index: 2; }
.jh-page-hero--cosmos .jh-page-title { color: #FFFFFF; }
.jh-page-hero--cosmos .jh-eyebrow { color: #A9BCDC; }
.jh-page-hero--cosmos .jh-booking-sub { color: rgba(255, 255, 255, 0.74); }

.jh-booking-body { padding: 48px 0 96px; }

.jh-booking-frame {
	background: #FFFFFF;
	border: 1px solid var(--grey-100);
	border-radius: 16px;
	box-shadow: var(--shadow-raised);
	overflow: hidden;
}

.jh-booking-frame iframe {
	display: block;
	width: 100%;
	min-height: 900px;
	border: 0;
}

/* =========================================================
   KONTAKTSEITE
   ========================================================= */
.jh-kontakt-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.jh-kontakt-card { display: flex; flex-direction: column; align-items: flex-start; }

.jh-kontakt-card h2 {
	font-size: 1.125rem;
	letter-spacing: -0.3px;
	margin: 0 0 10px;
}

.jh-kontakt-card p {
	color: var(--grey-700);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0 0 20px;
}

.jh-kontakt-card .jh-btn { margin-top: auto; }

.jh-kontakt-address { margin-bottom: 12px !important; }
.jh-kontakt-address:last-child { margin-bottom: 0 !important; }
.jh-kontakt-address strong { color: var(--grey-950); }

@media (max-width: 860px) {
	.jh-kontakt-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   404
   ========================================================= */
.jh-404 {
	min-height: 70vh;
	display: flex;
	align-items: center;
	text-align: center;
	padding: calc(var(--header-h) + 48px) 0 64px;
}

.jh-404 .jh-lead { margin-bottom: 32px; }

.jh-404-code {
	font-size: clamp(5rem, 16vw, 10rem);
	font-weight: 700;
	letter-spacing: -6px;
	line-height: 1;
	margin: 0 0 8px;
	background: linear-gradient(90deg, var(--blue-light), var(--blue) 50%, var(--pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* =========================================================
   FOOTER
   ========================================================= */
.jh-footer {
	background: #FFFFFF;
	border-top: 1px solid var(--grey-100);
}

.jh-footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 28px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.jh-footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
	color: var(--grey-700); /* 5,39:1 auf Weiß (grey-500 verfehlte WCAG AA) */
}

.jh-footer-brand img { width: 22px; height: 22px; opacity: 0.8; }

.jh-footer-nav { display: flex; gap: 24px; }

.jh-footer-nav a {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--grey-700);
	text-decoration: none;
	transition: color 150ms ease-out;
}

.jh-footer-nav a:hover { color: var(--blue); }

/* =========================================================
   FOKUS-STILE (Barrierefreiheit)
   ========================================================= */
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Auf der blauen Kontakt-Sektion wäre Blau auf Blau unsichtbar */
.jh-contact a:focus-visible { outline-color: #FFFFFF; }

/* =========================================================
   WORDPRESS-ADMINBAR (eingeloggte Redakteure)
   ========================================================= */
body.admin-bar .jh-header { top: 32px; }

@media (max-width: 782px) {
	body.admin-bar .jh-header { top: 46px; }
	body.admin-bar .jh-nav { top: calc(60px + 46px); }
}

/* Unter 600px scrollt die Adminbar weg (Core: position absolute) */
@media (max-width: 600px) {
	body.admin-bar .jh-header { top: 0; }
	body.admin-bar .jh-nav { top: 60px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
	.jh-values { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.jh-header-inner { padding: 0 20px; height: 60px; }
	:root { --header-h: 60px; }

	.jh-nav-toggle { display: flex; }

	.jh-nav {
		position: fixed;
		top: 60px;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #FFFFFF;
		border-bottom: 1px solid var(--grey-100);
		padding: 12px 20px 20px;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: transform 200ms var(--ease), opacity 200ms, visibility 200ms;
	}

	.jh-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

	.jh-nav a { padding: 14px 4px; font-size: 1rem; justify-content: space-between; }
	.jh-nav .jh-nav-cta { justify-content: center; margin-top: 8px; }

	.jh-hero-content { padding: 96px 20px 80px; }
	.jh-hero-headline { letter-spacing: -1.2px; }
	.jh-hero-sub { font-size: 1rem; }
	.jh-hero-actions { flex-direction: column; align-items: center; }
	.jh-btn { width: 100%; max-width: 320px; justify-content: center; }
	.jh-hero-scroll { display: none; }

	.jh-section { padding: 72px 0; }
	.jh-container { padding: 0 20px; }
	.jh-prose { padding: 0 20px; }

	.jh-marquee-group { gap: 48px; padding-right: 48px; }
	.jh-marquee-group img { height: 32px; max-width: 200px; }

	.jh-product-card { padding: 48px 24px; }
	.jh-contact { padding: 72px 0; }

	.jh-booking-frame iframe { min-height: 760px; }

	.jh-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	.jh-enter, .jh-reveal {
		opacity: 1 !important;
		filter: none !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.jh-marquee-track,
	.jh-gradient-text,
	.jh-btn-shimmer::after,
	.jh-border-beam::before,
	.jh-hero-scroll-wheel { animation: none !important; }

	/* Marquee statisch: eine Gruppe, umbrechend, alle Logos sichtbar */
	.jh-marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}
	.jh-marquee-track { width: 100%; flex-wrap: wrap; justify-content: center; }
	.jh-marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 24px; }
	.jh-marquee-group[aria-hidden="true"] { display: none; }

	.jh-hero-scroll { opacity: 1; }
	.jh-hero-spotlight { display: none; }
}

/* =========================================================
   DRUCK
   ========================================================= */
@media print {
	.jh-header,
	.jh-hero-canvas,
	.jh-hero-spotlight,
	.jh-hero-scroll,
	.jh-nav-toggle { display: none !important; }

	.jh-enter, .jh-reveal {
		opacity: 1 !important;
		filter: none !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.jh-hero { min-height: auto; }

	.jh-gradient-text,
	.jh-404-code {
		background: none;
		-webkit-background-clip: initial;
		background-clip: initial;
		color: var(--blue);
	}

	.jh-contact { background: none; }
	.jh-contact-title, .jh-contact-text { color: #000000; }

	.jh-page-hero { padding-top: 24px; }
}
