/* ══ Fonts ═══════════════════════════════════════════════════════════
 * General Sans (Indian Type Foundry via Fontshare, free licence) is
 * served from this origin. Only the regular cut is used — the look
 * sets weight 400 everywhere — so one 23 KB file is the whole stack.
 * No third-party font host, nothing to disclose, nothing to consent to. */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ══ Reset ═══════════════════════════════════════════════════════════
 * The app gets this from Tailwind's Preflight; standalone it has to be
 * spelled out. Only the parts the compositions actually depend on —
 * notably headings and paragraphs losing their UA margins, and
 * `border-style: solid` by default so a bare `border-width` still
 * paints. */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd, pre, hr {
  margin: 0;
}

ul, ol, menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

b, strong { font-weight: bolder; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 1em;
}

small { font-size: 80%; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
}

/* ══ Tokens ══════════════════════════════════════════════════════════ */
:root {
  --font-general: "General Sans", system-ui, sans-serif;
  --font-onest: "General Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --lk-serif: "Didot", "Bodoni 72", "Playfair Display", Georgia,
    "Times New Roman", serif;
  --lk-script: "Snell Roundhand", "Savoye LET", "Bradley Hand",
    "Segoe Script", cursive;
  --radius-pill: 999px;

  /* The page ground, and what the composition's openings reveal. Here
   * the live asset is the Floral TV Room loop behind .lk-stage; black
   * is only what shows before the poster has decoded. */
  --lk-asset: #000;
}

html {
  /* Fixed, so a `rem` in the shared primitives is a known 16px and the
   * composition's own px are the only thing that matters. */
  font-size: 16px;
  background: var(--lk-asset);
}

body {
  margin: 0;
  /* One screen, never a scrollbar — these are single-view compositions,
   * not scrolling pages. */
  height: 100svh;
  overflow: hidden;
  background: var(--lk-asset);
  font-family: var(--font-onest), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Full bleed. Black is the page's ground colour, not a frame around
 * it — the composition runs edge to edge like any real site. */
.lk-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--lk-asset);
}

/* ── The asset ───────────────────────────────────────────────────────
 * The Floral TV Room loop, full bleed, first in the DOM so it stays
 * behind everything. `object-fit: cover` crops the 4:3 master to the
 * viewport; the poster is the loop's own first frame, so the hand-off
 * from still to motion is invisible. */
.lk-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--lk-asset);
  overflow: hidden;
}

.lk-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* The composition layer. */
.uip-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ── Entry state ──────────────────────────────────────────────────
 * Elements that cascade in start hidden so nothing flashes before the
 * script takes over. The script itself sets `.lk-js` on <html>, so
 * with JS off the rule never matches and the page renders fully. */
html.lk-js [data-rise] {
  opacity: 0;
}

/* ── Preloader ───────────────────────────────────────────────────────
 * Exists only under `html.lk-js`: with scripts off there is nothing to
 * wait for and nothing to lift. */
.lk-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #000;
  color: #fff;
  transition: opacity 0.65s ease;
}

html.lk-js .lk-loader {
  display: flex;
}

.lk-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.lk-loader .lk-loader-mark {
  width: 56px;
  height: auto;
  animation: lk-loader-breathe 1.8s ease-in-out infinite;
}

.lk-loader .lk-loader-bar {
  width: 128px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.lk-loader .lk-loader-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 0.25s linear;
}

.lk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes lk-loader-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lk-loader { transition: none; }
  .lk-loader .lk-loader-mark { animation: none; }
}

/* ══ Look-library primitives ═════════════════════════════════════════ */
.lk {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
}

.lk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lk-mark {
  width: 0.62rem;
  height: 0.62rem;
  flex: none;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.lk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.34rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 550;
  white-space: nowrap;
}

.lk-pill-dark {
  background: rgba(13, 13, 13, 0.92);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.lk-pill-ghost {
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}

/* Shared inner vocabulary — the look restyles these in its scope. */
.lk .lkx-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.66rem;
}

.lk .lkx-h1 {
  font-family: var(--font-general), system-ui, sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lk .lkx-sub {
  font-size: 0.7rem;
  line-height: 1.5;
  opacity: 0.78;
}

.lk .lkx-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Interactive chrome — mock controls accept the pointer and answer
 * with instant hover/press feedback (state swaps only; motion stays
 * spring-only). Everywhere else the media keeps the pointer. */
.lk .lk-pill {
  pointer-events: auto;
  cursor: pointer;
}

.lk .lk-pill:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 20%, transparent);
}

