/* Exclusive Creation – layout and motion.
   Effects attach to ec-* classes set on core blocks ("Zusätzliche CSS-Klasse(n)" in the editor).
   JS adds .ec-js to <html>; without JS everything stays visible and static. */

:root {
	--ec-gutter: clamp(20px, 5vw, 80px);
	--ec-ease: cubic-bezier(.2, .7, .2, 1);
	--ec-wide: var(--wp--preset--font-family--wide);
	--ec-serif: var(--wp--preset--font-family--serif);
	--ec-gold: var(--wp--preset--color--gold);
	--ec-night: var(--wp--preset--color--night);
	--ec-mist: var(--wp--preset--color--mist);
	--ec-haze: var(--wp--preset--color--haze);
}
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-stretch: 122%; text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ec-gold); outline-offset: 4px; }
.ec-main .entry-content > * { margin-block: 0; }
.ec-main { margin-block: 0 !important; }

/* ---------- header ---------- */
.ec-top { position: fixed; inset: 0 0 auto; z-index: 50; padding: 22px var(--ec-gutter); transition: transform .5s var(--ec-ease), background .4s, padding .4s; }
.admin-bar .ec-top { top: 32px; }
.ec-top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(12, 22, 29, .62); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); transition: opacity .4s; }
.ec-top.is-glass { padding-block: 12px; }
.ec-top.is-glass::before { opacity: 1; }
.ec-top.is-hidden:not(:focus-within) { transform: translateY(-120%); }
.ec-top .wp-block-site-logo img { filter: invert(1); }
.ec-top .wp-block-navigation { font: 500 .92rem/1 var(--ec-wide); font-stretch: 115%; gap: clamp(18px, 3vw, 40px); color: var(--ec-mist); }
.ec-top .wp-block-navigation-item__content { position: relative; padding: 6px 0; text-decoration: none; }
.ec-top .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ec-gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ec-ease); }
.ec-top .wp-block-navigation-item__content:hover::after { transform: scaleX(1); transform-origin: left; }
.ec-top .wp-block-navigation__responsive-container.is-menu-open { padding: 32px var(--ec-gutter); }
.ec-top .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.8rem; gap: 22px; }

/* pages that do not start with a hero/cover get room under the fixed header */
.ec-main .entry-content > :first-child:not(.ec-hero):not(.wp-block-cover) { padding-top: 150px !important; }

/* ---------- hero with slideshow ---------- */
.ec-hero { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; display: grid; align-items: end; padding: 0 var(--ec-gutter) clamp(48px, 9vh, 110px) !important; }
.ec-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12,22,29,.55) 0%, rgba(12,22,29,0) 28%, rgba(12,22,29,.15) 55%, rgba(12,22,29,.92) 100%); }
.ec-slides.wp-block-gallery.has-nested-images { position: absolute; inset: 0; margin: 0 !important; display: block; }
.ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; transform: scale(1.14); transition: opacity 1.6s ease, transform 7.5s linear; }
.ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec):first-child,
.ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image.is-on:not(#ec) { opacity: 1; transform: scale(1); }
.ec-js .ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec):first-child:not(.is-on) { opacity: 0; transform: scale(1.14); }
.ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero-copy { position: relative; z-index: 2; max-width: 1100px; }
.ec-hero h1 { font-size: clamp(2.8rem, 8.4vw, 8.4rem); line-height: .94; font-weight: 650; font-stretch: 125%; letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(12,22,29,.35); margin: 0; }
.ec-line { display: block; overflow: hidden; padding-bottom: .06em; }
.ec-line > span { display: block; transform: translateY(105%); animation: ec-rise 1.1s cubic-bezier(.2,.75,.15,1) forwards; }
.ec-line:nth-child(2) > span { animation-delay: .14s; }
.ec-line:nth-child(3) > span { animation-delay: .28s; }
@keyframes ec-rise { to { transform: none; } }
.ec-hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 30px !important; }
.ec-js .ec-hero-sub { opacity: 0; animation: ec-fade 1s .9s forwards; }
@keyframes ec-fade { to { opacity: 1; } }
.ec-hero-sub > p:first-child { font-size: 1.25rem; color: #D4DEE0; max-width: 30em; margin: 0; }
.ec-ticker { margin: 0; font: 500 1rem/1.2 var(--ec-wide); font-stretch: 115%; color: var(--ec-gold); height: 1.2em; overflow: hidden; }
.ec-ticker ul { list-style: none; padding: 0; margin: 0; transition: transform .6s cubic-bezier(.7,0,.2,1); }
.ec-ticker li { height: 1.2em; }
.ec-progress { position: absolute; z-index: 2; right: var(--ec-gutter); bottom: clamp(48px, 9vh, 110px); display: flex; gap: 8px; }
.ec-progress i { width: 34px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.ec-progress i.is-on::after { content: ""; display: block; height: 100%; background: var(--ec-gold); animation: ec-bar 6s linear forwards; }
@keyframes ec-bar { from { width: 0; } to { width: 100%; } }

/* buttons: arrow + glow + magnetic (JS) */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; font-stretch: 112%; transition: transform .25s ease-out, box-shadow .4s, background .3s; }
.wp-block-button .wp-block-button__link::after { content: "→"; font-family: system-ui, sans-serif; transition: transform .35s; }
.wp-block-button .wp-block-button__link:hover { box-shadow: 0 0 0 10px rgba(201,164,106,.12), 0 18px 50px -10px rgba(201,164,106,.55); }
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px) rotate(-45deg); }

