/* ==========================================================================
   FAHRSCHULPORTAL: /desktop — die Desktop-App „FahrschulPortal Büro“
   ==========================================================================

   After /styles.css, /brand.css, /landing.css (header, footer, buttons,
   icons, the two app windows: .ln-desk-stage) and /legal.css (.pg-hero).
   Markup: src/lib/desktop-page.js. Script: js/desktop.js.

     .dk-get      the file for this computer, under the title
     .dk-feats    what the app does, six short entries
     .dk-files    every file: label, size, name, SHA-256 with a copy button
     .dk-cmds     the two commands that check a download

   Black page, hairlines, no boxes lifted to grey. The one white button is
   the download (or, before the release, the access request). Colour only
   as state — and on this page there is none. Checksums and commands are
   mono, they are meant to be compared character by character. Prefix `dk-`. */

[data-i="app-window"] { --m: url("/app/vendor/lucide/app-window.svg"); }
[data-i="keyboard"] { --m: url("/app/vendor/lucide/keyboard.svg"); }
[data-i="copy"] { --m: url("/app/vendor/lucide/copy.svg"); }
[data-i="square-terminal"] { --m: url("/app/vendor/lucide/square-terminal.svg"); }
[data-i="cloud"] { --m: url("/app/vendor/lucide/cloud.svg"); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.dk-hero { padding-bottom: 0; }
.dk-hero .ln-cta { margin-top: 32px; }
.dk-hero-note { max-width: 56ch; margin-top: 16px; color: var(--ink-faint); font-size: var(--t-md); line-height: 1.55; text-wrap: pretty; }
.dk-hero-note a { color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.dk-soon { display: inline-flex; align-items: center; gap: 10px; height: 34px; margin-top: 28px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); font-size: var(--t-base); font-weight: var(--w-medium); }
.dk-soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); }
.dk-get { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.dk-get .btn .ln-i { --ln-i: 17px; }
.dk-get-meta { margin-top: 12px; color: var(--ink-faint); font-size: var(--t-sm); }
.dk-get .dk-hero-note { margin-top: 6px; font-size: var(--t-base); }
@media (hover: hover) and (pointer: fine) { .dk-hero-note a:hover { color: var(--ink); text-decoration-color: var(--ink-faint); } }

/* ── The two windows ──────────────────────────────────────────────────── */
.dk-stage { width: min(100% - var(--ln-gut) * 2, var(--ln-max)); margin: 0 auto; }
.dk-stage .ln-desk-stage { margin-top: 56px; }
.dk-stage-note { margin-top: 18px; color: var(--ink-faint); font-size: var(--t-sm); text-align: center; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.dk-wrap { width: min(100% - var(--ln-gut) * 2, 960px); margin: 0 auto; }
.dk-section { padding-top: 104px; }
.dk-head { max-width: 62ch; margin-bottom: 28px; }
.dk-head p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

.dk-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dk-feat { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); }
.dk-feat:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.dk-feat-i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); }
.dk-feat-i .ln-i { --ln-i: 17px; }
.dk-feat h3, .dk-next h3 { font-size: 16px; font-weight: var(--w-semi); letter-spacing: -0.01em; }
.dk-feat p, .dk-next p { margin-top: 8px; color: var(--ink-muted); font-size: var(--t-md); line-height: 1.6; text-wrap: pretty; }

