/* tagwerk landing page — caliora.org/tagwerk
   Palette = die Dark-Mode-Werte der App (Frontend/Tagwerk/wwwroot/css/tagwerk.css).
   Die Seite hat genau ein Theme: das der App. */

/* ---------- Fonts ----------
   IBM Plex Mono kommt aus der App und bringt den vollen Zeichensatz mit — sie setzt die
   Notizen, und darin steht der Kreispfeil „↻" des Wiederholungs-Badges, den ein Latin-Subset
   nicht hätte.

   Space Grotesk und Inter sind Latin-Subsets (fontsource), zusammen 93 statt 388 KB.
   Was darin fehlt, sind Zeichen jenseits von Latin-1 und Interpunktion; im Fließtext
   trifft das die Pfeile „→"/„←" der Textlinks, die dann aus der System-Schrift kommen.
   Bei einem Pfeil ist das nicht zu sehen, bei 300 KB Ladezeit schon.

   Space Grotesk ist die variable Fassung: eine Datei für 600 und 700 statt zweier
   statischer — das Release hat ohnehin kein SemiBold. */

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/SpaceGrotesk-Variable.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}

/* ---------- Design-Tokens (aus der App) ---------- */

:root {
    --bg: #171d24;            /* --window-background */
    --surface: #1d242c;       /* --background */
    --surface-2: #232b34;     /* --secondary-background */
    --surface-3: #2a333d;     /* --tertiary-background */
    --line: rgba(255, 255, 255, 0.09);

    --text: #e4e9ec;
    --muted: #8b97a0;
    /* Der leiseste Ton der Seite, und er muss trotzdem lesbar sein. War #5c6870 und stand damit
       bei 2,96:1 auf --bg und 2,74:1 auf --surface — WCAG AA verlangt 4,5:1 für Fließtext, und
       getragen hat diese Farbe Fußnoten, Bildunterschriften, die Paragraphennummern der
       Formatspezifikation, die Kommentare in den Codebeispielen und jede Fußzeile. Also nichts
       Dekoratives: alle achtzehn Verwendungen sind `color`.

       #808c94 ist der kleinste Schritt, der reicht (4,55:1 auf --surface, 4,93:1 auf --bg) — nicht
       der hellste, der schön wäre, weil die Abstufung zu --muted #8b97a0 die Gliederung der Seite
       ist. Gemessen mit den Regeln aus tools/uicheck/invariants.js, die für die App längst gelten
       und die diese Seite nie jemand gefragt hatte. */
    --faint: #808c94;

    --mint: #5fd9b4;
    --amber: #f2b84b;
    --blue: #82aef5;
    --lavender: #b7a0ec;

    --btn-bg: #2fbf96;        /* --primary-button-bg */
    --btn-bg-hover: #29ab86;
    --btn-bg-active: #239a78;
    --btn-text: #06281f;      /* --primary-button-text */
    --wash: rgba(95, 217, 180, 0.18);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---------- Reset & Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Die Titelleiste ist auf schmalen Screens zweizeilig — Anker müssen darunter landen. */
    scroll-padding-top: 120px;
}

@media (min-width: 860px) {
    html { scroll-padding-top: 80px; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--mint); }

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

::selection { background: var(--wash); }

.container {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
    z-index: 100;
}

.skip-link:focus-visible { left: 0; }

/* ---------- Wortmarke ---------- */

.wordmark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.wordmark .cursor { color: var(--mint); }

/* ---------- Header / Nav ---------- */

/* Solide statt Glas: backdrop-filter auf einem sticky Element erzwingt eine eigene
   Compositing-Ebene, und Chromium malte dabei beim Scrollen sporadisch graue
   Rechtecke mitten in die Seite. Der Blur ist den Rendering-Fehler nicht wert. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-block: 10px;
}

.brand-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-right: auto;
}

.brand-by {
    color: var(--faint);
    font-size: 0.8rem;
    text-decoration: none;
    /* A link on its own line is a target, not a word in a sentence: 21 px of text needs a few
       pixels of padding to reach the 24 a finger is allowed to expect (WCAG 2.5.8). */
    padding: 5px 0;
}

.brand-by:hover { color: var(--muted); }

/* Auf schmalen Screens eine eigene, horizontal scrollbare Zeile unter der Marke —
   die Quick-Links sollen in der Titelleiste immer erreichbar sein, nicht erst ab
   Desktop-Breite. Ab 860 px rücken sie inline zwischen Marke und Sprachwahl. */
