/* AllTextr am Handy, Probe ohne App (iOS-Plan, 27.11.2026). Werte nur aus tokens.css, eigene Klassen nur für das,
   was es im Designsystem nicht gibt (großer Aufnahmeknopf, Liste der Aufnahmen). */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-m);
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
main { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + var(--s4)) var(--s4) calc(env(safe-area-inset-bottom) + var(--s4)); }

.h-top { display: flex; align-items: center; gap: var(--s3); }
.h-top img { width: 36px; height: 36px; border-radius: var(--r-s); }
.h-top b { font-size: var(--fs-xl); font-weight: var(--fw-title); }
.h-top b span { font-weight: var(--fw-normal); color: var(--muted); }
.h-top .st { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: var(--s1); }
.h-top .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.h-top .st.off i { background: var(--dot-idle); }

.stage { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s6) 0 var(--s5); }
.h-rec { width: 132px; height: 132px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--acc-ink);
  background: linear-gradient(180deg, var(--acc-mid) 0%, var(--acc-strong) 100%); box-shadow: var(--shadow-acc), 0 0 0 8px var(--acc-soft);
  font-family: inherit; cursor: pointer; }
.h-rec svg { width: 52px; height: 52px; }
.h-rec.on { background: var(--signal); box-shadow: 0 0 0 10px var(--signal-soft); }
.h-rec:disabled { opacity: .5; }
.time { font-size: var(--fs-num); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; min-height: 34px; }
.hint { color: var(--muted); font-size: var(--fs-s); text-align: center; line-height: 1.45; margin: 0; }
canvas.wave { width: 100%; height: 56px; }

.h-list h2 { font-size: var(--fs-s); color: var(--muted); font-weight: var(--fw-strong); margin: var(--s4) 0 var(--s2); }
.item { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-m); padding: var(--s3) var(--s4);
  display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dot-idle); }
.item .dot.sending { background: var(--acc); animation: puls 1.2s ease-in-out infinite; }
.item .dot.waiting { background: var(--project); }
.item .dot.done { background: var(--acc-strong); }
.item .dot.error { background: var(--danger); }
.item .tx { flex: 1; min-width: 0; }
.item .tx b { display: block; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tx small { color: var(--muted); font-size: var(--fs-xs); }
.item .btn { height: 32px; }
.empty { color: var(--faint); font-size: var(--fs-s); padding: var(--s3) 0; }
@keyframes puls { 50% { opacity: .35; } }

/* Fenster "Wissen alle Bescheid?" wie am PC (meeting.js consent) */
.sheet { position: fixed; inset: 0; background: rgba(15, 12, 30, .45); display: flex; align-items: flex-end; z-index: 10; }
.sheet .box { background: var(--surface); width: 100%; max-width: 520px; margin: 0 auto; border-radius: var(--r-l) var(--r-l) 0 0;
  padding: var(--s5) var(--s4) calc(env(safe-area-inset-bottom) + var(--s4)); box-shadow: var(--shadow-2); }
.sheet h3 { margin: 0 0 var(--s2); font-size: var(--fs-xl); font-weight: var(--fw-title); }
.sheet p { margin: 0 0 var(--s3); line-height: 1.5; }
.sheet q { display: block; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-s);
  padding: var(--s3); quotes: none; line-height: 1.5; margin-bottom: var(--s2); }
.sheet .h-row { display: flex; gap: var(--s2); margin-top: var(--s4); }
.sheet .h-row .btn { flex: 1 1 auto; justify-content: center; height: 44px; white-space: nowrap; }
.sheet .h-row .btn.sec { flex: 0 0 auto; }
.sheet .btn.copy { height: 32px; }

