/* Kiosk App-Stile. Maße aus design/mockups/E2*.dc.html, Farben nur über Tokens. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.sheet-open { overflow: hidden; }

a { color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--signal); color: var(--on-signal); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.muted { color: var(--muted); }
.noscript { padding: 24px; font-family: var(--font-mono); }

/* ---- Grundlayout: Handy ------------------------------------------------ */
#shell { --gutter: var(--space-4); }
#view, #reader { outline: none; }
#reader { display: none; }
#shell[data-layout="article"] #view { display: none; }
#shell[data-layout="article"] #reader { display: block; }
#shell.has-bar #view { padding-bottom: calc(var(--bar) + 32px + var(--update-space, 0px) + env(safe-area-inset-bottom)); }
.view-page { max-width: var(--measure); margin: 0 auto; }
/* Nur unter 900px verstecken; ab 900px behalten die Elemente ihr eigenes display (z. B. .pill). */
@media (max-width: 899.98px) {
  .only-desktop { display: none !important; }
}

/* ---- Desktop ab 900px: Liste links (--list-w, Standard 520px, ziehbar), Leseansicht rechts ---- */
@media (min-width: 900px) {
  .only-mobile { display: none !important; }
  #shell[data-layout="list"], #shell[data-layout="article"] {
    display: grid;
    grid-template-columns: var(--list-w, 520px) minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
  }
  #shell[data-layout="list"] #view, #shell[data-layout="article"] #view {
    display: block;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    --gutter: var(--space-6);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--hairline);
    position: relative;
  }
  #shell[data-layout="list"] #reader, #shell[data-layout="article"] #reader {
    display: block;
    /* Lage der Kontextspalte und der „Nächster“-Pille richten sich nach der Breite der Leseansicht
       (die Liste ist ziehbar), nicht nach dem Fenster. */
    container: reader / inline-size;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #shell.has-bar #view { padding-bottom: calc(var(--bar) + 40px + var(--update-space, 0px)); }
  #shell[data-layout="page"] #view { padding-top: var(--space-4); }
}

/* ---- Kopfzeilen ------------------------------------------------------------ */
.hdr {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--gutter);
}
.hdr--home { padding: 18px var(--gutter) 10px; }
.hdr-wordmark { margin: 0; flex-grow: 1; }
/* Wortmarke führt zur Titelseite: sieht aus wie Text, Tippfläche 44px hoch. Seitlich etwas Luft für
   den Fokusring, die Schrift bleibt an ihrer Stelle. */
.hdr-wordmark-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 6px;
  margin: 0 -6px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
