/* ==========================================================================
   IQF Finanzdienstleistungen · Kontor — Design System «Bauhaus Kontor»
   Swiss grid, Plakat-Kacheln, 2px Linien, Kreis / Viertel / Streifen / Quadrat.
   Open Props liefert Easing & Größen, alles andere ist nativer CSS.
   ========================================================================== */

/* ---------- Fonts (lokal, keine Drittanbieter) ---------- */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

@layer reset, tokens, base, layout, components, devices, app, pages, motion, utilities;

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    --bg: #F2F0EA;
    --bg-2: #E7E3D8;
    --paper: #FAF9F5;
    --ink: #111214;
    --ink-2: #393B40;
    --mute: #66676C;
    --cobalt: #2340D9;
    --cobalt-ink: #1A2FA3;
    --yellow: #FFC531;
    --red: #E0412B;          /* ausschließlich: Limit überschritten */
    --device: #0E0F11;

    --line: 2px;
    --hair: 1px;
    --r: 0px;
    --r-soft: 4px;

    --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --f-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --f-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --t-mega: clamp(2.5rem, 1.1rem + 6vw, 6.6rem);
    --t-h1: clamp(2.1rem, 1.2rem + 3.9vw, 4.9rem);
    --t-h2: clamp(1.6rem, 1.05rem + 2.3vw, 3.2rem);
    --t-h3: clamp(1.12rem, 1rem + .6vw, 1.5rem);
    --t-lead: clamp(1.05rem, .98rem + .32vw, 1.25rem);
    --t-body: 1rem;
    --t-small: .875rem;
    --t-micro: .75rem;

    --gutter: clamp(16px, 2.6vw, 36px);
    --maxw: 1360px;
    --pad-tile: clamp(20px, 2.4vw, 40px);
    --sheet-y: clamp(56px, 8vw, 128px);

    /* Open Props easing, mit Fallback */
    --snap: var(--ease-spring-3, cubic-bezier(.34,1.56,.64,1));
    --out: var(--ease-out-5, cubic-bezier(0,0,0,1));
  }
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video, canvas { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-snap-type: y proximity; scroll-padding-top: 72px; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-text);
    font-size: var(--t-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3, .display {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  h1 { font-size: var(--t-h1); }
  h2 { font-size: var(--t-h2); }
  h3 { font-size: var(--t-h3); letter-spacing: -.01em; line-height: 1.15; }
  p { text-wrap: pretty; }
  .num, time, .mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
  ::selection { background: var(--yellow); color: var(--ink); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); padding: 10px 14px; border: var(--line) solid var(--ink); font-weight: 600; }
  .skip:focus { top: 8px; }
  .ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
}

/* ---------- Layout ---------- */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .sheet { padding-block: var(--sheet-y); scroll-snap-align: start; position: relative; }
  .sheet--tight { padding-block: calc(var(--sheet-y) * .6); }
  .sheet--ink { background: var(--ink); color: var(--bg); }
  .sheet--cobalt { background: var(--cobalt); color: #fff; }
  .sheet--yellow { background: var(--yellow); color: var(--ink); }
  .sheet--paper { background: var(--paper); }
  .sheet + .sheet:not([class*="--"]) { border-top: var(--line) solid var(--ink); }

  /* Plakat-Raster: Linien entstehen aus dem 2px-Gap auf schwarzem Grund */
  .poster {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--line);
    background: var(--ink);
    border: var(--line) solid var(--ink);
  }
  .poster > * { background: var(--bg); padding: var(--pad-tile); position: relative; min-width: 0; }
  .poster > .t-cobalt { background: var(--cobalt); color: #fff; }
  .poster > .t-yellow { background: var(--yellow); }
  .poster > .t-ink { background: var(--ink); color: var(--bg); outline: var(--line) solid var(--ink); }
  .poster > .t-paper { background: var(--paper); }
  .poster > .t-flush { padding: 0; }
  .s-12 { grid-column: span 12; } .s-8 { grid-column: span 8; } .s-7 { grid-column: span 7; }
  .s-6 { grid-column: span 6; } .s-5 { grid-column: span 5; } .s-4 { grid-column: span 4; }
  .s-3 { grid-column: span 3; } .s-2 { grid-column: span 2; }
  .r-2 { grid-row: span 2; } .r-3 { grid-row: span 3; }
  @media (max-width: 1080px) {
    .s-2, .s-3 { grid-column: span 6; } .s-4, .s-5 { grid-column: span 6; }
    .s-7, .s-8 { grid-column: span 12; } .s-6 { grid-column: span 12; }
    .r-2, .r-3 { grid-row: auto; }
  }
  @media (max-width: 640px) {
    .poster > [class*="s-"] { grid-column: span 12; }
  }

  .head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
  .head-row p { max-width: 46ch; color: var(--ink-2); font-size: var(--t-lead); }
  .sheet--ink .head-row p, .sheet--cobalt .head-row p { color: inherit; opacity: .82; }
  @media (max-width: 860px) { .head-row { grid-template-columns: 1fr; } }

  .split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
  .split > .a { grid-column: 1 / span 6; } .split > .b { grid-column: 7 / span 6; }
  .split--rev > .a { grid-column: 7 / span 6; grid-row: 1; } .split--rev > .b { grid-column: 1 / span 6; grid-row: 1; }
  @media (max-width: 960px) { .split > .a, .split > .b, .split--rev > .a, .split--rev > .b { grid-column: 1 / -1; grid-row: auto; } }
}

