/* ngsystems.ch — Design System
   Dark, precise, mono-accented. Brand green from the ngsystems logo. */

@view-transition { navigation: auto; }

/* Self-hosted fonts: Geist & Geist Mono (SIL Open Font License) */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #0a0b0a;
  --bg-2: #101210;
  --surface: #151815;
  --surface-2: #1c201c;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --text: #f1f4f0;
  --muted: #a4aca3;
  --dim: #858d84;
  --accent: #5fef6b;
  --accent-ink: #062b0a;
  --accent-soft: rgba(95, 239, 107, .14);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- Typography ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.display {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(34px, 6.4vw, 88px);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1.06;
  font-size: clamp(28px, 4.2vw, 56px);
  margin: 0;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(95, 239, 107, .5); }
.btn--accent:hover { box-shadow: 0 10px 40px -8px rgba(95, 239, 107, .6); }
.btn--ghost {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Liquid Glass Navigation ---------- */
.nav {
  position: fixed; z-index: 100;
  top: 14px; left: 50%;
  width: min(1200px, calc(100% - 24px));
  translate: -50% 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .06)),
    rgba(28, 31, 28, .42);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -10px 24px rgba(0, 0, 0, .28),
    0 18px 50px -12px rgba(0, 0, 0, .7);
  transition: translate .6s var(--ease-out), padding .5s var(--ease-out), background-color .4s;
  view-transition-name: site-nav;
}
/* edge light ring */
.nav::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* specular highlight following the pointer */
.nav::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px 90px at var(--mx, 22%) -10%, rgba(255, 255, 255, .22), transparent 70%);
  transition: opacity .4s;
}
.nav.is-scrolled { padding-block: 6px; }

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 46px; margin-block: -4px; width: auto; filter: drop-shadow(0 0 14px rgba(95, 239, 107, .25)); }

.nav__links { position: relative; display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; z-index: 1;
  display: block; padding: 10px 15px;
  font-size: 16px; color: rgba(241, 244, 240, .78);
  border-radius: 999px;
  transition: color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); translate: -50% 0; box-shadow: 0 0 8px var(--accent);
}
/* liquid blob that glides behind hovered link */
.nav__blob {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; width: 60px;
  translate: var(--bx, 0) -50%; width: var(--bw, 60px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0;
  transition: translate .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.nav__links.has-blob .nav__blob { opacity: 1; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #86f78f, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 80, 10, .25), 0 0 0 1px rgba(95, 239, 107, .4), 0 8px 30px -6px rgba(95, 239, 107, .55);
  transition: transform .5s var(--ease-out), box-shadow .4s;
  flex-shrink: 0;
}
.nav__cta svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.nav__cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(95, 239, 107, .6), 0 12px 40px -6px rgba(95, 239, 107, .8); }
.nav__cta:hover svg { transform: translateX(4px); }
.nav__cta[aria-current="page"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 3px rgba(95, 239, 107, .35); }

.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .08); }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease-out), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 27px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__right { display: flex; align-items: center; gap: 8px; }

/* mobile sheet */
.nav-sheet {
  position: fixed; z-index: 99; top: 84px; left: 12px; right: 12px;
  border-radius: 28px; padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)), rgba(20, 23, 20, .72);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 30px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98); transform-origin: top center;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s;
  max-height: calc(100dvh - 100px); overflow: auto;
}
.nav-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sheet ul { list-style: none; margin: 0; padding: 0; }
.nav-sheet li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 40ms + 80ms); }
.nav-sheet.is-open li { opacity: 1; transform: none; }
.nav-sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 8px; font-family: var(--font-mono); text-transform: uppercase; font-size: 20px; letter-spacing: -.01em; }
.nav-sheet a[aria-current="page"] { color: var(--accent); }
.nav-sheet a svg { width: 18px; height: 18px; color: var(--muted); }
.nav-sheet__meta { display: grid; gap: 6px; padding: 18px 8px 6px; color: var(--muted); font-size: 15px; }