.lk .lk-pill:active { filter: brightness(0.92); }

/* ══ Split lab — the composition ════════════════════════════════════════════
 * Everything specific to `.lk-divide`. This is the block to work in.
 *
 * Source: Figma "Frame 5" (node 2089:776), a 1920 × 1080 frame. The
 * numbers below are that frame's numbers, in px:
 *
 *   nav       72px tall: the brand cell to the glass edge, then the
 *             language switch and Contact at the far right
 *   left      the glass panel, full height
 *   right     the asset itself, with three concentric rings on it
 *
 * ONE deliberate departure from the frame: the split. The frame cuts
 * at 950 of 1920 (49.48%). The Floral TV Room loop has its hero — the
 * TV head carrying the newcloud ident — dead centre, x 780–1250 of
 * 1920, so a 49.48% split would put the ident half behind the glass.
 * The split is therefore 39% (749px) and the ring diagram sits at 73%
 * of the right column instead of 49.5%, over the TV wall rather than
 * over the ident. Every other number is the frame's own. */

.lk-divide {
  /* Nav */
  --d-nav-fs: 24px;
  --d-nav-py: 24px;
  --d-nav-px: 10px;
  --d-mark: 18px;
  --d-brand-gap: 8px;

  /* Headline group — the 82px star, then three 72px/1.2 lines */
  --d-star: 82px;
  --d-head-gap: 24px;
  --d-h1: 72px;

  /* Footer group — the two-line paragraph and the button row */
  --d-sub: 24px;
  --d-sub-max: none;
  --d-btn-fs: 24px;
  --d-btn-px: 48px;
  --d-btn-py: 20px;
  --d-btn-gap: 16px;

  /* The panel's own frame: 51px each side, 30px under the buttons, and
   * the 40px between paragraph and buttons. */
  --d-pad-x: 51px;
  --d-pad-b: 30px;
  --d-foot-gap: 40px;

  /* The ring diagram — the outer circle's own diameter. */
  --d-ring: 606px;

  /* The split — see the note above. The nav's cells, the panel and the
   * Contact cell (a quarter of it) all read this. */
  --d-split: 39%;
  /* Where the ring diagram's centre sits in the right column. */
  --d-ring-x: 73%;
  --d-ring-y: 50%;
  /* The one hairline the whole chrome is drawn with. */
  --d-line: rgba(255, 255, 255, 0.28);

  /* ── Dark theme palette ─────────────────────────────────────────── */
  --d-panel: rgba(16, 16, 16, 0.62);
  --d-panel-ink: #f2f2f2;
  --d-panel-dim: rgba(242, 242, 242, 0.45);
  --d-navbg: rgba(10, 10, 10, 0.42);
  --d-cta: #f2f2f2;
  --d-cta-ink: #0c0c0c;
  --d-cta-hover: #ffffff;

  color: var(--d-panel-ink);
  font-family: var(--font-general), system-ui, sans-serif;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.lk-divide .lkx-nav {
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--d-navbg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--d-line);
  color: #fff;
  font-size: var(--d-nav-fs);
  font-weight: 400;
  line-height: 1;
}

.lk-divide .lkx-navmain {
  display: flex;
  align-items: stretch;
  width: var(--d-split);
}

.lk-divide .lkx-navcell {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: var(--d-nav-py) var(--d-nav-px);
  border-right: 1px solid var(--d-line);
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

/* Contact sits at the far right, a quarter of the split wide, and
 * carries the divider on its left instead. */
.lk-divide .lkx-navcontact {
  flex: none;
  width: calc(var(--d-split) / 4);
  border-right: 0;
  border-left: 1px solid var(--d-line);
}

.lk-divide .lkx-navcell:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* The brand cell runs to the glass edge, so the hairline under its right
 * border is the panel's own edge. The four attribute words are gone. */
.lk-divide .lkx-navbrand {
  flex: 1 0 0;
  justify-content: flex-start;
  padding-inline: var(--d-pad-x);
}

/* DE · EN — quiet, at the far right next to Contact. The active language
 * is white and inert, the other is dimmed and a link. */
.lk-divide .lkx-navlang {
  flex: none;
  gap: 0.45em;
  margin-left: auto;
  padding-inline: calc(var(--d-nav-px) + 12px);
  border-right: 0;
  border-left: 1px solid var(--d-line);
  cursor: default;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.45);
}

