/* ══════════════════════════════════════════════════════════
   LAW4 — Gestaltung von law4.ch

   Liegt als Schicht über /css/main.css. Die Mechanik der wenigen
   Bewegung (FAQ, Video) bleibt dort und in /js/main.js.

   ORDNUNG OHNE ZIERLINIEN
   - Jede Seite ist in nummerierte Kapitel geteilt. Jedes Kapitel
     hat denselben Kopf: Nummer und Titel links, die Einleitung
     rechts, darunter der Inhalt (.chapter-head, .chapter-body).
   - Wiederkehrende Bausteine statt Sonderlösungen: Punkte stehen
     immer als Spalten mit Titel und Text (.items), Zahlen als
     .figures, Fliesstext als .prose-split, Abläufe als .process.
   - Getrennt wird durch Flächen (Papier und Weiss im Wechsel,
     Navy für das Zahlenband) und durch Weissraum. Am Seitenende ist
     der Fuss die einzige dunkle Fläche.
     Linien gibt es nur dort, wo sie Bewegung zeigen: Fortschritt
     der Geschichte, der Ablauf, die Verbindung Advice → Workspace.

   Schrift: IBM Plex Sans für alles, IBM Plex Mono für Nummern
   und kleine Etiketten (deklariert in /fonts/plex.css). Keine
   Kursive; Betonung über Grauwert.
   ══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
    /* main.css setzt alle Display-Zeilen über --display. Umgestellt
       auf die Grotesk, verliert die ganze Seite ihre Serife auf einmal. */
    --display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

    /* Flächen */
    --ground: #f3f2ee;
    --white: #ffffff;
    --navy: #0b1a3a;
    --navy-deep: #07122b;
    /* Nur für die Schweizer Fahne (Kapitel Sicherheit der Startseite),
       nie als Farbe des Auftritts; derselbe Wert wie auf nilotec.ch. */
    --swiss-red: #da291c;

    /* Text */
    --text: #0b1a3a;
    --text-soft: #434c5d;
    --text-muted: #6a7282;
    /* Grauwert für den zweiten Satz einer Überschrift: 3.0:1 auf Papier,
       3.4:1 auf Weiss. Das reicht nur für grossen Text, also nur auf
       Schrift ab 24 px (--t2 und --t1, nie --t3). */
    --quiet: #868c97;
    --quiet-dark: #9aa0aa;
    --on-dark: #f3f2ee;
    --on-dark-soft: rgba(243, 242, 238, 0.7);
    --on-dark-muted: rgba(243, 242, 238, 0.5);

    /* Raster und Abstände */
    --wrap: 1320px;
    --pad: clamp(20px, 4vw, 56px);
    --gap: 24px;
    --head-h: 68px;
    --s-section: clamp(72px, 6.7vw, 96px);
    --s-head: clamp(40px, 4vw, 56px);

    /* Titel: drei Grössen, mehr nicht. Ruhig gesetzt wie bei Anbietern,
       die seriös wirken: höchstens 56 und 40 px, mittleres Gewicht, wenig
       Laufweite (LAW4-1603). Bis dahin stand die H1 bei 98 px in 600. */
    --t1: clamp(2.1rem, 3.8vw, 3.5rem);
    --t2: clamp(1.625rem, 2.6vw, 2.5rem);
    --t3: clamp(20px, 1.6vw, 24px);
    --lead: clamp(17px, 1.35vw, 19.5px);
}

/* Auf schmalen Bildschirmen rücken die Kapitel zusammen. Der Weissraum,
   der am Desktop ordnet, wäre am Telefon nur Scrollweg. */
@media (max-width: 960px) {
    :root {
        --s-section: clamp(64px, 7.5vw, 72px);
        --s-head: clamp(32px, 4vw, 40px);
    }
}

@media (max-width: 640px) {
    :root {
        --s-section: 64px;
        --s-head: 32px;
        --gap: 20px;
    }
}

html {
    background: var(--ground);
}

body {
    background: var(--ground);
    color: var(--text);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.55;
}

/* Keine Kursive auf der Seite. Die Produkt-Mockups sind ausgenommen,
   weiter unten: Sie zeigen das Produkt, wie es ist. */
em {
    font-style: normal;
}

::selection {
    background: var(--navy);
    color: var(--on-dark);
}

:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 2px;
}

section {
    scroll-margin-top: var(--head-h);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* ── Produkt bleibt Produkt ─────────────────────────────── */

/* Mockups, Plugin und Portal zeigen die echte Oberfläche: Inter mit
   Überschriften in IBM Plex Sans, wie im Workspace und im Portal. Die
   Grössen der Mockups sind auf die frühere Serife gezeichnet; der Faktor
   ist derselbe wie im Produkt (--law4-display-scale). */
.app-mockup,
.intake-widget {
    --display: "IBM Plex Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
    --display-scale: 0.78;
    --body: "Inter", -apple-system, "Segoe UI", sans-serif;
    font-family: var(--body);
}

/* ── Typografie ─────────────────────────────────────────── */

.t1,
.t2 {
    font-family: var(--display);
    font-weight: 500;
    color: var(--text);
    text-wrap: balance;
}

.t1 {
    font-size: var(--t1);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.t2 {
    font-size: var(--t2);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.t1 em,
.t2 em {
    color: var(--quiet);
}

.lead {
    font-size: var(--lead);
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 34em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.text-link {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 500;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.text-link span {
    transition: transform 0.3s var(--ease-out);
}

.text-link:hover span {
    transform: translateX(5px);
}

/* Kurze Aufzählung: ein kleiner Strich als Marke, sonst nichts. */
.dash {
    list-style: none;
}

.dash li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
}

.dash li + li {
    margin-top: 8px;
}

.dash li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.45;
}

/* Nur für Screenreader: Beschriftung, die das Auge aus dem Aufbau liest
   (Kopfzelle der Merkmalsspalte, Titel der Vergleichstabelle). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    box-shadow: none;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Kapitel: ein Kopf, ein Körper ──────────────────────── */

.chapter {
    padding-block: var(--s-section);
}

.paper {
    background: var(--ground);
}

.white {
    background: var(--white);
}

/* Nummer und Titel links (sieben Spalten), Einleitung rechts
   (vier Spalten), unten bündig. Für jedes Kapitel gleich. */
.chapter-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
}

.chapter-title {
    grid-column: 1 / span 7;
}

.chapter-lead {
    grid-column: 9 / -1;
    padding-bottom: 0.3em;
}

.chapter-label {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.chapter-no {
    color: var(--text);
    font-weight: 500;
}

.chapter-label.light {
    color: var(--on-dark-muted);
}

.chapter-label.light .chapter-no {
    color: var(--on-dark);
}

.chapter-body {
    margin-top: var(--s-head);
}

/* ── Baustein: Punkte als Spalten ───────────────────────── */

.items {
    display: grid;
    column-gap: calc(var(--gap) * 2);
    row-gap: 48px;
}

.items.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.items.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.items.stack {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
}

.item-role {
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.item-title {
    margin-bottom: 10px;
    font-size: var(--t3);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: var(--text);
}

.item-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 30em;
}

/* ── Baustein: Vergleichstabelle (/preise) ──────────────── */

/* Die Abos stehen als Spalten nebeneinander, die Merkmale als Zeilen: So
   liest man quer, was sich unterscheidet, und senkrecht, was ein Abo
   enthält. Die feine Linie zwischen den Zeilen führt das Auge über die
   Zeile; Kästen und Flächen je Zelle gibt es nicht. Am Telefon läuft die
   Tabelle seitwärts, die Spalte der Merkmale bleibt dabei stehen.
   «Unkostengemeinschaft» ist breiter als ihre Spalte und trennt an der
   weichen Trennstelle im Markup (&shy;), nicht irgendwo. */
/* Der Behälter ist ein benannter Bereich mit tabindex: Safari fokussiert
   einen scrollbaren Behälter nicht von selbst, und ohne Fokus erreichte
   die Tastatur die übrigen Spalten am Telefon nie. Der Fokusring ist der
   von :focus-visible. */
.plan-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.plan-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

.plan-table th,
.plan-table td {
    padding: 18px 20px 18px 0;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
    font-weight: 400;
}

.plan-table thead th {
    padding-bottom: 24px;
    vertical-align: bottom;
    border-bottom: 1px solid rgba(11, 26, 58, 0.28);
}

.plan-table thead th:first-child {
    width: 26%;
}

.plan-table tbody tr:not(.plan-group) > * {
    border-bottom: 1px solid rgba(11, 26, 58, 0.1);
}

/* Die Spalte der Merkmale bleibt beim seitlichen Scrollen stehen und
   deckt ab, was unter ihr durchläuft. */
.plan-table th[scope="row"],
.plan-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--white);
}

.plan-table th[scope="row"] {
    font-weight: 500;
    color: var(--text);
}

.plan-name {
    display: block;
    font-size: var(--t3);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: var(--text);
}

.plan-for {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-soft);
}

