/*
 * hofknecht.eu: shared design for all pages (start page, projects, legal pages).
 * Projects link /design/hofknecht.css and keep their own images and accents.
 * No external fonts or services (privacy), only system fonts.
 */
/*
 * Light and dark (workspace/design.md): every colour is light-dark(light, dark) and follows color-scheme.
 * Without a choice the page follows the system; /design/theme.js sets <html data-theme="light|dark"> from the
 * switch in the header (stored per browser). A page that is always dark sets data-theme="dark" itself.
 */
:root {
  --bg: light-dark(#ececec, #0d0d0f);
  --bg-2: light-dark(#ffffff, #1a1a1d);
  --bg-3: light-dark(#f1f1f3, #26262a);
  --ink: light-dark(#111111, #f3f3f3);
  --ink-dim: light-dark(#6e6e73, #a1a1a6);
  --ink-faint: light-dark(#a8a8ad, #5c5c62);
  /* Main button: black on light, white on dark (design.md). --accent stays indigo for focus, switches, selections. */
  --btn: light-dark(#111111, #f3f3f3);
  --btn-ink: light-dark(#ffffff, #111111);
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --line: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.09));
  --accent-text: light-dark(#4338ca, #a5b4fc);
  --bar: var(--bg); /* opaque: Safari on the iPhone tints the status bar from the top bar only when it is solid */
  --glow-1: transparent;
  --glow-2: transparent;
  --dots: light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.05));
  --error-bg: light-dark(rgba(200, 40, 40, 0.08), rgba(255, 90, 90, 0.12));
  --error-ink: light-dark(#a1261f, #ffb4a8);
  --ok-bg: light-dark(rgba(25, 158, 112, 0.1), rgba(25, 158, 112, 0.14));
  --ok-ink: light-dark(#0f6e4d, #8fe3c2);
  /* Tones for small coloured marks on the grey ground and on cards (dots, chips, pills; konto/releases.php):
     at least 4.5:1 on --bg and --bg-2, light and dark. */
  --tone-violet: light-dark(#6d3fc4, #c3a6f5);
  --tone-orange: light-dark(#a0520b, #f5ab6a);
  --tone-teal: light-dark(#0d6f7b, #6fd3e0);
  --tone-blue: light-dark(#2459b8, #93bdf6);
  --tone-amber: light-dark(#805700, #f2c94c);
  --tone-rose: light-dark(#a92a68, #f59ac4);
  --radius: 28px;
  /* Frosted colour fields (design.md): only for highlight cards, white text on top. */
  --mesh-blue: radial-gradient(60% 70% at 20% 70%, #4f55c4 0%, transparent 70%), radial-gradient(50% 60% at 85% 20%, #9cc8f2 0%, transparent 70%), radial-gradient(60% 60% at 70% 90%, #b8d8f8 0%, transparent 70%), linear-gradient(135deg, #7fb2ea, #8e9ee0 55%, #b9d9f7);
  --mesh-green: radial-gradient(55% 65% at 30% 55%, #f0a35e 0%, transparent 70%), radial-gradient(60% 70% at 85% 20%, #5cc46e 0%, transparent 70%), radial-gradient(60% 60% at 15% 100%, #7cd07f 0%, transparent 70%), linear-gradient(135deg, #8fd47e, #e9b071 50%, #63c06f);
  --mesh-violet: radial-gradient(55% 60% at 25% 75%, #5b3f9e 0%, transparent 70%), radial-gradient(55% 65% at 85% 30%, #c08ce0 0%, transparent 70%), radial-gradient(50% 50% at 60% 0%, #8b6fd6 0%, transparent 70%), linear-gradient(135deg, #7d5bc4, #a77ad6 60%, #6a4bb0);
  --mesh-mint: radial-gradient(60% 70% at 20% 75%, #2f9e5b 0%, transparent 70%), radial-gradient(55% 60% at 85% 20%, #8fdca0 0%, transparent 70%), linear-gradient(135deg, #4fbf74, #6fcf8a 55%, #3aa864);
  /* Deep green for small white text (overview sales chip): at least 4.6:1 everywhere behind the text, light and dark. */
  --mesh-emerald: radial-gradient(65% 90% at 15% 35%, #065432 0%, transparent 70%), radial-gradient(55% 60% at 85% 15%, #2f8f42 0%, transparent 70%), linear-gradient(135deg, #0f7a45, #12793a 55%, #0a6336);
  /* Deep pink and deep red for the same small white text (overview tickets and shop chips): at least 5:1 light, 6.6:1 dark. */
  --mesh-berry: radial-gradient(65% 90% at 15% 35%, #8c0e58 0%, transparent 70%), radial-gradient(55% 60% at 85% 80%, #c23a52 0%, transparent 70%), linear-gradient(135deg, #bf1c6c, #c3256e 55%, #a8246a);
  --mesh-ruby: radial-gradient(65% 90% at 15% 35%, #8a1b20 0%, transparent 70%), radial-gradient(55% 60% at 85% 15%, #c9443b 0%, transparent 70%), linear-gradient(135deg, #bd2a2a, #c53434 55%, #a51e24);
  --mesh-pink: radial-gradient(60% 60% at 25% 30%, #f0328f 0%, transparent 70%), radial-gradient(60% 70% at 80% 90%, #f2774e 0%, transparent 70%), linear-gradient(135deg, #f04aa0, #f2836a);
  --mesh-red: radial-gradient(60% 70% at 25% 80%, #d8343c 0%, transparent 70%), radial-gradient(55% 60% at 85% 20%, #f59a8f 0%, transparent 70%), linear-gradient(135deg, #e85a5a, #f4a097 60%, #de4b52);
  --mesh-orange: radial-gradient(60% 70% at 20% 30%, #f7b955 0%, transparent 70%), radial-gradient(60% 70% at 85% 85%, #ef6f3c 0%, transparent 70%), linear-gradient(135deg, #f4a14a, #f0844a 55%, #f6c26a);
  /* Amber for limits a bit ahead of time (pace level gelb, konto/claude.php). */
  --mesh-yellow: radial-gradient(60% 70% at 20% 30%, #f2c94c 0%, transparent 70%), radial-gradient(60% 70% at 85% 85%, #c48a06 0%, transparent 70%), linear-gradient(135deg, #deab22, #cf9a12 55%, #e3b43a);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { color-scheme: light; --shadow: 0 24px 60px -24px rgba(20, 30, 60, 0.28); }
}
:root[data-theme="light"] { color-scheme: light; --shadow: 0 24px 60px -24px rgba(20, 30, 60, 0.28); --bg: #ececec; --bar: #ececec; }
:root[data-theme="dark"] { color-scheme: dark; --shadow: 0 24px 60px rgba(0, 0, 0, 0.45); --bg: #0d0d0f; --bar: #0d0d0f; }
/* The page colour also on <html>: Safari on the iPhone tints the status bar from it (plain values above, no light-dark()). */
html { background-color: var(--bg); }

* { box-sizing: border-box; }
/* Same width with and without scrollbar, so the header never shifts between pages */
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 520px at 50% -12%, var(--glow-1), transparent 70%),
    radial-gradient(900px 500px at 100% 10%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  position: relative;
}
/* Fine dot grid behind the top of every page, fading out downwards (the only texture on the site); never taller than
   the page, a short page would scroll otherwise (phones). */
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(820px, 100%); z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #ffffff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Header */
.head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: var(--bar); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand img { flex: none; width: 30px; height: 30px; }
/* Product pages: one bar, logo / product name, jump links, language and the main button on the right. */
.head--product .head__inner { justify-content: flex-start; gap: 14px; }
.head--product .brand { font-size: 17px; }
.head--product .brand img { width: 26px; height: 26px; }
.head__sep { width: 1px; height: 22px; background: var(--line); }
.head__product { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font: 700 16px/1.3 var(--display); white-space: nowrap; }
.head__product img { flex: none; width: 22px; height: 22px; }
.head__links { display: flex; gap: 20px; margin-left: 16px; font-size: 14px; }
.head__links a { color: var(--ink-dim); text-decoration: none; }
.head__links a:hover { color: var(--ink); }
.head--product .head__right { margin-left: auto; }
.head--product .head__right .btn { padding: 8px 16px; font-size: 14px; border-radius: 99px; }
@media (max-width: 960px) { .head__links { display: none; } }
/* App pages (konto, app_head() in _lib.php): back button to the overview, app icon and name, list of all apps. */
.head--app .head__inner { justify-content: flex-start; gap: 12px; }
.head--app .head__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Full-screen apps (Chat, Mail, Stimme) place their content below the app header: --app-head is its height. */
:root { --app-head: calc(59px + env(safe-area-inset-top)); }
.head--app { padding-top: env(safe-area-inset-top); }
.theme-swap, .theme-swap *, .theme-swap *::before, .theme-swap *::after { transition: none !important; }
.back { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border: 1px solid transparent; border-radius: 999px; background: var(--bg-2); color: var(--ink-dim); text-decoration: none; font: 600 14px/1 var(--display); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.back:hover, .back:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--bg-2)); }
.back:focus-visible, .apps-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back img { width: 22px; height: 22px; }
.back span { margin-left: 4px; }
.head__app { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font: 800 17px/1.2 var(--display); letter-spacing: -0.01em; }
.head__app span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Part of an app (app_part(), "Systeme › Sicherheit"): the dimmed app name leads back, the part names the page; on a
   phone only the app icon stays as that link, so the part keeps its room next to up to three header buttons. */
.head__app--parent span { color: var(--ink-dim); }
.head__part { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: -6px; font: 800 17px/1.2 var(--display); letter-spacing: -0.01em; }
.head__part::before { content: "\203A" / ""; flex: none; color: var(--ink-dim); font-weight: 600; }
.head__part span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .head__app--parent span { display: none; } .head__app--parent { gap: 0; } }
/* Short note after the app name (app_badge(), the autopilot's number of open tasks): a small pill like the back button. */
.head__badge { flex: none; margin-left: -4px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-dim);
  font: 600 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.app-ico { flex: none; display: block; width: 30px; height: 30px; }
/* Same look as the overview tiles (design.md, "C1"): faint tint of the app colour, coloured symbol. */
.app-ico rect { fill: color-mix(in srgb, currentColor 24%, transparent); stroke: color-mix(in srgb, currentColor 40%, transparent); stroke-width: 1; }
.app-ico g { fill: none; stroke: color-mix(in srgb, currentColor 85%, var(--ink)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apps-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink-dim); cursor: pointer; }
.apps-btn:hover { color: var(--ink); }
.apps-btn svg { width: 16px; height: 16px; fill: currentColor; }
.switcher { position: fixed; inset: 64px 16px auto auto; margin: 0; width: min(372px, calc(100vw - 32px)); max-height: calc(100dvh - 88px); overflow: auto; padding: 12px; border: 0; border-radius: 28px; background: var(--bg-2); color: var(--ink); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s ease, transform .16s ease, overlay .16s allow-discrete, display .16s allow-discrete; }
.switcher:popover-open { opacity: 1; transform: none; }
@starting-style { .switcher:popover-open { opacity: 0; transform: translateY(-6px) scale(.98); } }
.switcher ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
.switcher a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 18px; color: var(--ink); text-decoration: none; font-size: 12.5px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.switcher a:hover, .switcher a:focus-visible { background: var(--bg-3); outline: none; }
.switcher a[aria-current] { background: var(--bg-3); }
.switcher .app-ico { width: 46px; height: 46px; }
@media (max-width: 720px) { .back span { display: none; } .back { padding-right: 8px; } .switcher ul { grid-template-columns: repeat(3, 1fr); } }

/* Page changes within the site: short fade, the header stays, the app icon flies between its tile on the
   overview and the app header (names set in theme.js). Only cross-document, so app-internal transitions keep theirs. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; types: hk-page; }
}
.head { view-transition-name: head; }
.head__app .app-ico { view-transition-name: app; }
html:active-view-transition-type(hk-page)::view-transition-old(root) { animation: .14s ease both hk-fade-out; }
html:active-view-transition-type(hk-page)::view-transition-new(root) { animation: .26s cubic-bezier(.2, .8, .2, 1) both hk-rise; }
html:active-view-transition-type(hk-page)::view-transition-group(head) { z-index: 1; animation-duration: .26s; }
html:active-view-transition-type(hk-page)::view-transition-group(app) { z-index: 2; animation-duration: .36s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html:active-view-transition-type(hk-page)::view-transition-old(app), html:active-view-transition-type(hk-page)::view-transition-new(app) { height: 100%; object-fit: contain; }
@keyframes hk-fade-out { to { opacity: 0; } }
@keyframes hk-rise { from { opacity: 0; transform: translateY(8px); } }

/* Loading veil of every app page (theme.js, workspace/design.md § Laden): until the page is ready, everything below the
   app header stays hidden; only when that takes longer than .35 s the mark with a turning ring appears in the middle
   (the orb is also used alone, e.g. in the Autopilot's docked session). theme.js fades the content in when ready. */
.hk-lader { display: none; }
html.hk-laden body:has(> .head--app) > :not(.head--app) { opacity: 0; }
html:is(.hk-laden, .hk-bereit):has(> body > .head--app) > .hk-lader { position: fixed; inset: var(--app-head) 0 0; z-index: 3;
  display: grid; place-items: center; pointer-events: none; animation: hk-lader-ein .4s ease .35s backwards; }
.hk-lader::before { content: ''; position: absolute; inset: 0; margin: auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); }
.hk-lader__orb { position: relative; display: block; width: 64px; height: 64px; border-radius: 50%; color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  --hk-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M15 33 32 17l17 16' fill='none' stroke='black' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='32' cy='42' r='6.5'/%3E%3C/svg%3E"); }
.hk-lader__orb::before, .hk-lader__orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.hk-lader__orb::before { background: currentColor; -webkit-mask: var(--hk-mark) center / 72% no-repeat; mask: var(--hk-mark) center / 72% no-repeat;
  animation: hk-atmen 1.8s ease-in-out infinite; }
.hk-lader__orb::after { background: conic-gradient(transparent 0 40%, currentColor);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); animation: hk-drehen 1.2s linear infinite; }
@keyframes hk-lader-ein { from { opacity: 0; } }
@keyframes hk-atmen { 50% { opacity: .45; } }
@keyframes hk-drehen { to { transform: rotate(1turn); } }

/* Soft transitions on every page (workspace/design.md § Übergänge): folds open and shut in their height where the browser
   has ::details-content and interpolate-size (else at once), the content clipped only while it moves; dialogs and
   popovers fade in, dialogs growing a little. All in :where(), so every own rule of a page wins (Autopilot X877d, app
   switcher, sheets). Closing stays at once outside the folds: a closed state with opacity 0 would hide the popovers and
   dialogs that a page shows while closed. An opening fold shows its content at once (no content-visibility transition
   there): a script that opens a fold and then focuses or reads inside it in the same task finds it rendered. */
:where(details) { interpolate-size: allow-keywords; }
:where(details)::details-content { block-size: 0; overflow: clip; opacity: 0;
  transition: block-size .18s ease-in, opacity .15s ease-in, content-visibility .18s allow-discrete, overflow 0s allow-discrete; }
:where(details[open])::details-content { block-size: auto; overflow: visible; opacity: 1;
  transition: block-size .22s ease-out, opacity .22s ease-out, overflow 0s .22s allow-discrete; }
:where(dialog[open], [popover]:popover-open), :where(dialog[open])::backdrop { transition: opacity .2s ease-out, scale .2s ease-out; }
@starting-style {
  :where(dialog[open], [popover]:popover-open), :where(dialog[open])::backdrop { opacity: 0; }
  :where(dialog[open]) { scale: .97; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-lader__orb::after { animation: none; }
  :where(details)::details-content, :where(details[open])::details-content { block-size: auto; overflow: visible; }
  @starting-style { :where(dialog[open]) { scale: none; } }
}
[id] { scroll-margin-top: 72px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); font: 600 14px/1 var(--display); }
.lang > a { text-decoration: none; padding: 8px 11px; border-radius: 999px; color: var(--ink-dim); }
.lang > a[aria-current="true"], .lang__current { color: var(--btn-ink); background: var(--btn); }
.lang > a:not([aria-current]):hover { color: var(--ink); }
/* More than two languages (rahmen.py): the pill shows the current one and opens the list as a popover, under the
   pill where the browser can anchor it, else at the top right like .switcher. Without popover support it stays shut. */
.lang__current { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 0; border-radius: 999px; font: inherit; cursor: pointer; anchor-name: --lang; }
.lang__current::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lang__menu { display: none; position: fixed; inset: 64px 16px auto auto; margin: 0; min-width: 160px; padding: 6px; border: 0; border-radius: 22px; background: var(--bg-2); color: var(--ink); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35); list-style: none; line-height: 1.2;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s ease, transform .16s ease, overlay .16s allow-discrete, display .16s allow-discrete; }
.lang__menu:popover-open { display: block; opacity: 1; transform: none; }
@starting-style { .lang__menu:popover-open { opacity: 0; transform: translateY(-6px) scale(.98); } }
@supports (position-area: bottom) { .lang__menu { position-anchor: --lang; inset: auto; position-area: bottom span-left; margin-top: 8px; } }
.lang__menu a { display: block; padding: 10px 14px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--bg-3); outline: none; }
.lang__menu a[aria-current] { background: var(--bg-3); }
/* Light/dark switch (theme.js): one round button cycling auto -> light -> dark, the icon shows the current choice. */
.theme { display: none; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink-dim); cursor: pointer; }
.theme-js .theme { display: inline-grid; }
.theme:hover, .theme:focus-visible { color: var(--ink); }
.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme svg { grid-area: 1 / 1; width: 18px; height: 18px; display: none; }
:root:not([data-theme="light"]):not([data-theme="dark"]) .theme__auto,
:root[data-theme="light"] .theme__light,
:root[data-theme="dark"] .theme__dark { display: block; }
/* Phones and small tablets: product headers need the room for the full product name (X917): only the mark, no light/dark
   switch (the page follows the system or the choice made on a wider screen), no product icon, tighter gaps and button */
@media (max-width: 640px) {
  .head--product .brand span, .head--product .head__sep, .head--product .theme, .head--product .head__product img { display: none; }
  .head--product .head__inner { gap: 8px; }
  .head--product .head__right { gap: 8px; }
  .head--product .head__right .btn { padding: 8px 12px; }
  .head--product .lang__current { padding: 8px 9px; gap: 6px; }
}
/* Small phones (360-420 px): even the mark gives way to the name, which is the page's own logo here */
@media (max-width: 420px) {
  .head--product .brand { display: none; }
  .head--product .head__product { font-size: 15px; }
  .head--product .head__right .btn { font-size: 13px; }
  .head--product .lang > a { padding: 8px 9px; }
}

/* Typography */
.eyebrow { margin: 0 0 12px; font: 500 13px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.h1 { margin: 0 0 16px; font: 600 clamp(34px, 5.4vw, 60px)/1.04 var(--display); letter-spacing: -0.03em; max-width: 18ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-dim); max-width: 60ch; margin: 0; }

/* Start page */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.tiles {
  display: grid; gap: 24px; padding-bottom: clamp(56px, 8vw, 96px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.tile {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--bg-2); border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile__pic { aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__pic img { transform: scale(1.04); }
.tile__pic--icon { display: grid; place-items: center; background: linear-gradient(135deg, #1d3a5f, #2b2350); }
.tile__pic--icon svg { width: 34%; height: auto; color: var(--ink); opacity: .9; }
.tile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile__title { margin: 0; font: 800 22px/1.2 var(--display); }
.tile__text { margin: 0; color: var(--ink-dim); font-size: 16px; }
.tile__tag { margin-top: auto; padding-top: 10px; font: 700 13px/1 var(--display); color: var(--accent-text); letter-spacing: .04em; }

/* App icons (start page) */
.head__right { display: flex; align-items: center; gap: 12px; }
.signin { font: 600 14px/1 var(--display); text-decoration: none; padding: 12px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); transition: opacity .15s ease; }
.signin:hover, .signin:focus-visible { opacity: .85; }
.signin--in { color: var(--ink); background: var(--bg-2); }
/* Phones: logo, theme, DE/EN and sign-in need about 440 px, so the start page keeps only the mark like product pages (name stays for screen readers) */
@media (max-width: 480px) {
  .head:has(.signin) .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head:has(.signin) .head__right { gap: 8px; }
  .signin { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 350px) { .signin { padding: 12px 14px; } .head:has(.signin) .lang > a { padding: 8px 9px; } }
.wrap.app-page { padding-top: clamp(20px, 3vw, 32px); }
.hero--small { padding-bottom: clamp(20px, 3vw, 32px); }
.group { padding-bottom: clamp(40px, 6vw, 64px); }
.group[hidden] { display: none; }
.group--top { padding-top: clamp(32px, 5vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.group__title { margin: 0 0 22px; font: 700 13px/1.2 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.apps {
  display: grid; gap: 30px 14px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
/* Signed in without a cached start page: icons wait for kacheln.php (start.js), at most 2 s. */
.warten .apps { visibility: hidden; animation: zeigen 0s 2s forwards; }
@keyframes zeigen { to { visibility: visible; } }
.app { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; border-radius: 14px; padding: 6px 2px; }
.app:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app__icon {
  width: 80px; height: 80px; border-radius: 27px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 25% 8%, rgba(255, 255, 255, 0.38), transparent 55%), radial-gradient(90% 70% at 90% 100%, rgba(0, 0, 0, 0.18), transparent 70%), var(--c, var(--bg-3));
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--c, #000) 50%, transparent), 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 1.5px rgba(255, 255, 255, 0.28), inset 0 -1px 2px rgba(0, 0, 0, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.app:hover .app__icon, .app:focus-visible .app__icon { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c, #000) 60%, transparent), 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 1.5px rgba(255, 255, 255, 0.32), inset 0 -1px 2px rgba(0, 0, 0, 0.12); }
.app__icon img { width: 100%; height: 100%; object-fit: cover; }
.app__icon { position: relative; }
/* New messages (Georg 06.11.2026, "D5"): a small red dot on the icon, the count in red under the name. */
.app__badge { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-2) 70%, transparent); }
.app__tag--new { color: light-dark(#c4343a, #ff8a8e); font-weight: 700; }
.app__icon img.app__logo { width: 62%; height: 62%; object-fit: contain; }
.app__icon svg { width: 42px; height: 42px; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app__name { font: 700 14px/1.25 var(--display); }
.app__tag { margin-top: -6px; font-size: 12px; line-height: 1.3; color: var(--ink-dim); }
.app__label { display: contents; }

/* Start page as home screen (design/start.js): names on hover, menu on long press, folders, select mode */
.js .apps:not(.apps--labels) { gap: 26px 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.js .apps .app { position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.js .apps .app__label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.js .apps .app__label .app__tag { margin-top: 0; }
.js .apps:not(.apps--labels) .app__label {
  position: absolute; top: calc(100% - 2px); left: 50%; z-index: 20; width: max-content; max-width: 220px;
  padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bg-2) 97%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .12s ease, transform .12s ease;
}
.js .apps:not(.apps--labels) .app:hover .app__label,
.js .apps:not(.apps--labels) .app:focus-visible .app__label { opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }
@media (hover: none) { .js .apps:not(.apps--labels) .app__label { display: none; } }
.apps--edit .app:hover .app__label, .is-dragging-tile .app__label { opacity: 0 !important; }
.app__icon--folder { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; padding: 11px; place-items: stretch; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.mini { display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--c, var(--bg-3)); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini img.app__logo { width: 64%; height: 64%; object-fit: contain; }
.app__icon .mini svg, .js .apps .app__icon .mini svg { width: 64%; height: 64%; stroke-width: 2.2; }
/* Uniform icons (Georg 06.11.2026, "C1"): symbol icons get a faint tint of their colour and a coloured symbol instead of
   a full colour tile; product icons (image, logo) keep their own look. */
.app__icon:has(> svg), .app:hover .app__icon:has(> svg), .app:focus-visible .app__icon:has(> svg) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--ink)) 30%, transparent), color-mix(in srgb, var(--c, var(--ink)) 14%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--ink)) 34%, transparent); }
.app__icon:has(> svg) svg { color: color-mix(in srgb, var(--c, var(--ink)) 85%, var(--ink)); }
.mini:has(> svg) { background: color-mix(in srgb, var(--c, var(--ink)) 30%, transparent); }
.mini > svg { color: color-mix(in srgb, var(--c, var(--ink)) 85%, var(--ink)); }
.app__check { display: none; position: absolute; top: -2px; left: calc(50% + 26px); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.apps--edit li:not([data-kind=fixed]) .app__check { display: block; }
.apps--edit li.is-selected .app__check { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; border-color: var(--accent-text); }
.apps--edit li.is-selected .app__icon { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.apps--edit li[data-kind=fixed] { opacity: 0.35; }
.apps--edit li:not([data-kind=fixed]) .app__icon { animation: jiggle .26s ease-in-out infinite alternate; }
.apps--edit li:nth-child(2n) .app__icon { animation-delay: -.13s; }
.apps--edit li:not([data-kind=fixed]) { touch-action: none; }
@keyframes jiggle { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; margin: 0; transform-origin: center; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55); opacity: 0.95; }
li.is-dragging > .app { opacity: 0.25; }
li.is-target .app__icon { transform: scale(1.14); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent), 0 16px 32px rgba(0, 0, 0, 0.45); }
.is-dragging-tile, .is-dragging-tile * { cursor: grabbing !important; }
li.is-lifted { position: relative; z-index: 85; }
li.is-lifted .app__icon { transform: scale(1.08); }
li.is-lifted .app__label { opacity: 0 !important; }
.menu-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(6, 10, 20, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tile-menu { position: fixed; z-index: 90; width: max-content; min-width: 240px; max-width: min(320px, calc(100vw - 24px)); padding: 8px; border-radius: 24px; background: var(--bg-2); border: 0; box-shadow: var(--shadow); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.tile-menu__head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.tile-menu__head .app__icon { width: 46px; height: 46px; border-radius: 13px; flex: none; box-shadow: none; }
.tile-menu__head .app__icon svg { width: 26px; height: 26px; }
.tile-menu__head .app__icon--folder { gap: 3px; padding: 6px; }
.tile-menu__head .mini { border-radius: 4px; }
.tile-menu__head b { display: block; font: 700 16px/1.2 var(--display); }
.tile-menu__head small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-dim); }
.tile-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 15px/1.2 var(--text); text-align: left; cursor: pointer; }
.tile-menu button:hover, .tile-menu button:focus-visible { background: var(--bg-3); outline: none; }
.tile-menu button svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-dim); }
.tile-menu button.is-danger, .tile-menu button.is-danger svg { color: light-dark(#a1261f, #ffb4a8); }
.sheet { width: min(560px, calc(100vw - 24px)); max-height: min(82vh, 720px); padding: 0; border: 0; border-radius: 32px; background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(6, 10, 20, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px 22px; }
.sheet__head h2 { margin: 0; font: 800 22px/1.2 var(--display); }
.sheet__close { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--bg-3); color: var(--ink); cursor: pointer; }
.sheet__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet__close:hover { background: var(--bg); }
.sheet__body { padding: 10px 22px 24px; overflow: auto; }
.sheet .apps { padding: 10px 0 4px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 24px 8px; }
.folder-name { flex: 1; min-width: 0; padding: 6px 10px; margin-left: -10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink); font: 800 22px/1.2 var(--display); }
.folder-name:hover, .folder-name:focus { border-color: var(--line); background: var(--bg); outline: none; }
.hidden-list { margin: 0 0 18px; padding: 0; list-style: none; }
.hidden-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hidden-list .app__icon { width: 48px; height: 48px; border-radius: 13px; flex: none; box-shadow: none; }
.hidden-list .app__icon svg { width: 26px; height: 26px; }
.hidden-list div { flex: 1; min-width: 0; }
.hidden-list b { display: block; font: 700 16px/1.2 var(--display); }
.hidden-list small { color: var(--ink-dim); font-size: 13px; }
.btn--small { padding: 10px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); font: 600 16px/1.3 var(--text); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 30px; flex: none; margin: 0; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: #ffffff; }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.editbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px); padding: 8px 8px 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 97%, transparent); border: 0; box-shadow: var(--shadow); animation: rise .18s ease-out; }
.editbar__count { margin-right: 6px; color: var(--ink-dim); font-size: 15px; white-space: nowrap; }
.editbar__count b { color: var(--ink); }
.editbar .btn { padding: 10px 14px; font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 110; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: #3a1f24; color: #ffd2cb; box-shadow: var(--shadow); }
.toast--ok { background: #199e70; color: #fff; }
/* copy name and text of a line (copy_button() in konto/_lib.php: autopilot, security) */
.copyref { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-dim); cursor: pointer; opacity: .55; }
.copyref svg { fill: none; stroke: currentColor; stroke-width: 1.3; }
.copyref:hover, .copyref:focus-visible { opacity: 1; color: var(--ink); background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, .08)); }
@media (max-width: 520px) {
  .js .apps:not(.apps--labels) { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 22px 6px; }
  .js .apps .app__icon { width: 64px; height: 64px; border-radius: 22px; }
  .js .apps .app__icon svg { width: 34px; height: 34px; }
  .js .apps .app__icon--folder { padding: 9px; gap: 5px; }
  .app__check { left: calc(50% + 18px); }
  .sheet .apps { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  /* Phone home screen: always four in a row, also with names shown (Wunsch Markus 10.11.2026). Icons shrink on very
     narrow screens, names and tags stay on one line and end in "…". */
  #apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 6px; }
  #apps .app__icon { width: min(64px, 100%); height: auto; aspect-ratio: 1; }
  #apps.apps--labels .app__label { max-width: 100%; }
  #apps.apps--labels :is(.app__name, .app__tag) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #apps.apps--labels .app__name { font-size: 12px; }
  #apps.apps--labels .app__tag { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .apps--edit li .app__icon, .tile-menu, .editbar { animation: none !important; } }

/* Forms and buttons (sign-in) */
.narrow { max-width: 520px; padding: clamp(40px, 6vw, 72px) 0; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 700 14px/1.2 var(--display); color: var(--ink-dim); }
.form input { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.form__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--error-bg); color: var(--error-ink); }
.btn { font: 600 16px/1 var(--display); color: var(--btn-ink); background: var(--btn); border: 0; border-radius: 999px; padding: 15px 24px; transition: opacity .15s ease, transform .15s ease; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { opacity: .85; }
.btn--ghost { color: var(--ink); background: var(--bg-3); }
.btn--ghost:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 10%, var(--bg-3)); }
.btn--danger { color: light-dark(#a1261f, #ffb4a8); background: transparent; border: 1px solid rgba(255, 90, 90, 0.45); }
.btn--danger:hover { background: rgba(255, 90, 90, 0.12); }
.form select { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-ink); }
.form--tight { margin-top: 0; gap: 14px; }
.form__inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.form__inline label { flex: 1 1 180px; }
.card .form input, .card .form select { background: var(--bg); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.checks legend { margin-bottom: 8px; padding: 0; font: 700 14px/1.2 var(--display); color: var(--ink-dim); }
.form .check { position: relative; flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 99px; font: 600 14px/1.2 var(--text); color: var(--ink-dim); cursor: pointer; }
.form .check input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.check__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.form .check:has(input:checked) { color: var(--ink); border-color: var(--c, var(--accent)); background: var(--bg-3); }
.check:has(input:checked) .check__dot { background: var(--c); }
.check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Shop order page (/shop/): product radios, consent checkboxes, hints */
.shop__fields, .shop__group, .shop__company { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.shop__company[hidden] { display: none; }
.shop__group { gap: 10px; }
.shop__group legend { margin-bottom: 10px; padding: 0; font: 700 14px/1.2 var(--display); color: var(--ink-dim); }
.form .agree { flex-direction: row; align-items: flex-start; gap: 12px; font: 400 16px/1.5 var(--text); color: var(--ink-dim); cursor: pointer; }
.form .agree strong { color: var(--ink); }
.form .agree a, .shop__hint a { color: var(--accent-text); }
.form .agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--accent-text); }
.form .agree:has(input:disabled) { opacity: 0.5; cursor: default; }
.shop__hint { margin: 0; font-size: 13px; color: var(--ink-dim); }
.shop .shop__hint { text-align: center; }
.shop .btn { align-self: flex-start; }
.shop .btn--buy { align-self: stretch; padding: 18px 22px; font-size: 18px; }
.shop .btn:disabled { opacity: 0.45; cursor: default; }
.products { display: grid; gap: 12px; }
.product { position: relative; display: grid !important; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px !important; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; }
.product input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.product:has(input:checked) { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent); }
.product:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.product img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.product__name { display: block; font: 800 18px/1.2 var(--display); color: var(--ink); }
.product__text { display: block; margin-top: 4px; font: 400 14px/1.4 var(--text); color: var(--ink-dim); }
.product__price { font: 800 20px/1 var(--display); color: var(--ink); }
.trust { margin: -4px 0 0; font-size: 14px; color: var(--ink-dim); text-align: center; }
/* Coming from a product page (?produkt=): only that product, larger, no legend; a known country is one line. */
.shop--single .shop__group legend, .shop--single .product:not(:has(input:checked)) { display: none !important; }
.shop--single .product, .shop--single .product:has(input:checked) { grid-template-columns: 72px 1fr auto; padding: 18px 22px 18px 18px; cursor: default; box-shadow: none; border-color: var(--line); }
.shop--single .product img { width: 72px; height: 72px; }
/* Icons draw their own shape: no crop, a faint light edge so dark icons stand out on the dark card. */
.product img[src$=".svg"] { border-radius: 0; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)) drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop--country-known .shop__land { display: none; }
.shop__country, .shop__seats { margin: 0; font-size: 15px; color: var(--ink-dim); }
.shop__country b, .shop__seats b { color: var(--ink); font-weight: 600; }
.shop__country .link, .shop__seats .link { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; cursor: pointer; }
.shop__other { font: 400 13px/1.4 var(--text); color: var(--ink-dim); }
/* The tax sentence under the one-line country (X331) */
.shop__country .shop__other { display: block; margin-top: 4px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--bg-3); color: var(--accent-text); font: 700 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
/* Steps after the purchase (/shop/danke.php, /shop/download.php) */
.steps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 20px 20px 20px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #ffffff; font: 800 15px/1 var(--display); }
.steps h2 { margin: 2px 0 6px; font: 800 19px/1.25 var(--display); }
.steps p { margin: 0 0 12px; color: var(--ink-dim); font-size: 16px; }
.steps p:last-child { margin-bottom: 0; }
.steps .btn { margin: 4px 8px 4px 0; }
.dl-more { font-size: 14px; color: var(--ink-dim); }
.dl-more a { color: var(--accent-text); }
/* Mac first start while the app is not notarized (shop_mac_hint, releases.js data-mac-hint, X165b) */
.release-box__mac { padding: 12px 14px; border-radius: var(--radius); border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font-size: 15px; }
.release-box__mac a { color: var(--accent-text); }
.release-box__term p { margin: 0 0 8px; font-size: 14px; color: var(--ink-dim); }
.release-box__cmd { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.release-box__cmd code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.release-box__cmd .btn { flex: none; }
.mac-hint { margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.mac-hint summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.mac-hint p, .mac-hint ol { margin: 10px 0 0; color: var(--ink-dim); font-size: 15px; }
.mac-hint ol { padding-left: 20px; }
.mac-hint p code, .mac-hint li code { overflow-wrap: anywhere; }
.mac-hint li + li { margin-top: 6px; }
.mac-hint pre { margin: 10px 0 0; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: var(--bg-2); font-size: 13px; }
.wait { display: flex; align-items: center; gap: 12px; }
.wait::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg-3); border-top-color: var(--accent-text); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .product { grid-template-columns: 48px 1fr; } .product img { width: 48px; height: 48px; border-radius: 12px; } .product__price { grid-column: 2; } }

/* Settings (/settings/): account, start page and, for admins, accounts as folded rows */
.settings-page { max-width: 760px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 80px); display: grid; gap: 16px; }
.set { display: flex; flex-direction: column; gap: 14px; }
.set__title { margin: 0; font: 800 22px/1.2 var(--display); }
.set__text { margin: 0; color: var(--ink-dim); line-height: 1.5; }
.set__text a { color: var(--accent-text); }
.set__text--small { font-size: 14px; }
.set__notice { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--tone-amber) 12%, transparent); }
.set__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.set__who b { margin-right: 4px; font: 800 20px/1.2 var(--display); }
.set__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.set__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.set__line[hidden] { display: none; }
.set__line > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.set__line b { font: 600 16px/1.3 var(--text); }
.set__line small { font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { border-radius: 14px; background: var(--bg); }
.person > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 16px; cursor: pointer; list-style: none; }
.person > summary::-webkit-details-marker { display: none; }
.person > summary::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim); transform: rotate(45deg); transition: transform .15s; }
.person[open] > summary::after { transform: rotate(-135deg); }
.person__name { font: 800 17px/1.2 var(--display); }
.person__meta { margin-left: auto; font-size: 13px; color: var(--ink-dim); }
.person__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
.person__inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.person__inline input, .person__inline select { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.person__inline input { flex: 1 1 150px; min-width: 0; }
.person__inline input:focus, .person__inline select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.person .form .check { padding: 5px 10px 5px 8px; font-size: 13px; }
.person .form__error { padding: 8px 12px; font-size: 14px; }
.person__remove { margin: 0; }
.person--new { border: 1px dashed var(--line); background: transparent; }
.person--new .person__name { color: var(--ink-dim); }

/* Usage page */
.usage { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.usage__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.usage__head .h1 { margin: 0; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 36px; }
.card { background: var(--bg-2); border: 1px solid transparent; border-radius: var(--radius); padding: 26px; }
.card__title { margin: 0 0 4px; font: 800 20px/1.2 var(--display); display: flex; align-items: center; gap: 10px; }
/* Folding card (details.card.card--fold): the title is the summary, the chevron beside it turns when open. */
.card--fold > summary { display: block; list-style: none; }
.card--fold > summary::-webkit-details-marker { display: none; }
.card--fold > summary .card__title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.card--fold[open] > summary .card__title::after { transform: translateY(2px) rotate(-135deg); }
.card--fold:not([open]) .card__title { margin-bottom: 0; }
.card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.card__meta { margin: 0 0 18px; font-size: 14px; color: var(--ink-dim); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.stats div { background: var(--bg-3); border-radius: 16px; padding: 12px; }
.stats dt { font-size: 13px; color: var(--ink-dim); }
.stats dd { margin: 2px 0 0; font: 800 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stats small { display: block; font: 400 12px/1.3 var(--text); color: var(--ink-dim); }
.chart { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 28px; }
.chart h2 { margin: 0 0 4px; font: 800 18px/1.2 var(--display); }
.chart p { margin: 0 0 16px; font-size: 14px; color: var(--ink-dim); }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-dim); font: 400 11px var(--text); }
.chart .grid { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
details.chart summary { cursor: pointer; font: 800 16px/1.2 var(--display); }
details.chart summary small { margin-left: 8px; font: 400 14px/1.3 var(--text); color: var(--ink-dim); }
details.chart[open] > summary { margin-bottom: 14px; }
details.chart > h3, details.chart .multiples h3 { margin-top: 0; }
.split { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.split h3 { margin: 0 0 12px; font: 800 17px/1.2 var(--display); display: flex; align-items: center; gap: 10px; }
.multiples--tables { gap: 16px; }
.multiples--tables .table { font-size: 14px; }
.split__more { margin-top: 14px; }
.split__more summary { cursor: pointer; font: 700 14px/1.3 var(--display); color: var(--ink-dim); }
.lim__plan { padding: 2px 9px; border-radius: 999px; background: var(--bg-3); font: 700 12px/1.5 var(--display); color: var(--ink); white-space: nowrap; }
.lim__plan--extra { color: #d97a1f; }
.table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.table th:first-child { text-align: left; }
.table thead th { color: var(--ink-dim); font: 700 13px/1.2 var(--display); }
.table-scroll { overflow-x: auto; }
.note { font-size: 15px; color: var(--ink-dim); }
.note a { color: var(--accent-text); }
.section-title { margin: 0 0 16px; font: 700 13px/1.2 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.cards--lim { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 24px; }
.lim { padding: 16px 18px; }
.lim--mid { border-color: rgba(201, 133, 0, 0.6); }
.lim--high { border-color: rgba(230, 103, 103, 0.75); }
.lim__head { margin-bottom: 14px; }
.lim__head .card__meta { margin: 4px 0 0; font-size: 13px; }
.devices { margin: 0; padding: 0; list-style: none; }
.devices li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-dim); overflow-wrap: anywhere; }
.devices li:first-child { border-top: 0; padding-top: 0; }
.devices b { color: var(--ink); font: 700 16px/1.3 var(--display); }
.devices small { font-size: 12px; }
@media (max-width: 520px) {
  .usage { padding-top: 20px; }
  .lim { padding: 14px; }
  .chart { padding: 16px; }
}
.multiples { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.multiples h3 { margin: 0 0 8px; font: 700 15px/1.3 var(--display); }
.now { margin: 16px 0 0; padding: 10px 12px; background: var(--bg-3); border-radius: 12px; font-size: 15px; overflow-wrap: anywhere; }
.now b { color: var(--accent-text); }
.feed { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.feed li { margin: 3px 0; overflow-wrap: anywhere; }
.card details { margin-top: 14px; }
.card summary { cursor: pointer; font: 700 14px/1.3 var(--display); }
.card pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--ink-dim); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-dim); }
.quota { margin: 0 0 12px; }
.quota__head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 14px; }
.quota__head span { color: var(--ink-dim); }
.quota__bar { position: relative; display: block; height: 10px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.quota__bar span { display: block; height: 100%; border-radius: 5px; }
.quota small { font-size: 12px; color: var(--ink-dim); }
/* Green bound of the pace (limit_pace): up to here the use is in time. */
.quota__mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.quota__level--gelb { color: #b98a05; }
.quota__level--rot { color: #d14b4b; }
.quota__warn { color: #e66767; font-weight: 700; }
.pick { font-size: 15px; cursor: pointer; }
.pick__hint { font-size: 14px; color: var(--ink-dim); }
.btn--go { font-size: 17px; padding: 12px 22px; }
.card__dot--live, .pulse { animation: pulse 1.6s ease-in-out infinite; }
.pulse { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #199e70; vertical-align: 0; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25, 158, 112, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(25, 158, 112, 0); } }
@media (prefers-reduced-motion: reduce) { .card__dot--live, .pulse { animation: none; } }
/* Autopilot page: one card per computer in a fixed order */
.pcs { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 36px; overflow: hidden; }
.pc { --c: #6b7a8f; border-left: 4px solid var(--c); min-width: 0; }
.pc + .pc { border-top: 1px solid var(--line); }
.pc p { margin: 0; }
.pc--work { --c: #199e70; }
.pc--ready { --c: #3d8bfd; }
.pc--wait { --c: #c98500; }
.pc--full { --c: #e66767; }
.pc--off { opacity: 0.7; }
/* pace of the logged-in account's limits (limit_level() in konto/_rechner.php, Wunsch 09.11.2026): a soft wash
   from the right, beside the state colour on the left; the element in :is() outranks the state backgrounds of apple.css.
   The card sets --tempo itself, stepless from green to red (limit_color(), X459c); the three values are the fallback. */
:is(div, details).pc[data-tempo] { background-image: linear-gradient(to left, color-mix(in srgb, var(--tempo) 11%, transparent), transparent 55%); }
.pc[data-tempo="gruen"] { --tempo: #199e70; }
.pc[data-tempo="gelb"] { --tempo: #c99a06; }
.pc[data-tempo="rot"] { --tempo: #e66767; }
.pc__lcap--auto { text-decoration: underline dotted; text-underline-offset: 2px; }   /* automatic cap: its green bound now */
.pc__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; }
details.pc > .pc__head { cursor: pointer; list-style: none; }
details.pc > .pc__head::-webkit-details-marker { display: none; }
details.pc > .pc__head::after { content: "▸"; color: var(--ink-dim); transition: transform 0.2s; }
details.pc[open] > .pc__head::after { transform: rotate(90deg); }
.pc__head h3 { margin: 0; font: 800 16px/1.2 var(--display); }
.pc__body { padding: 0 16px 14px; }
.pc__state { margin-left: auto; font: 700 13px/1.3 var(--display); color: var(--c); text-align: right; }
.pc--off .pc__state { color: var(--ink-dim); }
.pc__meta, .pc__limits { font-size: 13px; color: var(--ink-dim); }
a.pc__limits { color: var(--ink-dim); }
.pc__note { margin-top: 12px !important; font-size: 14px; color: var(--ink-dim); overflow-wrap: anywhere; }
.pc__note--ok { color: light-dark(#0f6e4d, #8fe3c2); }
.pc__note--warn { color: light-dark(#8a5a00, #e0a944); }
.pc__note--stop { color: light-dark(#a1261f, #ff8a8a); }
.pc__action { margin-top: 14px; }
.pc__stops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pc__stops .pc__action { margin-top: 0; }
.pc__picks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.pc__start { margin-top: 14px; }
.pc__start > summary { display: inline-block; list-style: none; cursor: pointer; }
.pc__start > summary::-webkit-details-marker { display: none; }
.pc__start[open] > summary { display: none; }
.pc__start .pc__action { margin-top: 0; }
/* caps and sessions at once (cap_sliders()): one row each, name | slider | value. A cap's track runs from 0 to 100 %
   and shows the use in its pace colour (--u, --lc) and the green bound as a tick (--g), like the use bars (.lb__bar u);
   the track sits inside the thumb's travel, so its percentages line up with the thumb */
.pc__caps { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; margin-top: 4px; }
.pc__cap { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font-size: 14px; }
.pc__cap > span:last-child { white-space: nowrap; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.pc__cap output { font-weight: 700; color: var(--accent-text); }
.pc__cap input {
  --u: 0%; --g: -9%; --lc: transparent; --thumb: var(--accent-text);
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; cursor: pointer; border-radius: 11px;
  background:
    linear-gradient(to right, transparent calc(var(--g) - 1px), color-mix(in srgb, var(--ink) 50%, transparent) 0 calc(var(--g) + 1px), transparent 0) 9px 50% / calc(100% - 18px) 14px no-repeat,
    linear-gradient(to right, var(--lc) var(--u), light-dark(rgba(0, 0, 0, .1), rgba(255, 255, 255, .14)) 0) 9px 50% / calc(100% - 18px) 6px no-repeat;
}
.pc__cap input::-webkit-slider-runnable-track { height: 22px; background: none; }
.pc__cap input::-moz-range-track { height: 22px; background: none; }
.pc__cap input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.pc__cap input::-moz-range-thumb { box-sizing: border-box; width: 18px; height: 18px; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.pc__cap input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc__auto { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.pc__auto input { margin: 0; accent-color: var(--accent-text); }
/* what happens to unfinished lines on a stop (stop_form()): one wrapping row */
.pc__keep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 14px; }
.pc__keep > span { color: var(--ink-dim); }
.pc__keep .pick { font-size: 14px; }
form:has(.pc__auto input:checked) .pc__fix { display: none; }   /* fixed caps only while the box is unticked */
form:has(input[name^="projekte"]:checked) .pc__pickfirst { display: none; }   /* why "Los" is off, until a project is ticked */
.pc .btn { padding: 11px 18px; font-size: 15px; }
.job { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); overflow-wrap: anywhere; }
.job__project { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font: 700 13px/1.4 var(--display); }
.job__project a { color: var(--ink); text-decoration: none; }
.job__project span { font: 400 12px/1.4 var(--text); color: var(--ink-dim); }
.job__task { margin-top: 4px !important; font-size: 15px; }
.job__task b { color: var(--accent-text); }
.job__task a { color: var(--accent-text); }
.job__step { margin-top: 6px !important; font-size: 13px; color: var(--ink-dim); }
.job__next { margin-top: 8px !important; font: 700 12px/1.4 var(--display); color: var(--ink-dim); }
.job__queue { margin: 2px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-dim); }
.job__queue a { color: var(--ink-dim); }
.job details { margin-top: 6px; font-size: 13px; }
.job summary { cursor: pointer; color: var(--ink-dim); }
.tasks__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.tasks__head .section-title { margin: 0; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.picker label { font: 700 13px/1.2 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.picker select { min-width: min(100%, 320px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2); color: var(--ink); font: 700 17px/1.2 var(--display); cursor: pointer; }
.picker select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.todo-sum { margin: 0 0 20px; font-size: 14px; color: var(--ink-dim); }
.todo-sum b { color: var(--ink); }
.todo-blocks { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; margin-bottom: 36px; }
.todo-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; }
.todo-block h3 { margin: 0 0 12px; font: 800 17px/1.3 var(--display); }
.todo-block h3 small { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--bg-3); font: 700 12px/1.4 var(--text); color: var(--ink-dim); }
.todo-block > ul { margin: 0; padding: 0; list-style: none; }
.todo { padding: 10px 12px; margin: 0 0 6px; border-radius: 12px; border: 1px solid transparent; background: var(--bg-3); }
.todo--busy { border-color: rgba(79, 70, 229, 0.5); }
.todo--live { border-color: #199e70; background: rgba(25, 158, 112, 0.14); }
.todo__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: 15px; }
.todo__id { font: 800 14px/1.3 var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.todo__title { flex: 1 1 200px; overflow-wrap: anywhere; }
.todo__title a { color: var(--accent-text); }
.todo__state { margin: 8px 0 0; font-size: 13px; color: var(--ink-dim); overflow-wrap: anywhere; }
.todo__state b { color: var(--ink); }
.prio, .tag { padding: 1px 8px; border-radius: 99px; font: 700 11px/1.6 var(--text); white-space: nowrap; }
.prio { background: var(--bg-2); color: var(--ink-dim); }
.prio--1 { background: rgba(230, 103, 103, 0.2); color: light-dark(#a1261f, #f0a0a0); }
.prio--2 { background: rgba(79, 70, 229, 0.18); color: var(--accent-text); }
.tag { border: 1px solid var(--line); color: var(--ink-dim); }
.tag--p { border-color: rgba(25, 158, 112, 0.6); color: light-dark(#0f6e4d, #5fd0a6); }
.tag--wartet, .tag--pausiert { border-color: rgba(201, 133, 0, 0.6); color: light-dark(#8a5a00, #e0a944); }
.tag--admin { border-color: rgba(79, 70, 229, 0.6); color: var(--accent-text); }
.tag--du { border-color: rgba(57, 135, 229, 0.6); color: light-dark(#1f5fb4, #8db8f0); }
.todo-block--questions .feed { font-size: 14px; }
/* Security page (konto/sicherheit.php) */
.tag--kritisch { border-color: rgba(230, 103, 103, 0.75); color: light-dark(#a1261f, #f0a0a0); }
.tag--hoch { border-color: rgba(255, 143, 58, 0.7); color: light-dark(#9a4d00, #ffb37a); }
.tag--mittel { border-color: rgba(201, 133, 0, 0.6); color: light-dark(#8a5a00, #e0a944); }
.tag--niedrig { border-color: rgba(57, 135, 229, 0.6); color: light-dark(#1f5fb4, #8db8f0); }
.tag--bedenken { border-color: rgba(180, 140, 240, 0.7); color: light-dark(#6a3fb5, #cdb4f5); }

/* Changes page (konto/aenderungen.php): release notes per day and project */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-dim); font-size: 14px; text-decoration: none; }
.chip small { opacity: 0.7; }
.chip:hover, .chip--on { border-color: var(--accent-text); color: var(--accent-text); }
.chg-day { padding: 18px 22px; margin-bottom: 16px; }
.chg-day > summary b, .chg-page .lead b { color: var(--accent-text); font-weight: 600; }
.chg-proj { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font: 700 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.chg-list, .chg__commits { list-style: none; margin: 0; padding: 0; }
.chg { border-left: 3px solid transparent; border-radius: 6px; }
.chg--frisch { border-left-color: var(--accent-text); background: rgba(79, 70, 229, 0.06); }
.chg__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 8px; font-size: 15px; }
summary.chg__row { cursor: pointer; }
.chg__title { flex: 1 1 260px; color: var(--ink); }
.chg__title a, .chg__text a { color: var(--accent-text); }
.chg__id { font: 700 12px/1 var(--display); color: var(--accent-text); }
.chg__repo { font-size: 12px; color: var(--ink-dim); }
.chg__meta, .chg__lines { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.chg__sha { font: 12px ui-monospace, Consolas, monospace; color: var(--ink-dim); }
.chg__commits { margin: 0 0 8px 22px; border-left: 1px solid var(--line); }
.chg__commits li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 3px 10px; font-size: 13px; color: var(--ink-dim); }
.chg__commits time { font-variant-numeric: tabular-nums; }
.chg__text { flex: 1 1 240px; color: var(--ink); }
.chg-care { margin-top: 14px; font-size: 14px; color: var(--ink-dim); }
.chg-care > summary { cursor: pointer; }
.chg-care > summary small { margin-left: 6px; }
.chg-care .chg__commits { margin-top: 6px; }
.tag--neu { border-color: rgba(25, 158, 112, 0.6); color: light-dark(#0f6e4d, #5fd0a6); }
.tag--geaendert { border-color: rgba(57, 135, 229, 0.6); color: light-dark(#1f5fb4, #8db8f0); }
.tag--behoben { border-color: rgba(255, 143, 58, 0.7); color: light-dark(#9a4d00, #ffb37a); }
.tag--version { border-color: rgba(79, 70, 229, 0.6); color: var(--accent-text); letter-spacing: 0; text-transform: none; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--display); margin: 0 0 12px; }
.legal h2 { font: 800 20px/1.3 var(--display); margin: 32px 0 8px; }
.legal p { color: var(--ink-dim); margin: 0 0 12px; }
.legal a { color: var(--accent-text); }

/* Footer: one line, same on public pages (tools/rahmen.py) and account pages */
.foot { border-top: 1px solid transparent; color: var(--ink-dim); font-size: 15px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.foot__social { display: flex; gap: 14px; }
.foot__social a { display: flex; }
.foot__social svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Remote support steps (konto/fernwartung.php) */
.fw__form { display: inline; margin: 0; }

/* Sales page (konto/sales.php, named Shop until 08.11.2026): live and trial as tags beside the title (asked for
   14.11.2026), the day view, bars per day (net, sales with trials and downloads behind them, active), revenue and per
   product; below everything else as one column of compact folding cards (X355a), setup beside the test order in one
   of them. One colour per product in the tables; on the board of the sales (X891) the shop (Stripe) violet
   and the Microsoft Store aqua in every chart, downloads grey; text stays in the ink colours. */
.sv, .sv-sheet, .sv-two, .sv-tags { --c-violett: light-dark(#6250d6, #9085e9); --c-aqua: light-dark(#1baf7a, #199e70);
  --c-blau: light-dark(#2a78d6, #3987e5); --c-gelb: light-dark(#eda100, #c98500); --c-grau: light-dark(#9b9a97, #77767a);
  --c-orange: light-dark(#e05a24, #c03f14); --c-rest: light-dark(#bdbcb8, #55545a); --c-stm: var(--c-blau); --c-lv: var(--c-orange); --c-test: var(--c-gelb);
  --c-stripe: light-dark(#129466, #34c38f); }
.sv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; }
.sv-top .h1 { margin: 0; }
.sv-top .sv-range { margin-left: auto; }   /* one span for every chart of the board (X891) */
.sv-range.is-aus { visibility: hidden; }   /* while today or the hours are big */
.sv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sv-tag { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg-2); font-size: 14px; line-height: 1.3; color: var(--ink-dim); white-space: nowrap; outline: none; }
.sv-tag b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-tag:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.sv-tag .sv-tip { top: calc(100% + 8px); bottom: auto; left: 0; white-space: normal; }
.sv-tag:last-child .sv-tip { left: auto; right: 0; }
.sv-tag:hover .sv-tip, .sv-tag:focus .sv-tip { opacity: 1; visibility: visible; }
.sv-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.sv-dot--live { background: var(--c-stripe); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-stripe) 25%, transparent); }
.sv-dot--test { background: var(--c-test); }
.sv-kpi__label { margin: 0; font: 700 13px/1.3 var(--display); color: var(--ink-dim); }
.sv-kpi__value { margin: 0; font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sv-kpi__meta { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--ink-dim); }
/* Today like Stripe's home (asked for 12.11.2026), a tile of the board since X891: today's net as a line against
   yesterday's (grey, dashed). Indigo of the accent, lighter on dark cards (both >= 5.8:1). */
.sv-k--heute { --c-heute: light-dark(#4f46e5, #818cf8); --c-gestern: light-dark(#8e8e93, #7c7c82); }
.sv-day__link { margin-left: auto; font-size: 13px; white-space: nowrap; }
.sv-day__link + .sv-k__nav { margin-left: 8px; }
.sv-day__figs { display: flex; flex: none; flex-wrap: wrap; gap: 2px 28px; margin: 4px 0 0; }
.sv-day__figs dt { display: flex; align-items: center; gap: 6px; font: 600 12px/1.3 var(--display); color: var(--ink-dim); }
.sv-day__figs dd { margin: 0; }
.sv-day__figs .sv-day__value--dim { color: var(--ink-dim); }
.sv-day__meta { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sv-line { display: inline-block; flex: none; width: 16px; border-top: 2px solid var(--c-heute); vertical-align: middle; }
.sv-line--gestern { border-top-style: dashed; border-top-color: var(--c-gestern); }
.sv-day__plot { position: relative; flex: 1 1 0; min-height: 0; margin-top: 8px; }
.sv-day__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sv-day__base { stroke: var(--ink-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sv-day__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sv-day__line--heute { stroke: var(--c-heute); }
.sv-day__line--gestern { stroke: var(--c-gestern); stroke-dasharray: 5 4; }
.sv-day__now { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--c-heute); box-shadow: 0 0 0 2px var(--bg-2); }
.sv-day__cols { --h: 100%; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.sv-day__col { position: relative; outline: none; }
.sv-day__col::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x, 100%); width: 1px; margin-left: -1px; background: var(--ink-faint); opacity: 0; }
.sv-day__col:hover::after, .sv-day__col:focus::after, .sv-day__col:hover .sv-tip, .sv-day__col:focus .sv-tip { opacity: 1; visibility: visible; }
.sv-day__x { display: flex; flex: none; justify-content: space-between; margin: 4px 0 0; font-size: 11px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sv-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
/* Microsoft Store sales, small below the revenue table (12.11.2026). */
.sv-store { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sv-store h3 { margin: 0; font: 800 15px/1.3 var(--display); }
.sv-store h3 span { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--ink-dim); }
.sv-store .table { margin-top: 6px; font-size: 14px; }
.sv-store .table th, .sv-store .table td { padding: 6px 10px; }
.sv-store .note { margin-bottom: 0; font-size: 13px; }
.sv-store .table .sv-store__v1 td { border-top: 2px solid var(--line); color: var(--ink-dim); }
.sv-store .table td small { margin-left: 4px; font-size: 12px; }
.sv-folds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sv-folds > .card { padding: 18px 26px; }
.sv-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 40px; margin-top: 14px; }
.sv-setup > * { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.sv-setup h3, .sv-setup p { margin: 0; }
.sv-setup h3 { font: 800 17px/1.2 var(--display); }
.sv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-dim); }
.sv-legend li { display: flex; align-items: center; gap: 6px; }
.sv-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sv-key--stm { background: var(--c-stm); }
.sv-key--lv { background: var(--c-lv); }
.sv-tip { position: absolute; bottom: calc(var(--h) + 8px); z-index: 2; width: max-content; max-width: min(220px, 60vw); padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  font-size: 13px; line-height: 1.4; color: var(--ink); text-align: left; pointer-events: none; opacity: 0; visibility: hidden; }
.sv-tip--l { left: 0; }
.sv-tip--r { right: 0; }
.sv-tip--m { left: 50%; transform: translateX(-50%); }
/* The charts (X706, a board of tiles since X891): _sales.js draws stacked bars as SVG and a tip for the bar under the
   pointer. One palette in a fixed order (violet, aqua, blue, yellow, gray, orange) for every series; text stays in
   ink, the colored key beside it names the series. */
.sv-c--violett { fill: var(--c-violett); background: var(--c-violett); }
.sv-c--aqua { fill: var(--c-aqua); background: var(--c-aqua); }
.sv-c--blau { fill: var(--c-blau); background: var(--c-blau); }
.sv-c--gelb { fill: var(--c-gelb); background: var(--c-gelb); }
.sv-c--grau { fill: var(--c-grau); background: var(--c-grau); }
.sv-c--orange { fill: var(--c-orange); background: var(--c-orange); }
.sv-c--rest { fill: var(--c-rest); background: var(--c-rest); }
.note .sv-key { vertical-align: -1px; }
.sv-range { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-3); }
.sv-range button { padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-dim); font: 600 13px/1.2 var(--display); white-space: nowrap; cursor: pointer; }
.sv-range [aria-pressed="true"] { background: var(--bg-2); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.14); }
.sv-range button:focus-visible, .sv-graph__plot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-graph__plot { position: relative; height: 200px; border-radius: 8px; outline: none; touch-action: pan-y; }
.sv-graph__svg { position: absolute; inset: 0; display: block; overflow: visible; }
.sv-graph__svg text { font-size: 12px; fill: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sv-graph__grid { stroke: var(--line); stroke-dasharray: 3 3; }
.sv-graph__base { stroke: var(--ink-faint); }
.sv-graph__band { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.sv-graph__offen { fill: color-mix(in srgb, var(--c-aqua) 10%, transparent); }   /* the Store's days still filling */
.sv-graph__tip { position: absolute; top: 0; z-index: 2; width: max-content; max-width: min(280px, 85%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); font-size: 13px; line-height: 1.45; color: var(--ink); pointer-events: none; }
.sv-graph__tip > b { display: block; }
.sv-graph__tip ul { margin: 4px 0 0; padding: 0; list-style: none; }
.sv-graph__tip li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; white-space: nowrap; }
.sv-graph__tip li.sv-graph__sub { padding-left: 16px; color: var(--ink-dim); }
.sv-graph__tip span { flex: 1 0 auto; max-width: 100%; padding-left: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: normal; }
.sv-graph__ohne { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; text-align: center; }
/* The board of the sales (X891, asked for 25.11.2026): every chart a tile, the same card everywhere (the title as a
   kicker, the value big with its unit small, the keys, the chart in the height that is left). A click shows one tile
   big in place of the board (data-gross), with ‹ › ✕ in its head. Three columns from 700px: today and the net on top,
   purchases, trials and downloads in the middle, the devices and their hours below; two columns on a phone. Never
   overflow: hidden on a tile, its tips reach upward; the tile under the pointer is lifted over its neighbours. */
.sv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(150px, 1.25fr);
  grid-auto-rows: minmax(130px, 1fr); gap: 10px; }
.sv-tiles > .sv-k--heute, .sv-tiles--ohne-test > [data-kachel="download"] { grid-column: 1 / -1; }
.sv-tiles[data-gross] { display: flex; flex-direction: column; }
.sv-tiles[data-gross] > :not(.is-gross) { display: none; }
.sv-tiles[data-gross] > .is-gross { flex: 1 1 auto; }
.sv-k { container-type: size; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 14px;
  border-radius: 22px; background: var(--bg-2); cursor: zoom-in; transition: background-color 0.15s ease; }
.sv-k:hover { z-index: 1; }
@media (hover: hover) { .sv-k.is-ueber { background: color-mix(in srgb, var(--ink) 4%, var(--bg-2)); } }   /* set by _sales.js */
.sv-k.is-gross { padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); cursor: auto; }
.sv-k__head { display: flex; flex: none; align-items: center; gap: 8px; min-height: 18px; }
.sv-k__t { margin: 0; min-width: 0; font: 600 13px/1.35 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink-dim); }
.sv-k__open { all: unset; cursor: pointer; }
.sv-k__open:focus-visible, .sv-k__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sv-k__v, .sv-day__figs .sv-day__value { flex: none; margin: 2px 0 0; overflow: hidden;
  font: 800 clamp(22px, 1.9vw, 28px)/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  white-space: nowrap; text-overflow: ellipsis; }
.sv-k.is-gross .sv-k__v, .sv-k.is-gross .sv-day__figs .sv-day__value { font-size: 34px; }
.sv-k__u { font-size: 0.55em; font-weight: 700; letter-spacing: 0; color: var(--ink-dim); }
.sv-k__keys { display: flex; flex: none; flex-wrap: wrap; gap: 0 12px; max-height: 18px; margin: 2px 0 0; padding: 0;
  overflow: hidden; list-style: none; font-size: 12px; line-height: 18px; color: var(--ink-dim); }
.sv-k__keys li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.sv-k__keys b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-k.is-gross .sv-k__keys { gap: 4px 16px; max-height: none; margin-top: 6px; font-size: 13px; line-height: 20px; }
.sv-k .sv-graph__plot { flex: 1 1 0; height: auto; min-height: 0; margin-top: 8px; }
.sv-k.is-gross .sv-graph__plot { margin-top: 14px; }
.sv-k__note { display: none; flex: none; margin: 10px 0 0; font-size: 13px; text-wrap: pretty; }
.sv-k.is-gross .sv-k__note:not(:empty) { display: block; }
.sv-k__nav { display: flex; flex: none; gap: 4px; margin-left: auto; }
.sv-k__btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
  background: var(--bg-3); color: var(--ink); font: 600 16px/1 var(--display); cursor: pointer; }
.sv-k__btn:hover { background: color-mix(in srgb, var(--ink) 10%, var(--bg-3)); }
/* Low tiles drop what explains: the title, the number and the chart stay. */
@container (max-height: 150px) {
  .sv-k__keys, .sv-day__meta, .sv-day__x, .sv-when { display: none; }
}
@container (max-height: 116px) {
  .sv-day__figs > div + div { display: none; }
}
@media (min-width: 700px) {
  .sv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(96px, 1fr); gap: 12px; }
  .sv-tiles > .sv-k--heute { grid-column: auto; }
  .sv-tiles > [data-kachel="netto"], .sv-tiles > [data-kachel="aktiv"], .sv-tiles--ohne-test > [data-kachel="download"] { grid-column: span 2; }
}
@media (min-width: 900px) {
  .sv-k { padding: 14px 18px; }
  .sv-k.is-gross { padding: 20px 24px; }
}
/* Chains of tags (20.11.2026): above the charts the profit of the year, Netto − Kosten = Gewinn (25.11.2026), buttons
   opening the sheet Gewinn; in it the whole calculation and where the money is as plain tags (span); the Store's
   estimate stands apart with a dashed border, it counts once Microsoft pays. */
.sv-chain { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sv-chain > li { display: flex; flex: none; }
.sv-chain__store { margin-left: auto; padding-left: 10px; }
.sv-op { color: var(--ink-dim); font: 700 15px/1 var(--display); }
.sv-pill { display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--ink-dim); font: inherit; font-size: 13px; line-height: 1.3; text-align: left; white-space: nowrap; cursor: pointer; }
.sv-pill:has(.sv-pill__m) { padding: 5px 12px; border-radius: 14px; }
.sv-pill b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-pill__m { grid-column: 1 / -1; font-size: 11px; line-height: 1.3; color: var(--ink-dim); }
button.sv-pill:hover { background: var(--bg-3); }
span.sv-pill { cursor: auto; }
.sv-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-pill--netto { border-color: var(--ink-faint); color: var(--ink); }
.sv-pill--rein, .sv-pill--konto { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); color: var(--ink); }
button.sv-pill--rein:hover, button.sv-pill--konto:hover { background: color-mix(in srgb, var(--accent) 18%, var(--bg-2)); }
.sv-pill--rein b, .sv-pill--konto b { font-size: 15px; }
.sv-pill--store { border-style: dashed; background: transparent; }
/* The view "Wann": devices per weekday and hour as a heat map (one hue, light to dark), columns per weekday and hour. */
.sv-when { position: relative; display: flex; flex: 1 1 0; flex-direction: column; gap: 18px; min-height: 0; margin-top: 8px; }
.sv-when__heat { display: flex; flex-direction: column; min-height: 0; }
.sv-k.is-gross .sv-when { margin-top: 14px; overflow-y: auto; }
.sv-k:not(.is-gross) .sv-when__t, .sv-k:not(.is-gross) .sv-when__heat > .note, .sv-k:not(.is-gross) .sv-when__cols { display: none; }
.sv-k:not(.is-gross) .sv-when__heat, .sv-k:not(.is-gross) .sv-heat { flex: 1 1 0; min-height: 0; }
.sv-k:not(.is-gross) .sv-heat { grid-template-rows: auto repeat(7, minmax(0, 1fr)); max-width: none; font-size: 10px; line-height: 1; }
.sv-k:not(.is-gross) .sv-heat__c { height: auto; min-height: 2px; }
.sv-k.is-gross .sv-heat { max-width: none; }
.sv-k.is-gross .sv-heat__c { height: 22px; }
.sv-when__t { margin: 0 0 8px; font: 700 14px/1.3 var(--display); color: var(--ink); }
.sv-when .note { margin: 8px 0 0; font-size: 13px; }
.sv-when__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.sv-when__tip { max-width: min(240px, 90%); white-space: normal; }
.sv-heat { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 2px; max-width: 760px; font-size: 11px; line-height: 1.2; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sv-heat__d { align-self: center; }
.sv-heat__c { display: block; height: 18px; border-radius: 3px; background: var(--bg-3); }
.sv-heat__c--1 { background: color-mix(in srgb, var(--c-blau) 28%, var(--bg-3)); }
.sv-heat__c--2 { background: color-mix(in srgb, var(--c-blau) 52%, var(--bg-3)); }
.sv-heat__c--3 { background: color-mix(in srgb, var(--c-blau) 76%, var(--bg-3)); }
.sv-heat__c--4 { background: var(--c-blau); }
.sv-heat__c--leer { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sv-cols { display: flex; gap: 2px; height: 104px; margin: 0; padding: 0; list-style: none; }
.sv-cols > li { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; }
.sv-cols__bar { display: flex; flex: 1; flex-direction: column-reverse; gap: 2px; width: 100%; max-width: 28px; min-height: 0; margin: 0 auto; }
.sv-cols__bar > i { display: block; flex: none; }
.sv-cols__bar > i:last-child { border-radius: 4px 4px 0 0; }
.sv-cols__l { flex: none; height: 16px; font-size: 11px; line-height: 16px; color: var(--ink-dim); text-align: center; white-space: nowrap; }
@media (max-width: 700px) {
  .sv-when__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* The profit in one row on the phone, scrolling sideways, _sales.js brings it into view; in the sheets they wrap. */
  .sv--sales > .sv-chain { flex-wrap: nowrap; margin: -4px -12px; padding: 4px 12px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
  .sv--sales > .sv-chain::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  /* Smaller switches on the phone, so the plot keeps its height (A37). */
  .sv-range button { padding: 4px 7px; font-size: 12px; }
  .sv-range__lang, .sv-switch__lang { display: none; }
}
.sv-meter { margin-top: 18px; }
.sv-meter__head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sv-meter__head span:last-child { font-weight: 700; white-space: nowrap; }
.sv-meter__track { display: block; height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.sv-meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.sv-meter--warn .sv-meter__fill { background: #c98500; }
.sv-meter--over .sv-meter__fill { background: light-dark(#c4362c, #e66767); }
.sv-meter__note { margin: 6px 0 0; font-size: 13px; color: var(--ink-dim); }
.sv-meter--warn .sv-meter__note strong { color: light-dark(#8a5a00, #e0a944); }
.sv-meter--over .sv-meter__note strong { color: var(--error-ink); }

/* Sales and Steuer on one screen (konto/sales.php 14.11.2026, steuer.php): a switch for the views, buttons that open
   sheets (popover). From 560px height the page is locked to the screen, so neither the phone nor the PC scrolls. */
.sv, .sv-sheet {
  --c-warn: light-dark(#c98500, #e0a944);
  --sv-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sv { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.sv .sv-top { gap: 6px 12px; margin: 0; }
.sv .h1 { margin: 0; }
.sv .sv-tags { position: relative; gap: 6px; }
.sv .sv-tag { position: static; gap: 6px; padding: 4px 10px; font-size: 13px; }
.sv .sv-tag .sv-tip { top: calc(100% + 6px); left: 0; right: auto; max-width: min(320px, 100%); }
.sv-dot--warn { background: var(--c-warn); }
.sv-dot--fehler { background: var(--error-ink); }
.sv-alert { padding: 4px 10px; border: 0; border-radius: 999px; background: var(--error-bg); color: var(--error-ink); font: 700 13px/1.3 var(--display); cursor: pointer; }
.sv-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv .sv-hero, .sv-tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: 22px; }
.sv-tile { background: var(--bg-2); border: 1px solid var(--line); }
.sv-kpis .sv-kpi__label { margin: 0; padding-right: 22px; }
.sv-kpis .sv-kpi__value { margin: 0; font: 800 24px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-kpis .sv-kpi__meta { margin: 0; padding: 0; font-size: 13px; line-height: 1.35; }
.sv-more { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 14px; border: 0; border-radius: inherit; background: none; color: inherit; opacity: 0.7; font: 800 18px/1 var(--display); cursor: pointer; }
.sv-more:hover { opacity: 1; }
.sv-more:focus-visible, .sv-nav > button:focus-visible, .sv-nav > a:focus-visible, .sv-alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-view { position: relative; display: flex; flex-direction: column; gap: 8px; }
.sv-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-3); }
.sv-switch--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-switch--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-switch .sv-dot { display: inline-block; margin: 0 6px 1px 0; vertical-align: middle; }
.sv-switch label { padding: 7px 4px; border-radius: 999px; font: 600 14px/1.2 var(--display); color: var(--ink-dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
#sv-v1:checked ~ .sv-switch [for="sv-v1"] { background: var(--bg-2); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.14); }
#sv-v2:checked ~ .sv-switch [for="sv-v2"] { background: var(--bg-2); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.14); }
#sv-v3:checked ~ .sv-switch [for="sv-v3"] { background: var(--bg-2); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.14); }
#sv-v4:checked ~ .sv-switch [for="sv-v4"] { background: var(--bg-2); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.14); }
#sv-v1:focus-visible ~ .sv-switch [for="sv-v1"] { outline: 2px solid var(--accent); outline-offset: 1px; }
#sv-v2:focus-visible ~ .sv-switch [for="sv-v2"] { outline: 2px solid var(--accent); outline-offset: 1px; }
#sv-v3:focus-visible ~ .sv-switch [for="sv-v3"] { outline: 2px solid var(--accent); outline-offset: 1px; }
#sv-v4:focus-visible ~ .sv-switch [for="sv-v4"] { outline: 2px solid var(--accent); outline-offset: 1px; }
#sv-v1:checked ~ .sv-panels > :nth-child(1) { display: flex; flex-direction: column; }
#sv-v2:checked ~ .sv-panels > :nth-child(2) { display: flex; flex-direction: column; }
#sv-v3:checked ~ .sv-panels > :nth-child(3) { display: flex; flex-direction: column; }
#sv-v4:checked ~ .sv-panels > :nth-child(4) { display: flex; flex-direction: column; }
.sv-panels { display: flex; flex-direction: column; }
.sv-panels > * { display: none; margin: 0; padding: 14px 16px; border-radius: 22px; }
.sv-panels > .sv-scroll { overflow-y: auto; }
.sv-scroll > * { flex: none; }
.sv-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sv-nav > button, .sv-nav > a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 34px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--ink); font: 600 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: pointer; }
.sv-nav > button:hover, .sv-nav > a:hover { background: var(--bg-3); }
body:has(.sv) .foot { font-size: 13px; }
body:has(.sv) .foot__inner { gap: 4px 12px; padding: 10px 0 12px; }
@media (max-width: 899px) {
  .sv .h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-height: 560px) {
  body:has(.sv) { height: 100dvh; min-height: 0; }
  body:has(.sv) main { display: flex; flex-direction: column; min-height: 0; }
  .sv { flex: 1; min-height: 0; }
  .sv-view, .sv-panels, .sv-panels > * { flex: 1; min-height: 0; }
  .sv--sales .sv-tiles { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  @supports (animation-timeline: scroll()) {
    .sv--sales .sv-tiles { mask-image: linear-gradient(to bottom, #000 calc(100% - var(--sv-fade)), transparent);
      animation: sv-fade linear both; animation-timeline: scroll(self); }
  }
}
@property --sv-fade { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes sv-fade { from { --sv-fade: 28px; } to { --sv-fade: 0px; } }
@media (min-width: 900px) {
  .sv { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top top" "kpis view" "nav view"; gap: 14px 20px; padding: 18px 0 14px; max-height: 900px; }
  .sv-top { grid-area: top; }
  .sv .h1 { font-size: 34px; }
  .sv-kpis { grid-area: kpis; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sv .sv-hero, .sv-tile { padding: 16px 20px; }
  .sv-kpis .sv-kpi__value { font-size: 32px; }
  .sv-view { grid-area: view; }
  .sv-nav { grid-area: nav; align-self: start; }
  .sv-panels > * { padding: 20px 24px; border-radius: var(--radius); }
}
/* Sales (20.11.2026): one column at every width, the chain of the year on top, the board of tiles (X891) in full width
   with the height that is left, the money and the buttons under it. */
.sv--sales > :not(.sv-tiles) { flex: none; }
.sv--sales .sv-nav { display: flex; flex-wrap: wrap; align-self: stretch; }
.sv--sales .sv-nav > button, .sv--sales .sv-nav > a { flex: 1 1 auto; padding: 4px 10px; }
@media (min-width: 900px) {
  .sv--sales { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-height: 559.98px) {   /* not locked to the window: the page grows, every tile gets a height of its own */
  .sv--sales .sv-tiles { grid-template-rows: none; grid-auto-rows: 160px; }
  .sv--sales .sv-tiles[data-gross] > .is-gross { min-height: 420px; }
}
/* The sheets: from below on the phone, in the middle from 700px; the head stays while the body scrolls. */
.sv-sheet { position: fixed; inset: auto 0 0 0; box-sizing: border-box; width: 100%; max-width: none; height: auto; max-height: min(88dvh, 720px); margin: 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 28px 28px 0 0; background: var(--bg-2); color: var(--ink); box-shadow: 0 -12px 40px rgb(0 0 0 / 0.2); text-align: left; font-size: 15px; line-height: 1.45; translate: 0 100%; transition: translate 0.45s cubic-bezier(0.32, 0.72, 0, 1); }
.sv-sheet:popover-open { translate: 0 0; }
@starting-style { .sv-sheet:popover-open { translate: 0 100%; } }
.sv-sheet::backdrop { background: rgb(0 0 0 / 0); transition: background-color 0.3s ease; }
.sv-sheet:popover-open::backdrop { background: rgb(0 0 0 / 0.32); }
@starting-style { .sv-sheet:popover-open::backdrop { background: rgb(0 0 0 / 0); } }
.sv-sheet__head { position: sticky; top: -18px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -18px -20px 10px; padding: 16px 20px 10px; background: var(--bg-2); }
@media (min-width: 700px) {
  .sv-sheet { inset: 0; width: min(720px, 100vw - 48px); height: fit-content; max-height: min(86dvh, 860px); margin: auto; padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.3); translate: none; opacity: 0; scale: 0.96; transition: opacity 0.2s ease, scale 0.35s cubic-bezier(0.32, 0.72, 0, 1); }
  .sv-sheet:popover-open { translate: none; opacity: 1; scale: 1; }
  @starting-style { .sv-sheet:popover-open { translate: none; opacity: 0; scale: 0.96; } }
  .sv-sheet__head { top: -20px; margin: -20px -24px 10px; padding: 18px 24px 10px; }
}
@supports (overlay: auto) {
  .sv-sheet { transition: translate 0.45s cubic-bezier(0.32, 0.72, 0, 1), overlay 0.45s allow-discrete, display 0.45s allow-discrete; }
  .sv-sheet::backdrop { transition: background-color 0.3s ease, overlay 0.45s allow-discrete, display 0.45s allow-discrete; }
  @media (min-width: 700px) {
    .sv-sheet { transition: opacity 0.2s ease, scale 0.35s cubic-bezier(0.32, 0.72, 0, 1), overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
  }
}
@media (prefers-reduced-motion: reduce) { .sv-sheet, .sv-sheet::backdrop { transition: none; } }
.sv-sheet__title { margin: 0; font: 700 19px/1.2 var(--display); }
.sv-sheet__close { position: relative; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-3); color: var(--ink-dim); cursor: pointer; }
.sv-sheet__close::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--sv-x) center / 11px no-repeat; mask: var(--sv-x) center / 11px no-repeat; }
.sv-sheet__close:hover { color: var(--ink); }
.sv-sheet__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-sheet .card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sv-sheet .card__title { margin: 0 0 8px; font-size: 17px; }
.sv-sheet .table { margin-top: 8px; }
.sv-sheet__body > * + * { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sv-sheet--one .sv-sheet__body > :first-child > .card__title:first-child { display: none; }
.sv-part--look > .card__title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--c-warn); vertical-align: middle; }
.sv-euer td:first-child { text-align: left; }
.sv-euer td + td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-euer__group th { padding-top: 14px; text-align: left; font: 700 13px/1.2 var(--display); color: var(--ink-dim); }
.sv-euer__sum td { font-weight: 700; }
.sv-euer__total td { font: 800 17px/1.3 var(--display); }
.sv-list { margin: 8px 0 0; padding: 0; list-style: none; }
.sv-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sv-list li > div:first-child { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.sv-list .note { margin: 2px 0 0; font-size: 13px; }
.sv-list__act { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-cost { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sv-cost input, .sv-cost select { min-width: 0; width: 11em; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: 16px; }
.sv-proof { margin: 10px 0; } .sv-proof > summary { cursor: pointer; font-weight: 600; padding: 6px 0; } .sv-proof > form { margin: 8px 0; } .sv-proof__title { margin: 14px 0 0; font-size: 15px; }
.sv-hints { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-dim); }
.sv-hints li + li { margin-top: 4px; }
.sv-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sv-toast { position: fixed; inset: auto 16px calc(16px + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; box-sizing: border-box; width: auto; max-width: 520px; height: auto; margin: 0 auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--ink); box-shadow: 0 12px 40px rgb(0 0 0 / 0.25); overflow-wrap: anywhere; }
.sv-toast:not([open]) { display: none; }
.sv-toast--error { border-color: var(--error-ink); }
.sv-toast > p { flex: 1 1 200px; margin: 0; font-size: 15px; }
.sv-toast__act { display: flex; gap: 8px; margin-left: auto; }
.sv-toast form { margin: 0; }
@supports not selector(:popover-open) {
  .sv-sheet { position: static; translate: none; max-height: none; margin: 16px auto; box-shadow: none; border-radius: var(--radius); }
  .sv-more, .sv-nav, .sv-sheet__close { display: none; }
}

/* Storage page (konto/fernwartung-speicher.php, NAS tile of Systeme) */
.st__hero { margin-bottom: 28px; }
.st__free { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.st__big { font: 800 clamp(40px, 6vw, 64px)/1 var(--display); }
.st__sub { font: 700 18px/1.2 var(--display); color: var(--ink-dim); }
.st__state { margin: 12px 0 16px; font-size: 15px; color: var(--ink-dim); }
.st__state .tag { font-size: 13px; margin-right: 6px; }
.st__stack { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-bottom: 14px; }
.st__stack span { display: block; min-width: 2px; }
.st__tip { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(79, 70, 229, 0.1); font-size: 14px; }
.st__list { display: flex; flex-direction: column; }
.st__row > summary, .st__row--leaf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 2fr) 76px 92px; align-items: center; gap: 12px; padding: 7px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.st__row > summary { cursor: pointer; list-style: none; }
.st__row > summary::-webkit-details-marker { display: none; }
.st__row > summary:hover, .st__row--leaf:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.st__row > summary .st__name::before { content: "▸"; display: inline-block; width: 14px; color: var(--ink-dim); transition: transform .15s; }
.st__row[open] > summary .st__name::before { transform: rotate(90deg); }
.st__row--leaf .st__name { padding-left: 14px; }
.st__name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st__name .card__dot { width: 10px; height: 10px; }
.st__path { font: 400 13px/1.3 ui-monospace, Consolas, monospace; }
.st__meter { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.st__meter span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.st__size { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.st__pct { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-dim); font-size: 13px; }
.st__kids { padding-left: 16px; margin-bottom: 6px; border-left: 2px solid var(--line); margin-left: 6px; }
.st__row--more .st__name { font-weight: 400; color: var(--ink-dim); }
.st__hint { margin: 4px 0 10px 20px !important; }
.st__split { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 24px; align-items: start; }
.st__donut { max-width: 220px; }
.st__donut text { fill: var(--ink-dim); font: 400 6px var(--text) !important; }
.st__donut .st__donut-big { fill: var(--ink); font: 800 10px var(--display) !important; }
.st__legend { display: flex; gap: 16px; margin: 0 0 8px !important; }
.st__legend span { display: inline-flex; align-items: center; gap: 6px; }
.st__legend i { width: 16px; height: 3px; border-radius: 2px; }
.st__dash { background: repeating-linear-gradient(90deg, var(--ink-dim) 0 5px, transparent 5px 9px); }
.st__setup { margin-bottom: 28px; border-color: rgba(79, 70, 229, 0.5); }
.st__setup ol { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; font-size: 15px; }
.st__script { margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); overflow-x: auto; white-space: pre; font-size: 12px; user-select: all; }
@media (max-width: 640px) {
  .st__split { grid-template-columns: 1fr; }
  .st__donut { margin: 0 auto; max-width: 180px; }
  .st__row > summary, .st__row--leaf { grid-template-columns: minmax(0, 1fr) 70px 84px; gap: 8px; }
  .st__meter { display: none; }
  .st__name { white-space: normal; overflow-wrap: anywhere; }
}

/* Start page for visitors (index.html, en.html): product tiles with frosted colour
   fields (design.md, 06.11.2026). Signed in (class "an", cookie hkan) the page is the home screen with the icons only. */
.an .sp-bento-head, .an .sp-bento,
:root:has(#konto.signin--in) :is(.sp-bento-head, .sp-bento) { display: none; }
:root:not(.an):not(:has(#konto.signin--in)) #apps-group { display: none; }
.sp-soft { display: block; color: var(--ink-faint); }
.sp-bento-head { margin: 56px 0 24px; }
.sp-bento-head h1 { margin: 6px 0 0; font: 600 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -0.025em; }
.sp-bento-head .sp-soft { display: inline; }
.sp-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.sp-ptile { position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sp-ptile:hover { transform: translateY(-3px); }
.sp-ptile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sp-ptile--wide { grid-column: span 2; min-height: 560px; }
.sp-ptile__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sp-ptile__top .eyebrow { margin: 0; }
.sp-badge { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; color: #fff; box-shadow: 0 8px 24px -6px var(--g); }
.sp-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-ptile__pic { position: relative; flex: 1; display: grid; place-items: center; margin: 24px 0; border-radius: 20px; overflow: hidden; }
.sp-ptile h3 { margin: 0 0 8px; font: 600 30px/1.1 var(--display); letter-spacing: -0.02em; }
.sp-ptile p { margin: 0; max-width: 46ch; color: var(--ink-dim); }
.sp-ptile__go { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sp-ptile__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sp-pic-lema { background: var(--mesh-green); }
.sp-pic-lema img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-pic-lema::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 60, 20, 0.55)); }
.sp-glass { position: absolute; z-index: 2; left: 20px; bottom: 20px; max-width: 360px; padding: 18px 20px; border-radius: 22px; color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.sp-glass .eyebrow { margin: 0; color: rgba(255, 255, 255, 0.85); }
.sp-glass b { display: block; margin: 8px 0 4px; font: 600 40px/1 var(--display); letter-spacing: -0.02em; }
.sp-glass b small { margin-left: 6px; font-size: 17px; font-weight: 500; opacity: .85; }
.sp-glass span { font-size: 14px; opacity: .85; }
.sp-pic-blue { background: var(--mesh-blue); }
.sp-pic-violet { background: var(--mesh-violet); }
.sp-squircle { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 32px; background: var(--c); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35); }
.sp-squircle img { width: 72px; height: 72px; }
.sp-traymenu { position: absolute; right: 22px; bottom: 22px; width: 190px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.86); color: #111; font-size: 13px; line-height: 1.2; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sp-traymenu span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; }
.sp-traymenu span:first-child { background: #111; color: #fff; }
.sp-traymenu i { width: 14px; height: 11px; flex: none; border-radius: 3px; background: #f2b544; }
@media (max-width: 760px) {
  .sp-bento-head { margin-top: 32px; }
  .sp-bento { grid-template-columns: 1fr; }
  .sp-ptile, .sp-ptile--wide { grid-column: auto; min-height: 0; padding: 22px; }
  .sp-ptile__pic { flex: none; min-height: 300px; }
  .sp-glass { left: 12px; bottom: 12px; max-width: 220px; padding: 12px 14px; }
  .sp-glass b { font-size: 28px; }
  .sp-squircle { width: 96px; height: 96px; border-radius: 26px; }
  .sp-squircle img { width: 56px; height: 56px; }
  .sp-traymenu { right: 14px; bottom: 14px; width: 160px; }
  #stm .sp-squircle { margin: -60px 0 0 -70px; }
  .sp-badge { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sp-ptile { transition: none; } }

/* Signed in: the start page is the home screen, chips and icons sit right on the page without a panel
   (design.md, Wunsch Markus 10.11.2026), the heading "Deine Apps" only for screen readers (no greeting since 14.11.2026). */
.an #apps-group, :root:has(#konto.signin--in) #apps-group { position: relative; isolation: isolate; margin-top: 12px; padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 6vw, 64px); }
.an .group--top + .group, .an #apps-group ~ section { margin-top: 16px; }

/* Frosted colour cloud card (design.md): a card filled with one --mesh-* field, white text, glass sheen on top.
   It redefines the colour tokens for everything inside, so meters, chips and dim text adapt on their own.
   Colour per topic: blue storage and income, red warnings and spending, green/orange runtime and progress,
   pink the assistant (Claude), violet products and licences; the overview chips use deep variants for small white text: emerald (sales), berry (tickets), ruby (shop). */
.mesh { position: relative; overflow: hidden; isolation: isolate; border: 0 !important; color: #fff; background: var(--mesh, var(--mesh-blue)) !important;
  --ink: #ffffff; --ink-dim: rgba(255, 255, 255, 0.82); --ink-faint: rgba(255, 255, 255, 0.6); --line: rgba(255, 255, 255, 0.28);
  --bg: rgba(255, 255, 255, 0.14); --bg-2: rgba(255, 255, 255, 0.14); --bg-3: rgba(255, 255, 255, 0.2); --accent-text: #ffffff;
  box-shadow: 0 22px 50px -26px var(--mesh-glow, rgba(40, 60, 160, 0.6)); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12); color-scheme: dark; }
.mesh::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 15% 0%, rgba(255, 255, 255, 0.28), transparent 55%); }
.mesh a { color: #fff; }
.mesh .card__dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.mesh--blue { --mesh: var(--mesh-blue); --mesh-glow: rgba(70, 90, 200, 0.7); }
.mesh--green { --mesh: var(--mesh-green); --mesh-glow: rgba(70, 160, 80, 0.7); }
.mesh--violet { --mesh: var(--mesh-violet); --mesh-glow: rgba(110, 70, 190, 0.7); }
.mesh--mint { --mesh: var(--mesh-mint); --mesh-glow: rgba(50, 150, 90, 0.7); }
.mesh--emerald { --mesh: var(--mesh-emerald); --mesh-glow: rgba(30, 130, 70, 0.7); }
.mesh--berry { --mesh: var(--mesh-berry); --mesh-glow: rgba(195, 35, 110, 0.7); }
.mesh--ruby { --mesh: var(--mesh-ruby); --mesh-glow: rgba(190, 40, 40, 0.7); }
.mesh--pink { --mesh: var(--mesh-pink); --mesh-glow: rgba(230, 60, 140, 0.7); }
.mesh--red { --mesh: var(--mesh-red); --mesh-glow: rgba(220, 60, 60, 0.7); }
.mesh--orange { --mesh: var(--mesh-orange); --mesh-glow: rgba(235, 130, 50, 0.7); }
.mesh--yellow { --mesh: var(--mesh-yellow); --mesh-glow: rgba(210, 160, 30, 0.7); }
/* Soft variant (Claude limits, Wunsch Georg 06.11.2026: clouds too dominant): 35 % less saturation,
   a light veil and a weaker glow; white text stays readable. */
.mesh--soft { box-shadow: 0 16px 36px -28px var(--mesh-glow, rgba(40, 60, 160, 0.4)); }
.mesh--soft::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(128, 128, 128, 0.35); mix-blend-mode: saturation; }
.mesh--soft::before { background: radial-gradient(120% 80% at 15% 0%, rgba(255, 255, 255, 0.22), transparent 55%), rgba(70, 70, 80, 0.12) !important; }
/* Dark: a slight shade over the colours only, the white text stays white. */
:root[data-theme="dark"] .mesh::before { background: radial-gradient(120% 80% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 55%), rgba(0, 0, 0, 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mesh::before { background: radial-gradient(120% 80% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 55%), rgba(0, 0, 0, 0.16); } }
/* Inside a cloud card: bars white on a light track (the card colour already tells the level), status words as white chips. */
.mesh .quota__bar { background: rgba(255, 255, 255, 0.28) !important; box-shadow: none !important; }
.mesh .quota__bar span { background: #ffffff !important; }
.mesh .quota__mark { background: rgba(0, 0, 0, 0.42); }
.mesh .quota__level { color: inherit; }
.mesh .quota__warn { color: #ffffff; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); }
.mesh .tag { border-color: rgba(255, 255, 255, 0.55) !important; color: #ffffff !important; background: rgba(255, 255, 255, 0.16); }
.mesh .lim__plan, .mesh .lim__plan--extra { color: #ffffff !important; border-color: rgba(255, 255, 255, 0.5) !important; background: rgba(255, 255, 255, 0.22) !important; }

/* Home screen "today" (start.js renderToday): small cloud chips for apps with news, no greeting (Wunsch Markus
   14.11.2026); not on phones, to leave the room to the icons. */
.today { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3.5vw, 32px); }
.today[hidden] { display: none; }
@media (max-width: 640px) { .today { display: none; } }
.today__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; line-height: 1.2; text-decoration: none; box-shadow: 0 8px 20px -12px var(--mesh-glow); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.today__chip:hover { transform: translateY(-1px); }
.today__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.today__chip b { font-weight: 700; }
.today__icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.today__icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .today__chip { transition: none; } }