.hdr-title { flex-grow: 1; min-width: 0; }
.hdr-titles { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.hdr-titles .t-section { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-titles .t-caption {
  /* Unterzeile darf umbrechen (höchstens zwei Zeilen) statt mitten im Wort abgeschnitten zu werden. */
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: normal;
}
/* Zeitungsansicht mit Angaben zur Richtung (E8ZeitungName): der Titelblock ist eine Überschrift mit Knopf
   (h1 > button) und Pfeil, die Unterzeile zeigt nach dem Land die Skala. Der Platzhalter verschwindet aus
   dem Layout. */
.hdr-title-slot { display: contents; }
.hdr-titles--lean { font: inherit; }
.hdr-lean-btn {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  min-height: var(--tap);
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.hdr-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hdr-name .t-section { min-width: 0; }
.hdr-name svg { flex-shrink: 0; color: var(--muted); }
.hdr-titles .t-caption .lean-scale { margin: 0 6px; vertical-align: middle; }   /* danach „· …“ ohne Leerzeichen */
.hdr-spacer { flex-grow: 1; }
@media (min-width: 900px) {
  .hdr--home { padding: 20px var(--gutter) 10px; }
}

/* ---- Runde Icon-Knöpfe -------------------------------------------------- */
.icon-btn {
  width: var(--tap);
  height: var(--tap);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.icon-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.icon-btn--sm { width: 36px; height: 36px; position: relative; }
.icon-btn--sm::after { content: ""; position: absolute; inset: -4px; }
.icon-btn--plain { border-color: transparent; color: var(--muted); width: 36px; height: 36px; }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
svg { display: block; flex-shrink: 0; }

/* ---- Chips -------------------------------------------------------------- */
.chips {
  display: flex;
  gap: var(--space-2);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.chips::-webkit-scrollbar { display: none; }
.chips--flush { padding: 4px 0 16px; }
.chip {
  height: 36px;
  padding: 0 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chips-sep { width: 1px; height: 20px; background: var(--hairline); flex-shrink: 0; margin: 0 4px; }

.btn-sm {
  height: 32px;
  padding: 0 12px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.btn-sm.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---- Pillen-Schaltflächen ------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.pill--block { display: flex; width: 100%; }
.pill--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill:disabled { opacity: 0.5; cursor: default; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- Liste -------------------------------------------------------------- */
.list { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.day { padding: 32px 0 8px; }
.list > .day:first-child, .list > .status-pill + .day { padding-top: 16px; }
.row {
  display: flex;
  gap: var(--space-4);
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.row { scroll-margin: 16px 0 calc(var(--bar) + 40px + var(--update-space, 0px)); }
/* Lange Listen: Zeilen außerhalb des Bildes nicht zeichnen (Höhe geschätzt, danach gemerkt). Die
   Angabe ist die Inhaltshöhe ohne Innenabstand und Linie (33 px): echte Zeilen am Handy ~163 px,
   ab 900 px ~136 px. */
.list > .row { content-visibility: auto; contain-intrinsic-block-size: auto 128px; }
@media (min-width: 900px) {
  .list > .row { contain-intrinsic-block-size: auto 103px; }
}
.row:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }
.row-main { flex-grow: 1; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.row-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  min-width: 0;
}
.row-src { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-when { white-space: nowrap; }
.row-mark { margin-left: auto; flex-shrink: 0; }
.row-title {
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.row.is-read .row-title { color: var(--muted); }
.row-teaser {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.thumb {
  width: var(--thumb);
  height: var(--thumb);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--raised-2);
  object-fit: cover;
}
.row.is-open {
  margin: 0 -12px;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  background: var(--raised);
}
.unread-dot {
  width: var(--dot);
  height: var(--dot);
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--signal);
}
/* Richtung der Zeitung (E8ListeMarke): fünf Punkte, der der Stufe in Textfarbe. Blau bleibt dem
   Ungelesen-Punkt. */
.lean-scale { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lean-dot { width: 4px; height: 4px; border-radius: var(--radius-pill); background: var(--lean-off); }
.lean-dot.is-on { background: var(--ink); }
.star-on { color: var(--star); }
.later-on { color: var(--signal); }
mark {
  background: var(--signal);
  color: var(--on-signal);
  border-radius: 3px;
  padding: 0 3px;
}

.sentinel { height: 1px; }
.hint { padding: 16px 0; color: var(--muted); }
.hint--pad { padding: 16px var(--gutter); }
.hint--admin { padding-top: 8px; }

/* ---- Status-Pille (Laden) ------------------------------------------------ */
.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--raised);
  color: var(--muted);
}
.load-dots { display: flex; gap: 4px; }
.load-dots span { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--signal); }
.load-dots span:nth-child(2) { opacity: 0.6; }
.load-dots span:nth-child(3) { opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .load-dots span { animation: pulse 1.2s ease-in-out infinite; }
  .load-dots span:nth-child(2) { animation-delay: 0.2s; }
  .load-dots span:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- Leerzustand ---------------------------------------------------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 72px 16px 80px;
  text-align: center;
}
.empty p { color: var(--muted); max-width: 32ch; }
/* Listen (Startliste, Zeitung): Die Ansicht füllt die Höhe über der Leiste, ein Leerzustand steht
   mittig im freien Platz unter Kopfzeile und Filtern. */
.view-list { display: flex; flex-direction: column; min-height: calc(100dvh - var(--bar) - 32px - env(safe-area-inset-bottom)); }
.feed-holder { flex: 1 0 auto; display: flex; flex-direction: column; }
.feed-holder > .list:has(> .empty) { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.feed-holder > .list > .empty { padding: 24px 16px 40px; }
@media (min-width: 900px) {
  .view-list { min-height: calc(100dvh - var(--bar) - 40px); }
}
.empty .pill-row { justify-content: center; padding-top: 8px; }
.matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  width: 88px;
  margin-bottom: var(--space-3);
}
.matrix span { width: var(--dot); height: var(--dot); border-radius: var(--radius-pill); background: var(--rule); }
.matrix span.on { background: var(--ink); }
.reader-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }

/* ---- Schnellzugriffsleiste ------------------------------------------------ */
#bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  height: var(--bar);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--raised);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 900px) {
  /* Nach der Grundregel, sonst gewinnt diese: 24px seitlich in der Listenspalte, 20px unten (Mockup). */
  #bar { left: 24px; right: auto; width: calc(var(--list-w, 520px) - 48px); bottom: 20px; }
}
/* Harte Kante statt Blende (Markenbuch: keine Verläufe/Transparenz); Einrasten, damit kein Chip
   mitten im Buchstaben liegen bleibt. */
.bar-scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
}
.bar-scroll::-webkit-scrollbar { display: none; }
.bar-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--tap);
  padding: 0 14px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  scroll-snap-align: start;
}
.bar-chip--all { padding: 0 16px; }
.bar-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.bar-count { color: var(--signal-text); }
.bar-chip.is-on .bar-count { color: inherit; }

/* ---- Blätter (Sheets) ----------------------------------------------------- */
#sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-panel {
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--raised);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-panel--tall { min-height: min(720px, calc(100dvh - 40px)); gap: 8px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 40px; height: 4px; border-radius: var(--radius-pill); background: var(--rule); align-self: center; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; gap: var(--space-2); padding: 8px 0; }
.sheet-head--sub { padding: 20px 0 4px; }
.sheet-head .t-section { flex-grow: 1; }
.sheet-head .t-caption { color: var(--muted); }
/* Fenster zur Richtung (E8Erklaerung): Stufe groß, Satz zum Land, große Skala, Angaben, Fußzeile. */
.lean-word { margin-top: 8px; color: var(--ink); font-family: var(--font-sans); font-size: 27px; line-height: 33px; font-weight: 500; }
.lean-note { color: var(--muted); font-family: var(--font-sans); font-size: 15px; line-height: 22px; }
.lean-big { padding: 24px 9px 8px; }
.lean-track { position: relative; height: 18px; }
.lean-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--hairline);
}
.lean-tick, .lean-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: var(--radius-pill); }
.lean-tick { width: 8px; height: 8px; background: var(--rule); }
.lean-marker { width: 18px; height: 18px; background: var(--signal); box-shadow: 0 0 0 4px var(--raised); }
.lean-ends {
  display: flex;
  justify-content: space-between;
  margin: 10px -9px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}