.plan-note {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Gruppenkopf über den Zeilen. Der Text selbst bleibt beim seitlichen
   Scrollen links stehen, die Zelle läuft über die ganze Breite. */
.plan-group th {
    padding: 44px 0 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.plan-table tbody:first-of-type .plan-group th {
    padding-top: 28px;
}

.plan-group th > span {
    position: sticky;
    left: 0;
}

/* Enthalten: ein gezeichneter Haken in der Textfarbe. Gelesen wird er als
   «Enthalten» (aria-label im Markup). */
.tick {
    display: inline-block;
    width: 13px;
    height: 7px;
    margin: 6px 0 0 2px;
    border-left: 1.75px solid var(--text);
    border-bottom: 1.75px solid var(--text);
    transform: rotate(-45deg);
}

@media (max-width: 640px) {
    .plan-table {
        min-width: 700px;
    }

    .plan-table thead th:first-child {
        width: 132px;
    }

    .plan-table th,
    .plan-table td {
        padding-right: 14px;
        font-size: 14px;
    }

    .plan-name {
        font-size: 18px;
    }

    /* Nur hier läuft die Tabelle seitwärts: Eine feine Kante trennt die
       stehende Spalte von dem, was unter ihr durchläuft. */
    .plan-table th[scope="row"],
    .plan-table thead th:first-child {
        box-shadow: inset -1px 0 0 rgba(11, 26, 58, 0.1);
    }

    .plan-table td,
    .plan-table thead th:not(:first-child) {
        padding-left: 14px;
    }
}

/* ── Knöpfe ─────────────────────────────────────────────── */

.btn {
    height: 52px;
    padding: 0 22px;
    border-radius: 4px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    gap: 14px;
    white-space: nowrap;
}

.btn-solid {
    background: var(--navy);
    color: var(--on-dark);
}

.btn-solid:hover {
    background: #16295a;
}

.btn-line {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(11, 26, 58, 0.3);
}

.btn-line:hover {
    box-shadow: inset 0 0 0 1px var(--navy);
    background: rgba(11, 26, 58, 0.04);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Kopfzeile ──────────────────────────────────────────── */

/* Kein transform auf .masthead: das Vollbild-Menü ist position:fixed
   in ihr und bräuchte sonst sie als Bezugsrahmen. Abgesetzt wird sie
   beim Scrollen durch Fläche und weichen Schatten, nicht durch eine
   Linie. */
.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: var(--head-h);
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.masthead.scrolled {
    background: rgba(243, 242, 238, 0.97);
    box-shadow: 0 10px 30px -24px rgba(11, 26, 58, 0.35);
}

.mast-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.mast-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mast-logo {
    height: 32px;
    width: auto;
}

.mast-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.mast-nav > a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    padding-block: 6px;
}

/* Der Weg in die Anwendung steht als schlichter Link neben der Sprachwahl,
   etwas abgesetzt und im Grauwert der Etiketten: Er führt aus dem Auftritt
   hinaus, nicht zu einer seiner Seiten. Einen hervorgehobenen Aktionsknopf
   trägt die Kopfzeile nicht (LAW4-1599). */
.mast-nav > .nav-login {
    margin-left: 12px;
    color: var(--text-soft);
}

.mast-nav > .nav-login:hover {
    color: var(--text);
}

.masthead .lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 0 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: none;
    font-family: var(--mono);
    font-size: 12.5px;
}

.masthead .lang-switch a {
    padding: 4px 6px;
    border-radius: 3px;
    color: var(--text-muted);
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.masthead .lang-switch a:hover {
    color: var(--text);
}

.masthead .lang-switch a.lang-active {
    color: var(--text);
    background: rgba(11, 26, 58, 0.07);
}

.mast-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 3;
}

.mast-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.35s var(--ease-out);
}

.masthead.nav-open .mast-toggle span:first-child {
    transform: translateY(4.25px) rotate(45deg);
}

.masthead.nav-open .mast-toggle span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .mast-toggle {
        display: flex;
    }

    .mast-brand {
        position: relative;
        z-index: 3;
    }

    /* Vollbild-Menü auf Papier: grosse Zeilen mit Kapitelnummer. */
    .mast-nav {
        position: fixed;
        inset: 0;
        z-index: 2;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: calc(var(--head-h) + 28px + env(safe-area-inset-top, 0px)) var(--pad)
            calc(32px + env(safe-area-inset-bottom, 0px));
        background: var(--ground);
        overflow-y: auto;
        counter-reset: navlink;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-2%);
        transition:
            opacity 0.35s ease,
            transform 0.5s var(--ease-out),
            visibility 0s 0.5s;
    }

    .masthead.nav-open .mast-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition:
            opacity 0.3s ease,
            transform 0.5s var(--ease-out);
    }

    .mast-nav > a:not(.nav-login) {
        display: flex;
        align-items: baseline;
        gap: 18px;
        padding: 12px 0;
        font-size: clamp(28px, 7.5vw, 40px);
        font-weight: 600;
        letter-spacing: -0.035em;
        line-height: 1.15;
    }

    .mast-nav > a:not(.nav-login)::before {
        counter-increment: navlink;
        content: counter(navlink, decimal-leading-zero);
        font-family: var(--mono);
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .mast-nav > a,
    .mast-nav > .lang-switch {
        opacity: 0;
        transform: translateY(22px);
        transition:
            opacity 0.4s var(--ease-out),
            transform 0.45s var(--ease-out);
    }

    .masthead.nav-open .mast-nav > a,
    .masthead.nav-open .mast-nav > .lang-switch {
        opacity: 1;
        transform: none;
    }

    .masthead.nav-open .mast-nav > :nth-child(1) { transition-delay: 0.06s; }
    .masthead.nav-open .mast-nav > :nth-child(2) { transition-delay: 0.1s; }
    .masthead.nav-open .mast-nav > :nth-child(3) { transition-delay: 0.14s; }
    .masthead.nav-open .mast-nav > :nth-child(4) { transition-delay: 0.18s; }
    .masthead.nav-open .mast-nav > :nth-child(5) { transition-delay: 0.22s; }
    .masthead.nav-open .mast-nav > :nth-child(6) { transition-delay: 0.26s; }
    .masthead.nav-open .mast-nav > :nth-child(7) { transition-delay: 0.3s; }
    .masthead.nav-open .mast-nav > :nth-child(8) { transition-delay: 0.34s; }

    .masthead .lang-switch {
        order: 2;
        margin: 26px 0 0;
        font-size: 15px;
    }

    .masthead .lang-switch a {
        padding: 10px 12px;
    }

    /* Im Menü am Handy steht der Login unter den Seiten, in der Grösse
       der Sprachwahl und ohne Nummer: Er ist keine Seite des Auftritts. */
    .mast-nav > .nav-login {
        margin: 32px 0 0;
        padding: 10px 0;
        font-size: 17px;
    }
}

/* ── Eröffnung ──────────────────────────────────────────── */

/* Die Polster sind mit dem Titel kleiner geworden (LAW4-1603): Was er an
   Höhe abgibt, soll als Inhalt in den ersten Bildschirm rücken, nicht als
   Leere stehen bleiben. Keine Eröffnung trägt ein Bild (LAW4-1651): Unter
   ihr folgt eine navy Fläche (.band) oder das erste Kapitel, im Abstand
   eines Kapitels; auf der Startseite zuerst das Band .references auf ihrem
   Papier. */
.opening {
    position: relative;
    padding-top: calc(var(--head-h) + clamp(40px, 7vh, 80px));
    padding-bottom: var(--s-section);
    background: var(--ground);
}