.pair { flex: 1; display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s5); }
.pair h1 { font-size: var(--fs-xxl); margin: 0; line-height: 1.25; }
.pair .lead { margin: 0; color: var(--muted); line-height: 1.5; }
.pair-art { width: 100%; max-width: 320px; height: auto; align-self: center; margin-bottom: var(--s2); }
.pa-dev { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.pa-fill, .pa-fill rect { fill: var(--dot-idle); stroke: none; }
.pa-mic rect { fill: var(--acc-strong); }
.pa-mic path { fill: none; stroke: var(--acc-strong); stroke-width: 2.5; stroke-linecap: round; }
.pa-path { stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; fill: none; }
.pa-path.back { stroke: var(--dot-idle); }
.pa-dot { fill: var(--acc-strong); }
.pa-dot.back { fill: var(--muted); }
.pa-box { fill: #1a1633; stroke: var(--line); stroke-width: 1.5; }   /* wie das App-Symbol, auch im Dunkelmodus Nachtblau */
/* Logo-Striche wie komponenten.css .mark: außen Text- bzw. Weißfarbe, Mitte Mint */
.pa-mark path { fill: none; stroke-width: 36; stroke-linecap: round; }
.pa-mark .m1 { stroke: #fff; }
.pa-mark .m2 { stroke: #5ee6c8; }
.pa-mark.mini .m1, .pa-mark.mini .m2 { stroke: var(--dot-idle); }   /* dezent im Grau der Textzeilen */
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s2) 0 0; display: flex; flex-direction: column; gap: var(--s2); }
.steps li { counter-increment: s; position: relative; background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-m);
  padding: var(--s3) var(--s4) var(--s3) 52px; display: flex; flex-direction: column; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: var(--s4); top: var(--s3); width: 24px; height: 24px; border-radius: 50%;
  background: var(--acc-soft); color: var(--acc-strong); font-weight: var(--fw-title); font-size: var(--fs-s); display: grid; place-items: center; }
.steps b { font-weight: var(--fw-strong); }
.steps span { color: var(--muted); font-size: var(--fs-s); }
.steps .code { margin-top: var(--s2); }
.devname { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--fs-s); color: var(--muted); }
.devname i { font-style: normal; color: var(--faint); }
.devname .name { height: 44px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  font: inherit; font-size: var(--fs-l); color: var(--ink); padding: 0 var(--s3); }
.devname .name:focus { outline: none; box-shadow: 0 0 0 2px var(--acc-strong); }
.pair .small { margin: 0; color: var(--faint); font-size: var(--fs-xs); line-height: 1.5; text-align: center; }
.pair .code { height: 56px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  font: inherit; font-size: var(--fs-num); font-weight: var(--fw-title); text-align: center; letter-spacing: .12em; color: var(--ink); }
.pair .code:focus { outline: none; box-shadow: 0 0 0 2px var(--acc-strong); }
.pair .btn { height: 48px; justify-content: center; }
.pair .err { color: var(--danger); min-height: 20px; }
.foot { margin-top: auto; padding-top: var(--s5); text-align: center; font-size: var(--fs-xs); color: var(--faint); }
.foot button { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; }

/* Reiter Aufnehmen / Gespräche und Gespräche-Ansicht (28.11.2026) */
.conv { display: block; width: 100%; text-align: left; background: var(--surface); box-shadow: var(--shadow-1); border: 0; border-radius: var(--r-m);
  padding: var(--s3) var(--s4); margin-top: var(--s2); font: inherit; color: var(--ink); }