.lean-facts { margin: 16px 0 0; }
.lean-fact { display: flex; gap: var(--space-3); padding: 12px 0; border-top: 1px solid var(--hairline); }
.lean-fact dt {
  flex: 0 0 104px;
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}
.lean-fact dd { margin: 0; min-width: 0; color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; }
.lean-foot {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  #sheet { align-items: center; }
  .sheet-panel { max-width: 480px; border-radius: var(--radius-md); max-height: calc(100dvh - 80px); padding-bottom: 24px; }
  .sheet-panel--tall { min-height: 0; }
  .sheet-grip { display: none; }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-text { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-text .t-caption { color: var(--muted); }
.chev { color: var(--muted); display: flex; }
.confirm { display: flex; align-items: center; gap: var(--space-2); margin-top: 12px; }
.confirm-text { flex-grow: 1; }

/* ---- Einstellungszeilen, Schalter ---------------------------------------- */
.page { display: flex; flex-direction: column; padding: 4px var(--gutter) 48px; }
.sec { padding: 8px 0; }
.sec--first { padding-top: 12px; }
.sec--gap { padding-top: 24px; }
.sec-row { display: flex; align-items: center; gap: var(--space-2); padding: 20px 0 4px; }
.sec-row:first-child { padding-top: 8px; }
.sec-row .t-section { flex-grow: 1; min-width: 0; }
.sec-row .t-caption { color: var(--muted); }
.set-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.set-row--52 { min-height: 52px; }
.set-row-text { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; padding: 6px 0; }
/* Untertitel dürfen auf zwei Zeilen umbrechen, erst danach wird gekürzt. */
.set-row-text > .t-caption {
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.set-row-link { color: inherit; text-decoration: none; }
.set-value { color: var(--muted); white-space: nowrap; }
.set-value--on { color: var(--ink); }
.set-value--off { color: var(--muted); }
.set-row.is-off .t-ui { color: var(--muted); }
/* Fehler in der Unterzeile (Zeitungen: „DE · • Fehler: …“): inline, damit ein langer Text direkt nach
   dem Land weiterläuft und umbricht (inline-flex rutschte als Block in die nächste Zeile, „DE ·“ blieb
   allein stehen). Punkt und „Fehler:“ trennt kein Umbruch. */
.err-inline { color: var(--signal-text); }
.err-inline-label { white-space: nowrap; }
.err-inline-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: var(--radius-pill);
  background: var(--signal);
  vertical-align: middle;
}

.switch {
  width: 44px;
  height: var(--tap);
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.switch-track {
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.switch-knob { width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--ink); }
.switch[aria-checked="true"] .switch-track { background: var(--ink); border-color: var(--ink); justify-content: flex-end; }
.switch[aria-checked="true"] .switch-knob { background: var(--on-ink); }
.switch:disabled { opacity: 0.4; cursor: default; }
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch-track { outline: 2px solid var(--ink); outline-offset: 2px; }

.foot { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; }
.foot .t-caption { text-align: center; color: var(--muted); }

/* ---- Eingabefelder -------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { color: var(--muted); }
.input {
  height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--raised);
  color: var(--ink);
  font-size: 16px;
  width: 100%;
}
.input::placeholder { color: var(--muted); }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.err-line { display: flex; align-items: center; gap: var(--space-2); color: var(--signal-text); }
.err-line::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--signal); flex-shrink: 0; }

/* ---- Anmelden ------------------------------------------------------------- */
.login {
  position: relative;
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding: 0 24px;
}
.login-mark { font-family: var(--font-dot); font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: 0.06em; }
.login-tag { color: var(--muted); margin-top: 8px; }
.login form { display: flex; flex-direction: column; gap: var(--space-3); }
.login .input { height: 48px; padding: 0 18px; }
.login .pill { height: 48px; }
.login .err-line { min-height: 16px; }
.err-line--idle { visibility: hidden; }
.login-foot { position: absolute; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); color: var(--muted); }

/* ---- Leseansicht ---------------------------------------------------------- */
.art {
  --art-gap: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--art-gap);
  padding: 12px var(--gutter) 48px;
  max-width: var(--measure);
  margin: 0 auto;
}
.art-meta { color: var(--muted); }
.art-meta .src { color: var(--ink); }
/* Zeitungsname als Knopf zum Fenster der Richtung: sieht aus wie der Name, Pfeil grau wie im Kopf der
   Zeitungsansicht; die Trefferfläche reicht über die kleine Meta-Zeile hinaus (::after). Bewusst nur 40 px
   hoch statt --tap: mehr reichte bis in den Titel darunter. */
.src-lean-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  vertical-align: baseline;
  border-radius: var(--radius-sm);
  outline-offset: 4px;
  cursor: pointer;
}
.src-lean-btn::after { content: ''; position: absolute; inset: -12px -8px; }
.src-lean-btn svg { flex-shrink: 0; color: var(--muted); }
.art-title {
  margin: 0;
  font-size: calc(27px * var(--scale));
  line-height: calc(33px * var(--scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.art-hero {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--raised-2);
}
.art-note { display: flex; align-items: center; gap: var(--space-2); color: var(--signal-text); }
.art-note::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--signal); flex-shrink: 0; }
.art-note--quiet { color: var(--muted); }
.art-note--quiet::before { display: none; }
.art-author { color: var(--muted); }
.art-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-2); }

.article-body { color: var(--ink); overflow-wrap: break-word; }
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: var(--space-4); }
.article-body p, .article-body li, .article-body blockquote, .article-body td, .article-body th {
  font-size: calc(17px * var(--scale));
  line-height: calc(27px * var(--scale));
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
  font-size: calc(19px * var(--scale));
  line-height: calc(25px * var(--scale));
  font-weight: 600;
  margin-top: var(--space-6);
}
/* Zwischentitel ohne einzelnes Wort in der letzten Zeile (KI-Ausgabe hat viele kurze h2). */
.article-body h2 { text-wrap: balance; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: var(--space-2); }
.article-body blockquote { padding-left: var(--space-4); border-left: 2px solid var(--rule); }
.article-body img, .article-body video { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.article-body figure { margin-left: 0; margin-right: 0; }
.art > .art-caption,
.article-body .art-caption,
.article-body figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.02em; color: var(--muted); margin-top: var(--space-2); text-transform: uppercase; }
/* Bildzeile unter dem Titelbild: 8px Abstand statt der Spalten-Lücke (gap) von .art. */
.art > .art-caption { margin: calc(var(--space-2) - var(--art-gap)) 0 0; }
/* Nach einem Bild samt Bildzeile im Text 16px wie nach dem Titelbild (Spalten-Lücke von .art). */
.article-body figure + *, .article-body figcaption + * { margin-top: var(--space-4); }
/* Liveblog-Uhrzeit (<p><strong>28.09. 14:43</strong></p>, Klasse aus buildBody): Mono wie andere
   Zeitangaben, mehr Luft darüber, dicht an der Überschrift des eigenen Eintrags. */
.article-body .art-time {
  margin-top: var(--space-8);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.article-body .art-time:first-child { margin-top: 0; }
.article-body .art-time strong, .article-body .art-time b { font-weight: 400; }
.article-body .art-time + * { margin-top: 4px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Space Grotesk ist nur bis 600 eingebunden; 700 wäre künstlich gefettet. */
.article-body strong, .article-body b { font-weight: 600; }
/* KI-Ausgabe (is-edition aus markEdition): Belege (#/a/<id>) blau, der Unterstrich bleibt (erkennbar auch
   ohne Farbe), abgeschwächt. Nur dort: In Verlagstexten sind solche Anker Links aufs Original. */
.article-body.is-edition a[href^="#/a/"] {
  color: var(--signal-text);
  text-decoration-color: var(--signal-text);
  text-decoration-color: color-mix(in srgb, var(--signal-text) 45%, transparent);
}
/* KI-Ausgabe (Klassen aus markEdition): Vorspann größer, Quellen als Block mit Punktschrift-Kopf. */
.article-body .art-lead {
  font-size: calc(19px * var(--scale));
  line-height: calc(29px * var(--scale));
  font-weight: 500;
}
.article-body .art-lead strong { font-weight: inherit; }
.article-body .art-sources-h {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-top: 8px;
  font-family: var(--font-dot);
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.article-body .art-sources-h + .art-sources {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.article-body td, .article-body th { border-top: 1px solid var(--hairline); padding: 6px 8px; text-align: left; }
.article-body pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 14px; }
.article-body hr { border: 0; border-top: 1px solid var(--hairline); }

@media (min-width: 900px) {
  /* Artikel und seine Knöpfe stehen mittig in der Spalte (gleich viel Rand links und rechts); die
     Knöpfe enden bündig mit dem Text. --art-max: Breite samt 40px Rand (Kontextspalte: 740px). */
  .art-view { --art-max: var(--measure); }
  .art-hdr { padding: 20px 40px 10px; }
  html:not([data-focus="on"]) .art-hdr { max-width: var(--art-max); margin: 0 auto; }
  .art { --art-gap: 18px; padding: 12px 40px 64px; max-width: var(--art-max); margin: 0 auto; }
  .art-title { font-size: calc(32px * var(--scale)); line-height: calc(38px * var(--scale)); }
}

/* ---- Suche ---------------------------------------------------------------- */
.search-field {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--tap);
  padding: 0 6px 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--raised);
  color: var(--muted);
}
/* Die weiße Kontur ist schon der Fokus-Hinweis; nur Felder mit anderer Kontur bekommen den Ring. */
.search-field:focus-within { outline: none; border-color: var(--ink) !important; }
.search-field input {
  flex-grow: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input::-webkit-search-cancel-button { display: none; }
.result-line { display: flex; align-items: center; gap: var(--space-2); padding: 8px 0; }
.result-line .t-section { flex-grow: 1; }
.result-line .t-caption { color: var(--muted); }
/* Zeitungen in der Suche (E4SucheZeile, E4SucheMehrere): Überschrift, Block auf --raised, Zeilen mit
   Monogramm, Name, Land/Ungelesen und Pfeil; darunter die Artikel mit eigener Zeile. */
.papers .result-line, .papers:not([hidden]) + .result-line { padding: 12px 0 8px; }
.papers-block {
  display: flex;
  flex-direction: column;
  background: var(--raised);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.paper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}
.paper + .paper { border-top: 1px solid var(--hairline); }
.paper:focus-visible, .papers-more:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }
.paper-mono {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  font-family: var(--font-dot);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.paper-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.paper-name { font-size: 18px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); }
.paper-meta svg { flex-shrink: 0; }
.paper-meta > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-go {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
}
/* Ausgeschaltet: gedämpft (gestrichelter Kreis in --rule, ohne Transparenz, hell wie dunkel sichtbar),
   führt aber in die Zeitungsansicht (dort Einschalten bzw. Hinweis). */
.paper.is-off .paper-name, .paper.is-off .paper-mono { color: var(--muted); }
.paper.is-off .paper-mono { border-style: dashed; }
.papers-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--tap);
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
}