.lk-divide .lkx-navlang:hover {
  background: none;
}

.lk-divide .lkx-navlang a {
  color: inherit;
  text-decoration: none;
}

.lk-divide .lkx-navlang a:hover {
  color: #fff;
}

.lk-divide .lkx-navlang a[aria-current] {
  color: #fff;
  cursor: default;
}

.lk-divide .lk-brand {
  gap: var(--d-brand-gap);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

/* The brand mark is the newcloud cloud, not the library's ring: a white
 * PNG cut from the logo, sized off the same token. */
.lk-divide .lk-mark {
  width: auto;
  height: calc(var(--d-mark) * 1.35);
  border: 0;
  border-radius: 0;
}

/* ── The two columns ────────────────────────────────────────────── */
.lk-divide .lkx-cols {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.lk-divide .lkx-colcopy {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: var(--d-split);
  padding: 0 var(--d-pad-x) var(--d-pad-b);
  background: var(--d-panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  overflow: hidden;
}

/* The panel's two gaps split the free height 58 : 42. */
.lk-divide .lkx-gap {
  display: block;
  width: 100%;
}

.lk-divide .lkx-gap-a {
  flex: 58 1 0;
  min-height: var(--d-gap-a, 0px);
}

.lk-divide .lkx-gap-b {
  flex: 42 1 0;
  min-height: var(--d-gap-b, 0px);
}

.lk-divide .lkx-head {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: var(--d-head-gap);
  width: 100%;
}

.lk-divide .lkx-star {
  width: var(--d-star);
  height: var(--d-star);
  flex: none;
}

.lk-divide .lkx-h1 {
  font-family: var(--font-general), system-ui, sans-serif;
  font-size: var(--d-h1);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--d-panel-ink);
}

/* The emphasised words drop back to half the panel ink. */
.lk-divide .lkx-h1 em {
  font-style: normal;
  color: var(--d-panel-dim);
}

.lk-divide .lkx-foot {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: var(--d-foot-gap);
  width: 100%;
}

.lk-divide .lkx-sub {
  max-width: var(--d-sub-max);
  font-size: var(--d-sub);
  line-height: 1.2;
  color: var(--d-panel-ink);
  opacity: 1;
}

.lk-divide .lkx-cta {
  gap: var(--d-btn-gap);
}

.lk-divide .lk-pill {
  padding: var(--d-btn-py) var(--d-btn-px);
  border-radius: 32px;
  font-size: var(--d-btn-fs);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.lk-divide .lk-pill-dark {
  background: var(--d-cta);
  color: var(--d-cta-ink);
}

.lk-divide .lk-pill-ghost {
  border: 1px solid rgba(242, 242, 242, 0.5);
  color: var(--d-panel-ink);
}

.lk-divide .lk-pill:hover {
  filter: none;
  box-shadow: none;
}

.lk-divide .lk-pill-dark:hover { background: var(--d-cta-hover); }
.lk-divide .lk-pill-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.lk-divide .lk-pill:active { filter: brightness(0.94); }

/* ── The ring diagram ──────────────────────────────────────────────── */
.lk-divide .lkx-colviz {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.lk-divide .lkx-rings {
  position: absolute;
  left: calc(var(--d-ring-x) - var(--d-ring) / 2);
  top: calc(var(--d-ring-y) - var(--d-ring) / 2);
  width: var(--d-ring);
  height: var(--d-ring);
}

.lk-divide .lkx-rings svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── The legal line ──────────────────────────────────────────────────
 * Impressum and Datenschutz sit in the asset column's lower right, on
 * the panel's own bottom/side padding, at 70% of the nav size. */
.lk-divide .lkx-legal {
  position: absolute;
  right: var(--d-pad-x);
  bottom: var(--d-pad-b);
  z-index: 3;
  display: flex;
  gap: calc(var(--d-btn-gap) * 1.5);
  font-size: max(12px, calc(var(--d-nav-fs) * 0.7));
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

.lk-divide .lkx-legal a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.lk-divide .lkx-legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ── The orbits ──────────────────────────────────────────────────── */
.lk-divide .lkx-orbit,
.lk-divide .lkx-dash {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.lk-divide .lkx-orbit-1 { animation: lk-divide-spin 61s linear infinite; }
.lk-divide .lkx-orbit-2 { animation: lk-divide-spin 43s linear infinite reverse; }
.lk-divide .lkx-orbit-3 { animation: lk-divide-spin 29s linear infinite; }
.lk-divide .lkx-dash { animation: lk-divide-spin 127s linear infinite reverse; }

@keyframes lk-divide-spin {
  to { transform: rotate(360deg); }
}

/* ══ RESPONSIVE ══════════════════════════════════════════════════════ */
@media (max-width: 1900px) {
  .lk-divide {
    --d-nav-fs: 21px; --d-nav-py: 21px; --d-mark: 16px; --d-brand-gap: 7px;
    --d-star: 73px; --d-head-gap: 21px; --d-h1: 64px;
    --d-sub: 21px;
    --d-btn-fs: 21px; --d-btn-px: 43px; --d-btn-py: 18px; --d-btn-gap: 14px;
    --d-pad-x: 46px; --d-pad-b: 27px; --d-foot-gap: 36px;
    --d-ring: 539px;
  }
}

@media (max-width: 1700px) {
  .lk-divide {
    --d-nav-fs: 19px; --d-nav-py: 19px; --d-mark: 14px; --d-brand-gap: 6px;
    --d-star: 64px; --d-head-gap: 19px; --d-h1: 56px;
    --d-sub: 19px;
    --d-btn-fs: 19px; --d-btn-px: 38px; --d-btn-py: 16px; --d-btn-gap: 12px;
    --d-pad-x: 42px; --d-pad-b: 24px; --d-foot-gap: 32px;
    --d-ring: 471px;
  }
}

@media (max-width: 1500px) {
  .lk-divide {
    --d-nav-fs: 17px; --d-nav-py: 17px; --d-mark: 13px; --d-brand-gap: 6px;
    --d-star: 57px; --d-head-gap: 17px; --d-h1: 50px;
    --d-sub: 17px;
    --d-btn-fs: 17px; --d-btn-px: 33px; --d-btn-py: 14px; --d-btn-gap: 11px;
    --d-pad-x: 38px; --d-pad-b: 22px; --d-foot-gap: 28px;
    --d-ring: 422px;
  }
}

@media (max-width: 1340px) {
  .lk-divide {
    --d-nav-fs: 16px; --d-nav-py: 15px; --d-mark: 12px; --d-brand-gap: 5px;
    --d-star: 50px; --d-head-gap: 15px; --d-h1: 44px;
    --d-sub: 16px;
    --d-btn-fs: 16px; --d-btn-px: 30px; --d-btn-py: 13px; --d-btn-gap: 10px;
    --d-pad-x: 34px; --d-pad-b: 20px; --d-foot-gap: 25px;
    --d-ring: 373px;
  }
}

@media (max-width: 1200px) {
  .lk-divide {
    --d-nav-fs: 15px; --d-nav-py: 14px; --d-mark: 11px; --d-brand-gap: 5px;
    --d-star: 46px; --d-head-gap: 14px; --d-h1: 40px;
    --d-sub: 15px;
    --d-btn-fs: 15px; --d-btn-px: 27px; --d-btn-py: 12px; --d-btn-gap: 9px;
    --d-pad-x: 30px; --d-pad-b: 18px; --d-foot-gap: 23px;
    --d-ring: 338px;
  }
}

@media (max-width: 1080px) {
  .lk-divide {
    --d-nav-fs: 14px; --d-nav-py: 13px; --d-mark: 10px; --d-brand-gap: 5px;
    --d-star: 41px; --d-head-gap: 12px; --d-h1: 36px;
    --d-sub: 14px;
    --d-btn-fs: 14px; --d-btn-px: 24px; --d-btn-py: 11px; --d-btn-gap: 8px;
    --d-pad-x: 26px; --d-pad-b: 17px; --d-foot-gap: 21px;
    --d-ring: 304px;
  }
}

@media (max-width: 960px) {
  .lk-divide {
    --d-nav-fs: 12px; --d-nav-py: 12px; --d-nav-px: 6px; --d-mark: 10px; --d-brand-gap: 4px;
    --d-star: 36px; --d-head-gap: 11px; --d-h1: 32px;
    --d-sub: 13px;
    --d-btn-fs: 13px; --d-btn-px: 22px; --d-btn-py: 10px; --d-btn-gap: 8px;
    --d-pad-x: 22px; --d-pad-b: 16px; --d-foot-gap: 19px;
    --d-ring: 270px;
  }
}

/* ── Split lab on a phone ────────────────────────────────────────────
 * Below 860 the columns stack: the panel on top takes what its content
 * needs, the ring diagram takes the rest of the screen over the asset,
 * and the nav's five cells spread across the full width. */
@media (max-width: 860px) {
  .lk-divide {
    --d-nav-fs: 15px; --d-nav-py: 13px; --d-mark: 12px; --d-brand-gap: 5px;
    --d-star: 46px; --d-head-gap: 14px; --d-h1: 40px;
    --d-sub: 16px; --d-sub-max: 430px;
    --d-btn-fs: 16px; --d-btn-px: 30px; --d-btn-py: 13px; --d-btn-gap: 10px;
    --d-pad-x: 32px; --d-pad-b: 32px; --d-foot-gap: 24px;
    --d-gap-a: 48px; --d-gap-b: 36px;
    --d-ring: 392px;
    /* Stacked, the band belongs to the TV head: the diagram moves off
     * to the lower right and reads as an arc, not a target on the ident. */
    --d-ring-x: 84%;
    --d-ring-y: 78%;
  }

  .lk-divide .lkx-navmain {
    flex: 1;
    width: auto;
  }

  .lk-divide .lkx-navcontact {
    width: auto;
    padding-inline: calc(var(--d-nav-px) + 6px);
  }

  .lk-divide .lkx-cols { flex-direction: column; }

  .lk-divide .lkx-colcopy {
    width: 100%;
    flex: none;
  }

  .lk-divide .lkx-colviz {
    width: 100%;
    flex: 1 1 auto;
    min-height: 160px;
  }

  .lk-divide .lkx-sub br { display: none; }

  .lk-divide .lkx-legal {
    right: auto;
    left: var(--d-pad-x);
  }

  .lk-divide .lkx-navbrand {
    padding-inline: calc(var(--d-nav-px) + 6px);
  }

  .lk-divide .lkx-navlang {
    padding-inline: calc(var(--d-nav-px) + 6px);
  }

  /* Stacked, the asset's hero would sit under the panel. Pull the loop
   * in and down so the TV head lands in the diagram's band instead. */
  .lk-bg video {
    object-position: 50% 42%;
    transform: scale(1.32) translateY(9%);
    transform-origin: 50% 50%;
  }
}

@media (max-width: 600px) {
  .lk-divide {
    --d-nav-fs: 13px; --d-nav-py: 12px; --d-nav-px: 6px; --d-mark: 11px;
    --d-brand-gap: 4px;
    --d-star: 40px; --d-head-gap: 12px; --d-h1: 32px;
    --d-sub: 14px; --d-sub-max: 330px;
    --d-btn-fs: 14px; --d-btn-px: 24px; --d-btn-py: 12px; --d-btn-gap: 9px;
    --d-pad-x: 24px; --d-pad-b: 28px; --d-foot-gap: 20px;
    --d-gap-a: 36px; --d-gap-b: 30px;
    --d-ring: 294px;
  }
}

@media (max-width: 480px) {
  .lk-divide {
    --d-nav-fs: 11px; --d-nav-py: 11px; --d-nav-px: 4px; --d-mark: 9px;
    --d-brand-gap: 4px;
    --d-star: 34px; --d-head-gap: 11px; --d-h1: 26px;
    --d-sub: 13px; --d-sub-max: 280px;
    --d-btn-fs: 13px; --d-btn-px: 20px; --d-btn-py: 11px; --d-btn-gap: 8px;
    --d-pad-x: 16px; --d-pad-b: 24px; --d-foot-gap: 16px;
    --d-gap-a: 30px; --d-gap-b: 26px;
    --d-ring: 226px;
  }
}

/* The last band is for the 320–360 phones. */
@media (max-width: 360px) {
  .lk-divide {
    --d-nav-fs: 10px; --d-nav-py: 10px; --d-nav-px: 3px; --d-mark: 8px;
    --d-brand-gap: 3px;
    --d-star: 30px; --d-head-gap: 10px; --d-h1: 22px;
    --d-sub: 12px; --d-sub-max: 240px;
    --d-btn-fs: 12px; --d-btn-px: 18px; --d-btn-py: 10px; --d-btn-gap: 8px;
    --d-pad-x: 14px; --d-pad-b: 20px; --d-foot-gap: 14px;
    --d-gap-a: 22px; --d-gap-b: 20px;
    --d-ring: 206px;
  }
}

/* ── Short windows ─────────────────────────────────────────────
 * Width says nothing about height. These come after the width bands so
 * they win, and they only touch what costs vertical room. */
@media (min-width: 1081px) and (max-height: 760px) {
  .lk-divide {
    --d-star: 44px; --d-head-gap: 13px; --d-h1: 38px;
    --d-sub: 15px; --d-btn-fs: 15px; --d-btn-py: 11px;
    --d-foot-gap: 22px; --d-pad-b: 18px;
    --d-ring: 333px;
  }
}

@media (min-width: 861px) and (max-width: 1080px) and (max-height: 760px) {
  .lk-divide {
    --d-star: 34px; --d-head-gap: 11px; --d-h1: 30px;
    --d-sub: 13px; --d-btn-fs: 13px; --d-btn-px: 22px; --d-btn-py: 10px;
    --d-foot-gap: 18px; --d-pad-b: 16px;
    --d-ring: 255px;
  }
}

@media (min-width: 861px) and (max-height: 600px) {
  .lk-divide {
    --d-star: 30px; --d-head-gap: 10px; --d-h1: 28px;
    --d-sub: 13px; --d-btn-fs: 13px; --d-btn-px: 22px; --d-btn-py: 9px;
    --d-foot-gap: 16px; --d-pad-b: 14px;
    --d-ring: 226px;
  }
}

/* Stacked and short — a phone on its side. */
@media (max-width: 860px) and (max-height: 620px) {
  .lk-divide {
    --d-star: 30px; --d-head-gap: 10px; --d-h1: 24px;
    --d-sub: 13px; --d-btn-fs: 13px; --d-btn-py: 10px;
    --d-foot-gap: 14px; --d-pad-b: 16px;
    --d-gap-a: 18px; --d-gap-b: 18px;
    --d-ring: 206px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.lk-js [data-rise] { opacity: 1; }

  /* The diagram holds the arrangement the frame was cut at. */
  .lk-divide .lkx-orbit,
  .lk-divide .lkx-dash { animation: none; }
}

/* ══ Legal pages — Impressum, Datenschutz ════════════════════════════
 * The same chrome (nav strip, hairlines, glass) over a still of the
 * asset, but a page that scrolls: one reading column of glass, the
 * composition's own tokens for type and spacing. */
body.lk-doc-body {
  height: auto;
  min-height: 100svh;
  overflow: auto;
}

.lk-stage-doc {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

.lk-stage-doc .lk-bg {
  position: fixed;
}

.lk-stage-doc .lk-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.45) saturate(0.9);
  transform: scale(1.1);
}

.lk-stage-doc .uip-layer {
  position: relative;
  inset: auto;
  min-height: 100svh;
}

.lk-stage-doc .lk {
  overflow: visible;
}

.lk-divide .lkx-doc {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--d-pad-x), 820px);
  margin: 48px auto 64px;
  padding: 48px clamp(20px, 5vw, 56px) 40px;
  background: var(--d-panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--d-line);
  color: var(--d-panel-ink);
}

.lk-divide .lkx-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-panel-dim);
}

.lk-divide .lkx-doc h1 {
  margin-top: 14px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.lk-divide .lkx-doc .lkx-stand {
  margin-top: 16px;
  font-size: 14px;
  color: var(--d-panel-dim);
}

.lk-divide .lkx-doc h2 {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.lk-divide .lkx-doc p,
.lk-divide .lkx-doc address,
.lk-divide .lkx-doc li {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(242, 242, 242, 0.86);
  font-style: normal;
}

.lk-divide .lkx-doc .lkx-lead {
  font-size: 20px;
  color: var(--d-panel-ink);
}

.lk-divide .lkx-doc ul {
  margin-top: 8px;
  padding-left: 1.1em;
  list-style: disc;
}

.lk-divide .lkx-doc a {
  color: var(--d-panel-ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(242, 242, 242, 0.4);
}

.lk-divide .lkx-doc a:hover {
  text-decoration-color: currentColor;
}

.lk-divide .lkx-docfoot {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--d-btn-gap) * 1.2) calc(var(--d-btn-gap) * 2);
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--d-line);
  font-size: 13px;
  color: var(--d-panel-dim);
}

.lk-divide .lkx-docfoot a {
  color: inherit;
  text-decoration: none;
}

.lk-divide .lkx-docfoot a:hover {
  color: var(--d-panel-ink);
}

.lk-divide .lkx-docfoot .lkx-copy {
  margin-left: auto;
}

@media (max-width: 600px) {
  .lk-divide .lkx-doc { margin: 24px auto 40px; padding-top: 32px; }
  .lk-divide .lkx-doc h1 { font-size: 32px; }
  .lk-divide .lkx-doc h2 { font-size: 21px; margin-top: 32px; }
  .lk-divide .lkx-doc p,
  .lk-divide .lkx-doc address,
  .lk-divide .lkx-doc li { font-size: 16px; }
  .lk-divide .lkx-doc .lkx-lead { font-size: 18px; }
  .lk-divide .lkx-docfoot .lkx-copy {
    margin-left: 0;
    width: 100%;
  }
}

/* ══ Anfrage-Dialog — Liquid Glass ══════════════════════════════════
 * Native <dialog>, modal. Die Fläche ist Glas über dem laufenden Video:
 * Blur und Sättigung, eine leichte Tönung für den Kontrast, eine
 * Haarlinie mit Verlauf als Kante (oben hell wie Licht an der Glaskante)
 * und ein Glanz am oberen Rand. Ohne backdrop-filter wird sie deckend. */
.nk {
  --nk-ink: #f2f2f2;
  --nk-dim: rgba(242, 242, 242, 0.62);
  --nk-line: rgba(255, 255, 255, 0.22);
  --nk-fill: rgba(255, 255, 255, 0.06);
  --nk-fill-on: rgba(255, 255, 255, 0.92);
  --nk-err: #ffb4a8;
  --nk-pad: 32px;

  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 880px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  color: var(--nk-ink);
  background: rgba(18, 18, 22, 0.44);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.45);
  font-family: var(--font-general), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.nk[open] {
  display: flex;
  flex-direction: column;
}

/* Glanz und Kante liegen über allem, fangen aber keinen Klick. */
.nk::before,
.nk::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.nk::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(120% 60% at 18% 0%, rgba(255, 255, 255, 0.09), transparent 60%);
}

.nk::after {
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.1) 35%,
    rgba(255, 255, 255, 0.03) 70%,
    rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nk { background: rgba(14, 14, 16, 0.97); }
}