.conv:first-of-type { margin-top: var(--s4); }
.conv span { display: flex; gap: var(--s2); align-items: baseline; }
.conv b { flex: 1; min-width: 0; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv time { font-size: var(--fs-xs); color: var(--faint); flex: none; }
.conv small { display: block; color: var(--muted); font-size: var(--fs-s); line-height: 1.45; margin-top: 2px; }
.conv em { display: inline-block; font-style: normal; font-size: var(--fs-xs); color: var(--acc-strong); background: var(--acc-soft); border-radius: var(--r-pill); padding: 1px 8px; margin-top: var(--s2); }
button.item { width: 100%; border: 0; font: inherit; color: var(--ink); text-align: left; }
.item .go { color: var(--faint); font-size: var(--fs-xl); }
.note { background: var(--acc-soft); border-radius: var(--r-m); padding: var(--s4); margin-top: var(--s4); line-height: 1.5; display: flex; flex-direction: column; gap: var(--s3); }
.note .btn { align-self: flex-start; }
.h-detail { padding-top: var(--s3); line-height: 1.55; }
.h-detail .back { background: none; border: 0; padding: var(--s2) 0; font: inherit; font-weight: var(--fw-strong); color: var(--acc-strong); }
.h-detail h1 { font-size: var(--fs-xxl); margin: var(--s2) 0 0; line-height: 1.3; }
.h-detail > time { color: var(--faint); font-size: var(--fs-s); }
.h-detail h2 { font-size: var(--fs-l); margin: var(--s5) 0 var(--s2); }
.h-detail p { margin: 0 0 var(--s2); }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-s); padding: var(--s2) var(--s3); margin-bottom: var(--s2); }
.tasks small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.h-detail details { margin-top: var(--s5); }
.h-detail summary { font-weight: var(--fw-strong); font-size: var(--fs-l); cursor: pointer; padding: var(--s2) 0; }
.h-detail .del { margin-top: var(--s5); }

/* Bestätigung nach dem Verbinden: sanft einblenden, Kreis und Haken zeichnen sich nacheinander */
.paired { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--s3); padding: var(--s6); text-align: center; opacity: 0; transition: opacity .35s ease; }
.paired.in { opacity: 1; }
.paired.out { opacity: 0; }
.paired svg { width: 96px; height: 96px; }
.paired .pc { fill: var(--acc-soft); stroke: var(--acc-strong); stroke-width: 4; stroke-dasharray: 264; stroke-dashoffset: 264;
  transform: rotate(-90deg); transform-origin: 48px 48px; transition: stroke-dashoffset .7s ease-out .15s; }
.paired .pk { fill: none; stroke: var(--acc-strong); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .4s ease-out .8s; }
.paired.in .pc, .paired.in .pk { stroke-dashoffset: 0; }
.paired h2 { margin: var(--s2) 0 0; font-size: var(--fs-xxl); opacity: 0; transform: translateY(6px); transition: opacity .4s ease 1s, transform .4s ease 1s; }
.paired p { margin: 0; color: var(--muted); line-height: 1.5; max-width: 300px; opacity: 0; transition: opacity .4s ease 1.15s; }
.paired.in h2 { opacity: 1; transform: none; }
.paired.in p { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .paired, .paired * { transition: none !important; } }

/* Schalter "Ohne Rechner auswerten" (Plan Auswerten ohne PC, 29.11.2026) */
.h-srv { display: flex; gap: var(--s3); align-items: flex-start; width: 100%; max-width: 420px; padding: var(--s3) var(--s4);
  border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; text-align: left; }
.h-srv input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--acc-strong); }
.h-srv span { display: flex; flex-direction: column; gap: var(--s1); }
.h-srv b { font-size: var(--fs-m); }
.h-srv small { color: var(--muted); font-size: var(--fs-s); line-height: 1.45; }

/* Tablet und iPad (Roman 29.11.2026: "responsive, auch für iPads"). Aufnehmen: Knopf links, Liste als Fläche rechts
   (Verhältnis nach goldenem Schnitt), Gespräche zweispaltig; Verbinden und Lesen in lesbarer Breite, Kopf fluchtet
   immer mit dem Inhalt, weil die Breite an main hängt. Geprüft mit Abzügen 820x1180 und 1180x820 (Prüfagent). */