/* ---------- Components ---------- */
@layer components {
  /* Kicker / Abschnittsnummer */
  .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-num); font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
  .kicker::before { content: ""; width: 12px; height: 12px; background: currentColor; }
  .kicker--circle::before { border-radius: 50%; }
  .kicker--quarter::before { border-radius: 12px 0 0 0; }
  .lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 52ch; }
  .t-cobalt .lead, .t-ink .lead, .sheet--ink .lead, .sheet--cobalt .lead { color: inherit; opacity: .85; }

  /* Buttons */
  .btn {
    --bg-b: var(--yellow); --fg-b: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 22px;
    background: var(--bg-b); color: var(--fg-b);
    border: var(--line) solid var(--ink); border-radius: var(--r);
    font-weight: 600; text-decoration: none; letter-spacing: .005em;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 120ms var(--snap), box-shadow 120ms var(--snap);
  }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
  .btn--ghost { --bg-b: transparent; box-shadow: none; }
  .btn--ghost:hover { --bg-b: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
  .btn--cobalt { --bg-b: var(--cobalt); --fg-b: #fff; }
  .btn--ink { --bg-b: var(--ink); --fg-b: var(--bg); }
  .t-cobalt .btn, .sheet--cobalt .btn, .t-ink .btn, .sheet--ink .btn { border-color: var(--ink); }
  .sheet--ink .btn--ghost, .t-ink .btn--ghost, .sheet--cobalt .btn--ghost, .t-cobalt .btn--ghost { border-color: currentColor; color: inherit; }
  .btn .ic { width: 20px; height: 20px; transition: transform 160ms var(--snap); }
  .btn:hover .ic { transform: translateX(3px); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

  .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: var(--line) solid currentColor; padding-bottom: 2px; }
  .link .ic { width: 18px; height: 18px; transition: transform 160ms var(--snap); }
  .link:hover .ic { transform: translate(3px, -3px); }

  /* Stempel / Tags */
  .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: var(--line) solid currentColor; font-family: var(--f-num); font-size: var(--t-micro); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.4; }
  .tag--fill { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
  .tag--red { color: var(--red); }
  .stamp { position: absolute; display: grid; place-items: center; text-align: center; width: 112px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: var(--ink); border: var(--line) solid var(--ink); font-family: var(--f-display); font-size: .72rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; padding: 14px; rotate: -12deg; z-index: 4; }

  /* Geometrische Formen */
  .shape { position: absolute; pointer-events: none; }
  .sh-circle { border-radius: 50%; }
  .sh-q-tl { border-radius: 100% 0 0 0; } .sh-q-tr { border-radius: 0 100% 0 0; }
  .sh-q-bl { border-radius: 0 0 0 100%; } .sh-q-br { border-radius: 0 0 100% 0; }
  .sh-half-t { border-radius: 999px 999px 0 0; aspect-ratio: 2 / 1; }
  .sh-stripes { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 16px); }
  .sh-stripes-h { background: repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 16px); }
  .bg-cobalt { background: var(--cobalt); } .bg-yellow { background: var(--yellow); }
  .bg-ink { background: var(--ink); } .bg-bg { background: var(--bg); } .bg-red { background: var(--red); }

  /* Bühne für Geräte: farbige Plakat-Platte */
  .stage { position: relative; display: grid; place-items: center; min-height: 420px; isolation: isolate; overflow: hidden; }
  .stage > .shape { z-index: -1; }
  .stage__cap { position: absolute; left: 0; bottom: 0; z-index: 5; background: var(--ink); color: var(--bg); font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; }

  /* Feature-Kachel */
  .feat h3 { margin: 18px 0 8px; }
  .feat p { color: var(--ink-2); font-size: .975rem; }
  .t-cobalt.feat p, .t-ink.feat p { color: inherit; opacity: .82; }
  .feat__ic { width: 48px; height: 48px; display: grid; place-items: center; border: var(--line) solid currentColor; }
  .feat__ic .ic { width: 26px; height: 26px; }
  .feat__n { position: absolute; top: var(--pad-tile); right: var(--pad-tile); font-family: var(--f-num); font-size: var(--t-micro); opacity: .7; }

  /* Diagramm-Kacheln (SVG) */
  .glyph { width: 100%; max-width: 220px; aspect-ratio: 1; }
  .glyph .stroke { fill: none; stroke: var(--ink); stroke-width: 2; }

  /* Tabellen */
  .table-wrap { overflow-x: auto; border: var(--line) solid var(--ink); background: var(--paper); }
  .tbl { width: 100%; min-width: 640px; }
  .tbl th, .tbl td { padding: 16px 18px; text-align: left; border-bottom: var(--hair) solid rgb(17 18 20 / .18); vertical-align: middle; }
  .tbl thead th { background: var(--ink); color: var(--bg); font-family: var(--f-num); font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-bottom: 0; }
  .tbl tbody th { font-weight: 600; }
  .tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
  .tbl tbody tr:last-child > * { border-bottom: 0; }
  .tbl tfoot td, .tbl tfoot th { border-top: var(--line) solid var(--ink); font-weight: 600; padding: 16px 18px; }
  .tbl .is-over { color: var(--red); font-weight: 600; }
  .meter { display: block; height: 10px; border: var(--line) solid var(--ink); background: var(--bg); position: relative; min-width: 110px; }
  .meter > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); max-width: 100%; background: var(--cobalt); }
  .meter.is-full > i { background: var(--ink); }
  .meter.is-over > i { background: var(--red); }

  /* Preistabelle */
  .tbl--plans { min-width: 620px; }
  .tbl--plans th:nth-child(n+2), .tbl--plans td { text-align: center; }
  .tbl--plans .hl { background: rgb(35 64 217 / .07); }
  .tbl--plans thead .hl { background: var(--cobalt); }
  .plan-head { display: grid; gap: 4px; text-transform: none; letter-spacing: 0; }
  .plan-head b { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; }
  .plan-head .price { font-family: var(--f-num); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
  .plan-head small { font-size: .75rem; opacity: .8; }
  .yes, .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border: var(--line) solid var(--ink); }
  .yes { background: var(--yellow); }
  .yes .ic, .no .ic { width: 16px; height: 16px; }
  .no { opacity: .35; }
  .row-note { display: block; font-size: .8rem; font-weight: 400; color: var(--mute); }

  /* Tafel (Split-Flap) */
  .board { background: var(--ink); color: var(--bg); border: var(--line) solid var(--ink); }
  .board__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: var(--line) solid #2a2c31; }
  .board__title { font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .1em; display: flex; gap: 10px; align-items: center; }
  .board__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: blink 1.6s steps(2) infinite; }
  .seg { display: inline-flex; border: var(--line) solid var(--bg); }
  .seg button { padding: 8px 14px; font-family: var(--f-num); font-size: var(--t-small); color: var(--bg); }
  .seg button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
  .board__row { display: grid; grid-template-columns: 2.2fr 1.3fr 1.3fr 1fr; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: var(--hair) solid #2a2c31; }
  .board__row:last-child { border-bottom: 0; }
  .board__row--head { font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: #9a9ba0; padding-block: 10px; }
  .board__cat { display: flex; align-items: center; gap: 12px; font-weight: 500; }
  .board__cat i { width: 14px; height: 14px; background: var(--c, var(--yellow)); flex: none; }
  .board__val { font-family: var(--f-num); font-size: clamp(1rem, .9rem + .5vw, 1.35rem); text-align: right; }
  .board__val number-flow, .tick number-flow { --number-flow-char-height: 1.1em; }
  .flap { display: inline-flex; gap: 2px; }
  .board__st { justify-self: end; font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border: var(--hair) solid currentColor; }
  .board__st.is-over { color: var(--ink); background: var(--red); border-color: var(--red); }
  .board__st.is-full { background: var(--bg); color: var(--ink); }
  @media (max-width: 720px) {
    .board__row { grid-template-columns: 1fr auto; }
    .board__row > :nth-child(2) { display: none; }
    .board__row--head > :nth-child(4) { display: none; }
    .board__row .board__st { grid-column: 2; }
  }

  /* Ticker-Zahl */
  .tick { font-family: var(--f-num); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

  /* Carousel (Embla) */
  .embla { overflow: hidden; border: var(--line) solid var(--ink); background: var(--ink); }
  .embla__track { display: flex; gap: var(--line); touch-action: pan-y pinch-zoom; }
  .embla__slide { flex: 0 0 min(86%, 440px); min-width: 0; background: var(--bg); }
  .embla__slide .stage { min-height: 520px; }
  .embla__meta { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: var(--line) solid var(--ink); }
  .embla__meta b { font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
  .embla__meta span { font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
  .embla__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
  .embla__btn { width: 52px; height: 52px; display: grid; place-items: center; border: var(--line) solid var(--ink); background: var(--paper); transition: background 120ms; }
  .embla__btn:hover:not(:disabled) { background: var(--yellow); }
  .embla__btn:disabled { opacity: .35; cursor: default; }
  .embla__btn .ic { width: 22px; height: 22px; }
  .embla__dots { display: flex; gap: 6px; margin-left: auto; }
  .embla__dot { width: 14px; height: 14px; border: var(--line) solid var(--ink); }
  .embla__dot[aria-current="true"] { background: var(--ink); }

  /* FAQ */
  .faq { border-top: var(--line) solid currentColor; }
  .faq details { border-bottom: var(--line) solid currentColor; }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, .95rem + .35vw, 1.25rem); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; border-radius: 22px 0 0 0; transition: rotate 220ms var(--snap); }
  .faq details[open] summary::after { rotate: 180deg; }
  .faq .faq__a { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); }
  .sheet--ink .faq .faq__a, .sheet--cobalt .faq .faq__a { color: inherit; opacity: .85; }

  /* Formulare */
  .form { display: grid; gap: 18px; }
  .form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 6px; }
  .field label { font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
  .field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r); }
  .field textarea { min-height: 140px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--cobalt); }
  .field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--red); }
  .field__err { display: none; font-size: .8rem; color: var(--red); font-weight: 500; }
  .field.is-error .field__err { display: block; }
  .check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
  .check input { appearance: none; flex: none; width: 24px; height: 24px; border: var(--line) solid var(--ink); background: var(--paper); display: grid; place-items: center; margin-top: 1px; }
  .check input:checked { background: var(--yellow); }
  .check input:checked::after { content: ""; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -2px; }
  .check.is-error input { border-color: var(--red); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form__status { font-weight: 600; min-height: 1.5em; }
  .form__status.is-err { color: var(--red); }
  .t-cobalt .field label, .t-ink .field label { color: inherit; }

  /* Schritte */
  .steps { counter-reset: s; }
  .step__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .9; letter-spacing: -.04em; }
  .step h3 { margin: 18px 0 8px; }
  .step p { color: var(--ink-2); }
  .t-cobalt.step p, .t-ink.step p { color: inherit; opacity: .85; }

  /* Rechtliches */
  .legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
  .legal__toc { position: sticky; top: 96px; border: var(--line) solid var(--ink); background: var(--paper); }
  .legal__toc b { display: block; padding: 14px 16px; background: var(--ink); color: var(--bg); font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
  .legal__toc ol { list-style: none; padding: 8px 0; margin: 0; counter-reset: t; }
  .legal__toc a { display: block; padding: 7px 16px; text-decoration: none; font-size: .875rem; }
  .legal__toc a:hover { background: var(--yellow); }
  .legal__body { max-width: 74ch; }
  .legal__body h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); margin: 48px 0 14px; padding-top: 18px; border-top: var(--line) solid var(--ink); scroll-margin-top: 96px; }
  .legal__body h2:first-child { margin-top: 0; }
  .legal__body p, .legal__body ul { margin-bottom: 14px; color: var(--ink-2); }
  .legal__body ul { padding-left: 1.2em; }
  .legal__body li { margin-bottom: 6px; }
  .legal__body address { font-style: normal; font-family: var(--f-num); font-size: .95rem; line-height: 1.7; padding: 18px 20px; border: var(--line) solid var(--ink); background: var(--paper); margin-bottom: 14px; }
  .legal__note { padding: 14px 16px; background: var(--yellow); border: var(--line) solid var(--ink); font-size: .9rem; margin-bottom: 14px; }
  @media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

  /* Header */

  .anzeige-bar { border-bottom: var(--line) solid var(--ink); background: var(--paper); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .anzeige-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
  .anzeige-bar__label { font-weight: 700; letter-spacing: .12em; color: var(--ink); }
  .anzeige-bar__mail { color: inherit; text-decoration: none; white-space: nowrap; }
  .anzeige-bar__mail:hover { color: var(--ink); }
  @media (max-width: 640px) {
    .anzeige-bar__rest { display: none; }
    .anzeige-bar__mail { display: none; }
  }
  .site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--line) solid var(--ink); }
  .site-head__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
  .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
  .logo svg { width: 34px; height: 34px; flex: none; }
  .brand-name { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .12em; line-height: 1; letter-spacing: 0; }
  .brand-name__short { font-family: var(--f-display); font-size: 1.55em; font-weight: 800; letter-spacing: -.06em; color: var(--cobalt); }
  .brand-name__long { font-family: var(--f-text); font-size: .69em; font-weight: 500; letter-spacing: .025em; white-space: nowrap; }
  .mockup-disclosure { margin-top: 18px; max-width: 62ch; font-size: .875rem; line-height: 1.5; opacity: .8; }
  .nav { display: flex; align-items: stretch; margin-left: auto; align-self: stretch; }
  .nav a { display: flex; align-items: center; padding: 0 16px; text-decoration: none; font-weight: 500; font-size: .95rem; border-left: var(--line) solid transparent; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 160ms var(--out); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"]::before { content: ""; position: absolute; top: 50%; left: 4px; width: 7px; height: 7px; margin-top: -4px; background: var(--cobalt); }
  .site-head .btn { min-height: 44px; box-shadow: 3px 3px 0 var(--ink); padding: 0 18px; }
  .menu-btn { display: none; width: 48px; height: 48px; border: var(--line) solid var(--ink); place-items: center; margin-left: auto; }
  .menu-btn span { width: 20px; height: 2px; background: var(--ink); position: relative; display: block; transition: background 120ms; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform 160ms var(--snap); }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  @media (max-width: 1120px) {
    .menu-btn { display: grid; }
    .site-head .head-cta { display: none; }
    .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: var(--line) solid var(--ink); padding: 8px var(--gutter) 24px; margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 160ms, transform 200ms var(--snap), visibility 0s 200ms; }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms, transform 200ms var(--snap); }
    .nav a { padding: 16px 0; border-bottom: var(--hair) solid rgb(17 18 20 / .2); font-family: var(--f-display); font-size: 1.25rem; }
    .nav a::after { display: none; }
    .nav a[aria-current="page"]::before { left: auto; right: 0; }
    .nav .btn { margin-top: 18px; display: inline-flex; }
  }
  @media (min-width: 1121px) { .nav .nav-cta { display: none; } }

  /* Footer: Plakat aus Kacheln */
  .site-foot { background: var(--bg); padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); border-top: var(--line) solid var(--ink); }
  .fgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--line); background: var(--ink); border: var(--line) solid var(--ink); }
  .fgrid > * { background: var(--bg); padding: clamp(20px, 2.2vw, 32px); position: relative; min-width: 0; }
  .f-label { display: block; font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; opacity: .7; }
  .fgrid a { text-decoration: none; }

  .f-cta { grid-column: span 5; background: var(--yellow); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .f-cta .kicker { margin: 0; }
  .f-cta__h { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.9rem); line-height: .98; letter-spacing: -.04em; max-width: 12ch; flex: 1; }

  .f-index { grid-column: span 4; }
  .f-index ol { list-style: none; padding: 0; margin: 0; border-top: var(--line) solid var(--ink); }
  .f-index a { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: center; gap: 8px; padding: 11px 6px; border-bottom: var(--hair) solid rgb(17 18 20 / .25); font-weight: 500; transition: background 120ms, padding 160ms var(--snap); }
  .f-index a .num { font-size: var(--t-micro); color: var(--mute); }
  .f-index a .ic { width: 18px; height: 18px; opacity: 0; transform: translate(-6px, 6px); transition: opacity 120ms, transform 160ms var(--snap); }
  .f-index a:hover { background: var(--yellow); padding-left: 12px; }
  .f-index a:hover .ic { opacity: 1; transform: none; }

  .f-mark { grid-column: span 3; background: var(--cobalt); overflow: hidden; min-height: 300px; isolation: isolate; }
  .fm { position: absolute; display: block; z-index: -1; }
  .fm--c { width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); right: -18%; top: -14%; }
  .fm--q { width: 52%; aspect-ratio: 1; border-radius: 0 100% 0 0; background: var(--ink); left: 0; bottom: 0; }
  .fm--s { width: 22%; aspect-ratio: 1; background: var(--bg); left: 12%; top: 16%; }
  .fm--st { width: 40%; height: 26%; right: 8%; bottom: 22%; background: repeating-linear-gradient(90deg, var(--bg) 0 5px, transparent 5px 13px); }
  .f-mark__logo { position: absolute; right: 18px; bottom: 16px; color: #fff; max-width: calc(100% - 36px); }
  .f-mark__logo svg { width: 30px; height: 30px; }
  .f-mark__logo .brand-name__short { color: var(--yellow); }
  .f-mark__logo .brand-name__long { font-size: .6em; }

  .f-contact { grid-column: span 4; background: var(--ink); color: var(--bg); }
  .f-contact dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
  .f-contact dt { font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: #9a9ba0; padding-top: 3px; }
  .f-contact dd { margin: 0; min-width: 0; font-family: var(--f-num); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
  .legal__body, .f-bar > span, .form__status { overflow-wrap: anywhere; }
  .f-bar > span:first-child { flex: 1 1 45%; padding-block: 12px; }
  .f-contact a:hover { color: var(--yellow); }

  .f-service { grid-column: span 3; }
  .f-service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  .f-service a { font-weight: 500; border-bottom: var(--line) solid transparent; }
  .f-service a:hover { border-bottom-color: var(--ink); }
  .f-cancel { display: inline-block; margin-top: 6px; padding: 6px 10px; border: var(--line) solid var(--ink) !important; font-size: .9rem; }
  .f-cancel:hover { background: var(--ink); color: var(--bg); }

  .f-legal { grid-column: span 5; background: var(--paper); }
  .f-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
  .f-chips a, .f-chips button { display: inline-block; padding: 6px 12px; border: var(--hair) solid var(--ink); font-size: .875rem; background: var(--bg); transition: background 120ms; }
  .f-chips a:hover, .f-chips button:hover { background: var(--yellow); }
  .f-legal p { font-size: .825rem; color: var(--mute); max-width: 48ch; }

  .f-bar { grid-column: span 12; background: var(--ink); color: #b9bac0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 0; padding-right: 0; font-size: .8rem; min-height: 56px; }
  .f-bar span:nth-child(2) { margin-left: auto; }
  .f-top { align-self: stretch; width: 56px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
  .f-top .ic { width: 22px; height: 22px; rotate: -90deg; transition: translate 160ms var(--snap); }
  .f-top:hover .ic { translate: 0 -3px; }

  @media (max-width: 1000px) {
    .f-cta { grid-column: span 12; }
    .f-index { grid-column: span 7; } .f-mark { grid-column: span 5; }
    .f-contact, .f-service { grid-column: span 6; } .f-legal { grid-column: span 12; }
  }
  @media (max-width: 640px) {
    .fgrid > * { grid-column: span 12 !important; }
    .f-mark { min-height: 180px; }
    .fm--c { width: 38%; right: -6%; top: -34%; }
    .fm--q { width: 30%; }
    .fm--s { width: 14%; left: 38%; top: 22%; }
    .fm--st { width: 26%; height: 30%; right: 52%; bottom: 14%; }
    .f-bar { padding-top: 14px; padding-left: 20px; }
    .f-bar span:nth-child(2) { margin-left: 0; }
    .f-top { width: 100%; height: 52px; margin-top: 6px; }
  }

  /* Cookie-Hinweis */
  .consent { position: fixed; z-index: 80; left: var(--gutter); bottom: var(--gutter); width: min(440px, calc(100% - 2 * var(--gutter))); background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 22px; display: none; }
  .consent.is-on { display: block; }
  .consent h2 { font-size: 1.05rem; margin-bottom: 8px; }
  .consent p { font-size: .9rem; color: var(--ink-2); }
  .consent .btn-row { margin-top: 16px; gap: 10px; }
  .consent .btn { min-height: 44px; padding: 0 16px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }

  /* Bezahlt-Schalter (Rive-Fallback) */
  .paid { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-num); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; }
  .paid__sw { width: 58px; height: 30px; border: var(--line) solid var(--ink); background: var(--paper); position: relative; flex: none; }
  .paid__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink); border-radius: 50%; transition: translate 260ms var(--snap), border-radius 260ms var(--snap), background 160ms; }
  .paid[aria-checked="true"] .paid__sw { background: var(--yellow); }
  .paid[aria-checked="true"] .paid__sw::after { translate: 28px 0; border-radius: 0; }
  .rive-slot { width: 58px; height: 30px; flex: none; }
}

/* ==========================================================================
   Geräte-Mockups (reines HTML/CSS). Bildschirme sind Container → UI skaliert in cqi.
   ========================================================================== */
@layer devices {
  .device { position: relative; z-index: 2; flex: none; filter: drop-shadow(18px 22px 0 rgb(17 18 20 / .9)); }
  .device .screen { position: relative; overflow: hidden; container-type: inline-size; background: var(--bg); width: 100%; height: 100%; }

  /* iPhone */
  .iphone { width: var(--w, 270px); aspect-ratio: 9 / 19.4; background: var(--device); border-radius: 15.5% / 7.2%; padding: 3.4%; box-shadow: inset 0 0 0 1.5px #3a3c42, inset 0 0 0 4px #17181b; }
  .iphone .screen { border-radius: 12.5% / 5.8%; }
  .iphone::before { content: ""; position: absolute; z-index: 5; top: 2.7%; left: 50%; translate: -50% 0; width: 29%; height: 3.6%; background: #000; border-radius: 999px; }
  .iphone::after { content: ""; position: absolute; right: -1.3%; top: 23%; width: 1.4%; height: 12%; background: #2a2c31; border-radius: 0 3px 3px 0; }

  /* Android kompakt */
  .android { width: var(--w, 250px); aspect-ratio: 9 / 19.8; background: #1b1d21; border-radius: 10% / 4.6%; padding: 2.8%; box-shadow: inset 0 0 0 2px #34363c; }
  .android .screen { border-radius: 7.6% / 3.5%; }
  .android::before { content: ""; position: absolute; z-index: 5; top: 2.9%; left: 50%; translate: -50% 0; width: 4.4%; aspect-ratio: 1; background: #000; border-radius: 50%; box-shadow: 0 0 0 2px #15161a; }
  .android::after { content: ""; position: absolute; right: -1.4%; top: 18%; width: 1.5%; height: 8%; background: #2a2c31; border-radius: 0 3px 3px 0; box-shadow: 0 calc(var(--w, 250px) * .25) 0 #2a2c31; }

  /* iPad (quer) */
  .ipad { width: var(--w, 560px); aspect-ratio: 4 / 3; background: var(--device); border-radius: 5.2% / 6.9%; padding: 3%; box-shadow: inset 0 0 0 1.5px #3a3c42; }
  .ipad.is-portrait { aspect-ratio: 3 / 4; border-radius: 6.9% / 5.2%; }
  .ipad .screen { border-radius: 2.6% / 3.5%; }
  .ipad::before { content: ""; position: absolute; top: 50%; left: 1.4%; translate: 0 -50%; width: 1%; aspect-ratio: 1; border-radius: 50%; background: #23252a; }

  /* MacBook */
  .macbook { width: var(--w, 640px); filter: drop-shadow(18px 22px 0 rgb(17 18 20 / .9)); }
  .macbook .lid { position: relative; aspect-ratio: 16 / 10.6; background: var(--device); border-radius: 3.4% 3.4% 0 0 / 5.2% 5.2% 0 0; padding: 2.1% 2.1% 3.2%; box-shadow: inset 0 0 0 1.5px #3a3c42; }
  .macbook .lid::before { content: ""; position: absolute; z-index: 5; top: 2.1%; left: 50%; translate: -50% 0; width: 13%; height: 3.6%; background: var(--device); border-radius: 0 0 8px 8px; }
  .macbook .lid::after { content: "IQF Finanzdienstleistungen"; position: absolute; bottom: .6%; left: 50%; translate: -50% 0; font: 600 calc(var(--w, 640px) * .012) / 1 var(--f-text); color: #6d6f75; letter-spacing: .04em; }
  .macbook .screen { border-radius: 1.2% / 1.8%; }
  .macbook .base { position: relative; width: 112%; margin-left: -6%; aspect-ratio: 100 / 3.1; background: linear-gradient(#d6d4cf, #b5b3ae 55%, #8c8a86); border-radius: 0 0 14% 14% / 0 0 100% 100%; }
  .macbook .base::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 15%; height: 38%; background: #a3a19c; border-radius: 0 0 10px 10px; }
  .device-pair { position: relative; display: grid; place-items: center; width: 100%; }
  .device-pair .iphone, .device-pair .android { position: absolute; right: 2%; bottom: -4%; }
  .device-pair .device { filter: drop-shadow(14px 16px 0 rgb(17 18 20 / .9)); }

  /* Rasterisierte Geräte (WebP) — Schatten bleibt CSS, Szene bleibt HTML */
  .shot { position: relative; z-index: 2; width: var(--w, 270px); height: auto; max-width: 92%; flex: none; filter: drop-shadow(18px 22px 0 rgb(17 18 20 / .9)); }
  .shot--macbook { max-width: 96%; }
}

/* ==========================================================================
   App-UI (IQF Finanzdienstleistungen App) — gleiche Bauhaus-Sprache, Maße in em, Basis = cqi
   ========================================================================== */
@layer app {
  .app { --fs: 3.85cqi; font-size: var(--fs); line-height: 1.35; color: var(--ink); background: var(--bg); height: 100%; display: flex; flex-direction: column; font-family: var(--f-text); }
  .ipad .app { --fs: 1.95cqi; }
  .ipad.is-portrait .app { --fs: 2.6cqi; }
  .macbook .app { --fs: 1.42cqi; }
  .android .app { --fs: 3.95cqi; }
  .app .ic { width: 1.3em; height: 1.3em; }
  .app b, .app strong { font-weight: 600; }
  .app .m { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .app-status { display: flex; justify-content: space-between; align-items: center; padding: 1.15em 1.9em .5em; font-family: var(--f-num); font-weight: 600; font-size: .92em; flex: none; }
  .android .app-status { padding: .95em 1.5em .4em; }
  .app-status i { display: inline-flex; gap: .3em; align-items: center; }
  .app-status i::before { content: ""; width: 1.1em; height: .65em; border: .12em solid var(--ink); }
  .app-status i::after { content: ""; width: .8em; height: .65em; background: var(--ink); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .app-brand { display: flex; align-items: center; justify-content: space-between; gap: .7em; padding: .45em 1.4em .65em; flex: none; }
  .app-brand .brand-name { font-size: .95em; }
  .app-brand .brand-name__long { font-size: .72em; }
  .mockup-label { display: inline-block; font-family: var(--f-text); font-size: .7em; line-height: 1.2; font-weight: 500; }
  .app-brand .mockup-label { max-width: 7.5em; text-align: right; color: var(--mute); }
  .app-top { padding: .6em 1.4em .8em; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: .14em solid var(--ink); flex: none; }
  .app-top h5 { font-family: var(--f-display); font-weight: 700; font-size: 1.55em; letter-spacing: -.03em; line-height: 1; }
  .app-top small { font-family: var(--f-num); font-size: .78em; color: var(--mute); display: block; margin-bottom: .3em; text-transform: uppercase; letter-spacing: .06em; }
  .app-av { width: 2.2em; height: 2.2em; display: grid; place-items: center; background: var(--yellow); border: .12em solid var(--ink); font-weight: 700; font-size: .85em; }
  .app-body { flex: 1; overflow: hidden; padding: 1em 1.4em; display: flex; flex-direction: column; gap: .9em; }
  .app-hero { background: var(--cobalt); color: #fff; padding: 1em 1.1em; position: relative; overflow: hidden; border: .12em solid var(--ink); }
  .app-hero small { font-family: var(--f-num); font-size: .72em; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
  .app-hero .big { font-family: var(--f-num); font-size: 2.15em; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: .15em; }
  .app-hero .sub { font-size: .8em; opacity: .9; margin-top: .3em; }
  .app-hero::after { content: ""; position: absolute; right: -1.6em; top: -1.6em; width: 4.6em; height: 4.6em; border-radius: 50%; background: var(--yellow); }
  .app-hero::before { content: ""; position: absolute; right: 2.2em; bottom: -1.2em; width: 2.4em; height: 2.4em; border-radius: 0 100% 0 0; background: var(--ink); z-index: 1; opacity: .9; }
  .app-sec { font-family: var(--f-num); font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); display: flex; justify-content: space-between; }
  .cat { display: grid; grid-template-columns: auto 1fr auto; gap: .2em .7em; align-items: center; }
  .cat__sw { width: .95em; height: .95em; background: var(--c, var(--cobalt)); grid-row: span 2; align-self: start; margin-top: .25em; border: .1em solid var(--ink); }
  .cat__sw.q { border-radius: 100% 0 0 0; } .cat__sw.c { border-radius: 50%; }
  .cat__n { font-weight: 500; font-size: .95em; }
  .cat__v { font-size: .82em; text-align: right; }
  .cat__bar { grid-column: 2 / 4; height: .5em; border: .1em solid var(--ink); position: relative; background: var(--paper); }
  .cat__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); max-width: 100%; background: var(--cobalt); }
  .cat__bar.full i { background: var(--ink); } .cat__bar.over i { background: var(--red); }
  .cat .over-t { color: var(--red); font-weight: 600; }
  .app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: .14em solid var(--ink); padding: .55em .4em 1.6em; background: var(--paper); flex: none; }
  .android .app-tabs { padding-bottom: 1.1em; }
  .app-tabs span { display: grid; justify-items: center; gap: .2em; font-size: .62em; font-weight: 500; color: var(--mute); }
  .app-tabs span .ic { width: 2.1em; height: 2.1em; }
  .app-tabs span.on { color: var(--ink); }
  .app-tabs span.on .ic { background: var(--yellow); outline: .16em solid var(--ink); }
  .tx { display: grid; grid-template-columns: auto 1fr auto; gap: .65em; align-items: center; padding: .55em 0; border-bottom: .08em solid rgb(17 18 20 / .15); }
  .tx__ic { width: 2.1em; height: 2.1em; display: grid; place-items: center; border: .12em solid var(--ink); background: var(--paper); }
  .tx__ic.y { background: var(--yellow); } .tx__ic.b { background: var(--cobalt); color: #fff; } .tx__ic.k { background: var(--ink); color: var(--bg); }
  .tx__ic .ic { width: 1.15em; height: 1.15em; }
  .tx__t { font-weight: 500; font-size: .92em; line-height: 1.2; }
  .tx__t small { display: block; font-weight: 400; color: var(--mute); font-size: .84em; }
  .tx__a { font-family: var(--f-num); font-size: .92em; text-align: right; }
  .tx__a.in { color: var(--cobalt); font-weight: 600; }
  .tx-day { font-family: var(--f-num); font-size: .7em; text-transform: uppercase; letter-spacing: .08em; padding: .6em 0 .1em; color: var(--ink); border-bottom: .12em solid var(--ink); display: flex; justify-content: space-between; }
  .search { display: flex; align-items: center; gap: .5em; border: .12em solid var(--ink); background: var(--paper); padding: .5em .7em; font-size: .85em; color: var(--mute); }
  .chips { display: flex; gap: .4em; flex-wrap: nowrap; overflow: hidden; }
  .chips span { font-size: .72em; padding: .3em .7em; border: .12em solid var(--ink); white-space: nowrap; font-weight: 500; }
  .chips span.on { background: var(--ink); color: var(--bg); }
  .note-chip { display: flex; gap: .6em; align-items: center; background: var(--paper); border: .12em solid var(--ink); padding: .6em .75em; font-size: .8em; }
  .note-chip i { width: .8em; height: .8em; background: var(--red); flex: none; }

  /* Desktop-App (MacBook / iPad) */
  .desk { display: grid; grid-template-columns: 15.5em 1fr; height: 100%; }
  .desk__side { background: var(--ink); color: var(--bg); padding: 1.8em 1.2em; display: flex; flex-direction: column; gap: .25em; }
  .desk__logo { display: flex; align-items: center; gap: .6em; font-family: var(--f-display); font-weight: 800; font-size: 1em; margin-bottom: .5em; }
  .desk__logo svg { width: 1.9em; height: 1.9em; flex: none; }
  .desk__logo .brand-name__short { color: var(--yellow); }
  .desk__logo .brand-name__long { font-size: .6em; letter-spacing: 0; }
  .desk__side > .mockup-label { color: #c9cacf; margin-bottom: 1.3em; }
  .desk__nav { display: flex; align-items: center; gap: .7em; padding: .65em .8em; font-size: .98em; color: #c9cacf; }
  .desk__nav.on { background: var(--yellow); color: var(--ink); font-weight: 600; }
  .desk__nav .ic { width: 1.25em; height: 1.25em; }
  .desk__foot { margin-top: auto; font-family: var(--f-num); font-size: .75em; color: #8a8b90; border-top: .1em solid #2a2c31; padding-top: 1em; }
  .desk__main { padding: 2em 2.4em; display: flex; flex-direction: column; gap: 1.4em; overflow: hidden; }
  .desk__top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: .16em solid var(--ink); padding-bottom: 1em; }
  .desk__top h5 { font-family: var(--f-display); font-weight: 700; font-size: 2.1em; letter-spacing: -.03em; line-height: 1; }
  .desk__top small { font-family: var(--f-num); font-size: .78em; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .5em; }
  .desk__btn { display: inline-flex; gap: .5em; align-items: center; padding: .6em 1em; background: var(--yellow); border: .14em solid var(--ink); font-weight: 600; font-size: .9em; box-shadow: .25em .25em 0 var(--ink); }
  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: .14em solid var(--ink); }
  .kpi { padding: 1em 1.2em; border-right: .14em solid var(--ink); position: relative; overflow: hidden; }
  .kpi:last-child { border-right: 0; background: var(--cobalt); color: #fff; }
  .kpi small { font-family: var(--f-num); font-size: .74em; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
  .kpi b { display: block; font-family: var(--f-num); font-weight: 600; font-size: 1.85em; letter-spacing: -.03em; margin-top: .2em; }
  .kpi::after { content: ""; position: absolute; right: -1em; bottom: -1em; width: 3em; height: 3em; border-radius: 50%; background: var(--yellow); }
  .kpi:first-child::after { border-radius: 100% 0 0 0; background: var(--bg-2); }
  .kpi:nth-child(2)::after { border-radius: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 .25em, transparent .25em .6em); }
  .dt { width: 100%; font-size: .92em; }
  .dt caption { text-align: left; font-size: .78em; color: var(--mute); padding-bottom: .35em; }
  .dt th { text-align: left; font-family: var(--f-num); font-weight: 500; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding: .5em .6em; border-bottom: .14em solid var(--ink); }
  .dt td { padding: .62em .6em; border-bottom: .08em solid rgb(17 18 20 / .15); }
  .dt td.m, .dt th.r { text-align: right; }
  .dt .bar { height: .6em; border: .1em solid var(--ink); position: relative; background: var(--paper); width: 100%; }
  .dt .bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); max-width: 100%; background: var(--cobalt); }
  .dt .bar.full i { background: var(--ink); } .dt .bar.over i { background: var(--red); }
  .dt .over-t { color: var(--red); font-weight: 600; }
  .dt .sw { display: inline-block; width: .8em; height: .8em; border: .1em solid var(--ink); margin-right: .5em; vertical-align: -.05em; background: var(--c); }

  /* Gruppe */
  .members { display: flex; gap: .5em; }
  .mem { width: 2.6em; height: 2.6em; display: grid; place-items: center; font-weight: 700; border: .14em solid var(--ink); }
  .settle { display: grid; grid-template-columns: auto 1fr auto auto; gap: .8em; align-items: center; padding: .8em 1em; border: .14em solid var(--ink); background: var(--paper); }
  .settle + .settle { margin-top: -.14em; }
  .settle .arrow { display: flex; align-items: center; gap: .5em; font-weight: 500; }
  .settle .arrow .ic { width: 1.1em; height: 1.1em; }
  .settle .amt { font-family: var(--f-num); font-weight: 600; font-size: 1.1em; }
  .mini-btn { font-size: .78em; font-weight: 600; padding: .4em .7em; border: .12em solid var(--ink); background: var(--yellow); white-space: nowrap; }
  .mini-btn.done { background: var(--ink); color: var(--bg); }
  .two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4em; min-height: 0; }

  /* Geplante Ausgabe */
  .plan { border: .14em solid var(--ink); background: var(--paper); padding: .9em 1em; display: grid; gap: .5em; }
  .plan__top { display: flex; justify-content: space-between; gap: .6em; align-items: flex-start; }
  .plan__t { font-weight: 600; font-size: 1em; line-height: 1.2; }
  .plan__t small { display: block; font-weight: 400; color: var(--mute); font-size: .78em; margin-top: .15em; }
  .plan__date { font-family: var(--f-num); font-size: .74em; background: var(--ink); color: var(--bg); padding: .25em .5em; white-space: nowrap; }
  .plan__bar { height: 1.1em; border: .12em solid var(--ink); position: relative; background: repeating-linear-gradient(135deg, transparent 0 .35em, rgb(17 18 20 / .14) .35em .5em); }
  .plan__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--cobalt); border-right: .12em solid var(--ink); }
  .plan__nums { display: flex; justify-content: space-between; font-size: .8em; }
  .plan.big { background: var(--yellow); }
  .plan.big .plan__bar { background-color: var(--paper); }
  .plan.big .plan__t { font-family: var(--f-display); font-size: 1.25em; font-weight: 700; letter-spacing: -.02em; }
  .fab { position: absolute; right: 1.4em; bottom: 5.4em; width: 3.4em; height: 3.4em; display: grid; place-items: center; background: var(--yellow); border: .14em solid var(--ink); box-shadow: .25em .25em 0 var(--ink); }
  .fab .ic { width: 1.6em; height: 1.6em; }

  /* Konten / Sicherheit */
  .acc { display: grid; grid-template-columns: auto 1fr auto; gap: .7em; align-items: center; padding: .8em .9em; border: .14em solid var(--ink); background: var(--paper); }
  .acc + .acc { margin-top: -.14em; }
  .acc__ic { width: 2.3em; height: 2.3em; display: grid; place-items: center; background: var(--cobalt); color: #fff; border: .12em solid var(--ink); }
  .acc__ic.c { border-radius: 50%; background: var(--yellow); color: var(--ink); }
  .acc__t { font-weight: 600; font-size: .92em; line-height: 1.2; }
  .acc__t small { display: block; font-weight: 400; font-family: var(--f-num); color: var(--mute); font-size: .8em; }
  .ro { font-family: var(--f-num); font-size: .66em; text-transform: uppercase; letter-spacing: .06em; border: .12em solid var(--ink); padding: .25em .45em; display: inline-flex; gap: .3em; align-items: center; white-space: nowrap; }
  .ro .ic { width: 1.1em; height: 1.1em; }
  .set { display: flex; justify-content: space-between; align-items: center; padding: .75em 0; border-bottom: .08em solid rgb(17 18 20 / .15); font-size: .92em; }
  .sw-ui { width: 2.6em; height: 1.4em; border: .12em solid var(--ink); position: relative; background: var(--yellow); flex: none; }
  .sw-ui::after { content: ""; position: absolute; top: .16em; right: .16em; width: .85em; height: .85em; background: var(--ink); }
  .sw-ui.off { background: var(--paper); } .sw-ui.off::after { right: auto; left: .16em; border-radius: 50%; }
  .shield { display: grid; place-items: center; padding: 1em; background: var(--ink); color: var(--bg); text-align: center; gap: .4em; position: relative; overflow: hidden; }
  .shield b { font-family: var(--f-display); font-size: 1.05em; }
  .shield p { font-size: .78em; opacity: .85; }
  .shield::before { content: ""; position: absolute; left: -1.2em; top: -1.2em; width: 3em; height: 3em; border-radius: 50%; background: var(--cobalt); }
  .shield::after { content: ""; position: absolute; right: -1em; bottom: -1em; width: 2.6em; height: 2.6em; border-radius: 100% 0 0 0; background: var(--yellow); }

  /* Monatsrückblick / Diagramm */
  .qchart { display: grid; grid-template-columns: repeat(2, 1fr); width: 9em; aspect-ratio: 1; gap: .2em; flex: none; }
  .qchart i { background: var(--c); border: .12em solid var(--ink); }
  .qchart i:nth-child(1) { border-radius: 100% 0 0 0; transform-origin: 100% 100%; scale: var(--s); }
  .qchart i:nth-child(2) { border-radius: 0 100% 0 0; transform-origin: 0 100%; scale: var(--s); }
  .qchart i:nth-child(3) { border-radius: 0 0 0 100%; transform-origin: 100% 0; scale: var(--s); }
  .qchart i:nth-child(4) { border-radius: 0 0 100% 0; transform-origin: 0 0; scale: var(--s); }
  .bars { display: flex; align-items: flex-end; gap: .5em; height: 8em; border-bottom: .14em solid var(--ink); padding: 0 .2em; }
  .bars i { flex: 1; height: calc(var(--h) * 1%); background: var(--cobalt); border: .12em solid var(--ink); border-bottom: 0; }
  .bars i.y { background: var(--yellow); }
  .bars-l { display: flex; gap: .5em; font-family: var(--f-num); font-size: .68em; color: var(--mute); padding: .3em .2em 0; }
  .bars-l span { flex: 1; text-align: center; }
}

/* ==========================================================================
   Seiten
   ========================================================================== */
@layer pages {
  .mega { font-size: var(--t-mega); font-weight: 800; line-height: .94; letter-spacing: -.045em; }
  .hero-start .poster { grid-auto-rows: minmax(0, auto); }
  .hero-start__text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
  .hero-start__text .mega { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.6rem); margin-top: 8px; }
  .stage--hero { min-height: clamp(460px, 52vw, 700px); height: 100%; padding: 60px 20px 70px; }
  .stage--hero .device-pair { max-width: 640px; }
  .stage--hero .device-pair .iphone { right: -2%; bottom: -10%; }
  .zdog-tile { display: grid; place-items: center; min-height: 220px; overflow: hidden; }
  .zdog { width: 100%; height: 100%; max-width: 260px; aspect-ratio: 1; cursor: grab; }
  .zdog:active { cursor: grabbing; }

  .module { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background 160ms; }
  .module:hover { background: var(--paper); }
  .module .glyph { max-width: 150px; margin-bottom: 18px; transition: transform 240ms var(--snap); }
  .module:hover .glyph { transform: rotate(-6deg) scale(1.04); }
  .module__n { position: absolute; top: var(--pad-tile); right: var(--pad-tile); font-size: var(--t-micro); }
  .module p { color: var(--ink-2); flex: 1; }
  .module .link { align-self: flex-start; margin-top: 10px; }

  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--line); background: #2a2c31; border: var(--line) solid #2a2c31; margin-top: 8px; }
  .trio > div { background: var(--ink); padding: var(--pad-tile); }
  .trio__shape { display: block; width: 56px; height: 56px; margin-bottom: 26px; }
  .trio__h { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); margin-bottom: 12px; }
  .trio p { color: #c2c3c8; }
  @media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

  .cta-poster { overflow: hidden; }
  .cta-poster .wrap { position: relative; z-index: 1; }
  .cta-poster .mega { max-width: 14ch; margin-bottom: 20px; }

  .stage--framed { border: var(--line) solid var(--ink); background: var(--bg); min-height: clamp(460px, 48vw, 640px); padding: 40px 16px 56px; }
  .hero-split h1 { margin-bottom: 20px; }

  .state .glyph { max-width: 150px; margin-bottom: 20px; }
  .state h3 { margin-bottom: 6px; }
  .state p { color: var(--ink-2); }
  .state p.num { color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
  .state p.is-over, .tbl td.is-over { color: var(--red); }

  .squares { margin-top: 26px; display: grid; gap: 0; border-top: var(--line) solid currentColor; }
  .squares li { position: relative; padding: 14px 0 14px 30px; border-bottom: var(--hair) solid rgb(17 18 20 / .25); }
  .squares li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; background: var(--cobalt); }
  .squares li:nth-child(3n+2)::before { background: var(--yellow); border-radius: 50%; outline: 2px solid var(--ink); outline-offset: -2px; }
  .squares li:nth-child(3n)::before { background: var(--ink); border-radius: 12px 0 0 0; }
  .squares--light li { border-bottom-color: rgb(255 255 255 / .3); }
  .squares--light li::before { background: var(--yellow); }

  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

  .settle-list { border-top: var(--line) solid var(--ink); }
  .settle-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: var(--line) solid var(--ink); }
  .settle-row .num { font-size: 1.35rem; font-weight: 600; }
  .mem-l { width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; border: var(--line) solid var(--ink); }
  .settle-note { margin-top: 18px; color: var(--ink-2); font-size: .925rem; }
  @media (max-width: 560px) { .settle-row { grid-template-columns: auto 1fr auto; } .settle-row .paid { grid-column: 1 / -1; } }

  .steps-poster { margin-top: 36px; border-color: var(--ink); }
  .steps-poster > * { color: var(--ink); }

  .hero-date h1 { margin: 6px 0 18px; }
  .date-poster { display: flex; gap: var(--line); margin-top: 32px; background: var(--ink); border: var(--line) solid var(--ink); width: fit-content; max-width: 100%; }
  .date-poster span { font-family: var(--f-num); font-weight: 600; font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); line-height: 1; padding: .14em .22em; background: var(--bg); letter-spacing: -.04em; }
  .date-poster span:nth-child(2) { background: var(--cobalt); color: #fff; }
  .date-poster span:nth-child(3) { background: var(--yellow); }
  .plan-demo__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 14px; }
  .plan-demo__top b { font-family: var(--f-display); font-size: var(--t-h3); }
  .plan-demo__bar { width: 100%; height: 56px; display: block; }
  .plan-demo__nums { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 12px; font-size: .95rem; }

  .nots { border-top: var(--line) solid var(--bg); }
  .nots li { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: var(--line) solid #2a2c31; font-size: var(--t-lead); }
  .nots__x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
  .nots__x .ic { width: 22px; height: 22px; }
  .numlist { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 0; }
  .numlist li { counter-increment: n; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: var(--hair) solid rgb(17 18 20 / .2); }
  .numlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--f-num); font-size: var(--t-micro); padding: 4px 7px; background: var(--ink); color: var(--bg); }

  .price-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: 40px; }
  @media (max-width: 860px) { .price-head { grid-template-columns: 1fr; } }
  .small-print { margin-top: 16px; font-size: .85rem; color: var(--mute); max-width: 80ch; }
  .tbl--plans tfoot td { border-top: var(--line) solid var(--ink); }
  .tbl--plans .btn { min-height: 44px; font-size: .9rem; padding: 0 16px; }
  .kuend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 24px var(--pad-tile); border: var(--line) solid var(--ink); background: var(--bg); }
  .kuend p { color: var(--ink-2); }

  .timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--line) solid var(--ink); }
  .timeline li { padding: 26px 22px 8px 0; position: relative; }
  .timeline__n { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -53px; background: var(--bg); border: var(--line) solid var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 20px; }
  .timeline li:nth-child(2) .timeline__n { background: var(--yellow); border-radius: 50%; }
  .timeline li:nth-child(3) .timeline__n { background: var(--cobalt); color: #fff; }
  .timeline li:nth-child(4) .timeline__n { background: var(--ink); color: var(--yellow); border-radius: 26px 0 0 0; }
  .timeline h3 { margin-bottom: 6px; } .timeline p { color: var(--ink-2); }
  @media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
  @media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

  .contact-head { margin-bottom: 36px; }
  .ch { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: var(--line) solid var(--ink); }
  .ch > div { min-width: 0; overflow-wrap: anywhere; }
  .ch .feat__ic { flex: none; }
  .ch .link { overflow-wrap: anywhere; max-width: 100%; }
  .ch:first-child { padding-top: 0; } .ch:last-child { border-bottom: 0; }
  .ch h3 { font-size: 1rem; margin-bottom: 4px; }

  .nf { text-align: left; }
  .nf__num { display: flex; align-items: center; gap: 2vw; font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 22vw, 18rem); line-height: .8; letter-spacing: -.06em; margin-bottom: 24px; }
  .nf__o { width: .72em; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); border: var(--line) solid var(--ink); }

  .legal-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 4rem); hyphens: manual; }

  /* Lesefortschritt (Scroll-Driven) */
  .read-progress { position: absolute; left: 0; bottom: -2px; height: 4px; width: 100%; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); }
}