@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { padding-left: 20px; }
}
@media (max-width: 520px) {
  .nav__cta { height: 48px; padding: 0 16px 0 18px; font-size: 15px; }
  .nav__logo img { height: 32px; }
}
@media (min-width: 1121px) { .nav-sheet { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  margin: 10px;
  min-height: calc(100svh - 20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid; align-items: end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 115%; object-fit: cover; object-position: center 40%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
  animation: heroZoom 2.4s var(--ease-out) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: translate3d(0, var(--py, 0px), 0) scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 70% at 0% 100%, rgba(10, 11, 10, .78) 10%, transparent 70%),
    linear-gradient(180deg, rgba(10, 11, 10, .5) 0%, rgba(10, 11, 10, 0) 22%, rgba(10, 11, 10, .05) 50%, rgba(10, 11, 10, .88) 100%);
}
.hero__inner { padding: clamp(110px, 16vh, 180px) clamp(20px, 5vw, 64px) clamp(22px, 3.5vw, 44px); width: 100%; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hero__inner .btn { text-shadow: none; }
.hero__title { max-width: 16ch; }
.hero__sub { margin-top: 28px; font-size: clamp(18px, 1.9vw, 24px); color: rgba(241, 244, 240, .86); max-width: 40ch; line-height: 1.45; }
.ticker {
  display: block; height: 1.45em; overflow: hidden; margin: 2px 0;
  font-family: var(--font-mono); text-transform: uppercase; color: var(--accent);
  font-size: 1.25em; line-height: 1.45; letter-spacing: -.01em;
}
.ticker__track { display: grid; transition: transform .8s var(--ease-in-out); }
.ticker__track span { height: 1.45em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: end;
  margin-top: clamp(28px, 5vh, 56px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(241, 244, 240, .7);
}
.hero__foot ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.hero__foot li { display: flex; align-items: center; gap: 8px; }
.hero__foot li::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.scroll-cue { display: none; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease-in-out) infinite; }
@media (min-width: 760px) { .scroll-cue { display: inline-flex; } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; margin: 10px; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  min-height: clamp(460px, 72svh, 720px); display: grid; align-items: end;
}
.page-hero .hero__media img { height: 118%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 11, 10, .6) 0%, rgba(10, 11, 10, .25) 40%, rgba(10, 11, 10, .9) 100%);
}
.page-hero__inner { padding: 140px clamp(20px, 5vw, 64px) clamp(32px, 5vw, 60px); width: 100%; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.page-hero__index { font-family: var(--font-mono); font-size: clamp(40px, 6vw, 84px); line-height: 1; color: rgba(255, 255, 255, .9); }
.page-hero .lead { color: rgba(241, 244, 240, .82); margin: 18px 0 0; }
.crumbs { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(241, 244, 240, .6); margin-bottom: 18px; display: flex; gap: 10px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Statement / scroll-highlight ---------- */
.statement { font-size: clamp(26px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; margin: 0; max-width: 24ch; text-wrap: pretty; }
.statement .w { color: rgba(241, 244, 240, .18); transition: color .35s; }
.statement .w.is-lit { color: var(--text); }
.statement .w.is-accent.is-lit { color: var(--accent); }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.intro-grid__side { display: grid; gap: 22px; align-content: start; }
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.q-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.q-list li b { color: var(--text); font-weight: 500; display: block; }
.q-list .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end; } }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin: 0; }