.opening-line {
    display: block;
}

.opening-foot {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
    margin-top: clamp(28px, 4vh, 40px);
}

.opening-foot .lead {
    grid-column: 1 / span 6;
}

.opening-foot .actions {
    grid-column: 8 / -1;
    justify-content: flex-end;
}

/* ── Im Einsatz bei (LAW4-1653, LAW4-1682) ──────────────── */

/* Ein schmales Band am Ende der Eröffnung der Startseite, auf ihrem Papier:
   Es gehört noch zu ihr und folgt ihr enger als ein Kapitel. Etikett und
   Logos stehen im Raster der zwölf Spalten: das Etikett links über zwei,
   die Logos ab der dritten, schmal in einer Zeile. Jedes Logo steht in den Farben seiner Kanzlei, deshalb
   der helle Grund: Auf Navy verschwänden dunkle Marken. Die Logos sind
   gleich hoch; eines, das breit oder kompakt gezeichnet ist, bekommt über
   --logo-h am <img> eine eigene Höhe, damit alle von Auge gleich gross
   wirken. */
.opening:has(+ .references) {
    padding-bottom: clamp(56px, 8vh, 88px);
}

.references {
    padding-block: clamp(36px, 4vw, 48px);
    background: var(--ground);
    color: var(--text);
}

.references-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
}

/* So hoch wie ein Logo, damit das Etikett auf dessen Mitte steht und nicht
   auf der Mitte von Logo und Notiz. */
.references-label {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    min-height: 26px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.references-list {
    grid-column: 3 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 56px;
    list-style: none;
}

.references-logo {
    display: block;
    align-self: flex-start;
    border-radius: 2px;
}

.references-logo img {
    display: block;
    height: var(--logo-h, 26px);
    width: auto;
    transition: opacity 0.2s ease;
}

/* Die Farben der Marke bleiben stehen; der Zeiger nimmt sie nur etwas
   zurück, als Zeichen, dass das Logo ein Link ist. */
.references-logo:hover img {
    opacity: 0.75;
}

/* Schmale Desktop-Fenster: Einleitung und Knöpfe teilen sich die Zeile
   hälftig. Mit vier Spalten für die Knöpfe stünden sie untereinander,
   rechts aussen, und gehörten zu nichts. */
@media (max-width: 1280px) {
    .opening-foot .lead {
        grid-column: 1 / span 6;
    }

    .opening-foot .actions {
        grid-column: 7 / -1;
    }
}

/* Ab hier stehen die Knöpfe unter der Einleitung, an derselben Kante. */
@media (max-width: 1100px) {
    .opening-foot {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .opening-foot .lead,
    .opening-foot .actions {
        grid-column: 1;
    }

    .opening-foot .actions {
        justify-content: flex-start;
    }
}

/* ── Zwei Flächen, eine Verbindung (/workspace, /advice) ── */

.product-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.product {
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 4vw, 56px);
    border-radius: 8px;
}

.product.light {
    background: var(--white);
    color: var(--text);
}

.product.navy {
    background: var(--navy);
    color: var(--on-dark);
}

.product-for {
    margin-bottom: clamp(40px, 5vw, 72px);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.product.navy .product-for {
    color: var(--on-dark-muted);
}

/* In der Grösse des Kapiteltitels darüber, nicht grösser (LAW4-1603). */
.product-name {
    margin-bottom: 18px;
    font-size: var(--t2);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.product-text {
    margin-bottom: 26px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 30em;
}

.product.navy .product-text {
    color: var(--on-dark-soft);
}

/* Die Verbindung — Namen ohne Kästen, Impulse als kleine Quadrate. */
.product-flow {
    max-width: 760px;
    margin: clamp(56px, 6vw, 88px) auto 0;
    justify-content: space-between;
    align-items: flex-start;
}

.flow-node,
.flow-node.navy {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.flow-node.navy {
    text-align: right;
}

.flow-node-title,
.flow-node.navy .flow-node-title {
    font-size: var(--t3);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
}

.flow-node-sub,
.flow-node.navy .flow-node-sub {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

.flow-line {
    height: 1.5px;
    max-width: none;
    margin: 13px clamp(20px, 3vw, 44px) 0;
    background: rgba(11, 26, 58, 0.22);
}

.flow-caption {
    top: 16px;
    /* Ohne feste Breite misst der Kasten nur die halbe Linie, und das
       Zentrieren verrutscht, sobald die Linie kürzer ist als der Text. */
    width: max-content;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

/* ── Fallaufnahme — die Szene Plugin → Workspace (/advice) ── */

/* Website und Workspace stehen nebeneinander, der Weg liest sich von
   links nach rechts. */
@media (min-width: 961px) {
    .story-stage {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--gap);
        align-items: start;
    }

    .story-stage .stage-plugin {
        grid-column: 1 / span 5;
        grid-row: 1;
        align-self: start;
        margin: 0;
    }

    .story-stage .stage-workspace {
        grid-column: 7 / -1;
        grid-row: 1;
        align-self: start;
        width: auto;
        margin: clamp(56px, 11vh, 120px) 0 0;
    }

    .story-stage .stage-arrow {
        display: none;
    }
}

/* Auf /advice steht die Szene still (LAW4-1609): ein gewöhnliches
   Kapitel, die Website mit dem Plugin und die Anfrage im Workspace im
   Endzustand nebeneinander, darunter die Schritte als .process. Nichts
   ist angeheftet, nichts spielt sich ab. Die gepinnte Fassung, 420vh
   hoch, beanspruchte dort vier Bildschirme für fünf Untertitel. */
.story-stage.still {
    max-width: none;
    margin: 0 0 var(--s-head);
}

.story-stage.still .stage-workspace {
    opacity: 1;
    transform: none;
}

/* Das Anliegen steht ausgeschrieben im Feld und bricht um wie dort. */
.pw-value {
    display: block;
    font-size: 16px;
    line-height: 1.55;
    color: var(--pw-text);
}

/* Beide Bilder oben bündig, die Beschriftungen auf einer Zeile. Der
   Versatz der gepinnten Fassung zeigte die Ankunft; still sähe er nach
   einem Versehen aus. */
@media (min-width: 961px) {
    .story-stage.still .stage-workspace {
        margin-top: 0;
    }
}

.stage-plugin {
    gap: 0;
}

/* Ebenen: die Website mit dem Plugin liegt über dem Postfach. */
.story-stage .stage-workspace {
    z-index: 2;
}

.story-stage .stage-plugin {
    z-index: 3;
}

.stage-caption {
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
}

.stage-caption span {
    color: var(--text-muted);
}

/* Die Website der Kanzlei mit dem nahtlos eingebetteten Plugin
   (appearance="inline"): kein Kartenrahmen, kein Briefkopf, die Schrift
   der Seite. Seite und Plugin tragen die echten Masse, die der Demo-Seite
   (advice/plugin/demo/kanzlei-muster.html) und die des Plugins im
   zweispaltigen Blatt (advice/plugin/src/ui/styles.ts, Standard ohne
   eigene Farben: Tinte #0b1a3a, Akzent #868a91, Fläche #f3f2ee; die
   Schrittleiste füllt sich in der Tinte). `zoom` verkleinert alles
   zusammen auf die Bühne, wie ein Bildschirmfoto, aber mit scharfer
   Schrift. Die Töne, die das Plugin per color-mix() aus Tinte und Akzent
   mischt, stehen hier ausgerechnet. Wer das Plugin ändert, gleicht hier
   Zahl für Zahl an. */
.kw-window {
    overflow: hidden;
    border-radius: 8px;
    background: #f8f7f4;
    box-shadow:
        0 0 0 1px rgba(11, 26, 58, 0.1),
        0 40px 80px -46px rgba(11, 26, 58, 0.5);
    font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
}

.kw-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ebe9e3;
}

.kw-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 5px;
    background: #fff;
    font-size: 10.5px;
    color: var(--text-muted);
}

.kw-page {
    --kw-navy: #1a2b4a;
    --kw-gold: #c9a84c;
    zoom: 0.47;
    color: #2c2c2c;
    -webkit-font-smoothing: antialiased;
}

.kw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 28px;
    border-bottom: 1px solid #e5e5e0;
}

.kw-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.2px;
    color: var(--kw-navy);
}

.kw-logo b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--kw-navy);
    color: var(--kw-gold);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0;
}