/* Scrolls sideways on a narrow screen; overflow-y is spelled out because setting one axis makes
   the browser compute the other to the same value, and a header that claims it can scroll
   vertically is a header that hides a link the day one is added. */
.nav-links {
    display: flex;
    gap: 4px;
    order: 10;
    flex-basis: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Und was nicht mehr hineinpasst, blendet aus, statt mitten im Wort abgeschnitten zu werden.
       Gemessen am 2026-09-12: bei 360 px stehen 484 px Links in 320 px Leiste, und das letzte
       sichtbare war „F/" — die abgeschnittene Hälfte von „FAQ". Erreichbar ist es (die Leiste
       scrollt, das war die eigentliche Messung), aber ein harter Schnitt sagt das nicht, er sagt
       „hier ist etwas kaputt": genau der erste Eindruck, den dieser Screenshot gemacht hat.

       Dieselbe Lösung wie in der App, wo dieselbe Lage schon einmal auffiel (.tw-filter-row in
       TasksPanel.razor.css, mit der Begründung „a hard cut in the middle of '#nachbar' reads like
       a rendering fault"). Die Scrollleiste selbst ist versteckt; der Verlauf ist das, was sagt,
       dass es weitergeht. */
    mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent);
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Sprachumschalter ---------- */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
}

.lang-switch a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.lang-switch .lang-current {
    color: var(--mint);
    padding: 4px 6px;
}

.lang-sep { color: var(--faint); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    /* Transparent rather than none: the ghost variant draws a 1 px border, and a primary button
       beside it in the same row has to be exactly as tall. */
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
}

.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary:active { background: var(--btn-bg-active); }

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover { background: var(--surface-3); }

.btn-small { padding: 8px 14px; font-size: 0.85rem; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }

/* The sheet of platform marks the buttons <use>. The `hidden` attribute does not reach an <svg>
   (it is not an HTML element), and an <svg> without a size is 300 × 150, so the sprite stood as
   150 px of nothing above the header. Out of the flow and zero-sized; display: none would also
   hide it, but a <use> into a display: none tree is not drawn in every engine. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* The platform mark in front of a store button's label. Sized in em so it follows btn-small and
   btn-large, and drawn in currentColor so both stores get the same treatment. */
.btn-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

/* "Available for:" and one button per platform, in one row. The group owns the whole row so
   that a third button beside it (the syntax link in the hero) is never read as a platform. */
.platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 0 0 100%;
}

.platforms-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}

/* On a phone the label takes a line of its own; otherwise it shares the first line with one
   button and the other wraps alone under them. */
@media (max-width: 640px) {
    .platforms-label { flex: 0 0 100%; }
}

.cta-actions .platforms { justify-content: center; margin-top: 12px; }
/* The section gives every button a top margin; inside the group that would push the buttons
   off the label's centre line. The group carries it instead. */
.cta-actions .platforms .btn { margin-top: 0; }

/* Two large buttons and their gap are 325 px, a 360 px phone offers 320: a little less padding
   keeps them side by side rather than stacked. */
@media (max-width: 640px) {
    .cta-actions .btn-large { padding-left: 22px; padding-right: 22px; }
}

.text-link { color: var(--mint); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
    display: grid;
    gap: 40px;
    padding-block: 56px 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--mint);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    margin: 0 0 20px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.4em;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ---------- Demo-Karte ---------- */

.demo-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.demo-path {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.segmented {
    display: inline-flex;
    /* Eine dunkle Rinne statt einer hellen, und der Grund ist Lesbarkeit und nicht Geschmack: mit
       rgba(255, 255, 255, 0.06) hob die Leiste ihren eigenen Untergrund an, und die *nicht*
       gewählte Seite stand dann mit --muted bei 4,0:1 darauf — unter den 4,5:1 für AA. Die Farbe
       des Knopfs zu heben wäre der andere Weg gewesen und hätte den einzigen Tonunterschied zur
       gewählten Seite eingeebnet; die gewählte trägt Mint und --text und bleibt dadurch die
       lautere. Die Rinne dunkler zu machen ist auch die geläufigere Bauart. */
    background: rgba(0, 0, 0, 0.22);
    border-radius: 9px;
    padding: 3px;
}

.seg-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 5px 12px;
    cursor: pointer;
}