/* ---------- Services card (screenshot "services") ---------- */
.svc {
  --cols: 4;
  --dur: 7s;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(600px, 80vh, 780px);
  display: grid; grid-template-rows: 1fr auto; gap: 40px;
  padding: clamp(24px, 4.2vw, 64px);
  background: #0d0f0d;
}
.svc__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.svc__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.1s var(--ease-in-out), transform 1.6s var(--ease-out);
}
.svc__media img.is-active { opacity: 1; transform: scale(1.02); animation: kenburns calc(var(--dur) + 2s) linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.svc__media::after {
  content: ""; position: absolute; inset: -1px; z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, .72) 0%, rgba(8, 9, 8, .35) 38%, rgba(8, 9, 8, .6) 62%, rgba(8, 9, 8, .94) 100%),
    linear-gradient(90deg, rgba(8, 9, 8, .5), transparent 60%);
}
.svc__head { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.svc__title { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.015em; margin: 0; max-width: 26ch; }
.svc__num { font-family: var(--font-mono); font-size: clamp(40px, 5vw, 72px); line-height: 1; display: inline-grid; height: 1em; overflow: hidden; flex-shrink: 0; }
.svc__num-track { display: grid; transition: transform .9s var(--ease-in-out); }
.svc__num-track span { height: 1em; line-height: 1; }

.svc__tabs { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 30px clamp(20px, 3vw, 44px); align-items: end; list-style: none; margin: 0; padding: 0; }
.svc__tab { display: grid; position: relative; padding-bottom: 22px; }
.svc__btn { display: grid; text-align: left; gap: 0; width: 100%; }
.svc__btn-title { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.25; color: rgba(241, 244, 240, .66); transition: color .5s; font-weight: 400; }
.svc__btn:hover .svc__btn-title { color: rgba(241, 244, 240, .85); }
.svc__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.svc__desc > div { overflow: hidden; }
.svc__desc p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: rgba(241, 244, 240, .78); max-width: 34ch; opacity: 0; transform: translateY(8px); transition: opacity .5s .1s, transform .7s var(--ease-out) .1s; }
.svc__desc a { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--accent); font-size: 15px; font-weight: 500; }
.svc__desc a svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.svc__desc a:hover svg { transform: translateX(3px); }
.svc__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.svc__bar::after { content: ""; position: absolute; inset: 0; height: 2px; top: -.5px; background: #fff; transform: scaleX(0); transform-origin: left; }
.svc__tab.is-active .svc__btn-title { color: #fff; }
.svc__tab.is-active .svc__desc { grid-template-rows: 1fr; }
.svc__tab.is-active .svc__desc p { opacity: 1; transform: none; }
.svc__tab.is-active .svc__bar::after { animation: fill var(--dur) linear forwards; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.svc.is-paused .svc__tab.is-active .svc__bar::after { animation-play-state: paused; }
.svc.is-static .svc__tab.is-active .svc__bar::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 1100px) { .svc { --cols: 2 !important; } }
@media (max-width: 640px) {
  .svc { --cols: 1 !important; min-height: 0; gap: 120px; padding: 26px 22px 18px; }
  .svc__tabs { gap: 0; }
  .svc__btn { padding: 18px 0 0; }
  .svc__tab { padding-bottom: 18px; }
  .svc__desc p { max-width: none; }
}

/* ---------- Blog cards (screenshot "blog posts") ---------- */
.posts { display: grid; gap: 48px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post { display: grid; gap: 0; align-content: start; }
.post__img { position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; background: var(--surface); }
.post__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: transform 1.2s var(--ease-out), filter .8s; }
.post__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 0% 100%, rgba(95, 239, 107, .55), transparent 65%);
  mix-blend-mode: soft-light; opacity: .55; transition: opacity .8s;
}
.post:hover .post__img img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.post:hover .post__img::after { opacity: 1; }
.chip-row { display: flex; gap: 4px; margin: 26px 0 20px; }
.chip { height: 36px; min-width: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background-color .4s, color .4s, border-color .4s, transform .6s var(--ease-out); }
.chip--icon { padding: 0; width: 36px; }
.chip--icon svg { width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.post:hover .chip--icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.post:hover .chip--icon svg { transform: rotate(90deg); }
.post__title { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.16; font-weight: 400; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.post__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.post:hover .post__title a { background-size: 100% 1px; }
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post__meta { margin-top: 18px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.post__meta .dot { margin: 0 8px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 84px);
  background: var(--surface);
  display: grid; gap: 32px;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -20vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(95, 239, 107, .22), transparent);
  animation: drift 14s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translate(-12vmax, 14vmax); } }