.kw-links {
    display: flex;
    gap: 26px;
    font-size: 14.5px;
    font-weight: 500;
    color: #4b5563;
}

.kw-hero {
    padding: 44px 28px 26px;
    text-align: center;
}

.kw-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--kw-gold);
}

.kw-eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    background: var(--kw-gold);
}

.kw-title {
    margin-bottom: 12px;
    font-family: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--kw-navy);
}

.kw-text {
    font-size: 18.5px;
    line-height: 1.65;
    color: #4b5563;
}

/* Das Plugin, nahtlos: es steht als Inhalt in der Seite, auf ihrem Grund,
   in ihrer Schrift. */
.story-stage .stage-widget {
    --pw-ink: #0b1a3a;
    --pw-accent: #868a91;
    --pw-text: #1c2333;
    --pw-muted: #6b7280;
    --pw-rule: #dfe1e5; /* Tinte 13 % */
    --pw-rule-2: #c4c8d0; /* Tinte 24 % */
    position: relative;
    /* main.css positioniert .intake-widget absolut (right/bottom) und gibt
       ihm Breite, Schatten und Schrift einer schwebenden Karte. */
    inset: auto;
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 580px;
    margin: 0 28px 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    line-height: normal;
    color: var(--pw-text);
}

.stage-widget svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pw-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Die Schrittleiste: «Anliegen» läuft; mit «Fall schildern» (.chosen)
   ist es erledigt und das Rechtsgebiet läuft; mit der Frage (.asked) ist
   auch das erledigt, und «Fragen» füllt sich. */
.pw-steps {
    display: flex;
    gap: 13px;
    flex: 0 0 auto;
    padding: 10px 2px 0;
    list-style: none;
}

.pw-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}

.pw-bar {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--pw-rule);
}

.pw-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: var(--pw-ink);
}

.pw-label {
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #a3a8b0;
}

.pw-step-intent .pw-bar span,
.stage-widget.chosen .pw-step-area .pw-bar span {
    width: 100%;
}

.stage-widget.asked .pw-step-questions .pw-bar span {
    width: 40%;
}

.stage-widget.chosen .pw-step-intent .pw-bar span,
.stage-widget.asked .pw-step-area .pw-bar span {
    background: #b6bac4; /* Tinte 30 % */
}

.pw-step-intent .pw-label,
.stage-widget.chosen .pw-step-area .pw-label,
.stage-widget.asked .pw-step-questions .pw-label {
    font-weight: 700;
    color: var(--pw-ink);
}

.stage-widget.chosen .pw-step-intent .pw-label,
.stage-widget.asked .pw-step-area .pw-label {
    font-weight: 600;
    color: var(--pw-muted);
}

.pw-body {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    flex: 1 1 auto;
}

/* Das zweispaltige Blatt: links die Ansprache und darunter die
   Zusicherung, rechts die Aktion, mittig in der Höhe. */
.pw-screen {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 40px;
    row-gap: 14px;
    min-width: 0;
    padding: 16px 2px 12px;
}

.pw-lead {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 4px;
}

.pw-work {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.pw-screen-question {
    opacity: 0;
    transform: translateX(16px);
}

.stage-widget.asked .pw-screen-question {
    opacity: 1;
    transform: none;
}

.pw-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pw-muted);
}

.pw-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 2px;
    background: var(--pw-accent);
}

.pw-count {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: #8c919c;
}

.pw-title {
    margin-bottom: 9px;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.35px;
    color: var(--pw-ink);
    text-wrap: balance;
}

/* Die Zusicherung schliesst die Ansprache links ab. */
.pw-anchor {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: 11.5px;
    line-height: 1.5;
    color: #717885;
}

.pw-anchor svg {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    color: var(--pw-accent);
}

/* Das Feld mit dem Anliegen; ausgefüllt (.typed) trägt es den Fokusrahmen. */
.story-stage .stage-widget .pw-text {
    position: relative;
    min-height: 104px;
    margin: 0;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid var(--pw-rule-2);
    border-radius: 8px;
    background: #fff;
}

.stage-widget.typed .pw-text {
    border-color: var(--pw-ink);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.13);
}

.pw-placeholder {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.55;
    white-space: nowrap;
    color: #a3a8b0;
}

.stage-widget.typed .pw-placeholder {
    visibility: hidden;
}

/* Der Einstieg hat keine Navigation, das Rechtsgebiet nur «Zurück» (die
   Kachel ist schon der Schritt weiter). Auf der Frage kommt «Weiter»
   dazu, gesperrt, bis das Feld nicht mehr leer ist; beide stehen dann an
   der Kante der Aktion. */
.pw-nav {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 2px;
    border-top: 1px solid var(--pw-rule-2);
    opacity: 0;
    visibility: hidden;
}

.stage-widget.chosen .pw-nav {
    opacity: 1;
    visibility: visible;
}

.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.pw-btn svg {
    width: 18px;
    height: 18px;
}

.pw-btn-ghost {
    min-width: 120px;
    margin-right: auto;
    border-color: var(--pw-rule-2);
    background: #fff;
    color: var(--pw-ink);
}

.pw-btn-primary {
    display: none;
    min-width: 230px;
    border-color: var(--pw-rule-2);
    background: #f0f1f3; /* Tinte 6 % */
    color: #9da3b0; /* Tinte 40 % */
}

.stage-widget.asked .pw-btn-ghost {
    margin-right: 0;
}

.stage-widget.asked .pw-btn-primary {
    display: inline-flex;
}

.stage-widget.typed .pw-btn-primary {
    border-color: var(--pw-ink);
    background: var(--pw-ink);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 1px 2px rgba(16, 24, 40, 0.12);
}

.pw-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 2px;
    border-top: 1px solid var(--pw-rule);
    font-size: 11px;
    color: var(--pw-muted);
}

.pw-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pw-foot-item svg {
    width: 12px;
    height: 12px;
    color: #898e99;
}

.pw-foot .pw-sep {
    opacity: 0.35;
}

/* Die Law4-Marke, gefüllt und in ihrer eigenen Tinte (plugin/src/ui/brand.ts). */
.stage-widget .pw-l4 {
    width: 14px;
    height: 14px;
    fill: #0b1a3a;
    stroke: none;
}

/* Wie gross die Miniatur steht, entscheidet allein der Zoom: Die Seite
   darin bleibt um 1040px breit, das Plugin also im zweispaltigen Blatt. */
@media (min-width: 961px) and (max-width: 1239px) {
    .kw-page {
        zoom: 0.41;
    }
}

@media (min-width: 961px) and (max-width: 1079px) {
    .kw-page {
        zoom: 0.355;
    }
}

/* Niedrige Laptop-Fenster: die Website wird etwas kompakter. */
@media (min-width: 961px) and (max-height: 860px) {
    .kw-nav {
        height: 60px;
    }

    .kw-hero {
        padding: 30px 28px 16px;
    }

    .stage-caption {
        margin-bottom: 8px;
    }
}

/* Telefon und Tablet: untereinander. */
@media (max-width: 960px) {
    .stage-plugin {
        align-items: stretch;
    }

    .kw-page {
        zoom: 0.58;
    }
}

/* Telefon: dieselbe Website, kleiner gezoomt. Das Fenster zeigt einen
   Desktop-Browser, das Plugin bleibt im zweispaltigen Blatt. */
@media (max-width: 640px) {
    .kw-page {
        zoom: 0.42;
    }

    .kw-nav {
        padding: 0 20px;
    }

    .kw-links {
        display: none;
    }

    .kw-hero {
        padding: 32px 20px 20px;
    }

    .story-stage .stage-widget {
        margin: 0 20px 20px;
    }
}

@media (max-width: 400px) {
    .kw-page {
        zoom: 0.38;
    }
}

.ws-toast {
    border-radius: 6px;
    background: var(--navy);
    font-family: var(--body);
}

.stage-workspace .app-mockup {
    border-radius: 8px;
}

/* Der Weg zur Produktseite steht unter seinem Kapitel. */
.chapter-more {
    padding-block: 8px clamp(48px, 8vw, 80px);
}

