/*
 * TCMS – Bausteine der Oberfläche (AP4: Grundgerüst)
 * Nur Variablen aus design.css. Aufbau nach Mockup 02, Look nach Mockup 04.
 * Handy-Fassung: Klasse "hm" am Wurzelelement (gesetzt in js/shell.js).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  letter-spacing: var(--ls-body);
  line-height: 1.35;
  background: var(--c-bg);
  color: var(--c-tx);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Start und Anmeldung ---------- */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--c-mu); font-size: 14px; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.lcard {
  width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px;
  background: var(--c-card); border: 1px solid var(--c-bd); border-radius: var(--frame-rad);
  box-shadow: var(--frame-sh); padding: 26px 22px 20px;
}
.lhead { display: flex; justify-content: center; padding: 10px 0 14px; border-radius: var(--bar-rad); background: var(--bar-bg); }
.lhead .logo { pointer-events: none; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.fld input {
  height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--c-efb);
  background: var(--c-ef); color: var(--c-tx); font-size: 16px; font-weight: 400;
}
.fld input:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.chk { display: flex; align-items: center; gap: 9px; font-size: 14px; min-height: 40px; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--acc); }
.lerr { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--c-err-bg); color: var(--c-err-tx); font-size: 13px; }
.lnote { margin: 0; color: var(--c-mu); font-size: 12px; }
.lcard .add { height: 42px; font-size: 15px; }

/* ---------- Rahmen der Anwendung ---------- */
#app { min-height: 100vh; padding: 0 var(--pad-app-x) var(--pad-app-b); }

/* ---------- Fester Kopf: Menüband und Schaltzeile ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--c-bg); padding-top: 9.6px; }
.bar {
  background: var(--bar-bg); color: var(--bar-tx); border: 1px solid var(--bar-bd);
  border-radius: var(--bar-rad); padding: var(--bar-pad); box-shadow: var(--bar-sh);
  display: flex; flex-wrap: wrap; gap: 4.8px 14.4px; align-items: center; font-size: var(--fs-bar);
  position: relative;
}
.logo { display: inline-flex; align-items: center; margin-right: 4.8px; border-radius: 4px; cursor: pointer; }
.logo img { width: var(--logo-w); height: var(--logo-h); display: block; }
.logo .lg-h { display: var(--logo-hell-d, none); }
.logo .lg-d { display: var(--logo-dunkel-d, block); }
.bar .sp { flex: 1; }
.mnu { display: flex; flex-wrap: wrap; gap: 3.2px 6.4px; align-items: center; }
.mi {
  padding: var(--mi-pad); border-radius: var(--rad-pill); cursor: pointer; user-select: none;
  color: var(--mi-tx); font-weight: var(--mi-fw); text-decoration: none; white-space: nowrap;
}
.mi:hover { background: var(--mi-hover-bg); color: var(--mi-hover-tx); }
.mi.on { background: var(--mi-on-bg); color: var(--mi-on-tx); font-weight: var(--mi-on-fw); }

.srch {
  display: inline-flex; align-items: center; gap: 6.4px; height: 30.4px; padding: 0 11.2px;
  border-radius: var(--rad-pill); background: var(--srch-bg); color: var(--srch-tx);
  border: 1px solid var(--srch-bd); cursor: text;
}
.srch:focus-within { background: var(--barctl-bg-hover); }
.srch input { width: clamp(96px, 14vw, 208px); border: 0; outline: 0; background: transparent; color: var(--srch-input); padding: 0; }
.srch input::placeholder { color: var(--srch-ph); }
.srch input::-webkit-search-cancel-button { display: none; }

.gb2 {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--barctl-bd); border-radius: 50%; background: var(--barctl-bg); color: var(--barctl-tx); cursor: pointer;
}
.gb2:hover { background: var(--barctl-bg-hover); }
.gb2.on { background: var(--barctl-bg-on); }

/* Theme-Schieber: Sonne (Kühl) | Mond (Dunkel) */
.sw3 { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--barctl-bg); border-radius: var(--rad-pill); padding: 2.4px; }
.sw3::before {
  content: ""; position: absolute; top: 2.4px; bottom: 2.4px; left: 2.4px; width: calc(50% - 2.4px);
  background: var(--tsw-knob); border-radius: var(--rad-pill); box-shadow: var(--tsw-knob-sh); transition: transform var(--t-slide);
}
.sw3.r::before { transform: translateX(100%); }
.sw3 button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 25.6px; padding: 0; border: 0; border-radius: var(--rad-pill); background: transparent;
  color: var(--tsw-tx); opacity: .8; cursor: pointer;
}
.sw3 button.on { color: var(--tsw-on-tx); opacity: 1; }