/* ---- Profil-Editor ---------------------------------------------------------- */
.editor { gap: var(--space-3); }
.terms { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.term {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 4px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--raised-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.term-x {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.term-add { width: 34px; height: 34px; }
.term-input { height: 34px; width: 160px; padding: 0 12px; font-size: 14px; }
.inline-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); }
.inline-row .t-ui { flex-grow: 1; }
.sort-btns { display: flex; gap: 4px; }

/* ---- Toast ---------------------------------------------------------------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show { opacity: 1; }
/* Fehler und längere Hinweise dürfen auf zwei Zeilen umbrechen; die Grenze sitzt am inneren Text (ohne
   Innenabstand), sonst schiene eine angeschnittene dritte Zeile durch. */
#toast.toast--wrap { white-space: normal; }
#toast.toast--wrap .toast-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-height: 32px;   /* 2 × line-height */
}
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}
/* Neue Version (ui/update.js, liegt in #shell): bleibt stehen, bis man neu lädt oder „Später“
   tippt. Lage je Layout: Handy über der Leiste bzw. unten, Desktop in der Listenspalte über der
   Leiste bzw. unten, Fokusmodus als schmale Säule in der Leiste links (nie über dem Text). Knöpfe
   44 px hoch. Listen und Leseansicht bekommen unten Platz (--update-space), der Toast rückt darüber. */
body.has-update { --update-space: 64px; }
.update-pill {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 32px);
  height: 52px;
  padding: 3px 3px 3px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--raised);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
#shell.has-bar > .update-pill { bottom: calc(16px + var(--bar) + 12px + env(safe-area-inset-bottom)); }
.update-dot { width: var(--dot); height: var(--dot); flex-shrink: 0; border-radius: var(--radius-pill); background: var(--signal); }
.update-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; margin: 0 8px 0 6px; }
.update-reload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  text-transform: inherit;
}
.update-reload svg { display: none; }
.update-reload:disabled { opacity: 0.5; cursor: default; }
.update-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
}
/* Toast über die Pille heben, wo sie in seiner Höhe liegt (über der Leiste: Handy-Liste, Desktop-Liste
   und Artikel neben der Liste) und kein Blatt offen ist. */
body.has-update:not(.sheet-open) #shell.has-bar ~ #toast { bottom: calc(96px + 64px + env(safe-area-inset-bottom)); }
/* Sehr schmal (Handy unter 360 px, Liste am Desktop unter 360 px): nur Punkt, Neu laden, Später. */
@media (min-width: 900px) {
  #shell.list-narrow > .update-pill .update-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
}
@media (max-width: 359.98px) {
  .update-pill .update-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
}
/* Ohne Leiste (Leseansicht, Suche, Seiten): Platz unter dem Inhalt, damit die Pille nichts verdeckt. */
body.has-update #shell:not(.has-bar) #view { padding-bottom: calc(var(--update-space) + 16px + env(safe-area-inset-bottom)); }
@media (max-width: 899.98px) {
  body.has-update #reader { padding-bottom: calc(var(--update-space) + 16px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  #shell[data-layout="list"] > .update-pill, #shell[data-layout="article"] > .update-pill {
    left: calc(var(--list-w, 520px) / 2);
    bottom: 20px;
    max-width: calc(var(--list-w, 520px) - 48px);
  }
  #shell.has-bar[data-layout="list"] > .update-pill, #shell.has-bar[data-layout="article"] > .update-pill {
    bottom: calc(20px + var(--bar) + 12px);
  }
  #shell[data-layout="page"] > .update-pill { bottom: 20px; }
  /* Fokusmodus: Säule mittig in der 76 px breiten Leiste, Punkt, Neu laden (Symbol), Später. */
  html[data-focus="on"] #shell[data-layout="article"] > .update-pill {
    left: 12px;
    bottom: 20px;
    transform: none;
    flex-direction: column;
    width: 52px;
    height: auto;
    max-width: none;
    padding: 12px 3px 3px;
    gap: 8px;
  }
  html[data-focus="on"] #shell[data-layout="article"] > .update-pill .update-text,
  html[data-focus="on"] #shell[data-layout="article"] > .update-pill .update-reload-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
  /* Ruhiger als eine weiße Fläche: Kreis mit Kontur, Signal bleibt der blaue Punkt darüber. */
  html[data-focus="on"] #shell[data-layout="article"] > .update-pill .update-reload {
    width: 44px; padding: 0; border: 1px solid var(--rule); background: transparent; color: var(--ink);
  }
  html[data-focus="on"] #shell[data-layout="article"] > .update-pill .update-reload svg { display: block; }
  /* Zähler der Leiste rückt über die Säule. */
  html[data-focus="on"] body.has-update #shell[data-layout="article"] .focus-rail { padding-bottom: 164px; }
}

