/* ROC SecureDoc — visual system.
   Brand tokens live in theme.css; this file is the layout + components.
   Constraints: no JS, no inline styles (strict CSP) — everything is here. */

:root {
  --shadow:    0 18px 48px -24px rgba(14, 42, 72, .45);
  --shadow-sm: 0 2px 10px -4px rgba(14, 42, 72, .25);
  --radius-lg: 16px;
  --maxw:      460px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--brand-font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient: faint concentric rings bleeding from the top-right — echoes the
   open-circle geometry of the ROC wordmark. Static, very low contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 92% -8%,
      transparent 0 70px,
      var(--brand-200) 70px 71px,
      transparent 71px 150px);
  opacity: .28;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 18px 56px;
}
/* data-table pages (report, history) need more room than the narrow forms */
.wrap.wide { max-width: 900px; }

/* ---- header / footer ---- */
.hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 26px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  font-weight: 600; font-size: 1.4375rem; letter-spacing: 5px; color: var(--brand);
}
.brand-sub {
  font-size: 0.625rem; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--ink-soft); padding-left: 12px; border-left: 1px solid var(--brand-200);
}
.e2e {
  font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 6px 11px; border-radius: 999px;
}
.logout { display: flex; align-items: center; gap: 12px; margin: 0; }
.who { font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--brand); }

/* ---- card ---- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow);
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.card.center { text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* ---- hero signature: the seal mark ---- */
.hero { text-align: center; margin-bottom: 6px; }
/* Height-normalised so a square mark AND a wide wordmark both look right.
   color: only affects the inline status SVG (seal-check); the <img> logo
   carries its own colours. */
.seal {
  height: 58px; width: auto; max-width: 240px;
  object-fit: contain; color: var(--brand); display: inline-block;
}
.eyebrow {
  display: block; font-size: 0.625rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand); margin: 14px 0 2px;
}

/* ---- type ---- */
h1 {
  font-size: 1.5625rem; font-weight: 600; letter-spacing: -0.2px;
  color: var(--brand); margin: 2px 0 8px;
}
.lead { color: var(--ink-soft); margin: 0 0 22px; font-size: 0.9375rem; }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; gap: 7px; }
.lbl {
  font-size: 0.625rem; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--ink-soft); margin-top: 12px;
}
input[type="file"], input[type="email"], input[type="text"],
input[type="password"], input[type="search"] {
  width: 100%; padding: 13px 14px;
  /* Nie unter 16px: iOS Safari zoomt sonst beim Fokus in jedes Feld hinein.
     max() haelt die Untergrenze auch bei kleiner Schriftgroesse (A-). */
  font-size: max(1rem, 16px);
  /* --field, not --brand-200: an input's border is the only thing that marks it
     as a control, so WCAG 1.4.11 wants >= 3:1 (the hairline was 1.50:1). */
  border: 1px solid var(--field); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, input:focus-visible {
  /* transparent (not none) so the ring survives Windows High Contrast Mode,
     where the browser repaints outlines but ignores box-shadow. */
  outline: 2px solid transparent; outline-offset: 2px;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--brand-50), 0 0 0 4px var(--focus);
}
.hint { font-size: 0.75rem; color: var(--ink-soft); margin: 4px 0 0; }
.hint a, .help a, .lead a { color: var(--brand-deep); text-underline-offset: 2px; }
.err {
  font-size: 0.875rem; color: #8a1f1f; background: #fbeaea;
  border-radius: 10px; padding: 10px 13px; margin: 0 0 14px;
}
.ok {
  font-size: 0.875rem; color: #14532d; background: #e7f4ec;
  border-radius: 10px; padding: 10px 13px; margin: 0 0 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-block; width: 100%; margin-top: 22px;
  min-height: 44px;              /* WCAG 2.5.5: bequemes Tippziel */
  padding: 14px 16px; border: none; border-radius: 10px;
  background: var(--brand-deep); color: var(--brand-ink);
  font-family: inherit; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface); }

/* ---- trust row (small tracked caps with dot separators) ---- */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--brand-50);
  font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft);
}
.trust span { position: relative; }
.assure { font-size: 0.75rem; color: var(--ink-soft); margin: 16px 0 0; }

/* ---- misc components (kept from before, refined) ---- */
.lock { line-height: 0; margin-bottom: 4px; }
.lock svg { width: 52px; height: 52px; color: var(--brand); }

.linkbox {
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-radius: 10px; padding: 14px; margin: 4px 0 18px; word-break: break-all;
}
.linkbox code { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 0.8125rem; color: var(--brand-deep); }

.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 8px; font-size: 0.875rem; }
.meta dt { color: var(--ink-soft); }
.meta dd { margin: 0; }