.nk::backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nk-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.nk-form[hidden] { display: none; }

.nk-kopf {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: var(--nk-pad) var(--nk-pad) 0;
}

.nk-titel {
  font-size: 26px;
  line-height: 1.15;
}

.nk-punkte {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--nk-dim);
}

.nk-punkte li {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--nk-line);
  border-radius: 50%;
}

.nk-punkte li.nk-erledigt { border-color: rgba(255, 255, 255, 0.55); color: var(--nk-ink); }
.nk-punkte li[aria-current] { background: var(--nk-fill-on); border-color: transparent; color: #0c0c0c; }

.nk-zu {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nk-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.nk-zu:hover { background: var(--nk-fill); }

/* Fortschritt: dieselbe 1-px-Haarlinie wie der Preloader. */
.nk-fortschritt {
  height: 1px;
  margin: 18px var(--nk-pad) 0;
  background: var(--nk-line);
}

.nk-fortschritt i {
  display: block;
  width: 33.3%;
  height: 100%;
  background: #fff;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nk-rumpf {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--nk-pad);
}

.nk-schritt[hidden] { display: none; }

.nk fieldset { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.nk legend { padding: 0; }

.nk-frage {
  font-size: 22px;
  line-height: 1.25;
  outline: none;
}

.nk-hilfe {
  margin-top: 6px;
  font-size: 15px;
  color: var(--nk-dim);
}

.nk-kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

/* Kacheln und Chips: echtes Eingabefeld, unsichtbar über dem Label. */
.nk-kachel,
.nk-chip {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--nk-line);
  background: var(--nk-fill);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.nk-kachel input,
.nk-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nk-kachel {
  min-height: 64px;
  padding: 14px 46px 14px 16px;
  border-radius: 16px;
  line-height: 1.25;
}

.nk-kachel::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1px solid var(--nk-line);
  border-radius: 50%;
}

.nk-chip {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
}

.nk-kachel:hover,
.nk-chip:hover { border-color: rgba(255, 255, 255, 0.5); }

.nk-kachel:has(input:checked),
.nk-chip:has(input:checked) {
  background: var(--nk-fill-on);
  border-color: transparent;
  color: #0c0c0c;
}

.nk-kachel:has(input:checked)::after {
  border-color: #0c0c0c;
  background: #0c0c0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.nk-kachel:has(input:focus-visible),
.nk-chip:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nk-feld { margin-top: 22px; }

.nk-feld > label,
.nk-feld > legend {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--nk-dim);
}

.nk-optional { opacity: 0.7; }

.nk input[type="text"],
.nk input[type="email"],
.nk input[type="tel"],
.nk input[type="url"],
.nk textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--nk-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 16px; /* unter 16 px zoomt iOS beim Fokus */
  color: var(--nk-ink);
  outline: none;
}

.nk [data-nur-telefon] input[type="text"] { margin-top: 10px; }

.nk textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.nk input:focus,
.nk textarea:focus { border-color: rgba(255, 255, 255, 0.75); }

.nk [aria-invalid="true"] input,
.nk input[aria-invalid="true"],
.nk textarea[aria-invalid="true"] { border-color: var(--nk-err); }

.nk ::placeholder { color: rgba(242, 242, 242, 0.38); }

.nk-fehler {
  margin-top: 6px;
  font-size: 14px;
  color: var(--nk-err);
}

.nk-detail {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--nk-line);
}