.seg-btn.active {
    background: rgba(47, 191, 150, 0.34);
    color: var(--text);
}

.demo-body {
    padding: 14px 6px;
    min-height: 340px;
}

/* Die Notiz: gestylter Klartext, wie im Editor der App */

.note-rendered, .note-raw {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}

.note-raw {
    padding: 0 14px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}

.note-line {
    padding: 0 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.tok-task { color: var(--mint); font-weight: 600; }
.tok-time { color: var(--amber); font-weight: 600; }
.tok-contact { color: var(--blue); }
.tok-tag { color: var(--lavender); }
.tok-forward { color: var(--mint); }
.tok-prio-high { color: var(--amber); font-weight: 700; }
.tok-prio-low { color: var(--blue); font-weight: 700; }
/* Like the app: underlined rather than coloured — the four hues already mean time,
   contact, tag and forward. */
.tok-link {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 2px;
}

.task-marker {
    color: var(--mint);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    padding: 0;
    /* The hit area is grown by the pseudo-element below, not by padding: a button is
       inline-block, so its padding would push the note's lines apart — and this note is here to
       look like a note. */
    position: relative;
}

/* A finger's worth of target without a pixel of layout. The demo asks people to tap these, and a
   line of monospace is 23 px tall: under the 24 a target needs, with less than that to the line
   above and below. An absolutely positioned box takes no space in the line and still catches the
   press. */
.task-marker::after {
    content: "";
    position: absolute;
    inset: -6px -3px;
}

.task-marker:hover { text-decoration: underline; }

.line-done .task-marker { opacity: 0.6; }

.line-done .task-body {
    text-decoration: line-through;
    color: color-mix(in srgb, currentColor 55%, transparent);
}

.line-dropped .task-body { color: color-mix(in srgb, currentColor 45%, transparent); }
.line-forwarded .task-body { color: color-mix(in srgb, currentColor 55%, transparent); }
.line-forwarded .tok-forward { color: var(--mint); }

.repeat-badge {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 0.45em;
    font-size: 0.86em;
    line-height: 1.35;
    white-space: nowrap;
    color: var(--muted);
}

.line-done .repeat-badge { text-decoration: line-through; }

.md-syntax { opacity: 0.45; }
.md-bold { font-weight: 600; }

/* Benannter Trenner: --- Titel --- */

.rule-titled {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0 14px;
}

.rule-line {
    flex: 1;
    border-top: 1px solid var(--line);
}

.rule-title {
    color: var(--muted);
    font-size: 0.92em;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.demo-hint {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.8rem;
}

/* ---------- Sektionen ---------- */

.section { padding-block: 72px; }

.section-lead {
    color: var(--muted);
    max-width: 40em;
    margin-bottom: 2em;
}

.section-narrow { max-width: 760px; }

/* ---------- Syntax ---------- */

.syntax-table {
    display: grid;
    gap: 10px;
}

.syntax-row {
    display: grid;
    gap: 4px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
}

.syntax-example {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.syntax-example s { text-decoration-thickness: 1px; }

.syntax-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.dim { color: color-mix(in srgb, var(--text) 55%, transparent); }
.tok-task.dim { color: color-mix(in srgb, var(--mint) 60%, transparent); }
.tok-repeat { color: var(--muted); }

.inline-code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    /* Eigene Farbe statt der geerbten, und das ist kein Detail: der Kasten steht auf --surface-3,
       der hellsten Fläche der Seite, und geerbt hat er meist --muted — 4,29:1, also knapp unter
       den 4,5:1, die AA verlangt. Auf format.html sind das 209 Fundstellen.

       --text und nicht ein etwas helleres Grau, weil die Richtung ohnehin falsch war: `#tag` oder
       `R/P1W` ist der Gegenstand des Satzes, in dem es steht, und war leiser gesetzt als der Satz.
       Jetzt 10,5:1 und das Auffälligste in der Zeile, was es sein soll. */
    color: var(--text);
    background: var(--surface-3);
    border-radius: 5px;
    padding: 1px 5px;
}

/* A signing fingerprint is 95 characters with no break opportunity in them; at 360 px it pushed
   the whole Android page sideways. It may break anywhere, because it is compared, not read. */
.inline-code.fingerprint { overflow-wrap: anywhere; }

.syntax-footnote {
    color: var(--faint);
    font-size: 0.88rem;
    margin-top: 1.6em;
}

/* The way from the overview of the syntax to the whole of it — a button, because the paragraph
   above ends the section and a link inside it read as a footnote to the footnote. */
.syntax-more {
    margin-top: 1.2em;
}

/* ---------- Split layout (tasks, data) ---------- */

/* The example sits flush with the top of the heading rather than floating
   in the middle of it: centred, a short panel beside a long list of bullets
   starts halfway down the section with nothing above it. */
.split {
    display: grid;
    gap: 40px;
    align-items: start;
}

.split-copy p { color: var(--muted); }
.split-copy p strong { color: var(--text); }

.feature-list {
    margin: 0 0 1em;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
}

.feature-list li strong { color: var(--text); }

.feature-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--mint);
}