/* Unter einem gewöhnlichen Kapitel braucht der Weg Abstand zu den
   Spalten, sonst liest er sich als Teil der ersten. Nach unten
   trägt die Kapitelfläche selbst. */
.chapter > .chapter-more {
    padding-block: clamp(40px, 5vw, 64px) 0;
}

/* ── Bild neben Text (Mandantenportal auf /advice) ──────── */

.split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
}

.split-visual {
    grid-column: 1 / span 7;
}

.split-copy {
    grid-column: 9 / -1;
}

.split-copy .status {
    margin-bottom: 36px;
}

/* ── Ablauf — vier Schritte auf hellem Grund ────────────── */

/* Vier gleiche Spalten. Der Knoten sitzt links über jedem Schritt.
   Die Spur ist um einen Steg breiter als die Schritte, damit der
   Impuls aus main.js (75 % der Spurbreite) genau auf dem letzten
   Knoten landet. */
.process {
    margin-top: 0;
    margin-right: calc(-1 * var(--gap));
}

.process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-right: var(--gap);
}

.process-line {
    top: 5px;
    left: 0;
    right: auto;
    width: 75%;
    height: 2px;
    border-radius: 2px;
}

.process-line {
    background: var(--navy);
}

.process-step {
    align-items: flex-start;
    text-align: left;
    padding: 0 var(--gap) 0 0;
}

.process-num {
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 18px;
    padding-top: 34px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
}

.process-num::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--navy);
}

.process-title {
    margin-bottom: 10px;
    font-size: var(--t3);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: var(--text);
}

.process-text {
    max-width: 22em;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
}

/* ── Zahlen ─────────────────────────────────────────────── */

.figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: calc(var(--gap) * 2);
    margin-bottom: clamp(56px, 6vw, 96px);
}