/* Schaltzeile: links, Mitte, rechts */
.sub {
  position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gap-sub);
  align-items: center; padding: 8px 3.2px 6.4px; font-size: var(--fs-sub);
}
.sub > .c1 { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 6.4px; min-width: 0; }
.sub > .c2 { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; }
.sub > .c3 { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 12.8px; }
.sub:empty { display: none; }
.narrow .sub, .narrow #main { max-width: var(--max-list); }

/* Knöpfe */
.back, .add {
  border: 1px solid var(--btn-bd); border-radius: var(--rad-pill); height: var(--sz-ctl); padding: 0 14.4px;
  background: var(--btn-bg); color: var(--btn-tx); font-size: var(--fs-btn); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.back:hover { background: var(--btn-bg-hover); }
.add { background: var(--add-bg); color: var(--add-tx); border-color: transparent; font-weight: var(--add-fw); box-shadow: var(--add-sh); }
.add:hover { background: var(--add-bg-hover); }
.add:disabled { opacity: .6; cursor: default; }
.gb {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--btn-bd); border-radius: 50%; background: var(--btn-bg); color: var(--btn-tx); cursor: pointer;
}
.gb:hover { background: var(--btn-bg-hover); }

/* Jahres- und Monatskapsel */
.yrw { position: relative; display: inline-flex; align-items: center; gap: 6.4px; }
.yr {
  display: inline-flex; align-items: center; gap: 3.2px; background: var(--yr-bg); border: 1px solid var(--yr-bd);
  box-shadow: var(--yr-sh); border-radius: var(--rad-pill); padding: 2.4px; font-size: var(--fs-yr); font-weight: 700;
}
.nb {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; width: 2.4em; height: 2.4em;
  padding: 0; border: 0; border-radius: 50%; background: var(--nb-bg); color: var(--c-tx); font-size: inherit; font-weight: 400;
  line-height: 1; cursor: pointer; box-shadow: var(--nb-sh);
}
.nb:hover { background: var(--nb-bg-hover); }
.nb:active { transform: scale(.94); }
.yb {
  display: inline-flex; align-items: center; justify-content: center; gap: 4.8px; min-width: 3.2em; height: 2.4em; padding: 0 9.6px;
  border: 0; border-radius: var(--rad-pill); background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap;
}
.yb:hover { background: color-mix(in srgb, var(--c-tx) 8%, transparent); }
.yb svg { flex: none; opacity: .7; }
.dl { padding: 0 9.6px; white-space: nowrap; }

/* Weiche Schieber */
.sw4 {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sw-bg);
  border: 1px solid var(--sw-bd); border-radius: var(--rad-pill); padding: 2.4px; max-width: 100%;
}
.sw4::before {
  content: ""; position: absolute; top: 2.4px; bottom: 2.4px; left: 2.4px; width: calc((100% - 4.8px) / var(--n, 2));
  background: var(--sw-knob); border-radius: var(--rad-pill); box-shadow: var(--sw-knob-sh);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--t-slide), width var(--t-slide);
}
.sw4 button {
  position: relative; z-index: 1; border: 0; background: transparent; color: var(--sw-tx); font-size: var(--fs-sw); font-weight: var(--sw-fw);
  min-height: var(--sz-ctl); padding: 0 17.6px; border-radius: var(--rad-pill); cursor: pointer; white-space: nowrap;
}
.sw4 button.on { color: var(--sw-on-tx); font-weight: var(--sw-on-fw); }
/* Schieber mit Feldern nach Textbreite (Aufgaben-Filter) */
.sw4.auto { grid-auto-columns: auto; }
.sw4.auto::before { left: 0; width: var(--kw, 0px); transform: translateX(var(--kl, 0px)); }
.sw4.auto button { padding: 0 8px; }
.sw4 .s { display: none; }
@media (max-width: 1180px) { .sw4 .l { display: none; } .sw4 .s { display: inline; } }
@media (max-width: 900px) { .sw4.auto button { font-size: 12px; } }