.cta__grid { display: grid; gap: 32px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.4fr 1fr; align-items: end; } .cta__actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.footer { margin: 10px; border-radius: var(--radius-xl); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px) 26px; overflow: hidden; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer h2 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.footer address { font-style: normal; line-height: 1.75; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent); }
.footer__dl { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 14px; transition: border-color .3s, background-color .3s; }
.footer__dl:hover { border-color: var(--accent); background: var(--accent-soft); }
.footer__dl svg { width: 20px; height: 20px; color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer__mark {
  font-family: var(--font-mono); text-transform: uppercase; font-weight: 500;
  font-size: clamp(56px, 15.5vw, 230px); line-height: .8; letter-spacing: -.05em;
  margin: clamp(48px, 8vw, 100px) 0 18px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(241, 244, 240, .16), rgba(241, 244, 240, 0) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.to-top { display: inline-flex; gap: 8px; align-items: center; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Subpage content ---------- */
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; } }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: s; transition: border-color .4s, transform .6s var(--ease-out); }
.step:hover { border-color: rgba(95, 239, 107, .4); transform: translateY(-4px); }
.step::before { content: "0" counter(s); font-family: var(--font-mono); color: var(--accent); font-size: 14px; display: block; margin-bottom: 36px; }
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step a { color: var(--accent); }