.figure {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.figure-val {
    font-weight: 300;
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.figure-label {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* ══ Startseite (LAW4-1610) ════════════════════════════════
   Die Startseite in sechs Bildschirmen: nach der Eröffnung die Module
   des Workspace als Zeile, Advice in zwei stehenden Bildern, drei
   Antworten zur Sicherheit und das Team. Gebaut aus den Bausteinen der
   Seite; neu sind nur die Zeile der Module und das Bildpaar. Die Szene
   Plugin → Workspace spielt nur noch auf /advice. */

/* Kurze Kapitel, jedes ein Wegweiser auf seine Unterseite: Sie rücken
   so eng zusammen wie die Kapitel auf /sicherheit unter dem
   Inhaltsverzeichnis. Mit dem Polster der Unterseiten wäre die Seite
   einen halben Bildschirm länger und passte nicht in sechs. */
.home > .chapter {
    padding-block: clamp(56px, 4.5vw, 64px);
}

.home > .chapter > .chapter-more {
    padding-top: 40px;
}

/* Die Kernmodule als Reihe (LAW4-1687): sechs Zellen mit dem Symbol des
   Workspace und dem Namen, ohne Fläche. Die Linien zwischen den Zellen
   sind der Grund der Liste, der durch eine Fuge von 1 px scheint; so
   stimmen sie bei sechs, drei und zwei Spalten, ohne dass eine Regel je
   Spaltenzahl die Ränder zählt. Der Rest steht in einer Zeile darunter und
   führt in die Übersicht von /workspace. Bis LAW4-1687 standen alle 19
   Namen als Flächen in einer Reihe und brachen um, wo der Platz endete:
   Am Telefon waren das fünfzehn Zeilen ohne gemeinsame Kante. */
.core-modules {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    border-block: 1px solid rgba(11, 26, 58, 0.12);
    background: rgba(11, 26, 58, 0.12);
}

/* Der Name steht unter dem Symbol und nicht am Fuss der Zelle: So beginnen
   alle Namen auf einer Linie, auch wenn einer auf zwei Zeilen bricht. */
.core-module {
    display: flex;
    flex-direction: column;
    gap: 48px;
    height: 100%;
    padding: 24px 20px;
    background: var(--white);
    color: var(--text);
    transition: background-color 0.2s ease;
}

.core-module:hover {
    background: var(--ground);
}

.core-module-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Getrennt wird nur, wo beide Teile lesbar bleiben: «Mandanten-verwaltung»
   und nicht «Mandantenverwal-tung», wie es das Wörterbuch des Browsers
   sonst wählt. Safari kennt nur die alten Eigenschaften. */
.core-module-name {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    hyphens: auto;
    hyphenate-limit-chars: 12 6 8;
    -webkit-hyphenate-limit-before: 6;
    -webkit-hyphenate-limit-after: 8;
}

.module-more {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.module-more:hover {
    color: var(--text);
}

.module-more-count {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Advice: der Weg einer Anfrage als Video (LAW4-1650). Gerundet wie die
   Produktbilder, ohne Rahmen und ohne Schatten; sein Grund liegt knapp über
   dem Papier, die Rundung genügt als Kante. Die Fläche hinter dem Video
   steht da, bis das Vorschaubild geladen ist. Knopf und Bildunterschrift
   hängen knapp darunter auf einer Zeile, wie die Bedienung eines Players;
   wird es eng, rückt die Unterschrift unter den Knopf. Die Zeile ist
   knapp, weil die Startseite bei 1440 × 900 in sechs Bildschirmen bleibt
   (LAW4-1610). */
.film {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0;
}

.film-frame {
    flex: 0 0 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #eceae4;
}

.film-video {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ohne `controls` hat das Skript übernommen: Ein Klick aufs Video tut
   dasselbe wie der Knopf. */
.film-video:not([controls]) {
    cursor: pointer;
}

.film-toggle {
    flex: none;
    height: 40px;
    padding: 0 16px 0 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* `.btn` setzt `display`, das schlüge das `hidden` aus dem Markup. Der
   Knopf erscheint erst, wenn das Skript das Video übernimmt. */
.film-toggle[hidden] {
    display: none;
}

.film-icon {
    display: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.film-icon-play {
    fill: currentColor;
}

.film-toggle[data-state="paused"] .film-icon-play,
.film-toggle[data-state="playing"] .film-icon-pause,
.film-toggle[data-state="ended"] .film-icon-replay {
    display: block;
}

.film-caption {
    flex: 1 1 22rem;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
}

/* Die drei Zusagen zur Sicherheit (LAW4-1694): ohne Kästen, je ein
   Zeichen, Titel, ein Satz und unten eine Angabe zum Nachprüfen in Mono.
   Das Zeichen ist 48 × 40 wie auf nilotec.ch; die Fahne steht quadratisch
   darin und ist die einzige Farbe des Kapitels. Zeichen, Titel, Satz und
   Angabe teilen sich über die drei Spalten dieselben Zeilen (subgrid):
   Bricht ein Satz oder eine Angabe in einer Sprache um, rücken die
   anderen nicht aus der Linie. */
.pledges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: calc(var(--gap) * 2);
    list-style: none;
}

.pledges > li,
.pledge {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
}

.pledge {
    color: var(--text);
}

.pledge-sign {
    display: block;
    width: 48px;
    height: 40px;
    margin-bottom: 24px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pledge-flag {
    width: 36px;
    height: 36px;
    margin: 2px 0 26px;
}

.flag-ground {
    fill: var(--swiss-red);
    stroke: none;
}

.flag-cross {
    fill: var(--white);
    stroke: none;
}

.pledge-title {
    font-size: var(--t3);
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.2;
    /* Am Telefon bricht «OWASP ASVS 5.0.» sonst vor der Version um. */
    text-wrap: balance;
}

.pledge:hover .pledge-title {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}

.pledge-text {
    margin-top: 12px;
    max-width: 26em;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
}

.pledge-proof {
    padding-top: 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Das Team in Kurzform: Name, Rolle und wofür jede Person einsteht. */
.people.team-brief .item-role {
    margin-bottom: 12px;
}

/* Sechs Spalten tragen die Namen erst ab 1200 px auf einer, höchstens zwei
   Zeilen; darunter stehen die Kernmodule in zwei Reihen zu drei. */
@media (max-width: 1199px) {
    .core-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .core-module {
        gap: 32px;
    }
}

@media (max-width: 1100px) {
    .references-label {
        grid-column: 1 / span 3;
    }

    .references-list {
        grid-column: 4 / -1;
    }
}

@media (max-width: 960px) {
    /* Schmal stehen Etikett und Logos in einer Zeile, nicht untereinander:
       Ein Etikett allein über einem einzelnen Logo liess das Band
       zerfallen. Es rückt an die Einleitung der Eröffnung heran,
       mit der es auf demselben Papier steht. */
    .opening:has(+ .references) {
        padding-bottom: 40px;
    }

    .references {
        padding-block: 0 56px;
    }

    .references-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px 24px;
    }

    /* Schmal stehen die Zusagen untereinander, das Zeichen links neben
       dem Text wie auf nilotec.ch. Zu dritt nebeneinander bräche hier
       jeder Titel auf drei Zeilen. */
    .pledges {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }

    .pledges > li {
        display: block;
        grid-row: auto;
    }

    .pledge {
        grid-row: auto;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 18px;
    }

    .pledge-sign {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 40px;
        height: 34px;
        margin: 0;
    }

    .pledge-flag {
        justify-self: center;
        width: 30px;
        height: 30px;
        margin: 2px 0 0;
    }

    .pledge > span {
        grid-column: 2;
    }

    .pledge-text {
        margin-top: 8px;
    }

    .pledge-proof {
        padding-top: 10px;
    }
}

@media (max-width: 640px) {
    .film-frame {
        border-radius: 12px;
    }

    .references-list {
        gap: 20px 32px;
    }

    .references-logo img {
        height: calc(var(--logo-h, 26px) * 0.85);
    }

    /* Am Telefon zwei Spalten; ein langer Name bricht in seiner Zelle um. */
    .core-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .core-module {
        gap: 20px;
        padding: 18px 16px;
    }

    .core-module-icon {
        width: 26px;
        height: 26px;
    }

    .core-module-name {
        font-size: 15px;
    }

    .module-more {
        margin-top: 20px;
        font-size: 15px;
    }

    .pledge-text {
        font-size: 15px;
    }
}

/* ── 05 Fragen ──────────────────────────────────────────── */

.faq-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
}

.faq-side {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--head-h) + 40px);
}

.faq-side .lead {
    margin-top: 28px;
}

.faq-side .text-link {
    margin-top: 28px;
}

.faq-list {
    grid-column: 6 / -1;
    margin-top: 0;
    border-top: 0;
    counter-reset: faq;
}

/* Die Fragen stehen frei untereinander; die offene trägt eine
   leichte Fläche statt einer Linie. */
.faq-item,
.faq-item[open] {
    border-bottom: 0;
    border-radius: 8px;
    transition: background-color 0.35s ease;
}

.faq-item[open] {
    background: var(--ground);
}

.faq-item::after {
    display: none;
}

.faq-item summary {
    padding: 22px 24px 22px 64px;
    font-size: var(--t3);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.faq-item summary::before {
    left: 24px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-muted);
}

.faq-item[open] summary::before,
.faq-item summary:hover::before {
    color: var(--text);
}

.faq-toggle,
.faq-item[open] .faq-toggle {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background: none;
}

.faq-toggle::before,
.faq-item[open] .faq-toggle::before {
    width: 14px;
    height: 1.5px;
    background: var(--text);
}

.faq-toggle::after,
.faq-item[open] .faq-toggle::after {
    width: 1.5px;
    height: 14px;
    background: var(--text);
}

.faq-answer p {
    max-width: 40em;
    padding: 0 24px 26px 64px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--text-soft);
}

/* Auf Papier (Kapitel 04 von /sicherheit) trüge die offene Frage den Grund
   des Kapitels und höbe sich nicht ab; dort trägt sie Weiss. */
.paper .faq-item[open] {
    background: var(--white);
}

/* ── Fusszeile ──────────────────────────────────────────── */

.site-footer {
    background: var(--navy-deep);
    border-top: 0;
}

/* Im Hintergrund des Fusses steht die L4-Marke gross, unten links und von
   der Unterkante angeschnitten (LAW4-1689). Sie macht den Fuss nicht
   höher: Er endet mit der Firmenzeile, die Marke liegt dahinter. Ihr Blau
   liegt knapp über dem Grund, so dass die Firmenzeile auch über ihr 4.5:1
   hält. Gezeichnet wird sie mit der Datei aus dem Kopf des Fusses als
   Maske, keine zweite Fassung der Geometrie; die Maske ist so breit, dass
   die Marke doppelt so hoch wäre wie die Fläche, zu sehen ist ihre obere
   Hälfte. */
.site-footer {
    position: relative;
    overflow: hidden;
}

.footer-top,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-mark {
    position: absolute;
    inset: auto 0 0;
    height: clamp(100px, 12vw, 176px);
    pointer-events: none;
}

.footer-mark::before {
    content: "";
    display: block;
    height: 100%;
    aspect-ratio: 47.41 / 28.185;
    background: #0f1d40;
    -webkit-mask: url("/assets/law4-mark-white.svg?v=20261123-1") left top / 100% auto no-repeat;
    mask: url("/assets/law4-mark-white.svg?v=20261123-1") left top / 100% auto no-repeat;
}

.footer-top {
    gap: var(--gap);
    padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 56px);
}

/* Die Bildmarke führt auch hier zurück zur Startseite, wie oben in der
   Kopfzeile (LAW4-1599). */
.footer-home {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-logo {
    display: block;
    height: 38px;
    width: auto;
}

/* Der Fokusring in Navy verschwände auf dem dunklen Fuss. */
.site-footer a:focus-visible {
    outline-color: var(--on-dark);
}

.footer-tag {
    max-width: 26em;
    font-size: 15px;
    color: var(--on-dark-muted);
}

.footer-col-title {
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(243, 242, 238, 0.42);
}

.footer-col a {
    font-size: 15px;
    color: rgba(243, 242, 238, 0.78);
}

.footer-bottom {
    padding-block: 20px 26px;
    border-top: 0;
}

.footer-bottom::before {
    display: none;
}

.footer-firm,
.footer-ch {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--on-dark-muted);
}

.footer-ch-cross {
    border-radius: 2px;
}

/* Die Firma hinter LAW4 steht unten auf jeder Seite, nicht erst im
   Impressum (LAW4-1611): Wer prüft, mit wem er es zu tun hat, sucht Firma,
   Adresse und Handelsregister dort. Eine Zeile, die Angaben durch
   Mittelpunkte getrennt. Umbrochen wird nur nach einem Mittelpunkt, nie
   in einer Angabe; so steht keiner am Anfang einer Zeile. */
.footer-firm {
    display: flex;
    flex-wrap: wrap;
}

.footer-firm > span {
    white-space: nowrap;
}

/* Der Mittelpunkt ist Gliederung, kein Text: Vorgelesen wird er nicht. */
.footer-firm > span:not(:last-child)::after {
    content: "·";
    content: "·" / "";
    margin-inline: 0.7em;
}

.footer-firm a {
    color: var(--on-dark-soft);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(243, 242, 238, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-firm a:hover {
    color: var(--on-dark);
}

/* Tablet und Telefon: jede Angabe auf ihrer eigenen Zeile, ohne
   Mittelpunkte. Darüber passen Firma, Strasse und UID in jeder Sprache auf
   eine Zeile. */
@media (max-width: 860px) {
    .footer-firm {
        flex-direction: column;
    }

    .footer-firm > span:not(:last-child)::after {
        content: none;
    }
}

/* Der Knopf «nach oben» schwebt unten rechts über der letzten Zeile.
   Wo der Seitenrand schmaler ist als er, hält die Zeile Abstand. */
@media (max-width: 1460px) {
    .footer-bottom {
        padding-right: max(var(--pad), 88px);
    }
}

/* Tablet: die Marke über die ganze Breite, darunter die drei Spalten
   nebeneinander. main.css setzt hier zwei, und «Rechtliches» rutschte
   allein in eine dritte Zeile. */
@media (max-width: 860px) {
    .footer-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 40px;
    }
}

/* Telefon: zwei Spalten statt einer langen Liste. */
@media (max-width: 520px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }
}

/* Kontakt-Links sind Zeilen im Fliesstext; die Fläche, die auf einen
   Finger reagiert, wird grösser als die Schrift, ohne die Zeile zu
   verschieben. */
.footer-contact a,
.footer-firm a {
    padding-block: 8px;
    margin-block: -8px;
}

/* ── Schmale Bildschirme ────────────────────────────────── */

@media (max-width: 1100px) {
    .chapter-title {
        grid-column: 1 / span 8;
    }

    .chapter-lead {
        grid-column: 9 / -1;
    }

    .items.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    :root {
        --head-h: 60px;
    }

    .chapter-head,
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .chapter-title,
    .chapter-lead,
    .faq-side,
    .faq-list {
        grid-column: 1;
    }

    /* Bild und Text des Portals stehen ab hier untereinander, wie die
       Module auf /workspace: Das Produktbild zeigt einen Ausschnitt in
       Lesegrösse und braucht dafür die Breite (LAW4-1608). */
    .split {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .split-visual,
    .split-copy {
        grid-column: 1;
    }

    .items.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .faq-side {
        position: static;
        margin-bottom: 24px;
    }

    /* Website und Postfach untereinander, an der Satzkante und nicht
       breiter als ein Tablet im Hochformat sie zeigen würde. */
    .story-stage .stage-plugin,
    .story-stage .stage-workspace,
    .story-stage .stage-arrow {
        align-self: flex-start;
        width: 100%;
        max-width: 640px;
        margin-inline: 0;
    }

    .stage-arrow i {
        border-radius: 4px;
        border-color: rgba(11, 26, 58, 0.15);
        background: none;
        color: var(--text);
    }

    /* Die Verbindung bleibt eine Zeile: Advice links, Workspace rechts,
       die Linie dazwischen. Was über sie läuft, steht mittig darunter.
       Hochkant gestellt las sie sich als lose Liste. */
    .product-flow {
        flex-direction: row;
        align-items: flex-start;
        max-width: 640px;
        margin-inline: 0;
        padding-bottom: 44px;
    }

    .flow-line {
        margin: 13px clamp(16px, 4vw, 32px) 0;
    }

    .flow-caption {
        top: 48px;
    }

    .process {
        margin-right: 0;
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-right: 0;
        row-gap: 48px;
    }

    .faq-item summary {
        padding-left: 52px;
    }

    .faq-item summary::before {
        left: 16px;
    }

    .faq-answer p {
        padding-left: 52px;
    }
}

/* Bis 720 Pixel stehen die beiden Produkte untereinander. */
@media (max-width: 720px) {
    .product-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .items.three,
    .items.four,
    .process-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Zwei Zahlen nebeneinander brauchen die Breite für ihre Etiketten
       («Mitgründer:innen» ist ein Wort). */
    .figures {
        column-gap: var(--gap);
    }

    .opening {
        padding-top: calc(var(--head-h) + 44px);
    }

    .btn {
        height: 50px;
        font-size: 14.5px;
    }

    /* Knöpfe in voller Breite: zwei verschieden lange Knöpfe
       untereinander lesen sich als Versehen. */
    .actions > .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    /* main.css stellt die Verbindung hier hochkant. Sie bleibt liegen,
       wie auf dem Tablet. */
    .flow-line {
        flex: 1;
        width: auto;
        max-width: none;
        height: 1.5px;
        margin-block: 13px 0;
        background: rgba(11, 26, 58, 0.22);
    }

    .flow-caption {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    /* Der Ablauf hochkant: die Knoten an einer Linie, links, der Text
       daneben. Ohne Linie hingen die Quadrate verloren im Weissraum. */
    .process-steps {
        row-gap: 0;
    }

    .process-step {
        position: relative;
        padding: 0 0 40px 34px;
    }

    .process-step:last-child {
        padding-bottom: 0;
    }

    .process-step:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 20px;
        bottom: 6px;
        width: 2px;
        border-radius: 2px;
        background: rgba(11, 26, 58, 0.12);
    }

    .process-num {
        position: static;
        padding-top: 0;
        margin-bottom: 10px;
    }

    .process-num::before {
        top: 3px;
    }

    .faq-item summary {
        padding: 18px 16px 18px 44px;
    }

    .faq-item summary::before {
        left: 12px;
    }

    .faq-answer p {
        padding: 0 16px 22px 44px;
    }
}

/* ── Unterseiten ────────────────────────────────────────── */

/* Die Seite, auf der man steht, trägt in der Kopfzeile eine Marke. */
@media (min-width: 1101px) {
    .mast-nav > a[aria-current="page"] {
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 8px;
    }
}

@media (max-width: 1100px) {
    .mast-nav > a[aria-current="page"]::after {
        content: "";
        width: 8px;
        height: 8px;
        align-self: center;
        background: var(--navy);
    }
}

/* Navy Fläche mit Zahlen. */
.band {
    background: var(--navy);
    color: var(--on-dark);
    padding-block: clamp(48px, 5vw, 72px);
}

.figures.light {
    margin-bottom: 0;
}

.figures.light .figure-val {
    color: var(--on-dark);
}

.figures.light .figure-label {
    color: var(--on-dark-muted);
}

/* Fliesstext: ein Satz als Anker links, die Erzählung rechts. */
.prose-split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
}

.prose-quote {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--head-h) + 40px);
    /* Unter dem Kapiteltitel, damit der Satz nicht als zweiter Titel liest. */
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
    text-wrap: balance;
}

.prose {
    grid-column: 7 / -1;
}

.prose p {
    max-width: 36em;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-soft);
}