/* Legende */
.leg { display: flex; gap: 9.6px; flex-wrap: wrap; font-size: var(--fs-leg); color: var(--c-mu); }
.leg i { display: inline-block; width: 7.2px; height: 7.2px; border-radius: 50%; margin-right: 4px; }
.leg .o { background: var(--c-opt); } .leg .z { background: var(--c-zus); } .leg .v { background: var(--c-ver); }
@media (max-width: 1000px) { .leg { display: none; } }

/* ---------- Seiten ---------- */
#main { padding-top: 3.2px; }
.pgh { display: flex; flex-wrap: wrap; gap: 9.6px 14.4px; align-items: center; justify-content: space-between; margin: 0 0 4.8px; padding: var(--pgh-pad); }
.menupage .pgh { margin-top: 3.2px; }
.pgt { margin: 0; font-size: var(--fs-pgt); font-weight: var(--fw-pgt); letter-spacing: var(--ls-pgt); }
.pgs { color: var(--c-mu); font-size: var(--fs-pgs); }
.pl { padding: 32px 6.4px; color: var(--c-mu); font-size: var(--fs-pl); }
.pl.set { max-width: var(--max-set); padding: 18px 8px; font-size: 12px; }

/* Platzhalter-Rahmen */
.frame {
  background: var(--frame-bg); border: 1px solid var(--frame-bd); border-radius: var(--frame-rad); box-shadow: var(--frame-sh);
  min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px 16px; color: var(--c-mu); text-align: center; font-size: var(--fs-pl);
}
.frame b { color: var(--c-tx); font-size: 15px; }
.frame.tall { min-height: 60vh; justify-content: flex-start; padding-top: 48px; }