.fineprint {
    color: var(--faint);
    font-size: 0.88rem;
}

.visual-caption {
    color: var(--faint);
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

/* ---------- Aufgaben-Mock ---------- */

.mock-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    font-size: 0.85rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.mock-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.chip {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

.chip-active {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 600;
}

.chip-tag { color: var(--lavender); font-family: var(--font-mono); }
.chip-contact { color: var(--blue); font-family: var(--font-mono); }

.mock-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 10px 0 6px;
}

.mock-overdue { color: var(--amber); }

.mock-glass-btn {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(35, 43, 52, 0.85);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 10px;
}

.mock-day {
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 500;
    margin: 8px 0 4px;
}

.mock-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 8px;
}

.mock-task:hover { background: var(--surface-2); }

.mock-box {
    flex: none;
    width: 17px;
    height: 17px;
    border: 2px solid var(--mint);
    border-radius: 4px;
}

.mock-box.prio-high { border-color: var(--amber); }
.mock-box.prio-low { border-color: var(--blue); }

.mock-task-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.mock-chips .chip { font-size: 0.65rem; padding: 1px 8px; }

.mock-repeat {
    color: var(--faint);
    display: inline-flex;
}

.mock-repeat svg { width: 12px; height: 12px; }

/* Eine Zeile mit aufgedeckten Wisch-Aktionen */

.mock-task-swiped {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.mock-task-swiped:hover { background: transparent; }

.mock-task-swiped .mock-task-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    flex: 1;
    min-width: 0;
    background: var(--surface-2);
}

.mock-task-swiped { display: flex; align-items: stretch; }

.mock-actions {
    display: flex;
    flex: none;
}

.mock-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.mock-action svg { width: 17px; height: 17px; }

.act-done { background: var(--mint); color: var(--bg); }
.act-move { background: var(--blue); color: var(--bg); }
.act-drop { background: var(--surface-3); color: var(--muted); }

/* ---------- Datei-Karte ---------- */

.file-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 14px;
}

.file-tree, .file-shell {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.file-shell {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
}

.ft-dim { color: var(--faint); }

/* Im Terminal-Kasten steht derselbe Ton auf --surface-2 statt auf --surface, und das kostet die
   letzten 0,35 (4,16:1 statt 4,55:1). Fünf der sechs .ft-dim stehen auf dem Dateibaum und sind
   damit in Ordnung; die sechste ist eine grep-Ausgabe, also ein ganzer Satz, den jemand liest.
   --muted ist der nächste Schritt nach oben und trägt dort 4,79:1. */
.file-shell .ft-dim { color: var(--muted); }
.ft-active { color: var(--mint); font-weight: 600; }
.ft-prompt { color: var(--mint); font-weight: 600; }

/* ---------- Preis ---------- */

.price-quote {
    margin: 0 0 2em;
    padding: 18px 22px;
    border-left: 3px solid var(--mint);
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    max-width: 34em;
}

.price-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 1.2em;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}

.price-card-pro { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }

.price-card h3 { margin-bottom: 0.2em; }

.price-tag {
    color: var(--mint);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin-bottom: 1.2em;
}

.price-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.price-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.93rem;
}

.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mint);
    font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 12px;
    list-style-position: outside;
}

.faq summary:hover { background: var(--surface-2); }

.faq[open] summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }

.faq p {
    padding: 14px 18px;
    margin: 0;
    color: var(--muted);
}

/* ---------- Format-Spezifikation (format.html) ----------
   Eine lange Referenzseite: schmalere Spalte als die Landing-Page, Abschnitte mit
   verlinkbaren Nummern, und Beispiele im Mono-Block der Demo-Karte. */

.spec {
    max-width: 820px;
    padding-block: 48px 72px;
}

.spec h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.4em; }