/* ---------- Referenzen slider ---------- */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(620px, calc(100vw - 72px));
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px max(36px, calc(50% - 310px + var(--gutter))) 30px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; align-items: center;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track.is-dragging * { user-select: none; pointer-events: none; }
.quote {
  scroll-snap-align: center; margin: 0;
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 28px;
  min-height: 400px; padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line);
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), border-color .5s, background-color .5s;
  opacity: .42; transform: scale(.94);
}
.quote.is-current { opacity: 1; transform: none; border-color: rgba(95, 239, 107, .35); background: linear-gradient(160deg, #1b211b, var(--surface) 60%); }
.quote__top { display: flex; justify-content: space-between; align-items: center; }
.stars { display: flex; gap: 4px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.quote__mark { font-family: var(--font-mono); font-size: 64px; line-height: .5; color: rgba(95, 239, 107, .5); height: 26px; }
.quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.38; letter-spacing: -.01em; text-wrap: pretty; }
.quote blockquote.is-long { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 15px; flex-shrink: 0; }
.quote cite { font-style: normal; font-weight: 500; display: block; }
.quote small { color: var(--muted); font-size: 14px; }
.slider__ui { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
.slider__count { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.slider__count b { color: var(--text); font-weight: 500; }
.slider__progress { flex: 1; height: 1px; background: var(--line-strong); position: relative; max-width: 420px; }
.slider__progress i { position: absolute; left: 0; top: -.5px; height: 2px; background: var(--accent); width: var(--sp, 10%); transition: width .6s var(--ease-out); box-shadow: 0 0 8px var(--accent); }
.slider__btns { display: flex; gap: 8px; }
.icon-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-out); }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Preise ---------- */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.price {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 28px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 40px; align-content: space-between; min-height: 290px;
  transition: transform .7s var(--ease-out), border-color .4s;
}
.price::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(400px 200px at var(--gx, 50%) var(--gy, 0%), rgba(95, 239, 107, .16), transparent 70%);
}
.price:hover { transform: translateY(-6px); border-color: rgba(95, 239, 107, .35); }
.price:hover::before { opacity: 1; }
.price--featured { background: linear-gradient(165deg, #1d2a1e, #121512 70%); border-color: rgba(95, 239, 107, .4); }
.price__label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.price__amount { font-family: var(--font-mono); line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.price__amount .cur { font-size: 18px; color: var(--muted); }
.price__amount .val { font-size: clamp(56px, 6vw, 80px); letter-spacing: -.04em; }
.price__amount .per { margin-left: -6px; font-size: 22px; color: var(--muted); }
.price h3 { margin: 12px 0 0; font-weight: 500; font-size: 20px; }
.price p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.info-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list .k { color: var(--muted); }
.info-list .v { font-family: var(--font-mono); text-align: right; }
.pay { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; }
.pay li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.pay .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pay .ic svg { width: 22px; height: 22px; }
.pay b { display: block; font-weight: 500; }
.pay span { color: var(--muted); font-size: 14px; }
.iban { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius-md); border: 1px dashed var(--line-strong); margin-top: 16px; }
.iban code { display: block; font-family: var(--font-mono); font-size: clamp(16px, 2vw, 22px); letter-spacing: .04em; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.is-done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.copy-btn svg { width: 16px; height: 16px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; } }
.card { padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status.is-open i { background: var(--accent); box-shadow: 0 0 0 0 rgba(95, 239, 107, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(95, 239, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 239, 107, 0); } }
.hours { list-style: none; margin: 26px 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hours .v { font-family: var(--font-mono); }
.contact-links { display: grid; gap: 10px; margin-top: 26px; }
.contact-links a { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.contact-links a:hover { border-color: rgba(95, 239, 107, .45); background: var(--accent-soft); }
.contact-links .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--accent); }
.contact-links svg { width: 20px; height: 20px; }
.contact-links small { display: block; color: var(--muted); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.contact-links .arr { color: var(--muted); }

.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { position: relative; display: grid; }
.field label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(95, 239, 107, .05); box-shadow: 0 0 0 4px rgba(95, 239, 107, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7b72; }
.field .err { color: #ff9c94; font-size: 13px; margin-top: 6px; min-height: 0; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form__note { color: var(--dim); font-size: 13px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { grid-column: 1 / -1; border-radius: 14px; padding: 16px 18px; display: none; }
.form-msg.is-error { display: block; background: rgba(255, 123, 114, .1); border: 1px solid rgba(255, 123, 114, .4); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.is-shown { display: grid; gap: 14px; justify-items: center; animation: pop .8s var(--ease-out); }
.form-success .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.form-success .tick svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .3s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

.map {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  height: clamp(420px, 60vh, 600px); background: #1a1d1a; border: 1px solid var(--line);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.92) contrast(.88) brightness(.95);
  transition: filter 1s;
}
.map:hover iframe { filter: grayscale(.6) invert(.92) contrast(.9) brightness(1); }
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 20px rgba(10, 11, 10, .85); z-index: 1; }
.map__card {
  position: absolute; z-index: 2; left: clamp(12px, 3vw, 32px); bottom: clamp(12px, 3vw, 32px);
  width: min(360px, calc(100% - 24px));
  padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)), rgba(18, 20, 18, .6);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 50px -10px rgba(0, 0, 0, .7);
}
.map__card address { font-style: normal; margin: 10px 0 18px; line-height: 1.6; }
.map__card .btn { --h: 46px; font-size: 15px; }
.map__pin { position: absolute; z-index: 2; top: 18px; right: 18px; }

/* ---------- Article (blog) ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: rgba(241, 244, 240, .88); }
.article .sign { font-family: var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.article__img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 2 / 1; margin-bottom: 48px; }
.article__img img { width: 100%; height: 100%; object-fit: cover; }
.back { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }
.back svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.back:hover { color: var(--accent); }
.back:hover svg { transform: translateX(-4px); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .split .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .split .line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--l, 0) * 90ms + var(--d, 0ms)); }
.js .split.is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .split .line > span { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
.nav-sheet__meta a { font-family: var(--font-sans); text-transform: none; font-size: 16px; padding: 4px 0; letter-spacing: 0; }
@media (max-width: 600px) {
  .quote { min-height: 360px; }
  .map { height: 540px; }
  .map__card { padding: 18px; }
  .map__card address { margin: 6px 0 14px; font-size: 15px; }
}
.hero__media picture { display: contents; }
@media (max-width: 700px) {
  .hero__media img, .page-hero .hero__media img { height: 100%; transform: none; animation: heroFade 1.4s var(--ease-out) both; }
  .js .split .line, .js .split .line > span { display: inline; transform: none; }
  .js .split { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .split.is-in { opacity: 1; transform: none; }
}
@keyframes heroFade { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero .eyebrow { color: rgba(241, 244, 240, .92); }