/* ---------- marquee ---------- */
.ec-marquee-wrap { border-block: 1px solid rgba(201,164,106,.28); overflow: hidden; padding: 26px 0 !important; }
.ec-marquee { margin: 0; font: 700 clamp(2.6rem, 7vw, 6rem)/1 var(--ec-wide); font-stretch: 125%; white-space: nowrap; }
.ec-marquee .ec-track { display: flex; width: max-content; animation: ec-slide 32s linear infinite; }
.ec-marquee .ec-track span { padding-right: .6em; color: transparent; -webkit-text-stroke: 1px rgba(238,241,240,.55); }
.ec-marquee .ec-track span:nth-child(3n+2) { color: var(--ec-gold); -webkit-text-stroke: 0; }
.ec-marquee-wrap:hover .ec-track { animation-play-state: paused; }
@keyframes ec-slide { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.ec-js .ec-rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ec-ease), transform 1s var(--ec-ease); }
.ec-js .ec-rv.is-in { opacity: 1; transform: none; }

/* ---------- intro ---------- */
.ec-intro { padding: clamp(90px, 14vw, 170px) var(--ec-gutter) !important; }
.ec-intro .wp-block-columns { max-width: 1240px; margin: 0 auto; gap: clamp(36px, 6vw, 100px); align-items: flex-end; }
.ec-intro h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.02; margin: 0; }
.ec-lead { font-size: 1.35rem; line-height: 1.55; color: #D4DEE0; margin-top: 0; }
.ec-facts { display: grid; gap: 4px; margin-top: 34px; }
.ec-facts h3 { font-size: 1rem; line-height: 1.3; font-stretch: 112%; margin: 18px 0 4px; padding-left: 18px; border-left: 1px solid var(--ec-gold); }
.ec-facts p { color: var(--ec-haze); font-size: 1.05rem; margin: 0; padding-left: 18px; border-left: 1px solid var(--ec-gold); }

/* ---------- areas ---------- */
.ec-area { position: relative; max-width: 1500px; margin: 0 auto clamp(110px, 14vw, 190px) !important; padding: 0 var(--ec-gutter) !important; display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.ec-area > .ec-pic { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 16 / 11; overflow: hidden; margin: 0 !important; }
.ec-js .ec-area > .ec-pic { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(.7,0,.15,1); }
.ec-js .ec-area.is-in > .ec-pic { clip-path: inset(0 0 0 0); }
.ec-area > .ec-pic img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.08); will-change: transform; }
.ec-area > .ec-text { grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 2; margin: 0 !important; }
.ec-area .ec-text > h2 { font-size: clamp(3.4rem, 10.5vw, 10rem); line-height: .86; font-weight: 750; font-stretch: 125%; letter-spacing: -.03em; mix-blend-mode: difference; color: #fff; transform: translateX(var(--tx, 0px)); margin: 0; }
.ec-card { margin-top: 24px !important; max-width: 28em; background: rgba(16,35,43,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(201,164,106,.25); padding: 30px 34px !important; }
.ec-card p { color: #D4DEE0; margin: 0; }
.ec-tags { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.ec-tags li { font: 500 .85rem/1 var(--ec-wide); font-stretch: 110%; border: 1px solid rgba(238,241,240,.25); border-radius: 999px; padding: 9px 14px; margin: 0; }
.ec-card p.ec-more { margin-top: 22px; }
.ec-more a { display: inline-flex; gap: 10px; align-items: center; font: 600 .95rem/1 var(--ec-wide); font-stretch: 112%; text-decoration: none; color: var(--ec-gold); }
.ec-more a::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .4s; }
.ec-more a:hover::after { width: 52px; }
.ec-area.ec-flip > .ec-pic { grid-column: 5 / span 8; }
.ec-js .ec-area.ec-flip > .ec-pic { clip-path: inset(0 0 0 100%); }
.ec-js .ec-area.ec-flip.is-in > .ec-pic { clip-path: inset(0 0 0 0); }
.ec-area.ec-flip > .ec-text { grid-column: 1 / span 6; }

/* ---------- pinned horizontal gallery ---------- */
.ec-reel { height: 300vh; position: relative; padding: 0 !important; }
.ec-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ec-stick > h2 { padding: 0 var(--ec-gutter); font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 0; }
.ec-stick > p { padding: 0 var(--ec-gutter); color: var(--ec-haze); margin: -18px 0 0; }
.ec-strip.wp-block-gallery.has-nested-images { display: flex; flex-wrap: nowrap; gap: 22px; padding: 0 var(--ec-gutter); margin: 0 !important; will-change: transform; }
.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) { flex: none; width: clamp(260px, 32vw, 480px); margin: 0; position: relative; overflow: hidden; }
.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec):nth-child(even) { margin-top: 60px; }
.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ec-ease), filter .6s; }
.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec):hover img { transform: scale(1.06); filter: saturate(1.1); }
.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) figcaption { background: none; padding: 0; position: absolute; left: 16px; bottom: 14px; right: auto; max-height: none; font: 500 .9rem var(--ec-wide); font-stretch: 110%; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

html:not(.ec-js) .ec-reel { height: auto; }
html:not(.ec-js) .ec-stick { position: static; height: auto; padding-block: 80px; }
html:not(.ec-js) .ec-strip.wp-block-gallery.has-nested-images { overflow-x: auto; }
.ec-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- quote ---------- */
.ec-quote { max-width: 1180px; margin: 0 auto !important; padding: clamp(110px, 15vw, 200px) var(--ec-gutter) !important; }
.ec-words { font: 300 italic clamp(2rem, 5vw, 4.4rem)/1.12 var(--ec-serif); margin: 0; }
.ec-js .ec-words span { color: rgba(238,241,240,.16); transition: color .35s; }
.ec-js .ec-words span.is-lit { color: var(--ec-mist); }
.ec-cite { margin-top: 28px !important; font: 500 1rem var(--ec-wide); font-stretch: 112%; color: var(--ec-gold); }

/* ---------- contact ---------- */
.ec-contact { position: relative; overflow: hidden; background: var(--wp--preset--color--petrol); padding: clamp(90px, 12vw, 150px) var(--ec-gutter) !important; }
.ec-contact::before { content: ""; position: absolute; width: 640px; height: 640px; left: var(--gx, 70%); top: var(--gy, 30%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(201,164,106,.45), rgba(201,164,106,0) 62%); pointer-events: none; transition: left .5s ease-out, top .5s ease-out; }
.ec-contact > * { position: relative; }
.ec-contact .wp-block-columns { gap: 56px; align-items: flex-end; margin: 0; }
.ec-contact h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .96; font-weight: 650; font-stretch: 125%; letter-spacing: -.02em; margin: 0; }
.ec-contact p { color: #D9E6E7; max-width: 28em; }
.ec-ways p { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: #B9CED0; font-size: 1rem; transition: padding .35s; }
.ec-ways p:hover { padding-left: 14px; }
.ec-ways a { display: block; text-decoration: none; color: var(--ec-mist); font: 550 clamp(1.25rem, 2.2vw, 1.9rem)/1.25 var(--ec-wide); font-stretch: 112%; transition: color .35s; }
.ec-ways a:hover { color: var(--ec-gold); }

/* ---------- inner pages ---------- */
.ec-main .wp-block-cover h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 650; font-stretch: 125%; letter-spacing: -.02em; line-height: .95; }
.ec-main .wp-block-cover .has-large-font-size { font-family: var(--ec-serif); }
.ec-main h2 { font-stretch: 120%; }
.ec-main .wp-block-list li::marker { color: var(--ec-gold); }
.ec-main .wp-block-quote { border-left: 1px solid var(--ec-gold); font-style: italic; }

/* ---------- footer ---------- */
.ec-footer { border-top: 1px solid rgba(201,164,106,.2); }
.ec-footer-inner { padding: 30px var(--ec-gutter); font: 400 .92rem var(--ec-wide); font-stretch: 105%; color: var(--ec-haze); }
.ec-footer-inner p { margin: 0; }
.ec-footer-inner a { color: var(--ec-haze); text-decoration: none; margin-left: 20px; }
.ec-footer-inner a:hover { color: var(--ec-gold); }

/* ---------- cursor ---------- */
.ec-cursor { position: fixed; z-index: 100; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ec-gold); pointer-events: none; transform: translate(-50%, -50%); transition: width .3s, height .3s, background .3s; mix-blend-mode: difference; }
.ec-cursor.is-big { width: 84px; height: 84px; background: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
	.ec-progress { display: none; }
	.ec-area, .ec-area.ec-flip { grid-template-columns: 1fr; }
	.ec-area > .ec-pic, .ec-area.ec-flip > .ec-pic, .ec-area > .ec-text, .ec-area.ec-flip > .ec-text { grid-column: 1; grid-row: auto; }
	.ec-area .ec-text > h2 { margin-top: -.45em; }
	.ec-reel { height: auto; }
	.ec-stick { position: static; height: auto; padding-block: 80px; }
	.ec-strip.wp-block-gallery.has-nested-images { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
	.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) { scroll-snap-align: start; width: 78vw; }
	.ec-strip.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec):nth-child(even) { margin-top: 0; }
	.ec-footer-inner a { margin: 0 16px 0 0; }
	.admin-bar .ec-top { top: 46px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ec-line > span, .ec-js .ec-hero-sub, .ec-js .ec-rv { transform: none; opacity: 1; }
	.ec-js .ec-area > .ec-pic { clip-path: none; }
	.ec-js .ec-words span { color: var(--ec-mist); }
	.ec-cursor { display: none; }
	.ec-reel { height: auto; }
	.ec-stick { position: static; height: auto; padding-block: 80px; }
	.ec-strip.wp-block-gallery.has-nested-images { overflow-x: auto; transform: none !important; }
}

/* ---------- editor: show everything static ---------- */
.editor-styles-wrapper .ec-hero { height: auto; min-height: 0; max-height: none; }
.editor-styles-wrapper .ec-slides.wp-block-gallery.has-nested-images { position: relative; display: flex; }
.editor-styles-wrapper .ec-slides.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ec) { position: relative; opacity: 1; transform: none; width: 23%; height: 140px; }
.editor-styles-wrapper .ec-reel { height: auto; }
.editor-styles-wrapper .ec-stick { position: static; height: auto; }
.editor-styles-wrapper .ec-strip.wp-block-gallery.has-nested-images { flex-wrap: wrap; }