.prose p + p {
    margin-top: 1.1em;
}

.prose strong {
    font-weight: 600;
    color: var(--text);
}

/* Zwei Spalten für Punkte mit längerem Text. */
.items.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
}

/* Punkte als Kacheln mit Icon (LAW4-1709, /sicherheit Kapitel 01). Die
   Kachel ist eine Fläche im Grund des anderen Kapitels, ohne Rahmen und
   ohne Schatten: Papier im weissen Kapitel, Weiss im Papier-Kapitel. Das
   Icon steht auf dem Grund des Kapitels, damit es sich von der Kachel
   abhebt. Die Icons sind Linien im 24er Raster, Strich und Farbe kommen
   von hier, nicht aus dem Markup. */
.items.tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.items.tiles > .item {
    padding: clamp(24px, 2.6vw, 40px);
    border-radius: 8px;
    background: var(--ground);
}

.paper .items.tiles > .item {
    background: var(--white);
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: clamp(20px, 2vw, 28px);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
}

.paper .item-icon {
    background: var(--ground);
}

.item-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Team: Name, Rolle, Werdegang. Über dem Namen steht später ein Porträt;
   bis dahin stand dort ein Monogramm, und vier Initialen-Kacheln sahen wie
   fehlende Fotos aus. */
.people .item-title {
    margin-bottom: 6px;
}

.people .item-role {
    margin-bottom: 18px;
}

.people .item-text {
    font-size: 15px;
}

.place {
    margin-top: clamp(56px, 6vw, 88px);
}

/* ── Kontakt (/kontakt, LAW4-1689) ──────────────────────── */

/* Die E-Mail ist der Inhalt der Seite und steht deshalb schon in der
   Eröffnung, rechts neben Titel und Einleitung, im ersten Bildschirm.
   Vorher standen Telefon und E-Mail als zwei Flächen ein Kapitel tiefer
   unter «Kontakt», und Einleitung, Kapitel und Flächen sagten dreimal
   «Wunschtermin, Antwort innert 24 Stunden». Kontakt läuft per E-Mail:
   Eine Telefonnummer der Firma gibt es noch nicht, die Nummer steht nur
   als leise Zeile unter der Fläche. */
.contact-opening-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: clamp(40px, 5vw, 56px);
    align-items: end;
}

.contact-intro {
    grid-column: 1 / span 6;
}

.contact-intro .lead {
    margin-top: clamp(28px, 4vh, 40px);
}

.contact-aside {
    grid-column: 8 / -1;
}

/* Die ganze Fläche ist der Link. */
.way {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(200px, 17vw, 240px);
    padding: clamp(28px, 2.8vw, 40px);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: background-color 0.3s ease;
}

.way:hover {
    background: #fbfbf9;
}