.spec-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2em;
}

.spec-meta {
    color: var(--faint);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 2.5em;
}

.spec section { margin-top: 3em; scroll-margin-top: 100px; }

.spec h2 {
    font-size: 1.35rem;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    margin-bottom: 0.8em;
}

.spec h2 .spec-num,
.spec h3 .spec-num {
    font-family: var(--font-mono);
    color: var(--faint);
    font-weight: 400;
    margin-right: 0.5em;
}

.spec h3 {
    font-size: 1rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.spec p, .spec li { color: var(--muted); }
.spec p strong, .spec li strong { color: var(--text); }

.spec ul, .spec ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
    display: grid;
    gap: 6px;
}

.spec-toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
}

.spec-toc h2 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    border-top: 0;
    padding-top: 0;
    margin-bottom: 0.9em;
}

.spec-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    columns: 2;
    column-gap: 28px;
    display: block;
}

.spec-toc li {
    counter-increment: toc;
    font-size: 0.92rem;
    break-inside: avoid;
    margin-bottom: 4px;
}

.spec-toc li::before {
    content: counter(toc) ".";
    font-family: var(--font-mono);
    color: var(--faint);
    margin-right: 0.5em;
}

.spec-toc a { text-decoration: none; }
.spec-toc a:hover { text-decoration: underline; }

.spec-code {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.7;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 1.4em;
    overflow-x: auto;
    color: var(--text);
}

.spec-code .c { color: var(--faint); }

.spec-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.4em;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.spec-table th {
    color: var(--text);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.spec-table td { color: var(--muted); }
.spec-table td:first-child { white-space: nowrap; }

.spec-table code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    color: var(--text);
}

.spec-note {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--mint);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin: 0 0 1.4em;
    font-size: 0.92rem;
}

.spec-note strong { color: var(--text); }

.spec-back { margin-top: 3.5em; }

@media (max-width: 640px) {
    .spec-toc ol { columns: 1; }
}

/* ---------- Manual (docs/, built by tools/docs/build.mjs) ----------
   The spec column with a chapter list beside it. On a phone the list moves under the page
   rather than into a menu: a jump link at the top leads there, and nothing has to open. */

.docs-layout {
    display: grid;
    gap: 48px;
    padding-block: 40px 72px;
}

.docs-main.spec {
    max-width: 780px;
    padding-block: 0;
    min-width: 0;
}

.docs-jump { font-size: 0.9rem; margin-bottom: 1.2em; }

.docs-kicker {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 0.6em;
}

.docs-nav {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    font-size: 0.92rem;
}

.docs-nav ul { list-style: none; margin: 0; padding: 0; }

.docs-nav a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.docs-nav a:hover { color: var(--text); background: var(--surface-2); }

.docs-nav a[aria-current="page"] {
    color: var(--text);
    background: var(--surface-2);
    box-shadow: inset 2px 0 0 var(--mint);
}

.docs-nav-home { font-weight: 600; }

.docs-nav-group {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 1.4em 0 0.4em 10px;
}

@media (min-width: 960px) {
    .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }

    .docs-nav {
        order: -1;
        position: sticky;
        top: 88px;
        align-self: start;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        border-top: 0;
        padding-top: 0;
    }

    .docs-jump { display: none; }
}

.docs-onpage {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 1em;
    font-size: 0.92rem;
}

.docs-onpage-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.5em;
}

.docs-onpage ol { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; }
.docs-onpage a { text-decoration: none; display: inline-block; padding-block: 2px; }
.docs-onpage a:hover { text-decoration: underline; }

/* A list item is a grid item here (.spec ul is a grid), and a grid item is as wide as its widest
   content unless told otherwise — a code block inside a step then pushes the page sideways
   instead of scrolling inside its own box. */
.docs-main li { min-width: 0; }

/* A token or a marker in a table cell is one thing and is read as one; broken over two lines
   "09:30-" and "11:00" are two. The table's own wrapper scrolls on a phone instead. */
.docs-main .spec-table .inline-code { white-space: nowrap; }

.spec h4 { font-size: 0.95rem; margin: 1.6em 0 0.4em; color: var(--text); }

/* A screenshot. Portrait ones are a phone and are drawn at a phone's size rather than the
   column's, landscape ones are a desk and take the column. Each comes in the app's dark and
   light theme, and the reader's own setting picks — the app starts on "System" too. */
.shot { margin: 0 0 1.8em; }