@media (min-width: 768px) {
  html, body { font-size: 16px; }
  main { max-width: 1080px; padding-left: calc(var(--s6) + var(--s2)); padding-right: calc(var(--s6) + var(--s2)); }
  main[data-view="pair"], main[data-view="detail"] { max-width: 744px; }
  main[data-view="pair"] { justify-content: center; }
  main[data-view="pair"] > .pair { flex: 0 0 auto; margin-top: auto; margin-bottom: auto; padding-bottom: var(--s6); }
  .hint, .pair .small { text-wrap: balance; }
  main[data-view="rec"] { display: grid; grid-template-columns: minmax(300px, 1fr) 1.618fr; column-gap: var(--s6);
    grid-template-rows: auto auto auto 1fr; grid-template-areas: "top top" "tabs tabs" "stage list" "foot list"; }
  main[data-view="rec"] > .h-top { grid-area: top; }
  main[data-view="rec"] > .stage { grid-area: stage; align-self: start; margin-top: var(--s5); padding-top: var(--s5); }
  main[data-view="rec"] > .h-list { grid-area: list; margin-top: var(--s5); padding: var(--s2) var(--s5) var(--s5);
    background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); min-height: max(440px, calc(100dvh - 260px));
    align-self: start; display: flex; flex-direction: column; }
  main[data-view="rec"] > .h-list .item { box-shadow: 0 0 0 1px var(--line); }
  main[data-view="rec"] > .h-list .empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
  main[data-view="rec"] > .foot { grid-area: foot; align-self: start; margin-top: 0; padding-top: var(--s5); }
  .h-rec { width: 160px; height: 160px; }
  .h-rec svg { width: 60px; height: 60px; }
  /* gleich breite Spalten (minmax 0: ein langer Titel zieht die Spalte nicht auf), oben bündig, gleicher Abstand */
  main[data-view="list"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); row-gap: var(--s3);
    align-content: start; align-items: start; }
  main[data-view="list"] > .conv { margin-top: 0; }
  main[data-view="list"] > .h-top { margin-bottom: var(--s1); }
  main[data-view="list"] > :not(.conv) { grid-column: 1 / -1; }
  .sheet .box { max-width: 560px; border-radius: var(--r-l); margin-bottom: var(--s6); }
  @media (max-height: 900px) { .pair-art { max-width: 220px; } }   /* iPad quer: Formular passt ohne Rollen */
}

/* Teilen (Scheibe 1, 30.11.2026) */
.h-dbar { display: flex; align-items: center; justify-content: space-between; }
.h-dbar .btn { height: 36px; }
.share .label { display: block; margin: var(--s3) 0 var(--s2); }
.h-checks { display: flex; flex-direction: column; gap: var(--s2); }
.h-checks label { display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s3);
  border-radius: var(--r-m); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.h-checks input { width: 20px; height: 20px; accent-color: var(--acc-strong); }
.h-mailopts { display: flex; gap: var(--s2); align-items: center; }
.h-mailopts .seg { display: flex; background: var(--tab-idle); border-radius: var(--r-pill); padding: 3px; flex: none; }
.h-mailopts .seg button { height: 34px; padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: none;
  font: inherit; font-weight: var(--fw-strong); color: var(--muted); }
.h-mailopts .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.h-mailopts .own { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: var(--r-m); padding: 0 var(--s3);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: inherit; color: var(--ink); }
.sheet .h-row.h-ways .btn { flex: 1 1 0; }
.sheet .h-row.h-ways + .h-row { margin-top: var(--s2); }

/* Prüfzahl beim Koppeln (Scheibe Q, 30.11.2026) */
.h-pz { font-size: 44px; font-weight: var(--fw-title); letter-spacing: .06em; text-align: center; font-variant-numeric: tabular-nums;
  padding: var(--s4); border-radius: var(--r-l); background: var(--acc-soft); color: var(--ink); margin: var(--s2) 0; }

/* Diktieren (30.11.2026) */
.h-mode { display: flex; gap: var(--s1); background: var(--tab-idle); border-radius: var(--r-pill); padding: 4px;
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: var(--s3); }
.h-mode button { height: 36px; padding: 0 var(--s5); border: 0; border-radius: var(--r-pill); background: none;
  font: inherit; font-weight: var(--fw-strong); color: var(--muted); }
.h-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.h-dres { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line);
  padding: var(--s4); }
.h-dres p { margin: 0 0 var(--s3); line-height: 1.5; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.h-dres .h-row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.h-dres .ok { color: var(--acc-strong); font-weight: var(--fw-strong); font-size: var(--fs-s); flex: 1; }
.h-dict .tx b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: var(--fw-normal); }