.status-slot { padding: 0 var(--gutter); }
.status-slot:empty { display: none; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; min-width: 0; }

/* ---- Ladefehler in Listen, Offline ------------------------------------------ */
.feed-error { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4) var(--gutter); }
.feed-error .hint { padding: 0; }
.offline .matrix { margin-bottom: var(--space-4); }
.offline .t-teaser { color: var(--muted); margin-top: 8px; max-width: 32ch; }

/* ---- Desktop: rechte Seite (E3Desktop*) ------------------------------------------------
   Alles hier wirkt nur ab 900px; am Handy gibt es die Elemente nicht oder sie sind ausgeblendet. */
.focus-rail, .focus-next { display: none; }

@media (min-width: 900px) {
  /* Kopf der Leseansicht: Lesefortschritt (nur im Fokusmodus sichtbar), Fokus-Knopf, Trennstrich. */
  .art-progress { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 12px; visibility: hidden; }
  .art-progress-dots { display: flex; gap: 4px; }
  .art-progress-dots span { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--hairline); }
  .art-progress-dots span.on { background: var(--ink); }
  .art-progress-pct { color: var(--muted); white-space: nowrap; }
  .hdr-sep { width: 1px; height: 24px; margin: 0 4px; flex-shrink: 0; background: var(--hairline); }

  /* Kontextspalte (E3DesktopKontext): unter dem Artikel (Leseansicht schmaler als 880px oder Fokusmodus) … */
  .art-view.has-rail .art { padding-bottom: 32px; }
  .art-rail { max-width: var(--art-max); margin: 0 auto; padding: 0 40px 64px; }
  .art-rail-inner { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
  /* Tastenhinweise überall gleich (Board: Space Grotesk 13px, gemischte Schreibung). */
  .key-hints { font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--muted); text-transform: none; }
  .key-hints span { white-space: nowrap; }
  .empty .key-hints { max-width: none; }

  /* Einstellungen: Abschnitt „Am PC“ (E3DesktopEinstellungen). */
  .set-pc { display: flex; flex-direction: column; padding-bottom: 16px; }
  .sec-pc { display: flex; align-items: center; gap: 12px; padding: 20px 0 8px; }
  .badge-signal { padding: 2px 8px; border: 1px solid var(--signal); border-radius: var(--radius-pill); color: var(--signal-text); }
  .set-label { padding: 4px 0 8px; }
}

/* ---- Mehr zum Artikel: Einträge der Kontextspalte (Desktop, E3DesktopKontext) und des Abschnitts am Ende
   des Artikels am Handy (E9EndeListe, .art-more statt „Nächster“). */