/* ── Downloads ────────────────────────────────────────────────────────── */
.dk-group + .dk-group { margin-top: 36px; }
.dk-group-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 18px; font-weight: var(--w-semi); }
.dk-group-h .ln-i { --ln-i: 18px; align-self: center; color: var(--ink-faint); }
.dk-group-h small { color: var(--ink-faint); font-size: var(--t-md); font-weight: 400; }
.dk-files { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dk-file { display: grid; gap: 10px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.dk-file-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dk-file-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.dk-file-what strong { font-size: 16px; font-weight: var(--w-semi); }
.dk-file-meta { color: var(--ink-faint); font-size: var(--t-base); }
.dk-yours { align-self: center; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 11px; font-weight: var(--w-semi); letter-spacing: .02em; }
.dk-file-get { flex: none; height: 34px; padding: 0 14px; gap: 8px; font-size: var(--t-base); }
.dk-file-get .ln-i { --ln-i: 15px; }
.dk-file-name { overflow-wrap: anywhere; color: var(--ink-faint); font-size: var(--t-sm); }
.dk-sha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.dk-sha-k { color: var(--ink-faint); font-size: var(--t-xs); font-weight: var(--w-semi); letter-spacing: .06em; text-transform: uppercase; }
.dk-sha-v { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; user-select: all; }
.dk-sha-none { grid-column: 2 / -1; color: var(--ink-faint); font-size: var(--t-base); }
.dk-file.is-soon .dk-sha { border-style: dashed; }

/* The copy button: small, quiet, says what happened. */
.dk-copy { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--r-sm); background: transparent; color: var(--ink-muted); font: inherit; font-size: var(--t-sm); font-weight: var(--w-medium); cursor: pointer; transition: color var(--d-fast) ease, border-color var(--d-fast) ease, transform var(--d-press, 120ms) var(--ease-out); }
.dk-copy .ln-i { --ln-i: 14px; }
.dk-copy:active { transform: scale(.96); }
.dk-copy.is-done { border-color: var(--ink-faint); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .dk-copy:hover { border-color: var(--line-strong); color: var(--ink); }
}

/* ── Datei prüfen ─────────────────────────────────────────────────────── */
.dk-steps { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.dk-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; gap: 12px; color: var(--ink-muted); font-size: var(--t-md); line-height: 1.6; }
.dk-steps span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: var(--t-sm); }
.dk-steps code, .dk-fine code { padding: 1px 5px; border: 1px solid var(--line); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: .9em; }
.dk-cmds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dk-cmd { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
.dk-cmd figcaption { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 120px 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: var(--t-base); font-weight: var(--w-medium); }
.dk-cmd figcaption .ln-i { --ln-i: 15px; color: var(--ink-faint); }
.dk-cmd pre { flex: 1; margin: 0; padding: 14px; overflow-x: auto; }
.dk-cmd code { color: var(--ink); font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.dk-cmd .dk-copy { position: absolute; top: 5px; right: 6px; }
.dk-fine { margin-top: 14px; color: var(--ink-faint); font-size: var(--t-base); }

/* ── Voraussetzungen, Was noch kommt ──────────────────────────────────── */
.dk-reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dk-req { padding: 22px 24px 4px 0; }
.dk-req + .dk-req { padding-left: 24px; border-left: 1px solid var(--line); }
.dk-req h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: var(--w-semi); }
.dk-req h3 .ln-i { --ln-i: 16px; color: var(--ink-faint); }
.dk-req ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.dk-req li { position: relative; padding-left: 16px; color: var(--ink-muted); font-size: var(--t-md); line-height: 1.55; }
.dk-req li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 1px; background: var(--ink-faint); }
.dk-next-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dk-next-item .dk-feat-i { margin: 0; border-style: dashed; color: var(--ink-muted); }

.dk-closing { margin-top: 120px; }

/* ── Smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .dk-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-feat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .dk-feat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .dk-cmds { grid-template-columns: minmax(0, 1fr); }
  .dk-reqs { grid-template-columns: minmax(0, 1fr); }
  .dk-req, .dk-req + .dk-req { padding: 20px 0 18px; border-left: 0; }
  .dk-req + .dk-req { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .dk-section { padding-top: 80px; }
  .dk-get, .dk-get .btn { width: 100%; }
  .dk-feats { grid-template-columns: minmax(0, 1fr); }
  .dk-feat, .dk-feat:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .dk-file-head { align-items: flex-start; }
  .dk-file-get span { display: none; }
  .dk-file-get { width: 38px; padding: 0; justify-content: center; }
  .dk-sha { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 8px 10px 12px; }
  .dk-sha-k { grid-column: 1 / -1; }
  .dk-sha-none { grid-column: 1 / -1; }
  .dk-copy span { display: none; }
  .dk-copy { width: 34px; justify-content: center; padding: 0; }
  .dk-cmd figcaption { padding-right: 56px; }
  .dk-closing { margin-top: 96px; }
}