.shot img {
    display: block;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.shot-portrait img { width: 100%; max-width: 300px; }
.shot-landscape img { width: 100%; }

.shot figcaption {
    color: var(--faint);
    font-size: 0.85rem;
    margin-top: 0.6em;
}

.callout {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--mint);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin: 0 0 1.4em;
    font-size: 0.94rem;
}

.callout > :last-child { margin-bottom: 0; }
.callout-tip { border-left-color: var(--blue); }
.callout-warning { border-left-color: var(--amber); }
.callout-pro { border-left-color: var(--lavender); }

.callout-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.3em;
}

blockquote.spec-note { margin-inline: 0; }
blockquote.spec-note > :last-child { margin-bottom: 0; }

kbd {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--text);
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}

.spec .docs-cards {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
    margin: 0 0 1.6em;
}

@media (min-width: 640px) {
    .spec .docs-cards { grid-template-columns: 1fr 1fr; }
}

.docs-card {
    display: block;
    height: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
}

.docs-card:hover { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.docs-card strong { display: block; color: var(--text); margin-bottom: 0.2em; }
.docs-card span { display: block; color: var(--muted); font-size: 0.9rem; }

.docs-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 3.5em;
}

.docs-pager a {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.docs-pager a:hover { background: var(--surface); }
.docs-pager small { display: block; color: var(--faint); font-size: 0.8rem; }
.docs-pager-next { grid-column: 2; text-align: right; }

.docs-meta {
    color: var(--faint);
    font-size: 0.85rem;
    margin-top: 2em;
}

/* ---------- Hinweis und Formular (Lizenz-Seite) ---------- */

/* Die Antwort auf etwas, das der Besucher gerade getan hat — abgeschickt, gekauft, abgebrochen.
   Deshalb Mint wie der Erledigt-Haken der App und nicht Amber: hier ist nichts schiefgegangen. */
.notice {
    background: color-mix(in srgb, var(--mint) 12%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 2em;
    color: var(--text);
}

.form { margin: 0 0 1.4em; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Umbrechend, nicht schrumpfend: auf dem Telefon steht der Knopf unter dem Feld, statt beide so
   schmal zu machen, dass in keins von beiden etwas passt. */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-input::placeholder { color: var(--faint); }
.form-input:hover { border-color: var(--surface-3); }


/* ---------- Warteliste ---------- */

/* The line under the store buttons that points the platforms they do not cover at the waitlist. */
.platforms-more {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.waitlist-platforms {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.waitlist-platforms legend { width: 100%; padding: 0; }

/* A whole label is the target, at the 44 px a finger needs: a bare checkbox is 13 px. */
.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
}

.check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--mint);
}

.waitlist-news { margin: 0 0 14px; color: var(--muted); }

/* The field only a bot fills in. Out of sight and out of reach, but inside the page: an element
   parked at -9999px is what the mobile overflow check exists to report. */
.waitlist-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- CTA ---------- */

.cta-section {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg), var(--surface));
    padding-block: 88px;
    text-align: center;
}

.cta-inner p {
    color: var(--muted);
    max-width: 32em;
    margin-inline: auto;
}

.cta-inner .btn { margin-top: 12px; }

/* Two stores, so the buttons need a gap of their own — inline-block would leave a
   text space and wrap without one. */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cta-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
    color: var(--faint) !important;
    margin-top: 16px !important;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 36px;
    background: var(--bg);
}

.footer-inner {
    display: grid;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-by { color: var(--faint); font-size: 0.85rem; }

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    /* Same reason as the brand link above: a row of links in a footer is a row of targets, and
       these were 22 px tall on a phone. The row grows by ten pixels, which a footer can spare. */
    padding: 5px 0;
}

.footer-links a:hover { color: var(--text); }

.footer-note {
    color: var(--faint);
    font-size: 0.8rem;
    margin: 0;
}

/* ---------- Responsiv: ab 860 px ---------- */

@media (min-width: 860px) {
    .nav-links {
        order: 0;
        flex-basis: auto;
        overflow: visible;
    }

    .hero {
        grid-template-columns: 1.05fr 1fr;
        align-items: center;
        padding-block: 80px 40px;
    }

    .split { grid-template-columns: 1fr 1fr; }

    .split-reverse .split-copy { order: 2; }
    .split-reverse .split-visual { order: 1; }

    .syntax-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: center;
    }

    .price-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