.ft {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 24px; font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft);
}

.modes { border: 1px solid var(--brand-200); border-radius: 10px; padding: 12px 14px; margin: 14px 0 2px; }
.modes legend { font-size: 0.625rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-soft); padding: 0 6px; }
.mode { display: block; font-size: 0.875rem; padding: 5px 0; cursor: pointer; }
.mode input { margin-right: 8px; }
.mode-note { color: var(--ink-soft); font-size: 0.8125rem; }
.check { display: block; margin: 14px 0 2px; padding: 12px 14px; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 10px; font-size: 0.875rem; cursor: pointer; }
.check input { margin-right: 8px; }
.check-note { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-soft); }

.tbl { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 0.875rem; }
.tbl th { text-align: left; font-size: 0.625rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--brand-200); padding: 8px; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--brand-50); vertical-align: top; }
.tbl tr.soon td { background: #fff7ed; }
.tbl .lnk { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--brand-deep); word-break: break-all; }
a { color: var(--brand-deep); }

.help h2 { font-size: 0.9375rem; color: var(--brand); margin: 22px 0 6px; font-weight: 600; }
.help p { margin: 4px 0 10px; }
.rule { background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 8px; padding: 12px 14px; margin: 6px 0 8px; font-size: 0.875rem; }
ul.plain { margin: 4px 0 10px; padding-left: 18px; }
ul.plain li { margin: 4px 0; }

@media (max-width: 420px) {
  .card { padding: 28px 20px; }
  h1 { font-size: 1.375rem; }
}

/* ---- admin user management ---- */
select {
  width: 100%; padding: 12px 14px; font-size: 0.9375rem; font-family: inherit;
  border: 1px solid var(--brand-200); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.formhead { font-size: 0.875rem; color: var(--brand); margin: 26px 0 10px; font-weight: 600;
  letter-spacing: .3px; padding-top: 18px; border-top: 1px solid var(--brand-50); }
.userlist { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.userrow { border: 1px solid var(--brand-200); border-radius: 10px; padding: 12px 14px; }
.userrow.off { opacity: .62; }
.uinfo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.uname { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.uname em { color: var(--ink-soft); font-weight: 400; font-style: normal; font-size: 0.8125rem; }
.ubadges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 0.625rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft);
  background: var(--brand-50); border-radius: 999px; padding: 3px 9px; }
.badge-admin { background: var(--brand); color: var(--brand-ink); }
.badge-off { background: #fbeaea; color: #8a1f1f; }
.umeta { font-size: 0.6875rem; color: var(--ink-soft); letter-spacing: .5px; }
.uactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: flex; gap: 6px; margin: 0; }
.inline input[type="password"] { width: auto; flex: 1 1 150px; padding: 8px 10px; font-size: 0.8125rem; }
.sbtn { font-family: inherit; font-size: 0.6875rem; letter-spacing: .5px; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--brand-200);
  background: var(--surface); color: var(--brand-deep); white-space: nowrap; }
.sbtn:hover { border-color: var(--brand); color: var(--brand); }
.sbtn-danger { color: #8a1f1f; border-color: #e7b9b9; }
.sbtn-danger:hover { color: #fff; background: #8a1f1f; border-color: #8a1f1f; }

/* ---- language switch (footer) ---- */
.langsw { letter-spacing: 1px; }
.langsw a { color: var(--ink-soft); text-decoration: none; }
.langsw a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.langsw strong { color: var(--brand); font-weight: 600; }

.badge-mgr { background: var(--brand-200); color: var(--brand-deep); }

.warn { color: #8a1f1f; font-size: 0.8125rem; }

/* === report/history polish + responsive tables ========================== */

/* nicer encrypted-PDF download control (was a bare ⬇) */
.tbl .dl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--brand-200); color: var(--brand-deep);
  text-decoration: none; font-size: 1rem; line-height: 1;
}
.tbl .dl:hover { background: var(--brand-50); }
.tbl .dl:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface); }
.tbl .warn { color: #b45309; }
.tbl tbody tr:hover td { background: var(--brand-50); }

/* secondary / back button */
.btn-ghost {
  background: transparent; color: var(--brand-deep);
  border: 1px solid var(--brand-200); box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-50); }

/* On narrow screens the table becomes a stack of labelled cards, so long
   links no longer break character-by-character inside a squeezed column. */
