/* =========================================================
   Künne Immobilien Gruppe – Design System
   ========================================================= */
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #001144;          /* Künne-Navy (dunkle Flächen) */
  --ink-2: #061a52;
  --ink-3: #0f2766;
  --paper: #f5f6f2;        /* helles Off-White */
  --paper-2: #e9ebe5;
  --white: #ffffff;
  --text: #0a1433;
  --muted: #5d6680;
  --muted-dark: #9ba6c6;
  --line: rgba(0, 17, 68, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --accent: #88dd00;       /* Künne-Grün */
  --accent-2: #7ac800;
  --accent-ink: #001144;
  --brand: #001144;        /* Markenblau (Logo / Intro) */
  --danger: #c4361b;

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.container { padding-inline: var(--gutter); }

/* ---------- Typo ---------- */
.display {
  font-weight: 700;
  font-size: clamp(56px, 9.6vw, 168px);
  line-height: .86;
  letter-spacing: -.055em;
}
.h2 { font-weight: 600; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -.035em; }
.h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.lead { font-weight: 600; font-size: clamp(22px, 2.15vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.small { font-size: 13px; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 12px 0 14px;
  border-radius: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  background: var(--paper-2); color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { background: #dcdcd8; }
.btn--light { background: var(--white); color: var(--text); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.arrow { width: 14px; height: 14px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow .arrow { width: 11px; height: 11px; transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 19px; color: #fff; }
.logo svg { width: 22px; height: 22px; flex: none; }
.logo__word { text-transform: uppercase; }

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader .logo { font-size: clamp(44px, 7vw, 96px); gap: 22px; }
.preloader .logo svg { width: 1.05em; height: 1.05em; }
.preloader .logo__word span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.preloader .logo__clip { overflow: hidden; display: inline-flex; padding-bottom: .04em; }
.preloader .logo svg { transform: scale(.6); opacity: 0; transition: transform .9s var(--ease), opacity .6s; }
.preloader .mono { opacity: 0; transition: opacity .8s .5s; }
.preloader.is-in .logo__word span { transform: none; }
.preloader.is-in .logo svg { transform: none; opacity: 1; }
.preloader.is-in .mono { opacity: .75; }
.preloader.is-out { clip-path: inset(0 0 100% 0); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 20px calc(var(--gutter) + 8px) 0;
  color: #fff; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.header > * { pointer-events: auto; }
.header.is-hidden { transform: translateY(-120%); }

/* Volle Kopfzeile: Logo | schwebende Glas-Pille mittig | Aktionen rechts */
.header__full {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  transition: opacity .45s, transform .7s var(--ease);
}
.header__full > .logo { justify-self: start; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }

.navpill {
  position: relative; display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: rgba(0, 17, 68, .28);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* gleitender Hover-Indikator hinter den Links */
.navpill__ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s;
}
.navpill.is-hovering .navpill__ind { opacity: 1; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  transition: background .3s, color .3s;
}
.nav-link .chev { width: 8px; height: 8px; opacity: .7; transition: transform .35s var(--ease); }
.nav-link.is-active { background: var(--accent); color: var(--accent-ink); }
.nav-link.is-active .chev { transform: rotate(180deg); opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  background: var(--accent); color: var(--accent-ink);
  transition: background .3s, transform .4s var(--ease), box-shadow .4s;
}
.nav-cta__dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); }
.nav-cta__dot svg { width: 11px; height: 11px; transition: transform .45s var(--ease); }
.nav-cta:hover { box-shadow: 0 6px 24px rgba(136, 221, 0, .35); }
.nav-cta:hover .nav-cta__dot svg { transform: rotate(-45deg); }
.nav-cta--ghost {
  padding: 0 14px; font-weight: 500; color: #fff; background: rgba(0, 17, 68, .28);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-cta--ghost:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.nav-cta--ghost svg { width: 10px; height: 10px; }

/* Kompakte Leiste nach dem Hero: eine dunkle Pille mit Logo-Icon, Links und CTA */
.header__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; position: relative; z-index: 1; }
.header__icon svg { width: 17px; height: 17px; }
.header__compact { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -160%); transition: transform .7s var(--ease); }
.header.is-compact .header__full { opacity: 0; transform: translateY(-24px) scale(.98); pointer-events: none; }
.header.is-compact .header__compact { transform: translate(-50%, 0); }
.header__compact .navpill {
  background: rgba(0, 17, 68, .8); border-color: rgba(255,255,255,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}
.header__compact .nav-cta { height: 32px; margin-left: 4px; position: relative; z-index: 1; }
.header__burger { display: none; }

/* =========================================================
   Mega menu (Leistungen)
   ========================================================= */
.mega {
  position: fixed; inset: 0; z-index: 55;
  pointer-events: none; visibility: hidden; transition: visibility 0s .7s;
}
.mega__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 10, 40, .35);
  opacity: 0; transition: opacity .5s var(--ease), backdrop-filter .5s var(--ease);
}
.mega__panel {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 84px var(--gutter) 22px;
  background: rgba(4, 22, 74, .92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.mega__track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mega__track::-webkit-scrollbar { display: none; }
.mega__card {
  position: relative; flex: 0 0 clamp(170px, 19vw, 260px); aspect-ratio: 4 / 4.6;
  border-radius: 6px; overflow: hidden; color: #fff;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mega__card img, .mega__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.mega__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); }
.mega__card span { position: absolute; z-index: 2; left: 10px; bottom: 9px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.mega__card span .arrow { width: 12px; opacity: 0; transform: translateX(-6px); transition: .4s var(--ease); }
.mega__card:hover img { transform: scale(1.06); }
.mega__card:hover span .arrow { opacity: 1; transform: none; }
.mega__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: rgba(20, 30, 32, .6); backdrop-filter: blur(6px);
  display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .4s var(--ease);
}
.mega__card:hover .mega__play { opacity: 1; transform: none; }
.mega.is-open { pointer-events: auto; visibility: visible; transition: none; }
.mega.is-open .mega__backdrop { opacity: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mega.is-open .mega__panel { clip-path: inset(0 0 0 0); }
.mega.is-open .mega__card { opacity: 1; transform: none; }
.mega.is-open .mega__card:nth-child(2) { transition-delay: .05s; }
.mega.is-open .mega__card:nth-child(3) { transition-delay: .1s; }
.mega.is-open .mega__card:nth-child(4) { transition-delay: .15s; }
.mega.is-open .mega__card:nth-child(5) { transition-delay: .2s; }
.mega.is-open .mega__card:nth-child(6) { transition-delay: .25s; }

/* small dropdown (Service) */
.dropdown {
  position: fixed; z-index: 61; min-width: 210px;
  padding: 6px; border-radius: 8px;
  background: rgba(4, 22, 74, .94); color: #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.dropdown.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 5px; font-size: 13px; font-weight: 500; }
.dropdown a:hover { background: rgba(255,255,255,.08); }

/* =========================================================
   Media helpers
   ========================================================= */
.media { position: relative; overflow: hidden; background: var(--ink-2); }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-video] > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
[data-video] > video.is-ready { opacity: 1; }
/* Langsamer Zoom-in, startet, sobald das Bild sichtbar wird (JS setzt .is-zoom) */
.kenburns > img { transform: scale(1.02); transform-origin: 55% 45%; }
.kenburns.is-zoom > img { animation: zoomin 26s cubic-bezier(.25, .6, .3, 1) forwards; }
.hero__slide.kenburns:not(.is-active) > img { animation: none; }
@keyframes zoomin {
  from { transform: scale(1.02); }
  to   { transform: scale(1.18); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--paper); }
/* Video-Rahmen mit schmalem Rand und leicht abgerundeten Ecken; Parallax bewegt nur die Bilder darin */
.hero__media { position: absolute; inset: 8px; border-radius: 14px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-in-out); transform: translate3d(0, var(--hy, 0), 0) scale(var(--hs, 1)); }
.hero__slide.is-active { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05) 50%, rgba(0,0,0,.25)); pointer-events: none; }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 3vw, 40px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; z-index: 2; }
.hero__eyebrow { margin-bottom: 18px; opacity: .9; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__eyebrow, .hero__badge { opacity: 0; transform: translateY(12px); transition: opacity .9s .45s, transform 1s .45s var(--ease); }
.is-loaded .hero__eyebrow { opacity: .9; transform: none; }
.is-loaded .hero__badge { opacity: 1; transform: none; }
.hero__badge {
  width: 168px; padding: 14px; border-radius: 6px;
  background: rgba(0, 17, 68, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; gap: 14px;
}
.hero__badge .seal { display: flex; align-items: center; gap: 10px; }
.hero__badge .seal svg { width: 40px; height: 40px; }
.hero__badge strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.15; }
.hero__badge .mono { font-size: 8.5px; opacity: .7; }
.hero__progress { position: absolute; z-index: 3; right: var(--gutter); top: 50%; display: grid; gap: 6px; transform: translateY(-50%); }
.hero__progress button { width: 3px; height: 26px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero__progress button i { position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: top; }
.hero__progress button.is-active i { animation: fillY var(--dur, 7s) linear forwards; }
@keyframes fillY { to { transform: scaleY(1); } }

/* =========================================================
   Intro statement + Leistungen-Slider
   ========================================================= */
.section { position: relative; }
.intro { padding: clamp(110px, 14vw, 200px) var(--gutter) 40px; background: var(--paper); }
.intro__grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 32px; }
.intro__text { grid-column: 2; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.slider { padding: 70px 0 120px; background: var(--paper); overflow: hidden; }
.slider__head { display: flex; justify-content: flex-end; gap: 6px; padding: 0 var(--gutter) 16px; }
.slider__btn { height: 30px; padding: 0 10px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--text); transition: background .25s, color .25s, opacity .25s; }
.slider__btn:hover { background: var(--paper-2); }
.slider__btn[disabled] { opacity: .35; pointer-events: none; }
.slider--dark .slider__btn { color: #fff; }
.slider--dark .slider__btn:hover { background: rgba(255,255,255,.1); }
.slider__viewport { padding-left: calc(var(--gutter) + 6vw); }
/* Aktive Karte groß, alle anderen schmal. Beim Weiterklicken wächst die nächste Karte auf,
   die alte schrumpft und fährt links raus. JS setzt --aw (aktive Breite) und --iw (inaktive Breite). */
.slider__track {
  --aw: min(66vw, 980px); --iw: calc(var(--aw) * .4); --ch: calc(var(--aw) * .64);
  display: flex; align-items: flex-start; gap: 12px;
  transition: transform 1.1s var(--ease); will-change: transform;
}
.svc-card {
  position: relative; flex: 0 0 var(--iw); height: var(--ch);
  border-radius: var(--radius-sm); overflow: hidden; color: #fff;
  transition: flex-basis 1.1s var(--ease), filter 1s var(--ease);
}
.svc-card.is-active { flex-basis: var(--aw); }
.svc-card:not(.is-active) { filter: saturate(.85) brightness(.96); cursor: pointer; }
.svc-card .media { position: absolute; inset: 0; }

/* Glasbox: inaktiv nur Label-Leiste, aktiv wächst sie auf und der Text blendet ein */
.svc-card__info {
  position: absolute; left: 12px; bottom: 12px;
  width: min(400px, calc(100% - 24px));
  padding: 12px 14px; border-radius: 6px;
  background: rgba(4, 22, 74, .55);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: width 1.1s var(--ease), padding 1.1s var(--ease);
}
.svc-card.is-active .svc-card__info { padding: 14px 14px 16px; }
.svc-card__meta { display: flex; justify-content: space-between; gap: 10px; opacity: .85; white-space: nowrap; }
.svc-card__meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.svc-card__meta .num { color: var(--accent); }
.svc-card__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.1s var(--ease); }
.svc-card__body > div { overflow: hidden; min-height: 0; }
.svc-card.is-active .svc-card__body { grid-template-rows: 1fr; }
.svc-card__info p {
  padding-top: 38px;
  font-size: clamp(16px, 1.35vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease);
}
.svc-card.is-active .svc-card__info p { opacity: 1; transform: none; transition: opacity .7s .45s, transform .9s .4s var(--ease); }
.svc-card__more { position: absolute; right: 14px; bottom: 14px; z-index: 2; opacity: 0; transform: translateY(8px); transition: .5s var(--ease); }
.svc-card.is-active:hover .svc-card__more { opacity: 1; transform: none; }

/* =========================================================
   Sticky Section-Nav (unten)
   ========================================================= */
.secnav {
  position: fixed; z-index: 50; left: 50%; bottom: 16px;
  display: flex; align-items: center; gap: 4px;
  transform: translate(-50%, 140%); transition: transform .7s var(--ease);
}
.secnav.is-visible { transform: translate(-50%, 0); }
.secnav__list, .secnav__cta {
  display: flex; align-items: center; height: 32px; padding: 3px; border-radius: 7px;
  background: rgba(0, 17, 68, .82); color: #fff;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.secnav__list a { position: relative; height: 26px; display: grid; place-items: center; padding: 0 10px; font-size: 12px; font-weight: 500; border-radius: 5px; color: rgba(255,255,255,.55); transition: color .3s; }
.secnav__list a:hover { color: #fff; }
.secnav__list a.is-active { color: var(--accent); }
.secnav__cta { padding: 0 12px; gap: 10px; font-size: 12px; font-weight: 500; transition: background .3s; }
.secnav__cta:hover { background: var(--ink-3); }

/* =========================================================
   Testimonials
   ========================================================= */
.reviews { padding: 120px 0 140px; background: var(--paper); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--gutter) 30px; }
.stars { display: inline-flex; gap: 2px; color: var(--text); }
.stars svg { width: 10px; height: 10px; }
.reviews__score { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.reviews__track { display: flex; gap: 10px; padding: 0 var(--gutter); transition: transform .9s var(--ease); }
.review {
  flex: 0 0 calc((100% - 30px) / 3.2); min-height: 270px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--text);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.review:hover { background: var(--ink); color: #fff; }
.review:hover .stars { color: #fff; }
.review:hover .review__src { color: var(--muted-dark); }
.review blockquote { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.32; letter-spacing: -.012em; }
.review__foot { display: grid; gap: 5px; }
.review__name { font-size: 14px; font-weight: 600; }
.review__meta { display: flex; justify-content: space-between; align-items: center; }
.review__src { color: var(--muted); font-size: 9px; }
.reviews__foot { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter) 0; color: var(--muted); }

/* =========================================================
   Philosophie (Video wächst + Wort-Reveal)
   ========================================================= */
.philo { position: relative; height: 260vh; background: var(--paper); }
.philo__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.philo__frame { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 0; overflow: hidden; will-change: clip-path; clip-path: inset(var(--inset-y, 18%) var(--inset-x, 14%) round var(--r, 14px)); }
.philo__frame .media { position: absolute; inset: 0; }
.philo__frame .media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--dim, .25)); }
.philo__text { position: relative; z-index: 2; max-width: 760px; padding: 0 var(--gutter); text-align: center; color: #fff; }
.philo__text .mono { display: block; margin-bottom: 18px; opacity: .8; }
.philo__text .h2 { margin-bottom: .7em; }
.philo__text .h2, .philo__text .lead { text-wrap: balance; }
.word { display: inline-block; opacity: .18; transition: opacity .25s linear; }
.word.is-on { opacity: 1; }

/* =========================================================
   Vergleich (dunkel)
   ========================================================= */
.dark { background: var(--ink); color: #fff; }
.compare { padding: clamp(110px, 12vw, 180px) var(--gutter) 120px; }
.compare__title { margin-bottom: 70px; }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 920px; margin-left: auto; }
.compare__col h4 { height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 5px; margin-bottom: 14px; transition: background .5s, color .5s; }
.compare__col--old h4 { background: rgba(255,255,255,.06); color: var(--muted-dark); }
.compare__col--new h4 { background: #fff; color: var(--text); }
.compare__col li { display: flex; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line-dark); font-size: 14px; line-height: 1.3; font-weight: 500; }
.compare__col--old li { color: rgba(255,255,255,.4); font-style: italic; font-weight: 400; }
.compare__col li svg { width: 12px; height: 12px; margin-top: 3px; flex: none; }
.compare__col--new li svg { color: var(--accent); }
.compare__col li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.compare.is-in li { opacity: 1; transform: none; }
.compare.is-in .compare__col--new li { transition-delay: calc(var(--i) * 90ms + 240ms); }
.compare.is-in .compare__col--old li { transition-delay: calc(var(--i) * 90ms); }

/* =========================================================
   Portal & App
   ========================================================= */
.portal { padding: 40px var(--gutter) 120px; }
.portal__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: min(80vh, 760px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(28px, 4vw, 64px); }
.portal__card .media { position: absolute; inset: 0; }
.portal__card .media img { transform: none; } /* Bild ist vorab weichgezeichnet → kein teurer Live-Blur */
.portal__copy { position: relative; z-index: 2; max-width: 440px; }
.portal__copy .mono { opacity: .75; display: block; margin-bottom: 14px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 13px; font-weight: 500; }
.portal__copy .h2 { margin-bottom: 30px; }
.portal__copy > p { font-size: 14px; font-weight: 500; margin-bottom: 26px; }
.feat { display: grid; gap: 16px; margin-bottom: 36px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13.5px; }
.feat li strong { display: block; font-weight: 600; }
.feat li span { color: rgba(255,255,255,.6); }
.feat svg { width: 16px; height: 16px; opacity: .6; margin-top: 2px; }
.portal__phone { position: relative; z-index: 2; justify-self: center; transform: translateY(var(--py, 60px)) rotate(var(--pr, 4deg)); will-change: transform; }

/* Phone mockup */
.phone { width: 260px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 9px; background: #0b0d0e; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1.5px #2b2f31; }
.phone__screen { position: relative; height: 100%; border-radius: 32px; background: #fafaf8; color: var(--text); overflow: hidden; padding: 38px 14px 14px; font-size: 10px; }
.phone__island { position: absolute; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 20px; background: #0b0d0e; }
.phone__status { position: absolute; top: 13px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-weight: 600; font-size: 10px; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.phone__bar .logo { color: var(--text); font-size: 11px; gap: 5px; }
.phone__bar .logo svg { width: 13px; height: 13px; }
.phone__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); }
.phone h5 { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.phone .mono { font-size: 7px; color: var(--muted); }
.phone__task { margin: 12px 0; padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.phone__task header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.phone__pill { font-size: 7.5px; font-weight: 600; padding: 2px 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.phone__steps { display: flex; gap: 3px; margin-top: 8px; }
.phone__steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--paper-2); }
.phone__steps i.on { background: var(--ink); }
.phone__docs { display: grid; gap: 6px; }
.phone__doc { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.phone__doc svg { width: 12px; height: 12px; opacity: .6; flex: none; }
.phone__doc b { display: block; font-weight: 600; font-size: 9.5px; }
.phone__doc small { color: var(--muted); font-size: 8px; }
.phone__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 10px 16px; border-top: 1px solid var(--line); background: #fff; font-size: 7.5px; color: var(--muted); }
.phone__tabs span:first-child { color: var(--text); font-weight: 600; }

/* =========================================================
   Werte-Strip
   ========================================================= */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 var(--gutter) 40px; }
.strip figure { margin: 0; }
.strip .media { aspect-ratio: 16 / 6; border-radius: 6px; }
.strip figcaption { margin-top: 8px; font-size: 12px; color: var(--muted-dark); }

/* =========================================================
   Objektarten (sticky, wächst auf Vollbild, Bildwechsel)
   ========================================================= */
.objects { position: relative; height: 520vh; }
.objects__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.objects__frame { position: absolute; inset: 0; clip-path: inset(var(--oy, 12%) var(--ox, 2%) 0 var(--ox, 2%) round var(--or, 10px)); will-change: clip-path; }
.objects__img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-in-out); }
.objects__img.is-active { opacity: 1; }
.objects__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--os, 1.12)); transition: transform 0s; }
.objects__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 40%, transparent 70%, rgba(0,0,0,.35)); }
.objects__title { position: absolute; z-index: 3; left: calc(var(--gutter) + 2vw); top: calc(12% + 26px); max-width: 520px; color: #fff; transform: translateY(var(--ty, 0)); }
.objects__title .h2 { margin-bottom: 14px; }
.objects__label { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%); color: #fff; font-weight: 600; font-size: clamp(28px, 3.2vw, 52px); letter-spacing: -.035em; pointer-events: none; }
.objects__label span { position: absolute; white-space: nowrap; opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .9s var(--ease); }
.objects__label span.is-active { opacity: 1; transform: none; }
.objects__tabs { position: absolute; z-index: 3; left: var(--gutter); bottom: 22px; display: flex; gap: 16px; color: #fff; opacity: var(--tabs-o, 0); transition: opacity .4s; }
.objects__tabs button { position: relative; padding-bottom: 6px; color: rgba(255,255,255,.55); transition: color .3s; }
.objects__tabs button.is-active { color: #fff; }
.objects__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.objects__tabs button.is-active::after { transform: scaleX(1); }

/* =========================================================
   CTA + Footer
   ========================================================= */
.cta { padding: clamp(100px, 12vw, 180px) var(--gutter); display: grid; gap: 30px; justify-items: start; }
.cta .display { font-size: clamp(48px, 7.5vw, 128px); }
.footer { padding: 70px var(--gutter) 28px; border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 80px; }
.footer h6 { margin: 0 0 14px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer li a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-dark); font-size: 12px; }
.footer__bottom nav { display: flex; gap: 18px; }

/* =========================================================
   Kontakt-Drawer
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; transition: visibility 0s .8s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 17, 68, .35); opacity: 0; transition: opacity .6s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  padding: 22px 22px 30px; overflow-y: auto;
  background: var(--ink); color: #fff;
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.drawer.is-open { pointer-events: auto; visibility: visible; transition: none; }
.drawer.is-open .drawer__backdrop { opacity: 1; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; }
.drawer__close { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .4s var(--ease); }
.drawer__close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.drawer__row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; padding: 12px 0 26px; border-top: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.4; }
.drawer__row dt { color: rgba(255,255,255,.8); }
.drawer__row a { border-bottom: 1px solid rgba(255,255,255,.5); }
.drawer__row a:hover { color: var(--accent); border-color: var(--accent); }
.drawer__row, .drawer .btn { opacity: 0; transform: translateX(30px); transition: opacity .6s, transform .8s var(--ease); }
.drawer.is-open .drawer__row, .drawer.is-open .btn { opacity: 1; transform: none; }
.drawer.is-open .drawer__row:nth-of-type(1) { transition-delay: .15s; }
.drawer.is-open .drawer__row:nth-of-type(2) { transition-delay: .2s; }
.drawer.is-open .drawer__row:nth-of-type(3) { transition-delay: .25s; }
.drawer.is-open .drawer__row:nth-of-type(4) { transition-delay: .3s; }
.drawer.is-open .btn { transition-delay: .38s; }
.drawer form { display: none; gap: 10px; margin-top: 24px; }
.drawer.show-form form { display: grid; }
.field { display: grid; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); }
.field input, .field textarea, .field select { font: inherit; font-size: 14px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 6px; padding: 10px 12px; outline: none; transition: border-color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field select option { color: #000; }

/* =========================================================
   Mobile-Menü
   ========================================================= */
.mmenu { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: #fff; padding: 76px 20px 28px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0 round 0 0 24px 24px); transition: clip-path .8s var(--ease); overflow-y: auto; }
.mmenu.is-open { clip-path: inset(0 0 0 0 round 0); }
.mmenu__logo { display: grid; place-items: center; padding: 30px 0 50px; }
.mmenu__logo svg { width: 56px; height: 56px; }
.mmenu__list > li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease); }
.mmenu.is-open .mmenu__list > li { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__list > li:nth-child(1) { transition-delay: .2s; }
.mmenu.is-open .mmenu__list > li:nth-child(2) { transition-delay: .25s; }
.mmenu.is-open .mmenu__list > li:nth-child(3) { transition-delay: .3s; }
.mmenu.is-open .mmenu__list > li:nth-child(4) { transition-delay: .35s; }
.mmenu.is-open .mmenu__list > li:nth-child(5) { transition-delay: .4s; }
.mmenu__item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 0; font-size: 17px; font-weight: 500; text-align: left; }
.mmenu__item .plus { transition: transform .4s var(--ease); }
.mmenu__item[aria-expanded="true"] .plus { transform: rotate(45deg); }
.mmenu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.mmenu__sub > ul { overflow: hidden; }
.mmenu__sub a { display: block; padding: 6px 0 6px 12px; color: rgba(255,255,255,.7); font-size: 15px; }
.mmenu__sub.is-open { grid-template-rows: 1fr; }
.mmenu__sub.is-open > ul { padding-bottom: 12px; }
.mmenu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; font-size: 12px; color: rgba(255,255,255,.7); }
.mmenu__foot strong { display: block; margin-bottom: 6px; color: #fff; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }

/* =========================================================
   Unterseiten
   ========================================================= */
.page-hero { position: relative; height: 100vh; height: 100svh; color: #fff; overflow: hidden; }
.page-hero .media { position: absolute; inset: 0; }
.page-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent 55%), linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%); }
.page-hero__title { position: absolute; z-index: 2; left: var(--gutter); bottom: 34%; font-size: clamp(36px, 4.5vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.page-hero__title .line { display: block; overflow: hidden; }
.page-hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s .1s var(--ease); }
.is-loaded .page-hero__title .line > span { transform: none; }

/* Unternehmen: Bild schrumpft, drei Worte werden Spalten */
.values { position: relative; height: 300vh; }
.values__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--paper); }
.values__img { position: absolute; inset: 0; clip-path: inset(var(--vt, 0%) var(--vx, 0%) var(--vb, 0%) var(--vx, 0%) round var(--vr, 0px)); will-change: clip-path; }
.values__img .media { position: absolute; inset: 0; }
.values__words { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: var(--wt, 62%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values__words h3 { font-size: clamp(30px, 3.4vw, 54px); font-weight: 600; letter-spacing: -.04em; color: var(--wc, #fff); transition: color .2s; }
.values__words p { margin-top: 16vh; max-width: 260px; font-size: 13px; line-height: 1.45; color: var(--muted); opacity: var(--wp, 0); transform: translateY(calc((1 - var(--wp, 0)) * 20px)); }
.values__words .col { border-left: 1px solid rgba(0,17,68,var(--wl, 0)); padding-left: 0; padding-left: calc(var(--wp, 0) * 14px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 var(--gutter) 120px; }
.stat { padding: 18px; border-radius: var(--radius-sm); background: var(--paper-2); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.stat b { font-size: clamp(44px, 5vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 var(--gutter) 120px; }
.team figure { margin: 0; }
.team .media { aspect-ratio: 3 / 4; border-radius: 6px; }
.team .media img { filter: grayscale(1); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
.team figure:hover .media img { filter: none; transform: scale(1.04); }
.team figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; }
.team figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.process { padding: 0 var(--gutter) 140px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.process ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.process li { counter-increment: s; display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.process li::before { content: "0" counter(s); font: 500 11px var(--mono); color: var(--muted); padding-top: 6px; }
.process li h4 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.process li p { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 520px; }

/* Reveal helper */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
[data-split].is-in .w > span { transform: none; }

/* Page transition */
.pt { position: fixed; inset: 0; z-index: 150; background: var(--ink); pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-in-out); }
.pt.is-active { clip-path: inset(0 0 0 0); pointer-events: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header__full .navpill, .header__actions, .header__compact { display: none; }
  .header { padding: 14px 14px 0; }
  .header__full { display: flex; justify-content: space-between; }
  .header__full {
    padding: 5px 5px 5px 14px; border-radius: 999px;
    background: rgba(0, 17, 68, .55); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .header.is-compact .header__full { opacity: 1; transform: none; pointer-events: auto; }
  .header__burger { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 500; position: relative; z-index: 85; }
  .header__burger .plus { transition: transform .4s var(--ease); }
  body.menu-open .header__burger .plus { transform: rotate(45deg); }
  body.menu-open .header { z-index: 86; }
}
@media (max-width: 900px) {
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__badge { display: none; }
  .hero__progress { display: none; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__text { grid-column: 1; }
  .slider__viewport { padding-left: var(--gutter); }
  .slider__track { --aw: 84vw; --iw: 34vw; --ch: 112vw; }
  .review { flex-basis: 82vw; }
  .reviews__head { flex-direction: column; align-items: flex-start; }
  .compare__grid { grid-template-columns: 1fr; }
  .portal__card { grid-template-columns: 1fr; gap: 50px; }
  .strip { grid-template-columns: 1fr; }
  .secnav__list { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values__words { grid-template-columns: 1fr; gap: 6px; top: var(--wt-m, 50%); }
  .values__words p { margin-top: 6px; }
  .stats, .team { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .objects__tabs { flex-wrap: wrap; bottom: 70px; }
}
@media (max-width: 560px) {
  .display { font-size: 15.5vw; }
  .phone { width: 220px; }
  .drawer__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .kenburns > img { animation: none; }
}