/* ==========================================================================
   Bewegung — CSS Scroll-Driven + Startzustände für Anime.js
   ========================================================================== */
@layer motion {
  @keyframes blink { 50% { opacity: .2; } }
  @keyframes grow-x { to { transform: scaleX(1); } }
  @keyframes drift { from { translate: 0 var(--d, 40px); } to { translate: 0 calc(var(--d, 40px) * -1); } }
  @keyframes rise { from { translate: 0 60px; } to { translate: 0 -30px; } }

  @supports (animation-timeline: scroll()) {
    .read-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
    .stage > .shape { animation: drift linear both; animation-timeline: view(); --d: 26px; }
    .stage > .shape:nth-child(2n) { --d: -34px; }
    .cta-poster > .shape { animation: drift linear both; animation-timeline: view(); --d: 60px; }
  }

  /* JS markiert <html class="js">: erst dann verstecken, sonst bleibt alles sichtbar */
  .js [data-snap]:not(.is-in) { opacity: 0; }
  .js .shape[data-pop]:not(.is-in) { scale: 0; }
  .js [data-device]:not(.is-in) { opacity: 0; }
  .split-char { display: inline-block; will-change: transform; }
  .split-word { display: inline-block; white-space: nowrap; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .js [data-snap]:not(.is-in), .js [data-device]:not(.is-in) { opacity: 1; }
    .js .shape[data-pop]:not(.is-in) { scale: 1; }
    html { scroll-snap-type: none; }
  }
}

/* Swup: kurzer harter Wisch wie ein Plakatwechsel */
html.is-changing .transition-main { transition: opacity 180ms steps(3), transform 220ms var(--out); }
html.is-animating .transition-main { opacity: 0; transform: translateY(14px); }

/* Feinschliff */
@layer pages {
  .poster > * { isolation: isolate; }
  .poster > * > .shape { z-index: -1; }
  .ipad .desk { grid-template-columns: 11.5em 1fr; }
  .ipad .desk__main { padding: 1.6em 1.6em; }
  .settle .amt, .tx__a { white-space: nowrap; }
}
