/* DM Sans: normales „t“ mit Bogen unten (Satoshis gerades t wirkt wie ein Kreuz) */
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-ext-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/dm-sans-latin-ext-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Amiri; src: url(/fonts/amiri.woff2) format('woff2'); font-display: swap; }

/* Regeln: DESIGN.md. Nur diese Variablen benutzen. */
:root {
  --bg: #F3EEE7; --paper: #FCFAF7; --soft: #F6F1EA; --line: #E5DCD1; --line2: #D3C7B9;
  --ink: #1F1B18; --ink2: #3A322D; --mute: #7A7068;
  --acc: #8A6547; --accF: #F1E6DA; --accL: #D9C1A7; --dark: #2B2420; --dark2: #3A312B; --cream: #F1E4D6;
  --ok: #3F6B43; --okF: #EAF1E6; --okL: #C9DCC3; --neg: #A4472F; --negF: #F7E7E1; --negL: #E3BFB3; --warn: #8C6214; --warnF: #FBF3E1; --warnL: #EBDDB8;
  /* Schrift: sechs Stufen */
  --t-page: 700 28px/34px 'DM Sans', system-ui, sans-serif;
  --t-sec: 700 20px/28px 'DM Sans', system-ui, sans-serif;
  --t-item: 700 16px/24px 'DM Sans', system-ui, sans-serif;
  --t-body: 400 16px/24px 'DM Sans', system-ui, sans-serif;
  --t-meta: 400 14px/20px 'DM Sans', system-ui, sans-serif;
  --t-label: 700 12px/16px 'DM Sans', system-ui, sans-serif;
  /* Abstände */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* Höhen, Radien */
  --h: 40px; --hs: 32px; --av: 32px; --avs: 24px;
  --r: 16px; --rc: 10px; --ri: 8px;
  --sh: 0 1px 2px rgba(43,36,32,.05);
  --w: 1280px; --gut: var(--s5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--t-body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
a { color: inherit; text-decoration-color: var(--line2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font: var(--t-page); letter-spacing: -.02em; }
h2 { font: var(--t-sec); letter-spacing: -.01em; }
h3 { font: var(--t-item); }
b, strong { font-weight: 700; }
.mute { color: var(--mute); }
.small { font: var(--t-meta); }
.label { font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; }
.acc { color: var(--acc); font-weight: 700; }
.okt { color: var(--ok); font-weight: 700; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.sp { flex: 1; }
.mt { margin-top: var(--s3); }
.err { font: var(--t-meta); color: var(--neg); font-weight: 500; }
.err:empty { display: none; }
.kick { font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.stack > * + * { margin-top: var(--s4); }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; background: rgba(252,250,247,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { height: 64px; display: flex; align-items: center; gap: var(--s6); }
.brand { font: var(--t-sec); text-decoration: none; letter-spacing: -.02em; }
.nav { display: flex; gap: var(--s1); }
.nav a { display: inline-flex; align-items: center; gap: var(--s2); height: var(--h); padding: 0 var(--s3); border-radius: var(--rc); text-decoration: none; color: var(--mute); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--ink); background: var(--accF); }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--paper); font: var(--t-label); display: inline-grid; place-items: center; }
.who-btn { display: flex; align-items: center; gap: var(--s3); border: 0; background: none; padding: 0; cursor: pointer; border-radius: 99px; height: var(--h); }
.who-btn:hover .nm { color: var(--ink); }
.av { width: var(--av); height: var(--av); border-radius: 50%; background: var(--dark); color: var(--cream); display: grid; place-items: center; font: var(--t-label); flex: none; }
.who-btn .nm { font-weight: 500; color: var(--ink2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu, .more { position: relative; }
.menu-pop, .more-pop { position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: 0 16px 40px -16px rgba(43,36,32,.3); padding: var(--s1); z-index: 40; }
.menu-pop .who { padding: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s1); }
.menu-pop .who .small { margin-top: 2px; }
.menu-pop a, .menu-pop button, .more-pop button { display: flex; align-items: center; width: 100%; height: var(--h); padding: 0 var(--s3); border: 0; background: none; text-align: left; text-decoration: none; cursor: pointer; border-radius: var(--ri); }
.menu-pop a:hover, .menu-pop button:hover, .more-pop button:hover { background: var(--soft); }
.more-pop .neg { color: var(--neg); }

main { padding-top: var(--s6); padding-bottom: 140px; }

/* Seitenkopf */
.pagehead { margin-bottom: var(--s6); }
.crumb { display: inline-flex; margin-bottom: var(--s2); font: var(--t-meta); color: var(--mute); text-decoration: none; }
.crumb::before { content: '‹'; margin-right: 6px; }
.crumb:hover { color: var(--ink); }
.ph-row { display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ph-t { min-width: 0; flex: 1; }
.ph-s { margin-top: var(--s1); color: var(--ink2); max-width: 68ch; }
.ph-a { display: flex; gap: var(--s2); align-items: center; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: var(--h); padding: 0 var(--s4); border-radius: var(--rc); border: 1px solid var(--line2); background: var(--paper); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.sm { height: var(--hs); padding: 0 var(--s3); font: var(--t-meta); font-weight: 500; }
.btn.pri { background: var(--dark); border-color: var(--dark); color: var(--paper); }
.btn.pri:hover { background: var(--dark2); }
.btn.danger { background: var(--neg); border-color: var(--neg); color: #fff; }
.btn.ok-b:hover { border-color: var(--ok); color: var(--ok); background: var(--okF); }
.btn.full { width: 100%; }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; font: inherit; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.link.neg { color: var(--neg); text-decoration-color: var(--negL); }
.link.quiet { color: var(--acc); text-decoration-color: var(--accL); }
.acts { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s4); }

/* Karten */
.card { --cp: var(--s5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--cp); box-shadow: var(--sh); }
.card-t { font: var(--t-sec); margin-bottom: var(--s4); display: flex; align-items: center; gap: var(--s3); }
.card-t .mute { font: var(--t-meta); }
.card-acts { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s5); }
.num { width: var(--avs); height: var(--avs); border-radius: 50%; background: var(--accF); color: var(--acc); display: grid; place-items: center; font: var(--t-label); flex: none; }
.empty { padding: var(--s6) var(--s5); border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; color: var(--mute); }
.foot-note { margin-top: var(--s6); font: var(--t-meta); color: var(--mute); text-align: center; }
.note { margin-top: var(--s3); padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--ri); color: var(--ink2); font: var(--t-meta); }
.loading { display: flex; gap: 6px; justify-content: center; padding: 120px 0; }
.loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); animation: lp 1s infinite ease-in-out; }
.loading i:nth-child(2) { animation-delay: .15s; } .loading i:nth-child(3) { animation-delay: .3s; }
@keyframes lp { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Zahlenkarten */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); padding: var(--s4) var(--s5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; box-shadow: var(--sh); transition: border-color .15s; }
.stat:hover { border-color: var(--line2); }
.stat.on { border-color: var(--ink2); box-shadow: inset 0 0 0 1px var(--ink2); }
.stat .s-n { font: var(--t-page); font-variant-numeric: tabular-nums; min-width: 28px; }
.stat .s-t { font: var(--t-meta); color: var(--ink2); }
.stat.akt .s-n { color: var(--acc); }

/* Werkzeugleiste */
.toolbar { display: grid; grid-template-columns: auto auto minmax(200px, 1fr); gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.toolbar > .tb-l, .toolbar > .tb-r { display: contents; }
.toolbar .search { justify-self: end; width: 100%; max-width: 320px; }
.toolbar > .mute { align-self: center; }
.search { width: 100%; min-width: 0; height: var(--h); padding: 0 var(--s3); }
.seg { display: inline-flex; align-items: center; height: var(--h); padding: var(--s1); background: var(--soft); border: 1px solid var(--line); border-radius: var(--rc); gap: 2px; }
.seg button { border: 0; background: none; height: var(--hs); padding: 0 var(--s3); border-radius: var(--ri); cursor: pointer; color: var(--mute); font: var(--t-meta); font-weight: 500; white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(43,36,32,.12); }

/* Kacheln */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.grid.few { grid-template-columns: 1fr; }
.grid.few .vcard { flex-direction: row; align-items: stretch; }
.grid.few .vcard > .cover { width: 300px; flex: none; }
.grid.few .vc-b { padding: var(--s3) var(--s4) var(--s2) var(--s5); }
.grid.few .vc-cta { align-self: flex-start; width: auto; min-width: 200px; }
.vcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); text-decoration: none; box-shadow: var(--sh); transition: border-color .15s; }
.vcard:hover { border-color: var(--line2); }
.vcard.akt { border-color: var(--accL); }
.vc-b { flex: 1; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s2) var(--s2); }
.vc-r { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.vc-st { font: var(--t-item); }
.vc-cta { margin-top: auto; }
.cover { container-type: inline-size; position: relative; aspect-ratio: 16/9; background: var(--dark); border-radius: var(--ri); padding: 6% 8%; display: flex; flex-direction: column; justify-content: center; gap: var(--s2); color: var(--cream); overflow: hidden; }
.cover::after { content: ''; position: absolute; inset: var(--s2); border: 1px solid rgba(241,228,214,.14); border-radius: var(--s1); pointer-events: none; }
.cover .c-k { font: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: #C9A988; }
.cover .c-t { font: var(--t-sec); font-size: clamp(16px, 5.6cqw, 24px); line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover .c-l { font: var(--t-meta); color: rgba(241,228,214,.6); }
.track { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s1); }
.track i { height: 4px; border-radius: 2px; background: var(--line); }
.track i.done { background: var(--ok); }
.track i.now { background: var(--acc); }
.okc { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; margin-right: var(--s2); flex: none; vertical-align: -4px; }
.okc svg { width: 12px; height: 12px; }

/* Liste statt Kacheln, Playlist-Zeilen */
.rows-t { padding: 0; overflow: hidden; }
.vrow { display: grid; grid-template-columns: 40px minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 120px 120px; gap: var(--s4); align-items: center; min-height: 64px; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); text-decoration: none; }
.vrow:last-child { border-bottom: 0; }
a.vrow:hover { background: var(--soft); }
.vrow.th { min-height: 0; padding-top: var(--s3); padding-bottom: var(--s3); background: var(--soft); color: var(--mute); font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; }
.vrow .nr { font: var(--t-item); color: var(--mute); font-variant-numeric: tabular-nums; }
.vt-w { display: flex; flex-direction: column; min-width: 0; }
.sub-s { display: none; }
.vrow .vt { font: var(--t-item); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow .v-st { display: flex; flex-direction: column; gap: 6px; }
.vrow .ta { display: flex; justify-content: flex-end; text-align: right; }
.vrow.akt .vt { color: var(--acc); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.lcard .cover { aspect-ratio: 16/7; }
.lcard .vc-b { gap: var(--s2); }
.ord { display: flex; gap: var(--s1); }
.ord .btn { width: var(--hs); padding: 0; }


/* Gruppierte Tabelle (Referenz Linear): Gruppenkopf mit Anzahl, kompakte Zeilen, Spalten wandern bei schmaler Breite in die Zeile */
.gt { padding: 0; overflow: hidden; container-type: inline-size; }
.gt-h, .gt-r { display: grid; grid-template-columns: 32px minmax(0, 1fr) 180px 160px 150px 96px 112px; gap: var(--s4); align-items: center; padding: 0 var(--s5); }
@container (min-width: 981px) { .gt.rend .gt-h, .gt.rend .gt-r { grid-template-columns: 32px minmax(0, 1fr) 180px 160px 96px 112px; } }
.gt.rend .c-lista { display: none; }
.gt-h { height: var(--h); background: var(--soft); border-bottom: 1px solid var(--line); font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.gt-r { min-height: 60px; border-bottom: 1px solid var(--line); text-decoration: none; font: var(--t-meta); color: var(--ink2); transition: background .12s; }
.gt-r:hover { background: var(--soft); }
.gt-r.akt { background: #FFFCF8; }
.gt-r.akt:hover { background: var(--accF); }
.gt-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt .c-tit { display: flex; flex-direction: column; justify-content: center; padding: var(--s2) 0; }
.gt .c-tit .vt { font: var(--t-item); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-r.akt .c-tit .vt { color: var(--acc); }
.gt .c-end { display: flex; justify-content: flex-end; }
.gt .c-kz, .gt .c-lista { color: var(--mute); }
.gt .nr { font: var(--t-item); color: var(--mute); font-variant-numeric: tabular-nums; }
.gt-sub { display: none; align-items: center; gap: var(--s3); color: var(--mute); font: var(--t-meta); }
.gt-sub > span:empty { display: none; }
.gt-sub > span + span::before { content: ''; }
.gt-sub .ring { width: 14px; height: 14px; }
.gt-g:last-child .gt-gb .gt-r:last-child { border-bottom: 0; }
.gt-gh { display: flex; align-items: center; gap: var(--s3); width: 100%; height: var(--h); padding: 0 var(--s5); border: 0; border-bottom: 1px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; font: var(--t-meta); font-weight: 700; color: var(--ink); }
.gt-gh:hover { background: var(--soft); }
.gt-gh .chev { width: 16px; height: 16px; display: grid; place-items: center; color: var(--mute); transition: transform .15s; transform: rotate(90deg); }
.gt-gh .chev svg { width: 14px; height: 14px; }
.gt-g.mb .chev { transform: none; }
.gt-g.mb .gt-gb { display: none; }
.gt-n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); color: var(--mute); font: var(--t-label); display: inline-grid; place-items: center; }
.gt-g[data-g="mua"] .gt-n { background: var(--acc); border-color: var(--acc); color: var(--paper); }
/* kleiner Fortschrittskreis */
.ring { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff;
  background: radial-gradient(circle, var(--paper) 40%, transparent 42%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring.q { background: none; border: 1.5px dashed var(--line2); }
.ring svg { width: 10px; height: 10px; }
.ring:has(svg) { background: var(--ok); }
/* Spalten wandern in die Zeile */
@container (max-width: 980px) { .gt-h, .gt-r { grid-template-columns: 32px minmax(0, 1fr) 160px 150px 112px; } .gt .c-lista, .gt .c-kz { display: none; } .gt-sub { display: flex; } .gt-sub .m-hapi, .gt-sub .ring { display: none; } }

@container (max-width: 720px) { .gt-h, .gt-r { grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s3); padding: 0 var(--s4); } .gt .c-hapi, .gt .c-radha { display: none; } .gt-sub .m-hapi { display: inline; } .gt-sub .ring { display: inline-grid; } .gt-gh { padding: 0 var(--s4); } }
@container (max-width: 480px) { .gt-h { display: none; } .gt .c-end .mute { display: none; } }
.st-s { cursor: default; }
.st-s:hover { border-color: var(--line); }
.ypl { list-style: none; margin: var(--s3) 0 0; padding: 0; max-height: 44vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--rc); }
.ypl li { display: flex; gap: var(--s3); align-items: center; min-height: 40px; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); font: var(--t-meta); }
.ypl li:last-child { border-bottom: 0; }
.ypl .nr { width: 24px; color: var(--mute); font-variant-numeric: tabular-nums; flex: none; }

/* echte Vorschaubilder */
.cover.img { padding: 0; background: #000; }
.cover.img::after { display: none; }
.cover.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .c-dur { position: absolute; right: var(--s2); bottom: var(--s2); padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font: var(--t-label); }
.vc-t { font: var(--t-item); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.tmini { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; background: var(--soft); border: 1px solid var(--line); }
.tmini.none { background: var(--dark); border-color: var(--dark); }
.gt .c-tit { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--s3); }
.gt .c-tit .tt { display: flex; flex-direction: column; min-width: 0; }
.gt-g.sub .gt-gh { padding-left: calc(var(--s5) + 24px); font-weight: 500; }
.gt-g.sub .gt-gh .tmini { width: 48px; height: 27px; }
.gt-open { margin-left: auto; }
.kgrp + .kgrp { margin-top: var(--s6); }
.kgrp-h { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.kgrp-h .h2s { margin: 0; }
.kgrp[data-g="mua"] .gt-n { background: var(--acc); border-color: var(--acc); color: var(--paper); }
.det-th { display: block; margin: calc(var(--cp) * -1) calc(var(--cp) * -1) var(--s4); }
.det-th .cover { border-radius: var(--r) var(--r) 0 0; }

/* Seitenleiste „Detajet“: Bezeichnung oben, Wert darunter, Ändern rechts */
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.kv:last-of-type { border-bottom: 0; }
.card-t + .kv { padding-top: 0; }
.kv .k { grid-column: 1; font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.kv .v { grid-column: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.kv .link { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: var(--t-meta); }
.kv .fl { display: flex; gap: var(--s2); align-items: baseline; }
.togs.radio .tog .tk { border-radius: 50%; }


/* Wochenübersicht */
.week { margin-bottom: var(--s5); }
.week-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.week-h .card-t { margin-bottom: var(--s3); }
.week-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.week-g > div { display: flex; flex-direction: column; }
.w-n { font: var(--t-sec); }
.week-n { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.week-n a { display: flex; flex-direction: column; text-decoration: none; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--rc); background: var(--soft); }
.week-n a:hover { border-color: var(--line2); }
/* Textprüfung: Vergleich, Glossar, Kommentare, Video */
.ndr-t { margin-bottom: var(--s2); font: var(--t-meta); font-weight: 700; color: var(--acc); }
.trow del { color: var(--neg); background: var(--negF); text-decoration: line-through; border-radius: 3px; }
.trow ins { color: var(--ok); background: var(--okF); text-decoration: none; border-radius: 3px; }
.fj-t { margin-top: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--ri); background: var(--warnF); color: var(--warn); font: var(--t-meta); }
.vid { margin-top: var(--s3); }
.vid iframe { width: 100%; max-width: 560px; aspect-ratio: 16/9; border: 0; border-radius: var(--ri); background: #000; display: block; }
.kom { margin-top: var(--s3); padding-left: var(--s4); border-left: 2px solid var(--line); }
.kom-i { padding: var(--s2) 0; font: var(--t-meta); }
.kom-i p { margin-top: 2px; color: var(--ink2); }
.kom-f { margin-top: var(--s2); }
.kom-f textarea.in { min-height: 64px; }
.mrows { margin-top: var(--s3); max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--rc); }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .tx { white-space: pre-line; }
.mrow .ar { display: block; font-family: Amiri, serif; font-size: 22px; line-height: 40px; direction: rtl; text-align: right; }
/* Playlist: Fortschritt, Plan */
.prog { margin-bottom: var(--s4); }
.prog .bar.big { height: 8px; border-radius: 4px; margin-top: var(--s3); }
.pl-d { display: block; margin-top: 2px; }
@container (min-width: 721px) { .gt .c-radha { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; } }
/* Teilen */
.share { display: flex; gap: var(--s4); align-items: flex-start; }
.share img { width: 132px; height: 132px; border-radius: var(--ri); border: 1px solid var(--line); background: #fff; flex: none; }
.pub { padding-top: var(--s6); max-width: 880px; }
.pub-v { padding: 0; overflow: hidden; }
.pub-v .cover { border-radius: 0; }
.pub-b { padding: var(--s5); }
.pub-b h2 { margin-bottom: var(--s1); }
.pub-l { display: flex; flex-direction: column; gap: var(--s2); }
.pub-r { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--rc); }
.pub-r .grow { display: flex; flex-direction: column; }
.pub-r .nr { width: 24px; color: var(--mute); font-variant-numeric: tabular-nums; }
.pub-qr { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin: var(--s6) 0; }
.pub-qr img { width: 160px; height: 160px; border-radius: var(--ri); border: 1px solid var(--line); background: #fff; }
/* Glossar-Tabelle */
.fjt .gt-h, .fjt .gt-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 96px; }
@media (max-width: 760px) {
  .week-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share { flex-direction: column; }
  .fjt .gt-h { display: none; }
  .fjt .gt-r { grid-template-columns: minmax(0, 1fr) auto; }
  .fjt .gt-r > :nth-child(2), .fjt .gt-r > :nth-child(3) { grid-column: 1; }
  .fjt .gt-r > .c-end { grid-column: 2; grid-row: 1; }
}

/* Schrittleiste */
.stepper { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: var(--s5) var(--s4); margin-bottom: var(--s5); }
.stp { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s1); padding: 0 var(--s1); }
.stp:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; border-radius: 1px; background: var(--line); }
.stp.done:not(:last-child)::after { background: var(--okL); }
.stp .n { width: var(--av); height: var(--av); border-radius: 50%; border: 1.5px solid var(--line2); background: var(--paper); display: grid; place-items: center; font: var(--t-label); color: var(--mute); margin-bottom: var(--s1); }
.stp .n svg { width: 14px; height: 14px; }
.stp .s-n { font: var(--t-meta); font-weight: 500; color: var(--mute); }
.stp .s-k { font: var(--t-meta); color: var(--mute); }
.stp.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.stp.done .s-n { color: var(--ink2); }
.stp.done .s-k { color: var(--ok); }
.stp.now .n { background: var(--acc); border-color: var(--acc); color: var(--paper); box-shadow: 0 0 0 4px var(--accF); }
.stp.now .s-n { color: var(--ink); font-weight: 700; }
.stp.now .s-k { color: var(--acc); }

/* Video-Seite */
/* die lange Seitenleiste darf die erste Zeile nicht strecken: ihre Höhe geht in die flexible zweite Zeile */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: min-content 1fr; grid-template-areas: "main side" "hist side"; gap: var(--s5); align-items: start; }
.layout > .main { grid-area: main; }
.layout > .hist-c { grid-area: hist; }
.layout > .side { grid-area: side; }
.main > * + * { margin-top: var(--s5); }
.side { display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: 88px; }
.status .kick { margin-bottom: var(--s2); }
.status h2 { margin-bottom: var(--s2); }
.status p { color: var(--ink2); max-width: 68ch; }
.status.akt { border-color: var(--accL); background: #FFFCF8; }
.status.ok { border-color: var(--okL); }
.status p.radha, .radha { max-width: none; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.pp-l { font: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: var(--s4) 0 var(--s2); }
.card-t + .pp-l { margin-top: 0; }
.pick-p { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pick-p button { display: inline-flex; align-items: center; gap: var(--s2); height: var(--hs); padding: 0 var(--s3); border: 1px solid var(--line2); background: var(--paper); border-radius: 99px; cursor: pointer; font: var(--t-meta); font-weight: 500; color: var(--ink2); transition: background .15s, border-color .15s; }
.pick-p button:has(.av) { padding-left: 3px; }
.pick-p button:hover { border-color: var(--ink2); }
.pick-p .av { width: var(--avs); height: var(--avs); background: var(--accF); color: var(--acc); font-size: 10px; }
.pick-p button.on { background: var(--dark); border-color: var(--dark); color: var(--paper); }
.pick-p button.on .av { background: var(--cream); color: var(--dark); }
.frow { display: flex; gap: var(--s3); align-items: center; min-height: 48px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font: var(--t-meta); }
.frow:last-child { border-bottom: 0; }
.mlist .frow:first-child { padding-top: 0; min-height: 40px; }
.ext { width: 40px; height: var(--hs); border-radius: var(--ri); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font: var(--t-label); font-size: 10px; letter-spacing: .04em; color: var(--mute); flex: none; }
.ext.big { width: 48px; height: var(--h); font-size: 12px; }
.nm { overflow-wrap: anywhere; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font: var(--t-meta); color: var(--ink2); }
.hist li:last-child { border-bottom: 0; }
.hist time { color: var(--mute); }
.older { margin-top: var(--s2); }
.older summary { cursor: pointer; color: var(--mute); font: var(--t-meta); }
.dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.dl { display: flex; align-items: center; gap: var(--s4); text-decoration: none; }
.dl:hover { border-color: var(--line2); }
.dl .grow { display: flex; flex-direction: column; }
.dl b { font: var(--t-item); }
.dl svg { width: 18px; height: 18px; color: var(--mute); }

/* Textprüfung */
.tb-head { position: sticky; top: 72px; z-index: 5; display: flex; gap: var(--s3) var(--s4); align-items: center; flex-wrap: wrap; padding: var(--s3) var(--s4); background: rgba(252,250,247,.97); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.tb-prog { flex: 1; min-width: 180px; font: var(--t-meta); }
.tb-head .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tb-head .seg button { flex: none; }
.main, .side, .hist-c, #work, #rows, .trow, .tr-body { min-width: 0; }
.tb-prog .bar { margin-top: var(--s2); }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; width: 0; height: 100%; background: var(--ok); transition: width .3s; }
#rows { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); }
.trow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); padding: var(--s5); background: var(--paper); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); transition: border-color .15s, opacity .15s; }
.tr-when { display: flex; flex-direction: column; gap: 2px; }
.tm { font: var(--t-item); font-variant-numeric: tabular-nums; color: var(--ink); }
.trow .tx { white-space: pre-line; overflow-wrap: anywhere; }
.trow .ar { white-space: pre-line; font-family: Amiri, serif; font-size: 28px; line-height: 48px; direction: rtl; text-align: right; margin-top: var(--s2); }
.tr-meta { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; margin-top: var(--s3); font: var(--t-meta); color: var(--mute); }
.trow .say { margin-top: var(--s2); padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--ri); color: var(--ink2); font: var(--t-meta); font-style: italic; }
.warn-t { margin-bottom: var(--s2); font: var(--t-meta); font-weight: 700; color: var(--warn); }
.trow.pas { background: var(--warnF); border-color: var(--warnL); border-left-color: var(--warn); }
.trow.ok { border-left-color: var(--ok); opacity: .62; }
.trow.ok:hover { opacity: 1; }
.trow.korr { border-color: var(--negL); border-left-color: var(--neg); }
.trow .done { margin-top: var(--s4); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; font: var(--t-meta); }
.trow .done.is-ok { color: var(--ok); font-weight: 700; }
.trow .done.is-korr { color: var(--neg); }
.trow .done .mute { font-weight: 400; }
.korrbox { margin-top: var(--s3); }

/* Videoprüfung */
.vr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.vr-v { padding: var(--s3); }
.player { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--ri); display: block; }
.ctrl { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) 0 0; }
.compose { padding-bottom: var(--s4); margin-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.cp-h { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s2); font: var(--t-meta); font-weight: 500; }
.compose textarea.in { min-height: 88px; }
.compose .acts { margin-top: var(--s3); }
.vnote { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.vnote:last-child { border-bottom: 0; }
.vnote p { white-space: pre-wrap; overflow-wrap: anywhere; }
.vnote .jump { border: 0; background: var(--accF); color: var(--acc); border-radius: var(--ri); height: var(--avs); padding: 0 var(--s2); cursor: pointer; font: var(--t-meta); font-weight: 700; min-width: 56px; }
.vnote .jump:hover { background: var(--acc); color: var(--paper); }
.vn-a { display: flex; gap: var(--s3); font: var(--t-meta); }
.vnote.old { opacity: .65; }
.vnote.old .tm { min-width: 56px; font: var(--t-meta); font-weight: 700; }
.vnote .acts { margin-top: var(--s2); }

/* Formulare */
.form { max-width: 680px; display: flex; flex-direction: column; gap: var(--s4); }
.form-acts { display: flex; justify-content: flex-end; gap: var(--s2); }
.card > * + label.f, .card > * + .f, .card > .seg + * { margin-top: var(--s4); }
label.f, .f { display: block; }
label.f > span, .flabel { display: block; margin-bottom: var(--s2); font: var(--t-meta); font-weight: 500; color: var(--ink2); }
label.f > em, .f > em { display: block; font-style: normal; color: var(--mute); font: var(--t-meta); margin-top: var(--s2); }
em.fe { color: var(--neg); font-weight: 500; }
em.fe:empty { display: none; }
.in { width: 100%; height: var(--h); padding: 0 var(--s3); border: 1px solid var(--line2); border-radius: var(--rc); background: #fff; outline: none; font: var(--t-body); transition: border-color .15s, box-shadow .15s; }
textarea.in { height: auto; min-height: 96px; padding: var(--s2) var(--s3); resize: vertical; }
.in:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(138,101,71,.15); }
.in:disabled { background: var(--soft); color: var(--mute); }
.drop { display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding: var(--s5); border: 1.5px dashed var(--line2); border-radius: var(--rc); background: var(--soft); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--acc); background: var(--accF); }
#vsel, #nsel { margin-top: var(--s2); }
#prog .bar { margin: var(--s2) 0; }