.rail-list { display: flex; flex-direction: column; }
.rail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.rail-item:first-child { border-top: 0; }
.rail-loading { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 4px; }
.rail-loading .matrix { width: 64px; gap: 8px; margin-bottom: 4px; }
.rail-loading .matrix span { width: 6px; height: 6px; }
.rail-title { font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.rail-item.is-read .rail-title { color: var(--muted); }
.rail-more {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.art-more { margin-top: 8px; }
.art-more .art-rail-inner { display: flex; flex-direction: column; gap: 24px; }
.art-more .rail-sec { padding-top: 20px; border-top: 1px solid var(--hairline); }
.art-more .rail-head { padding-bottom: 4px; }
.art-more .rail-item { padding: 14px 0; }
.art-more .rail-title { font-size: 17px; line-height: 23px; }
.art-more .rail-none { margin: 0; padding-bottom: 8px; }

/* ---- Tagesübersicht und Titelseite ---------------------------------------------------------
   Rechte Seite am Desktop ohne Artikel: Tagesübersicht (E3DesktopUebersicht) oder Titelseite
   (E3DesktopTitelseite); die Titelseite am Handy auch als eigene Seite (#/titelseite, .view-front).
   Die Spalte ist 320px (Handy) bis ~1400px breit: Umbruch per Container-Abfrage auf .home. Die
   Abschnittsköpfe teilt sich die Kontextspalte der Leseansicht (nur am Desktop). */
.rail-head, .home-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; }
/* Kontextspalte: Titel darf zweizeilig werden, die Zahl bleibt oben rechts. */
.rail-head { flex-wrap: nowrap; }
.rail-head .t-caption, .home-head .t-caption { margin-left: auto; white-space: nowrap; }
.rail-title-sec, .home-sec {
  font-family: var(--font-dot);
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 0;
}
.rail-item:focus-visible, .rail-more:focus-visible, .home-story:focus-visible, .home-profile:focus-visible,
.fp-lead:focus-visible, .fp-item:focus-visible { outline-offset: 4px; border-radius: var(--radius-sm); }
.home-error { gap: 8px; }
.home-page > .home-error, .home-page > .home-loading { flex: 1 0 auto; height: auto; }
.home { container-type: inline-size; }
.home-page { display: flex; flex-direction: column; gap: 28px; padding: 28px 40px; }
.home-page--front { gap: 24px; }
.home-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.home-top .t-caption { margin-left: auto; }
.home-title {
  font-family: var(--font-dot);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.home-tile-num {
  font-family: var(--font-dot);
  font-size: clamp(36px, 5cqi, 56px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.home-tile-num.is-signal { color: var(--signal-text); }
.home-cols { display: flex; gap: 40px; }
.home-col--main { flex: 1 1 0; min-width: 0; }
.home-col--side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.home-none { padding-top: 4px; }
.home-story {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.home-story:first-child { border-top: 0; }
.home-story-num {
  width: 56px;
  flex-shrink: 0;
  font-family: var(--font-dot);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal-text);
}
.home-story-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-story-title { font-size: 18px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; }
.hist-grid { display: flex; gap: 5px; }
.hist-col { display: flex; flex-direction: column; gap: 4px; }
.hist-col span { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--hairline); }
.hist-col--past span.on { background: var(--ink); }
.hist-col--now span.on { background: var(--signal); }
.hist-axis { display: grid; grid-template-columns: repeat(24, 7px); column-gap: 5px; padding-top: 8px; }
.hist-axis span { grid-row: 1; white-space: nowrap; }
.home-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.home-profile:first-child { border-top: 0; }
.home-profile-name { flex-grow: 1; min-width: 0; font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.home-profile-num {
  font-family: var(--font-dot);
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal-text);
}
.home-keys { margin-top: auto; }

.fp-lead {
  display: flex;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}
.fp-lead-img {
  width: 50%;
  max-width: 540px;
  height: 300px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--raised-2);
}
.fp-lead-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.fp-lead-title {
  font-size: calc(36px * var(--scale));
  line-height: calc(42px * var(--scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.fp-lead-title.is-read { color: var(--muted); }
.fp-lead-summary {
  font-size: calc(17px * var(--scale));
  line-height: calc(26px * var(--scale));
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.fp-also { color: var(--signal-text); }
.fp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fp-item { min-width: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.fp-item--noimg { padding-top: 12px; border-top: 1px solid var(--hairline); }
.fp-item-img--none { flex-shrink: 0; }
.fp-item-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--raised-2);
}
.fp-item-title {
  font-size: calc(18px * var(--scale));
  line-height: calc(24px * var(--scale));
  font-weight: 500;
  overflow-wrap: anywhere;
}
.fp-item-title.is-read { color: var(--muted); }
/* Rubrik AUSGABE (KI-Ausgaben): Zeilen wie die Liste, ohne Bild, Linie zwischen den Zeilen. */
.fp-ed-list { display: flex; flex-direction: column; }
.fp-ed-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.fp-ed-row + .fp-ed-row { border-top: 1px solid var(--hairline); }
.fp-ed-row:focus-visible { outline-offset: 4px; border-radius: var(--radius-sm); }
.fp-ed-title {
  font-size: calc(21px * var(--scale));
  line-height: calc(27px * var(--scale));
  font-weight: 500;
  overflow-wrap: anywhere;
}
.fp-ed-title.is-read { color: var(--muted); }
.fp-ed-teaser {
  font-size: calc(15px * var(--scale));
  line-height: calc(22px * var(--scale));
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
/* Breit genug: zwei Ausgaben nebeneinander, ohne Linie dazwischen; eine allein nimmt eine von zwei Spalten. */
@container (min-width: 560px) {
  .fp-ed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .fp-ed-row + .fp-ed-row { border-top: 0; }
}

@container (max-width: 859px) {
  .home-cols { flex-direction: column; gap: 28px; }
  .home-col--side { width: auto; }
  .fp-lead { flex-direction: column; gap: 16px; }
  .fp-lead-img { width: 100%; max-width: none; height: 240px; }
  .fp-lead-title { font-size: calc(28px * var(--scale)); line-height: calc(34px * var(--scale)); }
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 639px) {
  .home-page { gap: 24px; padding: 24px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile { padding: 14px 16px; }
  .home-tile-num { font-size: 36px; }
}
/* Karte quer (Bild links in Spaltenbreite, Text rechts): einzige Karte einer Rubrik ab zwei
   Spalten, und bei zwei Spalten eine dritte Karte allein in ihrer Zeile. Ohne Bild (auch ohne
   Platzhalter) nur Text mit Linie oben. */
@container (min-width: 560px) {
  .fp-grid > .fp-item:only-child { grid-column: 1 / -1; }
  .fp-grid > .fp-item:only-child:not(.fp-item--noimg):not(.fp-item--ph) {
    display: grid;
    grid-template-columns: calc((100% - 48px) / 3) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 10px;
  }
  .fp-grid > .fp-item:only-child:not(.fp-item--noimg):not(.fp-item--ph) > .fp-item-img { grid-column: 1; grid-row: 1 / span 2; }
  .fp-grid > .fp-item:only-child:not(.fp-item--noimg):not(.fp-item--ph) > :not(.fp-item-img) { grid-column: 2; }
  .fp-grid > .fp-item--ph:only-child > .fp-item-img--none { display: none; }
  .fp-grid > .fp-item--ph:only-child { padding-top: 12px; border-top: 1px solid var(--hairline); }
}
@container (min-width: 560px) and (max-width: 859px) {
  .fp-grid > .fp-item:nth-child(3):last-child { grid-column: 1 / -1; }
  .fp-grid > .fp-item:only-child:not(.fp-item--noimg):not(.fp-item--ph),
  .fp-grid > .fp-item:nth-child(3):last-child:not(.fp-item--noimg):not(.fp-item--ph) {
    display: grid;
    grid-template-columns: calc((100% - 24px) / 2) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 10px;
  }
  .fp-grid > .fp-item:nth-child(3):last-child:not(.fp-item--noimg):not(.fp-item--ph) > .fp-item-img { grid-column: 1; grid-row: 1 / span 2; }
  .fp-grid > .fp-item:nth-child(3):last-child:not(.fp-item--noimg):not(.fp-item--ph) > :not(.fp-item-img) { grid-column: 2; }
  .fp-grid > .fp-item--ph:nth-child(3):last-child > .fp-item-img--none { display: none; }
  .fp-grid > .fp-item--ph:nth-child(3):last-child { padding-top: 12px; border-top: 1px solid var(--hairline); }
}
@container (max-width: 559px) {
  .fp-grid { grid-template-columns: minmax(0, 1fr); }
  /* Eine Spalte: keine grauen Flächen für fehlende Bilder, stattdessen die Linie oben. */
  .fp-item-img--none { display: none; }
  .fp-item--ph { padding-top: 12px; border-top: 1px solid var(--hairline); }
  .fp-lead-img { height: 200px; }
  .fp-lead-title { font-size: calc(24px * var(--scale)); line-height: calc(30px * var(--scale)); }
}

@media (min-width: 900px) {
  .home { min-height: 100%; }
  .home > .reader-empty { height: auto; min-height: 100dvh; }
  .home-page { min-height: 100dvh; }
}

/* Handy: unter dem Kopf der Liste, Ränder wie die Liste; Platz über der Leiste und der Pille
   „Neue Version“ hält #view (has-bar). Laden, Fehler und Leerzustand füllen die freie Höhe. */
.view-front .home { flex: 1 0 auto; display: flex; flex-direction: column; }
.view-front .home-page { flex: 1 0 auto; padding: 12px var(--gutter) 8px; }
.view-front .home-page > .empty { flex: 1 0 auto; }
/* Überschrift wie die anderen Seitentitel am Handy (Punktmatrix 20/24), Datum und Uhr darunter. */
.view-front .home-top { flex-direction: column; align-items: flex-start; gap: 4px; }
.view-front .home-top .t-caption { margin-left: 0; }
.view-front .home-title { font-size: 20px; line-height: 24px; }
.view-front .fp-lead-summary {
  font-size: calc(15px * var(--scale));
  line-height: calc(22px * var(--scale));
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
/* Linie zwischen den Rubriken, sonst läuft der Rubrikkopf in die Zeile davor. */
.view-front .fp-sec + .fp-sec { padding-top: 24px; border-top: 1px solid var(--hairline); }
/* Am Handy ist .home kein Container: Die Karten-Raster der Container-Abfragen (2 und 3 Spalten, breite
   Einzelkarten ab 560px) gelten nicht, bis 899px bleibt es beim Aufmacher oben und Listenzeilen. */
.view-front .home { container-type: normal; }
.view-front .fp-lead { flex-direction: column; gap: 16px; }
.view-front .fp-lead-img { width: 100%; max-width: none; height: 200px; }
.view-front .fp-lead-title { font-size: calc(24px * var(--scale)); line-height: calc(30px * var(--scale)); }
/* Rubriken als Zeilen wie in der Liste (E2Liste): links Meta und Titel, rechts oben das Bild (80px).
   Ohne Bild, auch wenn es nicht lädt (fp-item--ph, Platzhalter weg) oder Bilder aus sind
   (fp-item--noimg): nur Text über die ganze Breite. Zwischen den Zeilen eine Linie, nicht über der
   ersten (darüber steht der Rubrikkopf). */
.view-front .fp-grid { display: flex; flex-direction: column; gap: 0; }
.view-front .fp-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  min-height: var(--tap);
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.view-front .fp-item:first-child { border-top: 0; }
.view-front .fp-item:not(.fp-item--ph):not(.fp-item--noimg) {
  grid-template-columns: minmax(0, 1fr) var(--thumb);
  grid-template-rows: auto 1fr;
}
.view-front .fp-item > * { grid-column: 1; }
.view-front .fp-item > .fp-item-img {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: var(--radius-sm);
}
.view-front .fp-item > .fp-item-img--none { display: none; }
.view-front .fp-item:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }

/* … ab 880px Breite der Leseansicht (bei 520px Liste: 1400px Fenster) ohne Fokusmodus als eigene
   Spalte rechts, die beim Scrollen stehen bleibt. */
@container reader (min-width: 880px) {
  html:not([data-focus="on"]) .art-view.has-rail {
    --art-max: 740px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    min-height: 100%;
  }
  /* Text bis zur rechten Kante der Knöpfe im Kopf (Board Kontext: Spalte 740px, --art-max). */
  html:not([data-focus="on"]) .art-view.has-rail .art { padding-bottom: 64px; }
  html:not([data-focus="on"]) .art-rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    border-left: 1px solid var(--hairline);
  }
  html:not([data-focus="on"]) .art-rail-inner { padding-top: 0; border-top: 0; }
}

/* ---- Fokusmodus (E3DesktopFokus): nur ab 900px und nur mit offenem Artikel ---------------- */
@media (min-width: 900px) {
  html[data-focus="on"] #shell[data-layout="article"] { grid-template-columns: 76px minmax(0, 1fr); }
  /* Liste bleibt eingehängt und behält ihre Scrollposition, ist aber weder sichtbar noch bedienbar. */
  html[data-focus="on"] #shell[data-layout="article"] #view {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--list-w, 520px);
    visibility: hidden;
    pointer-events: none;
  }
  html[data-focus="on"] #shell[data-layout="article"] #reader { grid-column: 2; grid-row: 1; }
  html[data-focus="on"] #shell[data-layout="article"] #bar { display: none !important; }
  html[data-focus="on"] #shell[data-layout="article"] .focus-rail {
    grid-column: 1;
    grid-row: 1;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 1px solid var(--hairline);
  }
  .focus-rail-mark { padding-bottom: 8px; font-family: var(--font-dot); font-size: 28px; line-height: 36px; font-weight: 700; }
  .focus-rail-count { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .focus-rail-num {
    font-family: var(--font-dot);
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--signal-text);
  }

  html[data-focus="on"] .art-progress { visibility: visible; }
  /* Kopf bleibt oben stehen, damit der Lesefortschritt beim Scrollen sichtbar ist. */
  html[data-focus="on"] .art-hdr { position: sticky; top: 0; z-index: 5; background: var(--bg); }
  html[data-focus="on"] .art { --art-gap: 18px; max-width: 840px; margin: 0 auto; padding: 24px 40px 120px; }
  html[data-focus="on"] .art-view.has-rail .art { padding-bottom: 32px; }
  html[data-focus="on"] .art-title { font-size: calc(40px * var(--scale)); line-height: calc(48px * var(--scale)); }
  html[data-focus="on"] .art-hero { max-height: 380px; }
  html[data-focus="on"] .article-body p, html[data-focus="on"] .article-body li,
  html[data-focus="on"] .article-body blockquote, html[data-focus="on"] .article-body td,
  html[data-focus="on"] .article-body th {
    font-size: calc(19px * var(--scale));
    line-height: calc(30px * var(--scale));
  }
  html[data-focus="on"] .article-body h1, html[data-focus="on"] .article-body h2, html[data-focus="on"] .article-body h3,
  html[data-focus="on"] .article-body h4, html[data-focus="on"] .article-body h5, html[data-focus="on"] .article-body h6 {
    font-size: calc(21px * var(--scale));
    line-height: calc(28px * var(--scale));
  }
  /* Liveblog-Uhrzeit bleibt Mono-Zeitzeile (sonst gewänne die Absatzgröße oben). */
  html[data-focus="on"] .article-body .art-time { font-size: 13px; line-height: 18px; }
  /* KI-Ausgabe: Vorspann bleibt größer als die Absätze, Quellen bleiben klein. */
  html[data-focus="on"] .article-body .art-lead { font-size: calc(21px * var(--scale)); line-height: calc(32px * var(--scale)); }
  html[data-focus="on"] .article-body .art-sources-h { font-size: 16px; line-height: 19px; }
  html[data-focus="on"] .article-body .art-sources { font-size: 12px; line-height: 18px; }
  /* Bildzeilen bleiben klein (sonst gewänne die Absatzgröße oben). */
  html[data-focus="on"] .article-body .art-caption, html[data-focus="on"] .article-body figcaption {
    font-size: 12px;
    line-height: 16px;
  }
  html[data-focus="on"] .art-rail { max-width: 840px; margin: 0 auto; padding: 0 40px 120px; }

  /* Schwebende Pille „Nächster“ unten rechts, nur im freien Rand neben der Textspalte. Der Text
     endet eine halbe Leseansicht (50cqw) plus 380px nach deren linkem Rand; bis 40px vor den rechten
     Rand bleiben 50cqw - 420px, abzüglich 16px Luft. Reicht das nicht für Pille mit lesbarem
     Titel (Leseansicht unter 1524px, also Fenster unter 1600px neben der 76px-Leiste), bleibt nur
     der runde Pfeil (rechts bündig mit den Knöpfen im Kopf); wo auch der die letzte Textzeile
     berühren würde (Leseansicht unter 960px), macht der Text rechts Platz. */
  html[data-focus="on"] .focus-next {
    position: fixed;
    right: 40px;
    bottom: 24px;
    z-index: 10;
    max-width: calc(50cqw - 436px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    background: var(--raised);
    color: var(--ink);
    text-decoration: none;
  }
  .focus-next-label { color: var(--signal-text); flex-shrink: 0; }
  .focus-next-title {
    min-width: 0;
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
  }
  .focus-next-arrow {
    width: var(--tap);
    height: var(--tap);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
  }
}

@container reader (max-width: 1523.98px) {
  html[data-focus="on"] .focus-next { max-width: none; padding: 0; gap: 0; border: 0; background: transparent; }
  html[data-focus="on"] .focus-next-label, html[data-focus="on"] .focus-next-title {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html[data-focus="on"] .focus-next-arrow { background: var(--raised); border-color: var(--rule); }
  html[data-focus="on"] .focus-next:focus-visible { outline: none; }
  html[data-focus="on"] .focus-next:focus-visible .focus-next-arrow { outline: 2px solid var(--ink); outline-offset: 2px; }
}
@container reader (max-width: 959.98px) {
  /* Rechter Textrand mindestens 100px vor dem Rand (Pfeil 44px + 40px Rand + 16px Luft): Spalte
     840px mittig in der Leseansicht, also 520px - 50cqw; nie weniger als die üblichen 40px. */
  html[data-focus="on"] .art, html[data-focus="on"] .art-rail { padding-right: max(40px, 520px - 50cqw); }
}

/* ---- Ziehbare Trennlinie Liste | Leseansicht (nur Desktop, nicht im Fokusmodus) ------------ */
.list-resize { display: none; }
@media (min-width: 900px) {
  #shell[data-layout="list"] .list-resize, #shell[data-layout="article"] .list-resize {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    /* Nur über der Haarlinie (letztes Pixel von #view) und auf der Seite der Leseansicht, damit die
       Scrollleiste der Liste frei bleibt. */
    left: calc(var(--list-w, 520px) - 1px);
    width: 12px;
    z-index: 15;
    cursor: col-resize;
    touch-action: none;
  }
  html[data-focus="on"] #shell[data-layout="article"] .list-resize { display: none; }
  /* Die Haarlinie von #view liegt am linken Rand; beim Zeigen, Ziehen und mit Tastaturfokus wird sie ink. */
  .list-resize::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: transparent;
  }
  .list-resize:hover::after, #shell.is-resizing .list-resize::after, .list-resize:focus-visible::after { background: var(--ink); }
  .list-resize:focus-visible { outline: none; }
  #shell.is-resizing, #shell.is-resizing * { cursor: col-resize; user-select: none; -webkit-user-select: none; }
}

/* ---- Server-Ticker (E10: Mein Server, Zeitungsansicht, Artikel) ------------------------------- */
/* Mein Server (views/watch.js): Eingabe, Prüfung, Endbericht. Ein Signal: der Punkt bei PASST (voll) bzw.
   KORRIGIERT (Ring); NICHT ABGEDECKT grau ohne Punkt. */
.watch-lead { margin: 0; padding: 8px 0 16px; font-size: 15px; line-height: 22px; color: var(--muted); }
.watch-page .is-ink { color: var(--ink); }
.watch-label { display: block; color: var(--muted); padding-bottom: 8px; }
.watch-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  resize: vertical;
}
.watch-input::placeholder { color: var(--muted); }
.watch-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.watch-input:disabled { opacity: 0.6; }
.watch-actions { padding: 16px 0; }
.watch-fine { margin: 0; color: var(--muted); }
.watch-page .err-line { margin: 0 0 12px; }
.watch-note { margin: 16px 0 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.watch-say { margin: 0; padding: 6px 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.watch-sec { padding-top: 20px; }
.watch-sec-title { font-size: 16px; line-height: 19px; }
.watch-row .pill { flex-shrink: 0; }
.watch-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.watch-status::before { content: ""; width: 8px; height: 8px; box-sizing: border-box; border-radius: var(--radius-pill); }
.watch-status.is-ok::before { background: var(--signal); }
.watch-status.is-corrected::before { border: 1px solid var(--signal); }
.watch-status.is-uncovered { color: var(--muted); }
.watch-status.is-uncovered::before { display: none; }
/* Marken (ui/marks.js) in Zeile, Titelseite und Leseansicht: Haarlinien-Pillen, blau nur HOCH und AKTIV AUSGENUTZT. */
.watch-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.watch-mark {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  color: var(--muted);
}
.watch-mark.is-urgent { border-color: var(--signal); color: var(--ink); }
.row-main .watch-marks + .row-teaser { margin-top: 4px; }
.art-view .watch-marks { margin-top: 0; }
.fp-srv-row .watch-marks { margin-top: 2px; }
.watch-foot { padding: 16px var(--gutter) 32px; }
.article-body .art-sources-note { color: var(--muted); font-size: 14px; line-height: 21px; }
/* Server-Ticker, Leseansicht: Quellen als Zeilen mit Haarlinie (44px, Space Grotesk 16px, blau) statt der kleinen
   Mono-Liste der KI-Ausgabe. */
.article-body.is-ticker .art-sources-h + .art-sources {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.article-body.is-ticker .art-sources br { display: none; }
.article-body.is-ticker .art-sources a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--signal-text);
  text-decoration: none;
}
.article-body.is-ticker .art-sources a + br + a,
.article-body.is-ticker .art-sources a + a { border-top: 1px solid var(--hairline); }
/* Lange Namen und Eingaben ohne Umbruchstelle: nie waagerecht scrollen (390px). */
.watch-row .set-row-text, .watch-row .t-ui, .watch-row .t-caption, .watch-say, .watch-lead { min-width: 0; overflow-wrap: anywhere; }
.watch-quiet { margin: 0 0 12px; color: var(--muted); }
.nowrap { white-space: nowrap; }
/* Mein Server: Unterzeilen ganz zeigen (keine Kürzung auf zwei Zeilen wie sonst in .set-row-text). */
.watch-row .set-row-text > .t-caption { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
/* Rückfrage beim Entfernen: Frage oben, Knöpfe darunter in eigener Zeile. */
.watch-row--confirm { flex-wrap: wrap; padding-bottom: 12px; }
.watch-row--confirm .set-row-text { flex-basis: 100%; }
.watch-status.is-exists { color: var(--muted); }
.watch-status.is-exists::before { display: none; }
.pill.is-disabled { opacity: 0.5; pointer-events: none; }
/* NOCH KEINE EINTRÄGE: grau, eigener Punkt (grauer Ring) – überwacht, aber noch ohne Daten */
.watch-status.is-no_entries { color: var(--muted); }
.watch-status.is-no_entries::before { border: 1px solid var(--rule); }