.nk-detail[hidden],
.nk [data-nur-telefon][hidden] { display: none; }

.nk-detail-titel {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nk-dim);
}

.nk-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px var(--nk-pad) var(--nk-pad);
  border-top: 1px solid var(--nk-line);
}

.nk-meldung {
  width: 100%;
  font-size: 14px;
  color: var(--nk-err);
}

.nk-meldung a,
.nk-hinweis a { color: inherit; text-underline-offset: 0.2em; }

/* Der Hinweis steht unter den Knöpfen, damit sie in einer Zeile bleiben. */
.nk-hinweis {
  order: 5;
  width: 100%;
  font-size: 13px;
  text-align: right;
  color: var(--nk-dim);
}

.nk-btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.nk-btn[hidden] { display: none; }
.nk-btn-primaer { background: #f2f2f2; color: #0c0c0c; }
.nk-btn-primaer:hover { background: #fff; }
.nk-btn-sekundaer { border: 1px solid var(--nk-line); }
.nk-btn-sekundaer:hover { background: var(--nk-fill); }
.nk-btn[disabled] { opacity: 0.6; cursor: progress; }

.nk-ergebnis {
  position: relative;
  z-index: 1;
  padding: 64px var(--nk-pad) var(--nk-pad);
  text-align: center;
}

.nk-ergebnis[hidden] { display: none; }

.nk-ergebnis h2 {
  font-size: 30px;
  outline: none;
}

.nk-ergebnis p {
  margin: 12px auto 32px;
  max-width: 380px;
  color: var(--nk-dim);
}

.nk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nk-honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Schrittwechsel: kurzer Slide in Laufrichtung. */
@keyframes nk-von-rechts { from { opacity: 0; transform: translateX(24px); } }
@keyframes nk-von-links { from { opacity: 0; transform: translateX(-24px); } }
@keyframes nk-blende { from { opacity: 0; } }

.nk-schritt.nk-von-rechts { animation: nk-von-rechts 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nk-schritt.nk-von-links { animation: nk-von-links 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  .nk-schritt.nk-von-rechts,
  .nk-schritt.nk-von-links { animation: nk-blende 0.18s linear; }
  .nk-fortschritt i { transition: none; }
}

/* Telefon: Sheet von unten, volle Höhe, Kacheln einspaltig. Weiter und
 * Zurück bleiben unten, weil nur der Rumpf scrollt. */
@media (max-width: 860px) {
  .nk {
    --nk-pad: 20px;
    width: 100%;
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .nk-titel { font-size: 21px; }
  .nk-frage { font-size: 20px; }
  .nk-kacheln { grid-template-columns: 1fr; }
  .nk-kachel { min-height: 54px; }
  .nk-hinweis { text-align: left; }
  .nk-btn { flex: 1; }
}