@media (max-width: 760px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; left: -9999px; }
  .tbl tr {
    border: 1px solid var(--brand-200); border-radius: 12px;
    padding: 4px 14px; margin: 0 0 12px; background: var(--surface);
  }
  .tbl tr.soon { background: #fff7ed; }
  .tbl tbody tr:hover td { background: transparent; }
  .tbl td {
    border: 0; border-bottom: 1px solid var(--brand-50);
    padding: 11px 0; display: flex; gap: 12px; align-items: baseline;
  }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before {
    content: attr(data-label); flex: 0 0 38%;
    font-size: 0.625rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-soft);
  }
  .tbl td > * { flex: 1 1 auto; min-width: 0; }
  .tbl td.wide { flex-direction: column; gap: 4px; align-items: stretch; }
  .tbl td.wide::before { flex-basis: auto; }
}

/* readable suggested password (easy to read aloud over the phone) */
#password { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .5px; }
.pwhint a { white-space: nowrap; }

/* footer legal links */
.ft { flex-wrap: wrap; }
.ft .legal a { color: var(--ink-soft); text-decoration: none; }
.ft .legal a:hover { color: var(--brand-deep); text-decoration: underline; }

/* two-action button row (retrieve: open / download) */
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { flex: 1 1 0; }
@media (max-width: 480px) { .btnrow { flex-direction: column; } }

/* highlighted "valid until" badge on the retrieve page */
.validity {
  display: inline-block;
  margin: 12px auto 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--ink);
  font-size: 0.875rem;
}
.validity strong { color: var(--brand-deep); font-weight: 700; }

/* uploads page: section headings + destructive link button */
.card h2 { font-size: 0.9375rem; color: var(--brand); margin: 24px 0 8px; font-weight: 600; }
.linkbtn.danger { color: #b42318; }
.linkbtn.danger:hover { color: #d63b2c; }

/* icon toolbar nav with pure-CSS tooltips (no JS — CSP-safe) */
.iconnav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.iconnav a {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--brand-200); color: var(--brand-deep);
  text-decoration: none; transition: background .12s, border-color .12s;
}
.iconnav a:hover { background: var(--brand-50); border-color: var(--brand); }
.iconnav a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface); }
.iconnav svg { width: 21px; height: 21px; }
.iconnav a::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: var(--brand-deep); color: #fff; font-size: 0.6875rem; line-height: 1;
  letter-spacing: .2px; white-space: nowrap; padding: 6px 9px; border-radius: 7px;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5;
}
.iconnav a::before {
  content: ""; position: absolute; bottom: calc(100% + 2px); left: 50%;
  transform: translateX(-50%); border: 5px solid transparent;
  border-top-color: var(--brand-deep); opacity: 0; transition: opacity .12s;
}
.iconnav a:hover::after, .iconnav a:focus-visible::after,
.iconnav a:hover::before, .iconnav a:focus-visible::before { opacity: 1; }

/* numbered steps in help */
.help .steps { margin: 6px 0 10px 18px; padding: 0; color: var(--ink); }
.help .steps li { margin: 4px 0; }

/* On touch / narrow screens there is no hover, so show the labels permanently
   under each icon instead of as a tooltip. */
@media (hover: none), (max-width: 520px) {
  .iconnav { gap: 8px 6px; }
  .iconnav a {
    flex-direction: column; width: auto; min-width: 66px; height: auto;
    padding: 9px 6px 7px; gap: 5px;
  }
  .iconnav a::before { display: none; }
  .iconnav a::after {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: none; color: var(--ink-soft); font-size: 0.625rem; letter-spacing: .2px;
    padding: 0; border-radius: 0; white-space: normal; max-width: 76px; text-align: center;
  }
}

/* QR-Code auf der Link-Erfolgsseite (serverseitig erzeugtes Inline-SVG) */
.qrwrap{margin:1.25rem 0;text-align:center}
.qrwrap .qr{width:200px;height:200px;max-width:60vw;border:1px solid var(--track);border-radius:var(--radius);padding:10px;background:#fff}
.qrwrap figcaption{margin-top:.5rem;font-size:.85rem;color:var(--ink-soft)}
@media print{.qrwrap .qr{width:240px;height:240px}}

/* ---- keyboard focus: universal safety net --------------------------------
   The portal runs under CSP `script-src 'none'`, so keyboard navigation is not
   a nicety — for some users it is the only way through the form. Only .btn,
   .tbl .dl, .iconnav a and inputs had a focus style, and it used --brand-50
   (#EAF1F8), which measures 1.14:1 against a white card: effectively invisible.
   Everything focusable now gets a ring that clears WCAG 1.4.11 (>= 3:1).

   :where() keeps specificity at 0, so the rules above still win where they set
   their own ring. The white box-shadow fills the outline-offset gap, keeping
   the ring legible even if an element later sits on a dark surface. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

/* Respect users who ask for less motion (the inputs animate their border). */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- browser fallbacks ---------------------------------------------------
   :focus-visible landete erst in Safari 15.4. Ältere Safari/iOS zeigten damit
   GAR KEINEN Fokusring. Dieser Zweischritt gibt alten Browsern einen Ring bei
   jedem Fokus, während moderne ihn für Mausklicks wieder entfernen. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:where(a, button, summary, input, select, textarea, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

/* ---- utilities ----------------------------------------------------------- */
/* Für Screenreader sichtbar, visuell nicht — für Labels, die das Design nicht
   zeigen will. Kein display:none / visibility:hidden: die würden den Text auch
   der Vorlesesoftware entziehen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Sprung zum Inhalt: erste Tab-Station, sonst unsichtbar. */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--brand-deep);
  padding: 10px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; font-size: 0.875rem;
  transition: top .12s;
}
.skip:focus { top: 8px; }

