/* JaLuBa Studio – Bausteine (Front und Editor).
   Nur Klassen mit Praefix jl-, keine globalen Element-Regeln ausser innerhalb der Bausteine. */

@font-face { font-family: 'Inter'; src: url(../fonts/inter-var.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../fonts/space-grotesk-var.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root, .editor-styles-wrapper {
	--jl-ink: #f4f4fa;
	--jl-mute: #a9acc2;
	--jl-line: rgba(255, 255, 255, .13);
	--jl-grad: linear-gradient(110deg, #8aa4ff 0%, #c58bff 52%, #ff7f9f 100%);
	--jl-ease: cubic-bezier(.16, 1, .3, 1);
	--jl-body: 'Inter', 'Segoe UI', Arial, sans-serif;
	--jl-disp: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--jl-gut: 24px;
}

.jl-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--jl-gut); box-sizing: border-box; }
.jl-sec { position: relative; z-index: 1; padding: 72px 0; }
.jl-sec--tight { padding-top: 8px; }
.jl-head { margin: 0 0 40px; }
.jl-head .jl-h2 { max-width: 16em; }

/* ---------- Schrift ---------- */
.jl-eyebrow { display: flex; align-items: center; margin: 0 0 18px; font: 500 12px/1.4 var(--jl-body); letter-spacing: .2em; text-transform: uppercase; color: #cfd3ee; }
.jl-eyebrow::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--jl-grad); flex: none; }
.jl-h1, .jl-h2, .jl-card-title { font-family: var(--jl-disp); color: var(--jl-ink); }
.jl-h1 { margin: 0 0 22px; font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.jl-h2 { margin: 0 0 18px; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.jl-lead { max-width: 36em; margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: var(--jl-mute); }
.jl-label { margin: 0 0 14px; font: 500 11px/1.4 var(--jl-body); letter-spacing: .16em; text-transform: uppercase; color: #d9dbf0; }
.jl-num { margin: 0 0 14px; font-family: var(--jl-disp); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: -.02em; color: #c58bff; background: var(--jl-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.jl-num--s { font-size: 38px; }
.jl-h1 mark, .jl-h2 mark, .jl-card-title mark { background-color: transparent !important; background-image: var(--jl-grad) !important; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.has-jl-coral-color { color: #ff7a9a; }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; margin: 8px 0 0; }
.wp-block-buttons > .wp-block-button { margin: 0 12px 12px 0; }
.wp-block-button .wp-block-button__link { display: inline-block; box-sizing: border-box; min-height: 46px; padding: 12px 26px; border: 1px solid transparent; border-radius: 999px; font: 600 13px/1.4 var(--jl-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #0a0a16; background: #c58bff; background-image: var(--jl-grad); box-shadow: 0 10px 30px -12px rgba(197, 139, 255, .7); transition: transform .25s var(--jl-ease), box-shadow .25s, filter .25s, background-color .25s, border-color .25s; }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--jl-ink); background: rgba(255, 255, 255, .03); background-image: none; border-color: var(--jl-line); box-shadow: none; }
.wp-block-button .wp-block-button__link:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
	.wp-block-button .wp-block-button__link:hover { filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(255, 127, 159, .65); transform: translateY(-2px); }
	.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #c58bff; background: rgba(197, 139, 255, .1); box-shadow: none; }
}

/* ---------- Raster ---------- */
.jl-grid { display: grid; grid-template-columns: 1fr; grid-gap: 18px; gap: 18px; }
@media (min-width: 700px) { .jl-grid--2, .jl-grid--3, .jl-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .jl-grid--3 { grid-template-columns: repeat(3, 1fr); } .jl-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) { .jl-benefit--wide { grid-column: span 2; } }

/* ---------- Milchglas-Karten ---------- */
.jl-card { position: relative; box-sizing: border-box; margin: 0; padding: 26px 26px 24px; border: 1px solid var(--jl-line); border-radius: 18px; background: rgba(22, 22, 34, .82); background-image: linear-gradient(150deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 60%); box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08); transform: perspective(1200px) rotateY(calc(var(--bry, 0deg) + var(--hry, 0deg))) rotateX(calc(var(--brx, 0deg) + var(--hrx, 0deg))); transition: transform .3s ease-out, border-color .3s, box-shadow .3s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.jl-card { background-color: rgba(255, 255, 255, .045); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
}
.jl-card::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: inherit; pointer-events: none; opacity: .9; }
.jl-card > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
	.jl-tilt-l { --bry: 7deg; --brx: 1.5deg; }
	.jl-tilt-r { --bry: -7deg; --brx: 1.5deg; }
}
@media (hover: hover) and (pointer: fine) { .jl-card:hover { border-color: rgba(197, 139, 255, .5); box-shadow: 0 40px 80px -34px rgba(139, 120, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .1); } }
.jl-card-title { margin: 0 0 12px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.jl-card p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; color: var(--jl-mute); }
.jl-card p.jl-label { margin: 0 0 14px; font-size: 11px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: #d9dbf0; }
.jl-card p.jl-num { margin: 0 0 10px; font-size: 52px; line-height: 1; color: #c58bff; }
.jl-card p.jl-num--s { font-size: 38px; }

.jl-hue-1::after { background: radial-gradient(circle at 85% 100%, rgba(111, 139, 255, .32), transparent 55%); }
.jl-hue-2::after { background: radial-gradient(circle at 85% 100%, rgba(176, 123, 255, .32), transparent 55%); }
.jl-hue-3::after { background: radial-gradient(circle at 85% 100%, rgba(255, 122, 154, .30), transparent 55%); }

.jl-svc { display: flex; flex-direction: column; min-height: 360px; }
.jl-svc .jl-card-title { font-size: 26px; margin-bottom: 0; }
.jl-bullets { margin: auto 0 18px; padding-top: 28px; }
.jl-card p.jl-bullet { position: relative; margin: 0 0 6px; padding-left: 16px; font-size: 12px; line-height: 1.8; letter-spacing: .1em; text-transform: uppercase; color: #d5d7ea; }
.jl-card p.jl-bullet::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #c58bff; }
.jl-card p.jl-link { margin: 0; }
.jl-link a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--jl-ink); }
.jl-benefit { min-height: 200px; }
.jl-step .jl-card-title { font-size: 19px; }
.jl-stat .jl-num { margin-bottom: 10px; }
.jl-contact { display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; }
.jl-card p.jl-contact__value { margin: 0; font: 500 21px/1.3 var(--jl-disp); color: var(--jl-ink); }
.jl-contact__value a { color: inherit; text-decoration: none; }
.jl-panel .jl-card-title { font-size: 21px; }
.jl-social { margin: 26px 0 0; }
.jl-social a { display: inline-block; margin: 0 8px 8px 0; padding: 8px 16px; border: 1px solid var(--jl-line); border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--jl-ink); }

.jl-quote { max-width: 900px; margin: 0 auto; padding: 36px 30px; }
.jl-card p.jl-quote__text { margin: 0; font: 400 21px/1.55 var(--jl-disp); color: var(--jl-ink); }
.jl-cta { padding: 48px 24px; text-align: center; }
.jl-cta .jl-h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.jl-cta .jl-lead { margin-left: auto; margin-right: auto; }
.jl-cta .wp-block-buttons { justify-content: center; }

.jl-tags { display: flex; flex-wrap: wrap; margin: 20px 0 8px; }
.jl-tags p.jl-tag { margin: 0 8px 8px 0; padding: 6px 14px; border: 1px solid var(--jl-line); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #cdd0e6; }

/* ---------- Hero ---------- */
.jl-hero { display: block; padding-top: 128px; padding-bottom: 72px; }
.jl-hero__grid { display: grid; grid-template-columns: 1fr; grid-gap: 40px; gap: 40px; align-items: center; }
.jl-hero__cards { display: grid; grid-template-columns: 1fr; grid-gap: 16px; gap: 16px; }
.jl-hero--page { padding-top: 140px; padding-bottom: 40px; }
.jl-hero--page .jl-h1 { max-width: 14em; }

@media (min-width: 700px) {
	.jl-sec { padding: 104px 0; }
	.jl-sec--tight { padding-top: 8px; }
	.jl-h1 { font-size: 54px; }
	.jl-h2 { font-size: 40px; }
	.jl-hero { min-height: 100vh; display: flex; align-items: center; box-sizing: border-box; }
	.jl-hero--page { min-height: 0; display: block; }
	.jl-hero > .jl-wrap { width: 100%; }
}
@media (min-width: 1000px) {
	.jl-hero__grid { grid-template-columns: 1.15fr .85fr; }
	.jl-hero__grid--single { grid-template-columns: 1fr; }
	.jl-h1 { font-size: 64px; }
	.jl-h2 { font-size: 46px; }
	.jl-stat:nth-child(2) { margin-left: 56px; }
	.jl-svc:nth-child(2) { margin-top: 36px; }
}

/* ---------- Einblenden (Inhalt bleibt ohne Skript immer sichtbar) ---------- */
@keyframes jl-fs { to { opacity: 1; } }
@keyframes jl-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes jl-card-in {
	from { opacity: 0; transform: perspective(1200px) rotateY(var(--bry, 0deg)) rotateX(var(--brx, 0deg)) translate3d(0, 28px, 0); }
	to { opacity: 1; transform: perspective(1200px) rotateY(var(--bry, 0deg)) rotateX(var(--brx, 0deg)) translate3d(0, 0, 0); }
}
.jl-js .jl-fade:not(.is-in), .jl-js .jl-reveal:not(.is-in) { opacity: 0; animation: jl-fs .01s linear 4.5s forwards; }
.jl-js .jl-fade.is-in { animation: jl-up .8s var(--jl-ease) backwards; animation-delay: var(--d, 0s); }
.jl-js .jl-reveal.is-in { animation: jl-card-in .9s var(--jl-ease) backwards; animation-delay: var(--d, 0s); }
.jl-safe .jl-fade, .jl-safe .jl-reveal { opacity: 1 !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
	.jl-js .jl-fade, .jl-js .jl-reveal { opacity: 1 !important; animation: none !important; }
	.jl-card, .wp-block-button .wp-block-button__link { transition: none; }
}
@media (max-width: 899px) { .jl-card { transform: none; } }


/* ================= Unterseiten: Glas-Kacheln (Vorteile, Kontakt, Info-Felder) ================= */
/* Breite Kachel: nie geneigt, damit sie mittig im Raster sitzt (gilt auch fuer bereits uebernommene Seiten). */
.jl-card.jl-benefit--wide { --bry: 0deg; --brx: 0deg; --hry: 0deg; --hrx: 0deg; }

.jl-benefit, .jl-contact, .jl-panel {
	overflow: hidden;
	background-color: rgba(255, 255, 255, .04);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .035) 42%, rgba(255, 255, 255, .02) 100%);
	border-color: rgba(255, 255, 255, .20);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 1px 0 0 rgba(255, 255, 255, .10), 0 18px 40px -26px rgba(0, 0, 0, .8);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.jl-benefit, .jl-contact, .jl-panel {
		background-color: rgba(255, 255, 255, .03);
		-webkit-backdrop-filter: blur(14px) saturate(170%);
		backdrop-filter: blur(14px) saturate(170%);
		transition: transform .3s ease-out, border-color .45s, box-shadow .45s, background-color .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s;
	}
}
/* Lichtreflex wie auf Glas: diagonaler Streifen oben links */
.jl-benefit::after, .jl-contact::after, .jl-panel::after {
	background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%);
	opacity: 1;
	transition: opacity .45s;
}
.jl-benefit.jl-benefit--wide::after { background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 30%); }

/* Hover: Glas wird milchig (heller, matter, staerker unscharf), Leuchten nur leicht */
@media (hover: hover) and (pointer: fine) {
	.jl-benefit:hover, .jl-contact:hover, .jl-panel:hover {
		background-color: rgba(255, 255, 255, .16);
		background-image: linear-gradient(135deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .11) 45%, rgba(255, 255, 255, .08) 100%);
		border-color: rgba(255, 255, 255, .38);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 40px rgba(255, 255, 255, .05), 0 22px 44px -30px rgba(160, 130, 255, .22);
	}
	@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
		.jl-benefit:hover, .jl-contact:hover, .jl-panel:hover {
			-webkit-backdrop-filter: blur(26px) saturate(115%) brightness(1.18);
			backdrop-filter: blur(26px) saturate(115%) brightness(1.18);
		}
	}
	.jl-benefit:hover::after, .jl-contact:hover::after, .jl-panel:hover::after { opacity: .6; }
	.jl-benefit:hover p, .jl-contact:hover p { color: #d9dbec; }
}