/* Jahresansicht: Monatsrahmen (nur Gerüst, Inhalt AP5) */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6.4px; padding-top: 3.2px; }
@media (min-width: 448px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 880px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mo { background: var(--frame-bg); border: 1px solid var(--frame-bd); border-radius: var(--frame-rad); box-shadow: var(--frame-sh); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.mn {
  display: block; width: 100%; margin: 0; border: 0; padding: var(--band-pad); background: var(--band-bg); color: var(--band-tx);
  font-size: var(--fs-band); font-weight: var(--fw-band); text-align: var(--band-align); text-shadow: var(--band-sh);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mn:hover { filter: brightness(1.08); }
.mo.cur { box-shadow: 0 0 0 1.5px var(--band-cur-bg), var(--frame-sh); }
.mo.cur .mn { background: var(--band-cur-bg); color: var(--band-cur-tx); }
.mo.old .mn { background: var(--band-old-bg); color: var(--band-old-tx); }
.mob { aspect-ratio: 1 / .82; display: flex; align-items: center; justify-content: center; color: var(--c-mu); font-size: 12px; }
.grid.fokus .mo.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 639.8px) { .grid.fokus .mo.big { grid-column: 1 / -1; grid-row: auto; } }
.dash { margin-top: 20px; }
/* Zusammenfassung der Jahresansicht (Hendrik 28.11.2026): PC neben dem Datum-Schieber, Handy unter dem Kalender */
.ysum { font-size: 13px; color: var(--c-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ys-pc { margin-left: 6px; }
@media (max-width: 1240px) { .ys-pc { white-space: normal; line-height: 1.25; font-size: 12px; } .ys-pc > span { display: block; white-space: nowrap; } }
/* zu wenig Platz neben dem Datum-Schieber (Schieber bleibt mittig): wie am Handy unter dem Kalender */
@media (max-width: 1000px) { html:not(.hm) .ys-pc { display: none; } html:not(.hm) .ys-hm { display: block; text-align: center; margin-top: 12px; } }
.ys-hm { display: none; }
html.hm .ys-pc { display: none; }
html.hm .ys-hm { display: block; text-align: center; margin-top: 12px; }
.dshr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

/* Einstellungen (AP6: eine Zeile = Text links, Schalter rechts in einer gleich breiten Spalte; am Handy darunter) */
.sset { max-width: var(--max-set2); }
.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--set-ctl); gap: 9.6px 24px; align-items: center; padding: 16px 8px;
  border-top: 1px solid var(--c-bd);
}
.srow:last-of-type { border-bottom: 1px solid var(--c-bd); }
.srow b { font-size: var(--fs-srow); }
.srow .pgs { margin-top: 3px; }
.srow .val { font-size: 13px; }
.sctl { display: flex; justify-content: flex-start; min-width: 0; }
.sctl .sw4 { display: grid; width: 100%; }
.sctl .sw4 button { padding: 0 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sctl > .back { width: 100%; }
/* E-Mail öffnen mit: Schieber und darunter die Webmail-Adresse */
.sctl:has(.swm) { flex-direction: column; gap: 8px; }
.sctl .swm { width: 100%; min-width: 0; box-sizing: border-box; height: 32px; padding: 0 8px; font: inherit; font-size: 13px;
  color: var(--c-tx); background: var(--c-ef); border: 1px solid var(--c-efb); border-radius: 8px; }
.sctl .swm:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.sctl .swm[aria-invalid="true"] { border-color: var(--c-abstx); }
html.hm .sctl .swm { font-size: 16px; }   /* iOS: kein Zoom beim Antippen */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
.kv span { color: var(--c-mu); }
html:not(.hm) .sctl .kv b { white-space: nowrap; overflow-wrap: normal; }
.kv span.ok { color: var(--c-vertx); }   /* AP6: vorher grau auf grün (Befund 27.11.2026, "erreichbar" schwer lesbar) */
.kv span.bad { color: var(--c-abstx); }
.kv b { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.ok { color: var(--c-vertx); background: var(--c-ver); border-radius: var(--rad-pill); padding: 2px 10px; font-size: 13px; font-weight: 700; display: inline-block; }
.bad { color: var(--c-abstx); background: var(--c-abs); border-radius: var(--rad-pill); padding: 2px 10px; font-size: 13px; font-weight: 700; display: inline-block; }
.src { max-width: var(--max-set2); color: var(--c-mu); font-size: 12px; padding: 14px 8px; }
.src a { color: var(--link); }

/* Meldungen */
.toast {
  position: fixed; left: 50%; bottom: 22.4px; transform: translateX(-50%); z-index: 400; max-width: calc(100vw - 32px);
  background: var(--c-tx); color: var(--c-bg); padding: 8px 14.4px; border-radius: var(--rad-pill); font-size: 13px;
  box-shadow: var(--shadow-toast); text-align: center;
}

/* ---------- Menüband: schmalere Fenster (Mockup 02) ---------- */
@media (max-width: 1300px) { .bar { gap: 4.8px 10px; } }
@media (max-width: 1040px) { .bar { gap: 4.8px 8px; } .mnu { gap: 2px 3.2px; } .mi { padding: 4.8px 7.2px; } .srch input { width: 88px; } }
@media (max-width: 880px) { .bar { font-size: 12px; } .mi { padding: 4.8px 5.6px; } .srch input { width: 64px; } }
@media (max-width: 832px) { .srch { width: 32px; height: 32px; padding: 0; justify-content: center; cursor: pointer; } .srch input { display: none; } .srch.open input { display: block; } }
@media (max-width: 720px) { .back, .add { padding: 0 9.6px; } }

/* ---------- Handy (html.hm) – Mockup 02, Handy-Fassung ---------- */
.hmr, .hdw, .hfb { display: none; }
html.hm, html.hm body { overflow-x: hidden; }
html.hm #app { padding: var(--hmt, 100px) 8px 16px; }
html.hm .hdr { position: fixed; left: 0; right: 0; top: 0; padding: 6px 8px 0; z-index: 300; }
html.hm .bar { flex-wrap: nowrap; padding: 4px 4px 4px 12px; gap: 4px; border-radius: 10px; min-height: 44px; }
html.hm .bar .sp, html.hm .mnu, html.hm #sg, html.hm #ts, html.hm .srch { display: none; }
html.hm .logo { margin-right: auto; }
html.hm .hmr { display: inline-flex; gap: 2px; }
html.hm .hmb {
  display: inline-flex; align-items: center; justify-content: center; width: var(--sz-ctl-hm); height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--bar-tx); cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent;
}
html.hm .hmb.on, html.hm .hmb:active { background: color-mix(in srgb, var(--bar-tx) 16%, transparent); }
html.hm .bar.so .srch {
  display: inline-flex; position: absolute; left: 4px; right: 4px; top: 4px; bottom: 4px; height: auto; width: auto;
  border-radius: 8px; padding: 0 14px; z-index: 5;
}
html.hm .bar.so .srch input { display: block; flex: 1; min-width: 0; width: auto; font-size: 16px; }
html.hm .bar.so .hmr { visibility: hidden; }
html.hm .sub { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 6px 0 4px; font-size: 12px; min-width: 0; }
html.hm .sub > * { min-width: 0; }
html.hm .sub > .c1:empty { display: none; }
html.hm .sub > .c3 { margin-left: auto; }
html.hm .sub .c3 .add, html.hm .sub .leg { display: none; }
html.hm .sub .c3:not(:has(> :not(.add):not(.leg))) { display: none; }
html.hm .sub .bk { display: none; }   /* Mockup: am Handy kein Zurück-Knopf in der Schaltzeile */
html.hm .sub .c2 { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html.hm .sub .c2::-webkit-scrollbar { display: none; }
html.hm .yr { font-size: 15px; }
html.hm .yr .nb { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
html.hm .yr .yb { padding: 0 4px; height: 30px; min-width: 0; font-size: 13px; max-width: 9.5em; overflow: hidden; }
html.hm .yrw { gap: 4px; flex: 0 1 auto; min-width: 0; }
html.hm .yrw > .gb { display: none; }
html.hm .sw4 button { padding: 0 12px; font-size: 13px; }
html.hm .sw4.auto button { padding: 0 7px; font-size: 12px; }
html.hm .pgh { padding: 4px 2px 6px; }
html.hm .srow { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 4px; }
html.hm .dshr .add { display: none; }

/* Handy-Menü (☰) */
html.hm .hdw:not([hidden]) {
  display: block; position: fixed; left: 8px; right: 8px; top: 54px; z-index: 310; background: var(--panel-bg); color: var(--panel-tx);
  border: 1px solid var(--panel-bd); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-pop);
  max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow: auto;
}
.hdl {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 15px; text-align: left; cursor: pointer; text-decoration: none;
}
.hdl.on { background: color-mix(in srgb, var(--panel-tx) 12%, transparent); font-weight: 700; }
.hds { height: 1px; background: color-mix(in srgb, var(--panel-tx) 18%, transparent); margin: 6px 8px; }
.hdtb { display: inline-flex; background: var(--hdtb-bg); border-radius: var(--rad-pill); padding: 2px; flex: none; }
.hdtb button { border: 0; background: transparent; color: inherit; font-size: 13px; padding: 7px 12px; border-radius: var(--rad-pill); cursor: pointer; }
.hdtb button.on { background: var(--hdtb-on-bg); color: var(--hdtb-on-tx); font-weight: 700; }
.hdv { padding: 8px 12px 4px; font-size: 12px; opacity: .65; }

/* Volle Ansicht am Handy: Rückweg in der Kopfzeile neben dem Hell/Dunkel-Schalter (Hendrik 27.11.2026, Abweichung von Mockup 02) */
html.fm .hfb:not([hidden]) {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--rad-pill);
  font-size: 13.6px; font-weight: 700; background: var(--acc); color: #fff; cursor: pointer; white-space: nowrap;
}

/* Druck: ohne Kopf und Knöpfe */
@media print {
  .hdr, .toast, .hdw, .hfb { display: none !important; }
  body, #app { background: #fff !important; padding: 0 !important; }
}
.sctl .spd { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sctl .swm.swn { width: 5.5em; text-align: right; }

/* R35: Kalender-Abos – Zeile über die volle Breite: Beschreibung oben, darunter Liste, Anlegen, neue Adresse */
#ssabo { grid-template-columns: minmax(0, 1fr); }
.sabo { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sabol { display: flex; flex-direction: column; gap: 6px; }
.saboe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--c-bd); border-radius: 8px; }
.saboe .pgs { font-size: 12px; }
.saboe .back { flex: none; }
.sabof { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.sabos { display: flex; gap: 8px; }
.sabos .swm { width: auto; }
.sabou { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: var(--c-ver); color: var(--c-tx); font-size: 13px; }
.sabouw { display: flex; gap: 8px; }
.sabouw .swm { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
@media (max-width: 700px) { .sabof { grid-template-columns: minmax(0, 1fr); } .sabos .swm { flex: 1; } }
html.hm .sabof { grid-template-columns: minmax(0, 1fr); }
html.hm .sabos .swm { flex: 1; }
.sabou .pgs { color: var(--c-tx); opacity: .8; }
.sabom { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
.sabom .swm { flex: 1; }
.sabom[hidden] { display: none; }
.saboa { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; }
.saboa .back { padding: 4px 10px; font-size: 12px; }