/* Unterleiste (30.11.2026, Entwurf docs/studio-design/handy/unterleiste-v1.html) */
main { padding-bottom: calc(env(safe-area-inset-bottom) + 92px); }
.h-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; box-sizing: border-box; background: var(--surface); box-shadow: 0 -1px 0 var(--line);
  padding: 6px var(--s2) calc(env(safe-area-inset-bottom) + 6px); display: flex; justify-content: center; }
.h-bar button { flex: 1 1 0; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0;
  background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: var(--fw-strong); min-height: 48px; }
.h-bar button svg { width: 24px; height: 24px; }
.h-bar button[aria-selected="true"] { color: var(--acc-strong); }
.h-bar .ico { position: relative; display: inline-flex; }
.h-bar .ico i { font-style: normal; position: absolute; left: 14px; top: -4px; background: var(--signal); color: #fff; border-radius: 999px;
  font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px; }
.h-mehr h1 { font-size: var(--fs-xxl); margin: var(--s4) 0 var(--s3); }
.h-mehr section { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); padding: var(--s4); margin-bottom: var(--s3); }
.h-mehr h2 { font-size: var(--fs-m); margin: 0 0 var(--s1); }
.h-mehr .small { color: var(--muted); font-size: var(--fs-s); margin: 0 0 var(--s3); line-height: 1.45; }
.h-field { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--fs-s); color: var(--muted); margin-bottom: var(--s3); }
.h-field input { height: 44px; border: 0; border-radius: var(--r-m); padding: 0 var(--s3); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line); font: inherit; color: var(--ink); }
.h-mehr .h-mailopts { justify-content: space-between; }
.h-mehr .h-mailopts > span { font-size: var(--fs-s); color: var(--muted); }
.h-danger { color: var(--danger); width: 100%; justify-content: center; height: 44px; }

/* Darstellung Hell/Dunkel/Automatisch (30.11.2026), gleich wie der Du/Sie-Schalter, über die volle Breite */
.h-mehr .h-theme { display: flex; background: var(--tab-idle); border-radius: var(--r-pill); padding: 3px; }
.h-mehr .h-theme button { flex: 1; height: 34px; border: 0; border-radius: var(--r-pill); background: none;
  font: inherit; font-weight: var(--fw-strong); color: var(--muted); }
.h-mehr .h-theme button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* App-Optik Gespräche und Mehr (Roman 30.11.2026 "soll ausschauen wie eine App", Weg "Beides").
   Großer Titel in Höhe der Logozeile, Listen als ein Block mit Linien und Pfeil, Abschnittsköpfe klein und grau,
   am iPad links die Liste, rechts das offene Gespräch. Werte aus tokens.css. */
.h-nav { display: flex; align-items: center; gap: var(--s3); min-height: 36px; margin-bottom: var(--s4); }
.h-nav h1 { margin: 0; font-size: var(--fs-num); font-weight: var(--fw-title); line-height: 1.15; }
.h-nav .st { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: var(--s1); }
.h-nav .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-idle); }
.h-group { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.h-group .conv { position: relative; box-shadow: none; border-radius: 0; margin: 0; padding: var(--s3) calc(var(--s4) + 20px) var(--s3) var(--s4);
  border-top: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.h-group .conv:first-child { border-top: 0; }
.h-group .conv::after { content: ''; position: absolute; right: var(--s4); top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: translateY(-50%) rotate(45deg); }
.h-group .conv:active { background: var(--hover); }
.h-group .conv[aria-current="true"] { background: var(--acc-soft); }
.h-group .conv b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-group .conv time { color: var(--muted); }
.h-dbar { min-height: 44px; }
.h-detail .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s3) 0 0; font-size: var(--fs-l); }
.h-detail .back svg { width: 11px; height: 18px; }
.h-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none;
  color: var(--acc-strong); border-radius: var(--r-pill); }