.way-label {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.way-value {
    margin-top: auto;
    padding-top: 36px;
    font-size: var(--t2);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.way-hint {
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text-soft);
}

.way-go {
    position: absolute;
    top: clamp(28px, 2.8vw, 40px);
    right: clamp(28px, 2.8vw, 40px);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.35s var(--ease-out);
}

.way:hover .way-go {
    transform: translateX(6px);
}

/* Die Nummer in der Grösse der Bildunterschriften, nicht als Fläche. */
.contact-phone {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
}

.contact-phone a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(11, 26, 58, 0.3);
    text-underline-offset: 3px;
}

/* Schmales Desktop-Fenster: Text und E-Mail hälftig, wie Einleitung und
   Knöpfe in den übrigen Eröffnungen. */
@media (max-width: 1280px) {
    .contact-aside {
        grid-column: 7 / -1;
    }
}

/* Darunter steht die E-Mail unter dem Text, nicht breiter als er. */
@media (max-width: 1100px) {
    .contact-intro,
    .contact-aside {
        grid-column: 1 / -1;
    }

    .contact-aside {
        max-width: 560px;
    }
}

/* Ein Link unter der Verbindung Advice → Workspace, mittig wie sie. */
.flow-more {
    margin-top: clamp(32px, 4vw, 48px);
    text-align: center;
}

/* Produktseiten: ein Modul je Zeile — Text und echte Oberfläche
   nebeneinander, die Seiten wechseln von Zeile zu Zeile. */
.module-rows {
    display: grid;
    row-gap: clamp(88px, 10vw, 152px);
}

.module-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
}

.module-copy {
    grid-column: 1 / span 4;
}

.module-visual {
    grid-column: 6 / -1;
}

.module-row.reversed .module-copy {
    grid-column: 9 / -1;
    grid-row: 1;
}

.module-row.reversed .module-visual {
    grid-column: 1 / span 7;
    grid-row: 1;
}

.module-copy .dash {
    margin-top: 20px;
}

/* ── Produktbilder (LAW4-1608) ──────────────────────────── */

/* Ein Bildsystem für jedes Produktbild auf /workspace und /advice,
   nach dem Muster von Abacus LawLite: ein Ausschnitt der Oberfläche in
   Lesegrösse statt des ganzen, verkleinerten Fensters. Derselbe Rahmen
   für alle: eine helle, gerundete Fläche ohne Geräterahmen und ohne
   Schatten, darin das Fenster der Anwendung, oben links eingerückt und
   rechts und unten angeschnitten. Dasselbe Format für alle (4:3), darunter
   eine Zeile, die sagt, was man sieht. Den Ausschnitt und den Massstab
   setzt css/main.css (.shot-window), den Inhalt js/main.js. */
.shot {
    margin: 0;
}

.shot-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 40px 0 0 32px;
    border-radius: 16px;
    background: #eceae4;
}

/* Die Browserleiste fehlt im Ausschnitt; die Marke steht auf der Fläche. */
.shot-tag {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /* --text-muted hätte auf der Fläche nur 4.0:1. */
    color: var(--text-soft);
}

.shot-caption {
    margin-top: 14px;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
}

/* Am Telefon steht jedes Produktbild quadratisch: In 4:3 bliebe unter
   Kopfleiste und Reitern kaum Inhalt. */
@media (max-width: 640px) {
    .shot-frame {
        aspect-ratio: 1;
        padding: 36px 0 0 20px;
        border-radius: 12px;
    }

    .shot-tag {
        top: 10px;
        right: 12px;
    }
}

/* 404: nur die Marke oben, die Eröffnung mittig in der Höhe, unten die
   Firmenzeile des Fusses. Sie ist etwa so hoch wie die Kopfzeile und hält
   ihr das Gegengewicht, das vorher ein Polster in Kopfhöhe trug. */
.lost-page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.lost-head {
    display: flex;
    align-items: center;
    height: var(--head-h);
}

.opening.lost {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 0;
}

@media (max-width: 960px) {
    .prose-split {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .prose-quote,
    .prose {
        grid-column: 1;
    }

    .prose-quote {
        position: static;
    }

    .flow-more {
        text-align: left;
    }

    .module-row,
    .module-row.reversed {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .module-copy,
    .module-visual,
    .module-row.reversed .module-copy,
    .module-row.reversed .module-visual {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .items.two {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .items.tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .way {
        min-height: 0;
    }
}

/* ── Sicherheit (LAW4-1697) ─────────────────────────────── */

/* /sicherheit beantwortet die Fragen einer Kanzlei vor der Auslagerung in
   fünf Kapiteln und den Unterlagen, jede Antwort einmal. Einen Überblick
   als Kacheln, eine stehende Leiste «Auf dieser Seite» und aufklappbare
   Einzelheiten gibt es seit LAW4-1697 nicht mehr: Sie sagten dasselbe
   bis zu viermal. */

/* Der Stand der Seite steht neben der Einleitung, in der Schrift der
   Etiketten. */
.page-stand {
    grid-column: 8 / -1;
    justify-self: end;
    padding-bottom: 0.35em;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Die Empfänger als Tabelle: Dienst, Zweck, Daten, Ort, Zeitpunkt. Der
   Baustein ist die Vergleichstabelle von /preise; die Köpfe sind hier
   Spaltennamen, keine Abos, und stehen deshalb in der Etikettenschrift. */
.plan-table.recipients {
    min-width: 880px;
}

.plan-table.recipients thead th {
    padding-bottom: 14px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.plan-table.recipients thead th:first-child {
    width: 15%;
}

.plan-table.recipients thead th:nth-child(2) {
    width: 22%;
}

.plan-table.recipients thead th:nth-child(3) {
    width: 31%;
}

.plan-table.recipients thead th:nth-child(4) {
    width: 16%;
}

.plan-table.recipients tbody th,
.plan-table.recipients tbody td {
    padding-block: 12px;
    line-height: 1.45;
}

/* Auf Papier trägt die stehende Spalte das Papier, sonst stünde sie als
   weisser Streifen da. */
.paper .plan-table th[scope="row"],
.paper .plan-table thead th:first-child {
    background: var(--ground);
}

/* Wo diese Seite für einen Dienst keinen Ort nennt, sagt die Zelle das. */
.not-stated {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Unter der Tabelle stehen Punkte, die zu ihr gehören (Zugriff nach
   US-Recht, neue Dienste); der Abstand ist der zwischen zwei Reihen von Punkten. */
.after-table {
    margin-top: 56px;
}

@media (max-width: 1100px) {
    .page-stand {
        grid-column: 1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .plan-table.recipients {
        min-width: 920px;
    }

    .plan-table.recipients thead th:first-child {
        width: 132px;
    }

    .after-table {
        margin-top: 40px;
    }
}

/* ── Workspace: Übersicht (LAW4-1606) ───────────────────── */

/* Was der Workspace enthält, auf einen Blick: vier Gruppen entlang des
   Mandats als .items.four, je Eintrag ein Name und ein Satz. Hier steht
   nur die Liste in einer Gruppe. Ein Name mit Pfeil springt zu seinem
   Abschnitt weiter unten; was keinen eigenen Abschnitt hat, steht ohne
   Pfeil und ohne Link. Unterstrichen wird erst beim Zeigen, sonst läse
   sich die Übersicht als Wand aus Links. */
.overview-list {
    display: grid;
    row-gap: 16px;
    margin-top: 20px;
}

/* Vier Spalten nebeneinander: Der Gruppentitel bekommt Platz für zwei
   Zeilen, damit die Einträge aller Gruppen auf derselben Höhe beginnen,
   auch wenn ein Titel umbricht. Er steht oben, direkt unter seiner
   Nummer: Unten bündig begannen die umbrechenden Titel eine Zeile höher
   als die einzeiligen, und die Kopfzeile der Gruppen lief schräg. */
@media (min-width: 1101px) {
    .contents-overview .item-title {
        min-height: 2.4em;
    }
}

.overview-name {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text);
}

a.overview-name {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a.overview-name:hover,
a.overview-name:focus-visible {
    text-decoration-color: currentColor;
}

.overview-name span {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.overview-text {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-soft);
}

/* Die Sprungziele halten unter der Kopfzeile an, nicht dahinter. */
.module-row[id],
.items > .item[id],
.product[id] {
    scroll-margin-top: calc(var(--head-h) + 32px);
}