/* Personen */
.table { padding: 0; overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) 140px 120px 104px; gap: var(--s4); align-items: center; min-height: 64px; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.th { min-height: 0; background: var(--soft); font: var(--t-label); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.tr.off { opacity: .55; }
.td-n { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.td-nt { display: flex; flex-direction: column; min-width: 0; }
.td-nt b { font: var(--t-item); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-a { text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { display: inline-flex; align-items: center; height: var(--avs); padding: 0 var(--s2); border-radius: var(--ri); background: var(--soft); border: 1px solid var(--line); font: var(--t-meta); color: var(--ink2); }
.st-ok { color: var(--ok); font: var(--t-meta); font-weight: 500; }
.st-off { color: var(--neg); font: var(--t-meta); font-weight: 500; }
.shab { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s3); }
.togs { display: grid; gap: var(--s2); }
.tog { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line2); border-radius: var(--rc); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.tog .grow { display: flex; flex-direction: column; }
.tog b { font-weight: 500; }
.tog:hover { border-color: var(--ink2); }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog .tk { width: var(--avs); height: var(--avs); border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; color: transparent; }
.tog .tk svg { width: 12px; height: 12px; }
.tog:has(input:checked) { border-color: var(--ok); background: var(--okF); }
.tog:has(input:checked) .tk { background: var(--ok); border-color: var(--ok); color: #fff; }
.tog:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(138,101,71,.2); }
.danger-zone { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.danger-zone h3 { margin-bottom: var(--s2); }
.dz-row { display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.dz-row:last-child { border-bottom: 0; }
.dz-row .grow { display: flex; flex-direction: column; }
.dz-row b { font-weight: 500; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: var(--s4) 0; }
.cred > div { display: flex; flex-direction: column; padding: var(--s3) var(--s4); background: var(--soft); border: 1px solid var(--line); border-radius: var(--rc); }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; user-select: all; }

/* Seitenfenster */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(31,27,24,0); transition: background .2s; }
.sheet-wrap.on { background: rgba(31,27,24,.32); }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.sheet-wrap.on .sheet { transform: none; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 64px; padding: 0 var(--s5); border-bottom: 1px solid var(--line); flex: none; }
.sheet header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-body { padding: var(--s5); overflow-y: auto; flex: 1; }
.sh-acts { display: flex; justify-content: flex-end; gap: var(--s2); padding-top: var(--s2); }
.vpick { max-height: 50vh; overflow-y: auto; }

/* Bestätigung */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(31,27,24,.36); display: grid; place-items: center; padding: var(--s4); }
.m-box { width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--r); padding: var(--s5); box-shadow: 0 24px 60px -20px rgba(31,27,24,.45); }
.m-box h2 { margin-bottom: var(--s2); }
.m-acts { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s5); }

