/* ================= FSP UI · Bausteine =================
   Gleiche Bausteine wie FOKUS (Namen und Maße übernommen), dazu Raster und Rahmen für Desktop. */

/* ---------- Schrift ---------- */
/* Kopfzeile über einer Überschrift: Monospace, Großbuchstaben, weit gesetzt (nur hier kommt JetBrains Mono vor) */
.kick { font: 500 12px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.kick.acc { color: var(--acc-ink); }
/* Seitenüberschrift: sehr fett, leicht schmal, Groß- und Kleinschreibung. Auf breiten Bildschirmen größer */
.title { font-family: var(--cond); font-weight: 900; font-size: clamp(48px, 7vw, 88px); line-height: .96; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.title.md { font-size: clamp(40px, 5vw, 64px); }
.title.sm { font-size: 32px; font-weight: 800; line-height: 1; }
.h2 { font: 700 17px/1.3 var(--sans); }
.lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.sub { font-size: 14px; color: var(--muted); line-height: 1.45; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.prose { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.prose p + p { margin-top: 12px; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Raster ---------- */
.wrap { width: 100%; max-width: calc(var(--w-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.text { max-width: calc(var(--w-text) + 2 * var(--gutter)); }
.wrap.app { max-width: calc(var(--w-app) + 2 * var(--gutter)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-hd { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- Flächen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card .card { background: var(--surface-2); }
.card.sel { background: var(--acc-soft); border-color: var(--acc); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r14); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile b { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.tile span { font-size: 12px; font-weight: 600; color: var(--muted); }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r12); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tcard b { color: var(--ink); font-weight: 600; }

/* Listenzeile: jede Zeile eine eigene kleine Karte, links Nummer oder Symbol, rechts Pfeil */
.lrows { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.lrow { position: relative; display: flex; align-items: stretch; width: 100%; min-height: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r12); overflow: hidden; text-align: left; color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s; }
a.lrow:hover { background: var(--surface-2); }
.lrow .cell { flex: none; width: 48px; background: var(--surface-2); border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 800 20px/1 var(--cond); color: var(--acc); }
.lrow .txt { flex: 1; min-width: 0; padding: 10px 12px 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.lrow .txt b { font: 600 16px/1.3 var(--sans); }
.lrow .txt > span:not(.kick) { font: 400 14px/1.35 var(--sans); color: var(--muted); }
.lrow .go { flex: none; align-self: center; width: 20px; height: 20px; margin-right: 12px; color: var(--muted); }

/* ---------- Knöpfe ---------- */
/* Hauptknopf: genau einer pro Bildschirm in der Akzentfarbe */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r12); background: var(--acc); color: var(--on-acc); font: 600 17px/1.2 var(--sans); text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.cta:hover { background: var(--acc-press); }
.cta:active { background: var(--acc-press); transform: scale(.985); }
.cta.block { display: flex; width: 100%; }
.cta svg { width: 20px; height: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r12); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; transition: background-color .15s, box-shadow .15s; }
.btn:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--muted); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }
.golink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--acc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.golink:hover { text-decoration-thickness: 2px; }

/* ---------- Marken ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: 600 12px/1 var(--sans); white-space: nowrap; }
.chip.solid { background: var(--acc); box-shadow: none; color: var(--on-acc); }
.chip.hot { box-shadow: inset 0 0 0 1px var(--acc2); color: var(--acc2); }
/* Statusmarke: Punkt ist nur Zugabe, der Zustand steht im Text */
.chip.stat { background: var(--surface-2); color: var(--ink); }
.chip.stat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.chip.stat.good::before { background: var(--good); }
.chip.stat.mid::before { background: var(--mid); }
.chip.stat.warn::before { background: var(--warn); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }

/* ---------- Auswahl ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r14); box-shadow: inset 0 0 0 1px var(--line); }
.seg > * { min-height: 36px; min-width: min-content; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font: 600 13px/1 var(--sans); text-decoration: none; }
.seg > [aria-current], .seg > [aria-pressed="true"] { background: var(--acc); color: var(--on-acc); font-weight: 700; }
.in { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r12); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.in:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }

/* ---------- Kopfleiste ---------- */
/* Streifen über der Kopfleiste, wenn die Seite unter die Statusleiste reicht */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(12, 16, 19, .94); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; flex: none; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a:not(.seg a) { display: none; min-height: 44px; padding: 0 12px; align-items: center; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.topnav a:not(.seg a):hover { color: var(--ink); }
@media (min-width: 760px) { .topnav a:not(.seg a) { display: inline-flex; } }

/* ---------- Fenster: zeigt ein Werk als Bild oder live ----------
   .browser für Web-Werkzeuge (Adressleiste oben), .browser.phone für Handy-Apps (schmal, hoch) */
.browser { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r14); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser .url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); font: 500 12px/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .url svg { flex: none; width: 13px; height: 13px; color: var(--faint); }
.browser .bar .iconbtn { width: 36px; height: 36px; background: none; color: var(--muted); }
.browser .bar .iconbtn:hover { color: var(--ink); background: var(--surface-2); }
.browser .view { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.browser.phone { max-width: 380px; width: 100%; margin: 0 auto; border-radius: 28px; padding: 10px; background: var(--surface-2); }
.browser.phone .bar { border: 0; background: none; height: 36px; padding: 0 6px 6px; }
.browser.phone .view { aspect-ratio: 9 / 17; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.browser iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.browser .poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 24px 20px 28px; text-align: center; }
.browser .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Verlauf nur über dem Bild, damit der Knopf unten lesbar bleibt */
.browser .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 16, 19, 0) 40%, rgba(12, 16, 19, .94) 82%); }
.browser .poster > :not(img) { position: relative; z-index: 1; }