/* Fußzeilen-/Sprachlinks: 10px Text ergibt ein winziges Tippziel.
   Padding hebt es über die 24px aus WCAG 2.2 (2.5.8 Target Size Minimum). */
.ft .legal a, .langsw a, .langsw strong {
  display: inline-block; padding: 6px 4px; min-height: 24px;
}

/* Sprachumschalter mit Flagge + Kürzel. Die Flagge ist Dekoration
   (aria-hidden); das Kürzel bleibt sichtbar, weil eine Flagge eine NATION
   bezeichnet, keine Sprache — DE gilt auch für AT/CH. */
.langsw a, .langsw strong { display: inline-flex; align-items: center; gap: 5px; }
.flag { width: 18px; height: 12px; border-radius: 2px; flex: none;
        box-shadow: 0 0 0 1px rgba(11,32,59,.18); }

/* Praxis-Name im Footer verlinkt auf die Hauptseite. */
.ft .site { color: inherit; text-decoration: none; display: inline-block; padding: 6px 2px; min-height: 24px; }
.ft .site:hover, .ft .site:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Lockup: Wortmarke + Vertrauenssiegel nebeneinander, wie im offiziellen
   Entwurf. Bricht auf sehr schmalen Displays um, statt zu quetschen. */
.lockup { display: inline-flex; align-items: center; justify-content: center;
          gap: 16px; flex-wrap: wrap; }
/* NICHT `.badge` nennen: die Klasse gehoert bereits den Rollen-Chips
   (ADMIN / VERWALTER / PRAXIS) in der Benutzerverwaltung. Eine zweite
   Definition mit height/width hat sie dort zu einem 80px-Kreis aufgeblasen.
   80px: bei dieser Größe misst die Versalhöhe im Siegel 11px — lesbar. Kleiner
   geht nicht, ohne die Schrift zu verlieren; größer erschlägt es die 58px hohe
   Wortmarke daneben. Auf sehr schmalen Displays 72px (10px Versalhöhe). */
.trust-seal { height: 80px; width: 80px; flex: none; }
@media (max-width: 380px) { .trust-seal { height: 72px; width: 72px; } }

/* ---- Bedienhilfen-Leiste --------------------------------------------------
   Reine Links (kein JS). Bewusst zurückhaltend: eine feine Trennlinie statt
   eines Kastens, damit sie unter dem Inhalt sitzt, statt mit ihm zu wetteifern.

   Der aktive Zustand ist eine GEFÜLLTE Pille, kein dickerer Rahmen — sonst
   springt das Element beim Wechsel um einen Pixel. Er trägt zusätzlich
   aria-current, denn Farbe allein darf nie die einzige Information sein. */
.a11y {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 20px; margin: 20px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--brand-200);
}
.a11y-group { display: inline-flex; align-items: center; gap: 6px; }
.a11y-label {
  margin-right: 2px; font-size: 0.625rem; letter-spacing: var(--track);
  text-transform: uppercase; color: var(--ink-soft);
}
.a11y a, .a11y strong {
  display: inline-flex; align-items: center; justify-content: center;
  /* 28px: über der 24px-Mindestgröße aus WCAG 2.2 (2.5.8), aber unauffällig. */
  min-width: 28px; min-height: 28px; padding: 0 7px;
  border: 1px solid var(--field); border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  font-size: 0.75rem; font-weight: 600; text-decoration: none; line-height: 1;
}
.a11y a:hover { color: var(--ink); border-color: var(--focus); }
.a11y strong {
  background: var(--brand-deep); color: var(--brand-ink);
  border-color: var(--brand-deep);
}
/* Farbfeld: kleiner Kreis. Der Rahmen macht auch das weiße Feld sichtbar. */
.a11y .sw {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--field); display: block;
}
.a11y strong .sw { border-color: var(--brand-ink); }

.sw-normal { background: #ffffff; }
.sw-high   { background: #000000; }
.sw-dark   { background: #152232; }