/* untere Leiste */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(252,250,247,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom)); }
.dock-in { display: flex; gap: var(--s4); align-items: center; }
.dock-in .grow { font: var(--t-meta); }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s6) var(--s4); }
.login .card { width: 100%; max-width: 400px; padding: var(--s6); }
.login .card > * + * { margin-top: var(--s4); }
.login .brand { font: var(--t-page); }
.login .card > p { margin-top: var(--s1); }

/* Meldung */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px); display: flex; gap: var(--s4); align-items: center; background: var(--dark); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--rc); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#toast.bad { background: var(--neg); }
#toast .link-on { border: 0; background: none; color: var(--cream); text-decoration: underline; cursor: pointer; font-weight: 700; padding: 0; }


@media (max-width: 900px) {
  .toolbar { grid-template-columns: auto auto; justify-content: space-between; }
  .toolbar .search { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "main" "side" "hist"; }
  .side { position: static; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "c c" "l s"; row-gap: var(--s2); padding-top: var(--s4); padding-bottom: var(--s4); }
  .tr > .td-n { grid-area: n; } .tr > .chips { grid-area: c; } .tr > :nth-child(3) { grid-area: l; } .tr > :nth-child(4) { grid-area: s; text-align: right; } .tr > .td-a { grid-area: a; }
  .tr > :nth-child(3)::before { content: 'Hyri së fundi '; }
  .th { display: none; }
  .vrow { grid-template-columns: 24px minmax(0, 1fr) auto; padding: var(--s3) var(--s4); }
  .sub-s { display: block; }
  .vrow > .hide-s { display: none; }
  .vrow.th { display: none; }
}
@media (max-width: 640px) {
  :root { --t-page: 700 24px/30px 'DM Sans', system-ui, sans-serif; --gut: var(--s4); }
  .top-in { gap: var(--s2); }
  .top .brand { display: none; }
  .nav a { padding: 0 var(--s2); }
  .who-btn .nm { display: none; }
  main { padding-top: var(--s5); }
  .pagehead { margin-bottom: var(--s5); }
  .ph-a { width: 100%; }
  .ph-a > .btn, .ph-a > .more { flex: 1; }
  .ph-a .more > .btn { width: 100%; }
  .stats { gap: var(--s2); }
  .stat { flex-direction: column; align-items: flex-start; gap: 0; padding: var(--s3); }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .seg, .search { width: 100%; }
  .toolbar #fl { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .toolbar #fl button { flex: none; }
  .seg button { flex: 1; }
  .grid, .lgrid, .grid.few { grid-template-columns: 1fr; }
  .grid.few .vcard { flex-direction: column; }
  .grid.few .vcard > .cover { width: auto; }
  .grid.few .vc-b { padding: var(--s4) var(--s2) var(--s2); }
  .grid.few .vc-cta { width: 100%; }
  .card:not(.rows-t):not(.table):not(.gt) { --cp: var(--s4); }
  .stepper { padding: var(--s4) var(--s2); }
  .stp .s-n, .stp .s-k { display: none; }
  .stp .n { width: var(--avs); height: var(--avs); }
  .stp:not(:last-child)::after { top: 11px; left: calc(50% + 15px); right: calc(-50% + 15px); }
  .trow { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s4); }
  .tr-when { flex-direction: row; gap: var(--s3); align-items: center; }
  .dls, .cred { grid-template-columns: 1fr; }
  .form-acts .btn, .card-acts .btn, .sh-acts .btn { flex: 1; }
  .kb { display: none; }
  .prog .vc-r { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .tb-head { flex-direction: column; align-items: stretch; }
  .tb-head #allok { width: 100%; }
  .tb-prog { min-width: 0; }
  .gt-open { display: none; }
  .gt-g.sub .gt-gh { padding-left: var(--s4); }
  .gt-gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
#work:empty { display: none; }
.trow del { margin-right: 4px; }

/* Tabelle schmal: kleineres Bild, Titel auf zwei Zeilen, Reihenfolge nur am großen Bildschirm */
@container (max-width: 720px) {
  .gt .gt-r .tmini { width: 48px; height: 27px; }
  .gt .gt-r .c-tit .vt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@container (max-width: 480px) { .gt.rend .ord { display: none; } }