.h-icon svg { width: 22px; height: 22px; }
.h-icon:active { background: var(--hover); }
.h-detail h2 { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: var(--fw-strong);
  margin: var(--s5) 0 var(--s2) var(--s1); }
.h-detail .h-text p { margin: 0 0 var(--s2); }
.h-detail .tasks.h-group li { display: flex; gap: var(--s3); align-items: flex-start; background: none; box-shadow: none; border-radius: 0;
  margin: 0; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.h-detail .tasks.h-group li:first-child { border-top: 0; }
.h-detail .tasks li > i { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); margin-top: 2px; }
.h-detail details.h-group { margin-top: var(--s5); }
.h-detail details.h-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  padding: 0 var(--s4); font-size: var(--fs-l); font-weight: var(--fw-strong); cursor: pointer; }
.h-detail details.h-group summary::-webkit-details-marker { display: none; }
.h-detail details.h-group summary::after { content: ''; width: 8px; height: 8px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s; }
.h-detail details.h-group[open] summary::after { transform: rotate(135deg); }
.h-detail details.h-group .h-text { padding: 0 var(--s4) var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.h-delrow { display: block; width: 100%; min-height: 48px; margin-top: var(--s5); border: 0; border-radius: var(--r-l); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); color: var(--danger); font: inherit; font-weight: var(--fw-strong); }
.h-delrow:active { background: var(--danger-soft); }
/* Schrift in Flächenfarbe: hell weiß auf Dunkelorange (ca. 5:1), dunkel Nachtblau auf Koralle (ca. 7:1) */
.sheet .btn.h-danger-btn { background: var(--danger); color: var(--surface); border: 0; }
@media (prefers-reduced-motion: no-preference) {
  main[data-view="detail"] .h-detail { animation: h-push .22s ease-out; }
  @keyframes h-push { from { transform: translateX(16px); opacity: 0; } }
}
@media (min-width: 768px) {
  main[data-view="split"] { max-width: 1080px; }
  .h-split { display: grid; grid-template-columns: minmax(280px, .618fr) minmax(0, 1fr); column-gap: var(--s5); align-items: start; flex: 1; }
  .h-pane-list { position: sticky; top: var(--s4); display: flex; flex-direction: column; }
  .h-pane-list .foot { margin-top: 0; text-align: left; }
  .h-pane-detail .h-detail { padding-top: 0; }
  .h-pane-detail .h-dbar { float: right; min-height: 0; margin: -6px -10px 0 var(--s3); }
  .h-pane-detail .h-dbar > span { display: none; }
  .h-pane-detail .h-detail h1 { margin-top: 0; }
  .h-pane-empty { min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--faint);
    border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
}

/* Zweite Prüfrunde App-Optik (30.11.2026) */
.sheet .h-row.h-eq .btn { flex: 1 1 0; }
.h-group .conv[aria-current="true"] em { background: var(--surface); }
.h-detail h2 { margin-left: 0; }
.h-mehr h2 { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: var(--fw-strong); }
.h-mehr .btn.h-danger { color: var(--danger); }
@media (min-width: 768px) {
  .h-mehr { max-width: 744px; }   /* Titel bleibt links bündig mit Gespräche, nur der Inhalt ist schmal */
  .sheet { align-items: center; }
  .sheet .box { max-width: 440px; margin-bottom: 0; border-radius: var(--r-l); }
  .h-pane-empty { min-height: calc(100dvh - 260px); background: var(--surface); }
  .h-pane-detail .h-detail h1 { padding-top: var(--s3); }
  .h-pane-detail .h-dbar { margin-top: calc(var(--s3) - 6px); }
}

/* Umschalter (Diktieren/Gespräch, Du/Sie, Darstellung): gewählte Option im Dunkeln heller als die Spur */
:root { --seg-on: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seg-on: #22314d; } }
:root[data-theme="dark"] { --seg-on: #22314d; }
.h-mode button[aria-pressed="true"], .h-mailopts .seg button[aria-pressed="true"], .h-mehr .h-theme button[aria-pressed="true"] { background: var(--seg-on); }
