:root {
  --bg: #f6f7f9; --surface: #fff; --surface-2: #eef0f4; --text: #14171c; --muted: #5d6675;
  --border: #e1e4ea; --accent: #2f6bff; --accent-text: #fff; --accent-soft: #e6eeff;
  --shadow: 0 1px 2px rgba(20,23,28,.06), 0 4px 14px rgba(20,23,28,.05);
  --radius: 14px; --bar-h: 58px;
  --t-modelle: #2f6bff; --t-forschung: #7a4dff; --t-business: #0f9d78; --t-politik: #d9822b;
  --t-weiter: #e0508a; --t-unternehmen: #0e97c7; --t-sicherheit: #d9483b;
  color-scheme: light;
}
:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #181b21; --surface-2: #20242c; --text: #e9ecf1; --muted: #9aa3b2;
    --border: #2a2f39; --accent: #6b95ff; --accent-text: #0b1020; --accent-soft: #1c2740;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
    --t-modelle: #6b95ff; --t-forschung: #a98bff; --t-business: #3fcaa1; --t-politik: #f0a35c;
    --t-weiter: #f283ad; --t-unternehmen: #55c3ea; --t-sicherheit: #f2786d;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #181b21; --surface-2: #20242c; --text: #e9ecf1; --muted: #9aa3b2;
  --border: #2a2f39; --accent: #6b95ff; --accent-text: #0b1020; --accent-soft: #1c2740;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  --t-modelle: #6b95ff; --t-forschung: #a98bff; --t-business: #3fcaa1; --t-politik: #f0a35c;
  --t-weiter: #f283ad; --t-unternehmen: #55c3ea; --t-sicherheit: #f2786d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 15px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Kopf und Navigation */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; height: 54px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 800; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; min-height: var(--bar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }

@media (min-width: 720px) {
  body { padding-bottom: 40px; }
  .tabbar { display: none; }
  .nav { display: flex; }
}

/* Inhalt */
main { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 24px; outline: none; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0; }
.sub { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.state { color: var(--muted); text-align: center; padding: 48px 0; }

.stand { display: inline-flex; align-items: center; gap: 6px; }
.stand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #20b26b; }
.stand.old::before { background: #d9822b; }

.daynav { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; }
.daynav .label { flex: 1; text-align: center; font-weight: 700; }
.btn { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; min-height: 40px; padding: 0 14px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 13px; min-height: 36px; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.top-stories { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 6px; margin: 6px 0 22px; }
.top-stories h2 { margin-bottom: 8px; }
.top-stories ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.top-stories li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); }
.top-stories li:first-child { border-top: 0; }
.top-stories li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; }
.top-stories p { margin: 0; }
.top-stories .src { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; text-decoration: none; }
.top-stories .src:hover { text-decoration: underline; }

.section { margin: 0 0 22px; }
.section-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.section-head .count { color: var(--muted); font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--accent)); flex: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 10px; }
.card h3 { font-size: 1.02rem; line-height: 1.3; margin: 0 0 6px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 10px; color: var(--text); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.tag-thema { color: var(--c, var(--accent)); font-weight: 700; }
.badge { border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; font-size: .72rem; font-weight: 700; }
.rel { letter-spacing: 1px; color: var(--accent); font-size: .7rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--surface-2); border-radius: 6px; padding: 1px 8px; font-size: .75rem; color: var(--muted); }
.orig { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Archiv und Suche */
.filters { display: grid; gap: 10px; margin: 8px 0 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); font-weight: 600; flex: 1 1 140px; }
input[type="date"], input[type="search"] { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px; }
input[type="search"] { font-size: 1.05rem; }
.group-date { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 5; background: var(--bg); padding: 8px 0; margin: 0; font-size: .85rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.more { display: block; margin: 12px auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.hl { background: color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 3px; }
.foot { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .card, .btn, .chip { transition: background-color .15s, border-color .15s; }
}

/* Merkliste */
.star { margin-left: auto; width: 40px; height: 40px; margin-top: -8px; margin-right: -10px; border: 0; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--muted); border-radius: 10px; }
.star[aria-pressed="true"] { color: #e8a317; }
.star:hover { background: var(--surface-2); }
.count-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; font-style: normal; }
.count-badge[hidden] { display: none; }
.actions { margin-bottom: 10px; }

.ts-label { display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* Werkzeuge im Kopf */
.tools { margin-left: auto; display: flex; gap: 6px; }
.icon-btn.txt { font-weight: 700; font-size: 15px; line-height: 1; }
.icon-btn.txt small { font-size: 11px; margin-left: 1px; }
.icon-btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 720px) { .tools { margin-left: 12px; } }

/* Kurios-Box */
.kurios { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--t-weiter); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 4px; margin: 0 0 22px; }
.kurios-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.k-scope { color: var(--muted); font-size: .8rem; }
.kurios ul { list-style: none; margin: 0; padding: 0; }
.kurios li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); }
.kurios li:first-child { border-top: 0; }
.k-hook { font-weight: 700; color: var(--t-weiter); }
.k-title { text-decoration: none; }
.k-title:hover { text-decoration: underline; }
.k-meta { font-size: .78rem; color: var(--muted); }

/* Archiv-Gruppen */
.groups { display: grid; gap: 10px; }
details.group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-weight: 700; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "\25B8"; color: var(--muted); transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group[open] > summary { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 5; border-radius: 12px; }
.g-title { flex: 1; }
.group-body { padding-top: 10px; }

.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; min-width: 0; }
.searchbar .btn { width: 48px; padding: 0; font-size: 1.2rem; }

.badge.praxis { background: color-mix(in srgb, var(--t-business) 18%, transparent); border-color: transparent; color: var(--t-business); }
.ts-label.praxis { --c: var(--t-business); margin-left: 6px; }
select { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px; }

/* Layout-Fix: Raster-Eintraege duerfen schmaler als ihr Inhalt werden (lange einzeilige Quellenzeilen) */
.groups, .filters { grid-template-columns: minmax(0, 1fr); }
details.group, .group-body, .card, .section { min-width: 0; }
.orig { max-width: 100%; }
main { overflow-x: clip; }

/* ---- Mobile Struktur und neue Karte ---- */
@media (max-width: 719px) { html { font-size: 14px; } }

.card { border-left: 4px solid var(--c, var(--accent)); padding: 14px 16px 12px; }
.card-top { display: flex; align-items: center; gap: 8px; font-size: .78rem; margin-bottom: 4px; min-height: 28px; }
.card-top .star { margin-top: 0; }
.card h3 { font-size: 1.08rem; line-height: 1.28; margin: 2px 0 8px; }
.summary { color: var(--text); opacity: .92; margin: 0 0 8px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.card-foot .src-name { font-weight: 700; color: var(--text); opacity: .75; }
.card .tags { margin-top: 8px; }
.card .orig { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--accent); text-decoration: none; }
.card .orig:hover { text-decoration: underline; }
.more-btn { border: 0; background: none; padding: 4px 0 6px; font-weight: 700; font-size: .85rem; color: var(--accent); cursor: pointer; min-height: 32px; }

@media (max-width: 719px) {
  .summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .card.open .summary { display: block; }
  .card .tags { display: none; }
  .card.open .tags, .card.fits .tags { display: flex; }
  main { padding: 14px 14px 20px; }
  h1 { font-size: 1.4rem; }
}
@media (min-width: 720px) { .more-btn { display: none !important; } }

/* Sprungleiste in der Tagesansicht */
.jump { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 6; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; border-bottom: 1px solid var(--border); }
.jump::-webkit-scrollbar { display: none; }
.jump-chip { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.section { scroll-margin-top: 112px; }
.section-head { padding: 4px 0; border-bottom: 2px solid color-mix(in srgb, var(--c) 40%, transparent); margin-bottom: 12px; }
.section-head h2 { font-size: 1.1rem; }

/* Bereich-B-Box */
.de-box { border-left-color: var(--accent); }
.de-box li { grid-template-columns: 1fr; }
.de-box .ts-label { margin-right: 6px; }

/* Filter einklappbar */
details.filterbox { margin: 8px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
details.filterbox > summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-weight: 700; }
details.filterbox > summary::-webkit-details-marker { display: none; }
details.filterbox > summary::after { content: "\25BE"; margin-left: auto; color: var(--muted); }
details.filterbox[open] > summary::after { content: "\25B4"; }
details.filterbox > .filters { padding: 0 14px 12px; margin: 0; }
details.filterbox .chips { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }

/* ---- Footer und Einstellungen ---- */
.site-foot { max-width: var(--wrap); margin: 8px auto 0; padding: 14px 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--border); }
.foot-gear { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; min-height: 36px; padding: 0 8px; border-radius: 10px; }
.foot-gear:hover { background: var(--surface-2); }
.foot-gear svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-gear[aria-current="page"] { color: var(--accent); }
@media (max-width: 719px) { .tabbar a span { font-size: 10.5px; } .foot-gear { display: none; } }

.set-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 12px; margin: 0 0 14px; }
.set-card h2 { margin-bottom: 8px; }
.set-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; }
.set-text { margin: 0 0 8px; color: var(--muted); }
.fs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fs-val { min-width: 52px; text-align: center; font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; }
.set-card h2 + .toggle { border-top: 0; }
.toggle span { display: grid; gap: 1px; }
.toggle small { color: var(--muted); font-size: .8rem; }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background-color .15s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .15s; }
.toggle input:checked { background: var(--accent); border-color: var(--accent); }
.toggle input:checked::after { transform: translateX(18px); background: #fff; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
.set-card .chips:not(.wrap) { margin: 0 -16px; }
.chip[style*="--c"][aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--accent-text); }
.btn.danger { color: #d9483b; }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.src-list li span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.src-list a { text-decoration: none; font-weight: 600; }
.src-list a:hover { text-decoration: underline; }
body.no-tags .card .tags { display: none !important; }

/* ---- Ruhigere Filter: segmentierte Schalter und farbige Themen ---- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.filters > .chips, .filters > .row, .filters > form { flex: 1 1 100%; min-width: 0; }
details.filterbox > .filters { grid-template-columns: none; }
.seg-wrap { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.seg-label { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { flex: none; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .86rem; padding: 0 12px; min-height: 36px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 0 0 1px var(--border); }
.set-card .seg-label { display: none; }
.set-card .seg-wrap { margin-bottom: 4px; }

.chips.cats { margin: 0; padding: 2px 0 4px; flex-wrap: nowrap; }
.chip.cat { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; background: var(--surface); border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.chip.cat::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.chip.cat:hover { background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.chip.cat[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-color: var(--c); color: var(--text); box-shadow: inset 0 0 0 1px var(--c); }
@media (min-width: 720px) { .chips.cats { flex-wrap: wrap; overflow: visible; } }
details.filterbox .chips.cats { margin: 0; padding-left: 0; padding-right: 0; }
@media (max-width: 719px) { details.filterbox .chips.cats { margin: 0 -14px; padding-left: 14px; padding-right: 14px; } }

/* ---- Glossar ---- */
.alpha { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 6; display: flex; gap: 2px; overflow-x: auto; margin: 10px -16px 12px; padding: 6px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.alpha::-webkit-scrollbar { display: none; }
.alpha-btn { flex: none; width: 30px; height: 34px; border: 0; background: none; border-radius: 8px; font-weight: 700; color: var(--accent); cursor: pointer; }
.alpha-btn:disabled { color: var(--border); cursor: default; }
.alpha-btn:not(:disabled):hover { background: var(--accent-soft); }
.gl-group { margin-bottom: 8px; }
.gl-letter { font-size: 1.5rem; color: var(--accent); margin: 18px 0 8px; scroll-margin-top: 110px; }
.gl-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 12px; margin: 0 0 10px; scroll-margin-top: 110px; min-width: 0; }
.gl-item h3 { font-size: 1.05rem; margin: 0 0 2px; }
.gl-item p { margin: 6px 0 0; }
.gl-alias { font-size: .8rem; color: var(--muted); }
.gl-more { margin-top: 6px; }
.gl-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .88rem; min-height: 32px; display: flex; align-items: center; }
.gl-foot { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.gl-foot a { font-size: .8rem; font-weight: 600; text-decoration: none; padding: 3px 10px; border-radius: 999px; }
.gl-news { background: var(--accent-soft); color: var(--accent); }
.gl-rel { border: 1px solid var(--border); color: var(--muted); }
.gl-item.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.gl-hint { margin: 8px 0 0; }
.gl-hint a { color: var(--accent); font-weight: 600; }
.foot-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Impressum, Version ---- */
details.acc { border-top: 1px solid var(--border); }
details.acc:first-of-type { border-top: 0; }
details.acc > summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; font-weight: 700; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "\25BE"; margin-left: auto; color: var(--muted); }
details.acc[open] > summary::after { content: "\25B4"; }
.acc-body { padding: 0 0 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.imp { margin: 0 0 10px; }
.warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #d9822b 16%, transparent); border: 1px solid color-mix(in srgb, #d9822b 50%, transparent); }

/* ---- Durchgehende Suchleiste ---- */
.gsearch { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px 0; display: flex; gap: 8px; }
.gsearch[hidden] { display: none; }
.gsearch input { flex: 1; min-width: 0; min-height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 14px; font-size: 1rem; }
.gsearch button { flex: none; width: 46px; min-height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; cursor: pointer; }
.gsearch button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.gsearch + main { padding-top: 14px; }

/* ---- iOS: Formularfelder mind. 16px, sonst zoomt Safari beim Tippen hinein ---- */
input, select, textarea, .gsearch input, .searchbar input, input[type="search"], input[type="date"] { font-size: 16px; }

/* ---- Quellenauswahl als kompakte Pille mit Label links ---- */
.src-pick { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; flex: 0 1 auto; min-width: 0; }
.src-pick span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); flex: none; }
.src-pick select { width: auto; min-width: 150px; max-width: min(62vw, 320px); min-height: 46px; padding: 0 38px 0 18px; border-radius: 999px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-color: var(--surface); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa3b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.src-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Ruhiger: einheitliche Auswahlfelder, gedaempfte Labels ---- */
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; padding: 4px 14px 14px; }
.filter-grid.solo { padding: 0 0 12px; grid-template-columns: minmax(0, 260px); }
.field.sel { display: grid; gap: 5px; min-width: 0; flex: none; }
.f-label { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field.sel select, .field.sel input[type="date"] { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background-color: var(--surface); padding: 0 12px; font-weight: 500; }
.field.sel select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa3b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.reset-btn { align-self: end; min-height: 44px; border-radius: 12px; }
details.filterbox > .filter-grid { margin: 0; }

/* Sprung-Pillen und Themen-Labels neutral, Farbe nur als kleiner Punkt */
.jump-chip { border-color: var(--border); background: var(--surface); color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.jump-chip::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.ts-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: var(--surface-2); letter-spacing: .04em; }
.ts-label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); flex: none; }
.ts-label.praxis { color: var(--muted); background: var(--surface-2); }
.badge.praxis { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag-thema { color: var(--muted); font-weight: 700; }

.seg-n { margin-left: 7px; font-size: .74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-btn[aria-pressed="true"] .seg-n { color: var(--accent); }

/* ---- Kompakter Tageswechsler und schmaler Bereich-Schalter ---- */
.daynav { display: inline-flex; align-items: center; gap: 2px; width: fit-content; max-width: 100%; margin: 12px 0 14px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.daynav .btn { border: 0; background: transparent; min-width: 42px; min-height: 40px; padding: 0; border-radius: 11px; font-size: 1.2rem; }
.daynav .btn:hover:not(:disabled) { background: var(--surface-2); }
.daynav .label { flex: 0 1 auto; text-align: center; font-weight: 700; padding: 0 12px; }
.seg-wrap { width: fit-content; max-width: 100%; }
.seg { justify-self: start; }

/* ---- Briefing ---- */
.brief-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; margin: 4px 0 4px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--text); }
.brief-btn strong { display: block; color: var(--accent); }
.brief-btn small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.brief-go { font-size: 1.6rem; color: var(--accent); line-height: 1; }
.brief-btn:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }

.brief-progress { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 7; height: 3px; margin: -14px -16px 14px; background: var(--border); }
.brief-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.brief-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 6px; margin: 0 0 14px; }
.brief-sec h2 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.b-top, .b-list { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.b-top li { counter-increment: b; display: grid; grid-template-columns: 1fr; gap: 3px; padding: 12px 0 12px 34px; border-top: 1px solid var(--border); position: relative; }
.b-top li:first-child { border-top: 0; }
.b-top li::before { content: counter(b); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; }
.b-top p { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.b-top .ts-label { justify-self: start; }
.b-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); }
.b-list li:first-child { border-top: 0; }
.b-title { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35; }
.b-title:hover { text-decoration: underline; }
.b-src { font-size: .78rem; color: var(--muted); text-decoration: none; }
.b-src:hover { text-decoration: underline; }
.b-one { display: grid; gap: 4px; padding: 4px 0 12px; }
.b-one p { margin: 0; }
.b-term { font-size: 1.05rem; }
.brief-end { text-align: center; padding: 14px 0 6px; color: var(--muted); }
.brief-end .actions { justify-content: center; }
.offline { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 15; text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px; background: color-mix(in srgb, #d9822b 22%, var(--bg)); color: var(--text); border-bottom: 1px solid color-mix(in srgb, #d9822b 50%, var(--border)); }
.offline[hidden] { display: none; }

/* ---- Kopfbereich der Tagesansicht ---- */
.day-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 0 0 14px; }
.day-title { min-width: 0; }
.day-title h1 { margin: 4px 0 4px; }
.day-title .sub { margin: 0; }
.day-head .daynav { margin: 0; }
.day-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 0 0 16px; }
.day-tools .brief-btn { margin: 0; flex: 0 1 360px; }
.day-tools .seg-wrap { flex: none; }
@media (max-width: 719px) {
  .day-tools { flex-direction: column; align-items: stretch; }
  .day-tools .brief-btn { order: -1; flex: none; }
}

/* ---- Inline "Mehr lesen" in Top-Stories, Boxen und Briefing ---- */
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.row-meta .src, .row-meta .b-src, .row-meta .k-meta { display: inline; margin: 0; }
.more-link { border: 0; background: none; padding: 4px 0; font-weight: 700; font-size: .82rem; color: var(--accent); cursor: pointer; min-height: 30px; }
.more-panel { margin: 4px 0 8px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; border-left: 3px solid var(--c, var(--accent)); }
.more-panel[hidden] { display: none; }
.more-panel p { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; }
.top-stories li > div, .kurios li, .b-top li, .b-list li { min-width: 0; }

/* ---- Tagesauswahl (Liste) ---- */
.daynav { position: relative; }
.daysel { display: flex; }
.daybtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; min-height: 40px; padding: 0 12px; border-radius: 11px; font-weight: 700; cursor: pointer; text-align: center; }
.daybtn:hover { background: var(--surface-2); }
.daybtn .caret { color: var(--muted); font-size: .85rem; }
.daybtn[aria-expanded="true"] { background: var(--surface-2); }
.daypop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(calc(100vw - 32px), 340px); max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.daypop[hidden] { display: none; }
.daypop-week { position: sticky; top: -6px; background: var(--surface); padding: 8px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.daypop-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); }
.daypop-item:hover { background: var(--surface-2); }
.daypop-item[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dp-day { flex: 1; min-width: 0; }
.dp-tag { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.dp-n { min-width: 2ch; text-align: right; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.daypop-more { display: block; padding: 12px 10px 8px; text-align: center; font-weight: 600; font-size: .88rem; color: var(--accent); text-decoration: none; border-top: 1px solid var(--border); margin-top: 4px; }

.lbl-short { display: none; }
.daybtn { white-space: nowrap; }
@media (max-width: 719px) { .lbl-long { display: none; } .lbl-short { display: inline; } .daynav .daysel { flex: 1; } .daynav .daybtn { width: 100%; justify-content: center; } }

.update-bar { position: sticky; top: 0; z-index: 60; display: block; width: 100%; border: 0; cursor: pointer; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .9rem; }

/* ---- Handy: aufgeraeumter Kopfbereich, gleichmaessige Abstaende ---- */
@media (max-width: 719px) {
  .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .icon-btn.txt { font-size: 14px; }
  .icon-btn.txt small { font-size: 10px; }
  .tools { gap: 6px; }

  .gsearch { padding: 8px 14px 0; gap: 8px; }
  .gsearch input { min-height: 38px; border-radius: 10px; padding: 0 12px; }
  .gsearch input::placeholder, .searchbar input::placeholder { font-size: 14px; }
  .gsearch button { width: 42px; min-height: 38px; border-radius: 10px; }
  .gsearch button svg { width: 18px; height: 18px; }
  .gsearch + main { padding-top: 10px; }
  .searchbar input { min-height: 40px; }
  .searchbar .btn { width: 44px; min-height: 40px; }

  .day-title h1 { font-size: 1.3rem; margin: 2px 0 2px; }
  .day-title .sub { font-size: .8rem; }
  .day-head { gap: 8px; margin-bottom: 10px; }
  .day-head .daynav { width: 100%; padding: 2px; border-radius: 12px; }
  .daynav .btn { min-height: 34px; min-width: 42px; }
  .daynav .daybtn { min-height: 34px; font-size: .95rem; }
  .daynav .daysel { flex: 1; }

  .day-tools { gap: 8px; margin-bottom: 12px; }
  .brief-btn { padding: 9px 14px; border-radius: 12px; }
  .day-tools .seg-wrap { width: 100%; }
  .day-tools .seg-label { display: none; }
  .day-tools .seg { display: flex; width: 100%; justify-self: stretch; padding: 2px; border-radius: 12px; }
  .day-tools .seg-btn { flex: 1; padding: 0 4px; min-height: 34px; font-size: .84rem; }
  .seg-n { margin-left: 5px; }
}

/* ---- Neu, auch bei, Wochenrueckblick, Status ---- */
.badge.new { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.ts-label.new { background: var(--accent); color: var(--accent-text); }
.ts-label.new::before { display: none; }
.newonly { border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: .78rem; cursor: pointer; }
.newonly[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.count-badge[data-new-count] { margin-left: 4px; }
.also { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.also a { color: var(--muted); text-decoration: none; font-weight: 600; }
.also a:hover { text-decoration: underline; }
.more-panel .also { margin: 0 0 6px; }

.brief-switch { margin: 2px 0 10px; }
.brief-switch .seg-label { display: none; }
.b-sum { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.wk-row { padding: 10px 0; border-top: 1px solid var(--border); }
.wk-row:first-child { border-top: 0; }
.wk-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.wk-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 6px 0 8px; overflow: hidden; }
.wk-bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.wk-top { display: grid; gap: 4px; }
.daynav .label { flex: 1 1 auto; }

.status-banner { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--radius); margin: 0 0 14px; border: 1px solid var(--border); }
.status-banner.ok { background: color-mix(in srgb, #20b26b 14%, var(--surface)); border-color: color-mix(in srgb, #20b26b 45%, var(--border)); }
.status-banner.warn { background: color-mix(in srgb, #d9822b 16%, var(--surface)); border-color: color-mix(in srgb, #d9822b 50%, var(--border)); }
.status-banner.late { background: color-mix(in srgb, #d9483b 16%, var(--surface)); border-color: color-mix(in srgb, #d9483b 50%, var(--border)); }
.status-banner span { font-size: .9rem; color: var(--muted); }
.st-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.st-dot.ok { background: #20b26b; }
.st-dot.fail { background: #d9483b; }
.st-dot.off { background: var(--border); }
.st-name { display: inline-flex; align-items: center; min-width: 0; font-weight: 600; }
.src-list.problems small { color: var(--muted); }

/* ---- Zwei Einstiege: Kurz-Briefing und Woche ---- */
.brief-pair { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; margin: 0; }
.day-tools .brief-pair { flex: 0 1 470px; }
.brief-pair .brief-btn { margin: 0; min-width: 0; }
.brief-btn.week { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.brief-pair .brief-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief-pair .brief-btn strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 719px) { .day-tools .brief-pair { order: -1; flex: none; } }

.back-link { display: inline-flex; align-items: center; min-height: 36px; margin: 0 0 2px; color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.brief-pair { grid-template-columns: 1fr 1fr; }

/* ---- Farbige Kopfkarte (Kurz-Briefing, Die Woche in Kuerze) ---- */
.hero { position: relative; border-radius: var(--radius); padding: 10px 14px 14px; margin: 0 0 14px; color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(120% 140% at 0% 0%, rgba(120,160,255,.38) 0%, rgba(120,160,255,0) 58%), linear-gradient(135deg, #182466 0%, #2f6bff 100%); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hero-back { display: inline-flex; align-items: center; min-height: 34px; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .88rem; }
.hero-back:hover { text-decoration: underline; }
.hero h1 { color: #fff; font-size: 1.5rem; margin: 2px 0 4px; letter-spacing: -.01em; }
.hero-meta { display: grid; gap: 2px; margin: 0 0 12px; color: rgba(255,255,255,.88); font-size: .86rem; }
.hero-sub { color: rgba(255,255,255,.75); font-size: .8rem; }
.hero .seg-wrap { width: auto; }
.hero .seg-label { display: none; }
.hero .seg { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); padding: 2px; border-radius: 11px; }
.hero .seg-btn { color: rgba(255,255,255,.82); min-height: 32px; padding: 0 14px; }
.hero .seg-btn:hover { color: #fff; }
.hero .seg-btn[aria-pressed="true"] { background: #fff; color: #15245f; box-shadow: none; }
.hero .daynav { width: 100%; margin: 0; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); }
.hero .daynav .btn, .hero .daybtn, .hero .daynav .label { color: #fff; }
.hero .daynav .btn:hover:not(:disabled), .hero .daybtn:hover, .hero .daybtn[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.hero .daybtn { width: 100%; justify-content: center; }
.hero .daysel { flex: 1; }
.hero .daybtn .caret { color: rgba(255,255,255,.75); }
.hero .daynav .btn:disabled { opacity: .35; }
.hero .stand::before { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
@media (min-width: 720px) { .hero { padding: 14px 18px 18px; } .hero .daynav { width: fit-content; min-width: 360px; } .hero .daybtn { min-width: 200px; } }

.logo-img { width: 30px; height: 30px; border-radius: 9px; display: block; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* Kopfkarte: feste Hoehe, damit beim Wechsel zwischen Tag und Woche nichts springt */
.hero h1 { line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-meta { grid-auto-rows: 1.3rem; gap: 0; }
.hero-meta > div { height: 1.3rem; line-height: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .daynav .label, .hero .daybtn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Tag blau, Woche violett ---- */
:root { --week: #6d3df0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --week: #a98bff; } }
:root[data-theme="dark"] { --week: #a98bff; }
main.mode-week { --accent: var(--week); --accent-soft: color-mix(in srgb, var(--week) 16%, var(--surface)); }
.hero.week { background: radial-gradient(120% 140% at 0% 0%, rgba(196,170,255,.42) 0%, rgba(196,170,255,0) 58%), linear-gradient(135deg, #2b1a69 0%, #7a4dff 100%); }
.hero.week .seg-btn[aria-pressed="true"] { color: #2b1a69; }
.brief-btn.week { --accent: var(--week); background: color-mix(in srgb, var(--week) 12%, var(--surface)); border-color: color-mix(in srgb, var(--week) 42%, var(--border)); }
.brief-btn.week strong { color: var(--week); }
.brief-btn.week:hover { background: color-mix(in srgb, var(--week) 20%, var(--surface)); }

/* Nach Themen: jede Meldung als eigener Eintrag */
.wk-row { padding: 14px 0; }
.wk-top { display: grid; gap: 8px; margin-top: 2px; }
.wk-item { display: grid; gap: 2px; padding: 9px 12px; background: var(--surface-2); border-left: 3px solid var(--c); border-radius: 10px; text-decoration: none; color: var(--text); }
.wk-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.wk-src { font-size: .75rem; color: var(--muted); }
@media (hover: hover) { .wk-item:hover { background: color-mix(in srgb, var(--c) 12%, var(--surface-2)); } }
@media (hover: none) { .b-title:hover, .k-title:hover { text-decoration: none; } }

.wk-day { font-size: .78rem; font-weight: 700; color: var(--accent); }

/* Fortschrittsbalken ohne Platzbedarf, damit Tag und Woche exakt gleich liegen */
.brief-progress { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 7; height: 0; margin: -14px -16px 14px; background: none; }
.brief-progress::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--border); }
.brief-progress i { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .1s linear; }

/* ---- Woche in Gruen (ersetzt Violett) ---- */
:root { --week: #0e8466; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --week: #3fcaa1; } }
:root[data-theme="dark"] { --week: #3fcaa1; }
.hero.week { background: radial-gradient(120% 140% at 0% 0%, rgba(120,240,200,.40) 0%, rgba(120,240,200,0) 58%), linear-gradient(135deg, #0a3f35 0%, #0e8466 100%); }
.hero.week .seg-btn[aria-pressed="true"] { color: #0a3f35; }

/* ================= AITI-Farben (DeepAi, LimeByte, MintTech, SkyMind, VerdaNova) plus Blau als zweiter Akzent ================= */
:root {
  --bg: #F2F0E8; --surface: #FDFCF8; --surface-2: #E9E7DC; --text: #14272A; --muted: #566B6E;
  --border: #DAD7C9; --accent: #26595E; --accent-text: #F5FC9C; --accent-soft: #D1FAE3;
  --shadow: 0 1px 2px rgba(20,39,42,.07), 0 4px 14px rgba(20,39,42,.06);
  --blue: #2f6bff; --week: #2457d6;
  --t-modelle: #2f6bff; --t-forschung: #5f63b0; --t-business: #3f9a6c; --t-politik: #c07a1f;
  --t-weiter: #b4603c; --t-unternehmen: #2a7a86; --t-sicherheit: #c04a40;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A1C; --surface: #15272A; --surface-2: #1D3538; --text: #E8F1EF; --muted: #9DB5B6;
    --border: #27474B; --accent: #9FE8C3; --accent-text: #0B2124; --accent-soft: #1B4A46;
    --shadow: 0 1px 2px rgba(0,0,0,.45);
    --blue: #6b95ff; --week: #6b95ff;
    --t-modelle: #6b95ff; --t-forschung: #a3a7ef; --t-business: #6fd3a2; --t-politik: #f0b45c;
    --t-weiter: #eba07e; --t-unternehmen: #6fc1cc; --t-sicherheit: #f08a80;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A1C; --surface: #15272A; --surface-2: #1D3538; --text: #E8F1EF; --muted: #9DB5B6;
  --border: #27474B; --accent: #9FE8C3; --accent-text: #0B2124; --accent-soft: #1B4A46;
  --shadow: 0 1px 2px rgba(0,0,0,.45);
  --blue: #6b95ff; --week: #6b95ff;
  --t-modelle: #6b95ff; --t-forschung: #a3a7ef; --t-business: #6fd3a2; --t-politik: #f0b45c;
  --t-weiter: #eba07e; --t-unternehmen: #6fc1cc; --t-sicherheit: #f08a80;
}

/* Tag: DeepAi-Flaeche, Titel in LimeByte */
.hero { background: radial-gradient(120% 140% at 0% 0%, rgba(209,250,227,.22) 0%, rgba(209,250,227,0) 58%), linear-gradient(135deg, #17393D 0%, #26595E 60%, #2f7076 100%); }
.hero h1 { color: #F5FC9C; }
.hero-back { color: #D1FAE3; }
.hero-meta { color: #E3F7EC; }
.hero-sub { color: rgba(209,250,227,.8); }
.hero .seg-btn[aria-pressed="true"] { background: #F5FC9C; color: #17393D; }

/* Woche: Blau */
.hero.week { background: radial-gradient(120% 140% at 0% 0%, rgba(120,160,255,.40) 0%, rgba(120,160,255,0) 58%), linear-gradient(135deg, #182466 0%, #2f6bff 100%); }
.hero.week h1 { color: #fff; }
.hero.week .hero-back { color: rgba(255,255,255,.9); }
.hero.week .hero-meta { color: rgba(255,255,255,.9); }
.hero.week .hero-sub { color: rgba(255,255,255,.78); }
.hero.week .seg-btn[aria-pressed="true"] { background: #fff; color: #15245f; }
main.mode-week { --accent: var(--week); --accent-soft: color-mix(in srgb, var(--week) 14%, var(--surface)); --accent-text: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.mode-week { --accent-text: #0b1020; } }
:root[data-theme="dark"] main.mode-week { --accent-text: #0b1020; }

/* Fortschrittsbalken und Marker */
.brief-btn.week { --accent: var(--week); }

/* ---- Glossar: Suche und A bis Z bleiben beim Scrollen oben ---- */
.gl-sticky { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 6; margin: 8px -16px 12px; padding: 8px 16px 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.gl-sticky .alpha { position: static; margin: 0; padding: 6px 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gl-letter, .gl-item { scroll-margin-top: 150px; }

/* ---- Rubrik AITI, Begriff des Tages, Glossar-Stempel ---- */
:root { --t-aiti: #26595E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --t-aiti: #F5FC9C; } }
:root[data-theme="dark"] { --t-aiti: #F5FC9C; }

.brief-term { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); border-left: 4px solid var(--accent); }
.brief-term h2 { color: var(--accent); }
.brief-term .b-term { font-size: 1.2rem; color: var(--accent); }
.brief-term .b-src { color: var(--accent); font-weight: 600; }

.gl-note { margin: 0 0 8px; font-size: .78rem; color: var(--muted); }
.gl-checked { font-size: .72rem; color: var(--muted); margin-left: auto; align-self: center; }

/* ---- Gelesen: Karte auf eine Zeile einklappen oder ausblenden ---- */
.seen-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; margin-left: auto; }
.seen-btn + .star { margin-left: 0; }
.seen-btn:hover { color: var(--text); }
.card.seen { padding: 6px 12px; border-left-width: 3px; box-shadow: none; background: transparent; display: flex; align-items: center; gap: 10px; min-height: 0; }
.card.seen > *:not(.card-top):not(h3) { display: none; }
.card.seen .card-top { order: 2; margin: 0; min-height: 0; flex: 0 0 auto; }
.card.seen .card-top > *:not(.seen-btn) { display: none; }
.card.seen h3 { order: 1; flex: 1 1 auto; min-width: 0; margin: 0; font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.seen h3 a { color: var(--muted); }
.hide-seen .card.seen { display: none; }

/* Gelesen in Listen (Briefing, Woche, Boxen im Tag) */
.seen-btn.mini { padding: 1px 8px; font-size: .72rem; margin-left: auto; min-height: 24px; }
li.seen, .b-one.seen { display: flex !important; align-items: center; gap: 10px; padding-top: 5px !important; padding-bottom: 5px !important; }
li.seen > *, .b-one.seen > * { display: none; }
li.seen > .b-title, .b-one.seen > .b-title { display: block; flex: 1 1 auto; min-width: 0; font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
li.seen > .row-meta, .b-one.seen > .row-meta { display: flex; flex: 0 0 auto; }
li.seen > .row-meta > *:not(.seen-btn), .b-one.seen > .row-meta > *:not(.seen-btn) { display: none; }
li.seen::before { display: none; }
.hide-seen li.seen, .hide-seen .b-one.seen { display: none !important; }
li.seen > p:not(.b-sum) { display: block; flex: 1 1 auto; min-width: 0; margin: 0; font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Gelesen: Titel der Boxen im Tag (k-title) und Top-Stories (Textblock in div) */
li.seen > .k-title { display: block; flex: 1 1 auto; min-width: 0; font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-stories li.seen { grid-template-columns: none; }
.top-stories li.seen > div:not(.row-meta) { display: flex !important; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.top-stories li.seen > div > * { display: none; }
.top-stories li.seen > div > p { display: block; flex: 1 1 auto; min-width: 0; margin: 0; font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-stories li.seen > div > .row-meta { display: flex; flex: 0 0 auto; }
.top-stories li.seen > div > .row-meta > *:not(.seen-btn) { display: none; }
.top-stories li.seen::before { display: none; }
.hide-seen .top-stories li.seen { display: none !important; }

/* ---- AITI-Button und AITI-Tag ---- */
.brief-btn.aiti { margin: 8px 0 14px; background: color-mix(in srgb, #F5FC9C 60%, var(--surface)); border-color: color-mix(in srgb, #D8E36A 80%, var(--border)); }
:root[data-theme="dark"] .brief-btn.aiti { background: color-mix(in srgb, #F5FC9C 16%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brief-btn.aiti { background: color-mix(in srgb, #F5FC9C 16%, var(--surface)); } }
.brief-btn.aiti strong { color: var(--text); }
.aiti-n { flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--text); color: var(--bg, var(--surface)); font-weight: 800; font-size: .85rem; }
.tags .tag-aiti { color: var(--text); font-weight: 800; background: color-mix(in srgb, #F5FC9C 70%, transparent); border-radius: 6px; padding: 0 5px; }

.tags .tag-aiti { color: #26595E; }
:root[data-theme="dark"] .tags .tag-aiti { color: #F5FC9C; background: color-mix(in srgb, #F5FC9C 18%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tags .tag-aiti { color: #F5FC9C; background: color-mix(in srgb, #F5FC9C 18%, transparent); } }
.seen-btn { white-space: nowrap; flex: 0 0 auto; }
.card-top .tag-thema { min-width: 0; }
.section[style*="--t-aiti"] > h2 { margin: 18px 0 12px; display: flex; align-items: center; gap: 8px; }
.brief-btn.aiti { padding: 6px 14px; margin: 6px 0 12px; }
.brief-btn.aiti > span:first-child { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brief-btn.aiti small { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brief-btn.aiti strong { flex: 0 0 auto; }
.aiti-n { min-width: 24px; height: 24px; font-size: .8rem; }

/* ---- Mehr Kontext (zweite Stufe) ---- */
.kontext { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .92rem; line-height: 1.5; color: var(--text); }
.kontext b { color: var(--accent); }
.card > .kontext-btn { display: block; margin: 0 0 4px; }
.kontext-btn::before { content: "+ "; }
.kontext-btn[aria-expanded="true"]::before { content: "\2212 "; }
.kontext-btn::before, .kontext-btn[aria-expanded="true"]::before { content: none; }
.more-panel p.kontext { margin: 6px 0 8px; padding: 10px 12px; }

/* Zusammengefasste Meldungen als schmale Zeilen */
.also .also-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 2px 0 3px; }
.also .also-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); font-weight: 400; min-width: 0; }
.also .also-row b { flex: 0 0 auto; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.also .also-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.also .also-row i { flex: 0 0 auto; font-style: normal; }

/* ================= Modelle: Steckbriefe, Vergleich, Diagramme ================= */
.mdl-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 720px) { .mdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mdl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mdl-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; min-width: 0; }
.mdl-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mdl-card h3 { margin: 0; font-size: 1.1rem; }
.mdl-sub { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.badge.open { background: color-mix(in srgb, #20b26b 20%, var(--surface)); color: var(--text); border-color: color-mix(in srgb, #20b26b 50%, var(--border)); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.fact dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.fact dd { margin: 1px 0 0; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.mdl-mini h4 { margin: 2px 0 6px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-row { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr 4.6em; gap: 8px; align-items: center; font-size: .82rem; padding: 2px 0; }
.mini-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mini-row b { text-align: right; font-variant-numeric: tabular-nums; }
.mini-track { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mini-track i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.mdl-note { margin: 6px 0 0; font-size: .74rem; color: var(--muted); }
.mdl-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.btn.small { padding: 4px 12px; font-size: .8rem; min-height: 32px; }
.btn.small[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: transparent; }

.mdl-bars { display: grid; gap: 7px; margin: 10px 0 8px; }
.mdl-bar { display: grid; grid-template-columns: minmax(0, 9em) 1fr 5.4em; gap: 8px; align-items: center; font-size: .85rem; }
.mdl-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdl-bar-track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.mdl-bar-track i { display: block; height: 100%; border-radius: 7px; }
.mdl-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.mdl-bar b.best { color: var(--accent); }
.mdl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.mdl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

.mdl-scatter { margin-top: 8px; }
.mdl-svg { width: 100%; height: auto; display: block; }
.mdl-svg .grid { stroke: var(--border); stroke-width: 1; }
.mdl-svg .tick { fill: var(--muted); font-size: 11px; }
.mdl-svg .axis { fill: var(--muted); font-size: 12px; font-weight: 600; }
.mdl-svg .lbl { fill: var(--text); font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

.mdl-donut-wrap { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 16px; align-items: center; margin-top: 10px; }
@media (max-width: 480px) { .mdl-donut-wrap { grid-template-columns: 1fr; justify-items: center; } .mdl-donut-leg { justify-self: stretch; } }
.mdl-donut { width: 100%; max-width: 190px; height: auto; }
.mdl-donut .donut-n { fill: var(--text); font-size: 26px; font-weight: 800; }
.mdl-donut .donut-l { fill: var(--muted); font-size: 11px; }
.mdl-donut-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.mdl-donut-leg li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.mdl-donut-leg i { width: 12px; height: 12px; border-radius: 50%; }
.mdl-donut-leg b { font-variant-numeric: tabular-nums; }

.mdl-table-wrap { overflow-x: auto; margin: 10px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mdl-table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 460px; }
.mdl-table th, .mdl-table td { padding: 8px 10px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.mdl-table thead th { border-top: 0; font-size: .85rem; position: sticky; top: 0; background: var(--surface); }
.mdl-table tbody th[scope="row"] { font-weight: 600; color: var(--muted); min-width: 8.5em; position: sticky; left: 0; background: var(--surface); }
.mdl-table th small { display: block; font-weight: 400; font-size: .7rem; }
.mdl-table tr.grp th { background: var(--surface-2); color: var(--text); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; position: static; }
.mdl-table td.best { font-weight: 800; color: #178a54; background: color-mix(in srgb, #20b26b 14%, transparent); }
.mdl-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.mdl-disclaimer { margin-top: 18px; }
@media (max-width: 719px) { .tabbar a span { font-size: 10px; } }

/* Karte kompakter: Mehr lesen und Mehr Kontext nebeneinander, Original rechts neben den Relevanzpunkten */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; margin: 0; }
.card-actions[hidden] { display: none; }
.card .card-actions .more-btn, .card .card-actions .kontext-btn { margin: 0; padding: 2px 0 4px; min-height: 28px; display: inline-block; }
.card-actions .more-btn[hidden] { display: none; }
.card .card-foot { margin-top: 2px; }
.card .card-foot .orig { margin: 0 0 0 auto; display: inline-block; font-size: .78rem; white-space: nowrap; }
.card > .kontext { margin: 4px 0 6px; }
.mdl-filter { margin-top: 18px; }
td.na { color: var(--muted); }

/* Kopfnavigation: Zaehler-Badge bleibt in einer Zeile, Pille wird nicht hoeher als die Leiste */
.nav { align-items: center; }
.nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.2; padding: 6px 14px; }
.nav .count-badge { margin: 0; min-width: 18px; line-height: 17px; font-size: .68rem; }

/* ---- Teilen ---- */
.share-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; padding: 4px 6px; border-radius: 8px; cursor: pointer; min-height: 28px; }
.share-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover { color: var(--accent); background: var(--surface-2); }
.card .card-foot .share-btn { margin-left: auto; }
.card .card-foot .share-btn + .orig { margin-left: 4px; }
.row-meta .share-btn { padding: 4px; }
.share-menu { position: absolute; z-index: 60; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 6px; display: grid; }
.share-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px 10px 4px; }
.share-row { border: 0; background: none; color: var(--text); font: inherit; font-size: .95rem; text-align: left; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.share-row:hover { background: var(--surface-2); }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h, 64px) + 20px); transform: translate(-50%, 10px); background: var(--text); color: var(--bg, var(--surface)); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) { .card .card-foot .share-btn span { display: none; } .card .card-foot .share-btn { padding: 4px; } }
/* Tabbar: Zaehler-Badge liegt oben am Symbol statt eine dritte Zeile zu bilden */
.tabbar a { position: relative; }
.tabbar .count-badge { position: absolute; top: 5px; left: calc(50% + 6px); margin: 0; min-width: 17px; line-height: 16px; font-size: .62rem; padding: 0 4px; }

/* ---- Breitere Ansicht auf grossen Bildschirmen ---- */
:root { --wrap: 860px; }
@media (min-width: 1000px) { :root { --wrap: 1120px; } }
@media (min-width: 1400px) { :root { --wrap: 1320px; } }
@media (min-width: 1000px) {
  .section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-items: start; }
  .section > .section-head, .section > h2, .section > .empty { grid-column: 1 / -1; }
  .section > .card { margin: 0 0 12px; }
}

/* Kurios & krass: Alle ansehen, Badge und Hinweiszeile in Karten */
.kurios-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.kurios-head .k-all { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.kurios-head .k-all:hover { text-decoration: underline; }
.badge.kur-badge { background: color-mix(in srgb, var(--t-weiter) 20%, transparent); border-color: transparent; color: var(--t-weiter); }
.card .card-hook { margin: 0 0 4px; font-size: .88rem; }

/* Aufklappbereich in Listen: Mehr Kontext und Zum Original nicht aneinander kleben */
.more-panel .kontext-btn { display: block; margin: 8px 0 4px; }
.more-panel > .b-src { display: inline-block; margin-top: 8px; }
/* Fokusrahmen an Textschaltflaechen schlank halten */
.more-link:focus-visible, .more-btn:focus-visible, .kontext-btn:focus-visible, .share-btn:focus-visible { outline-width: 1.5px; outline-offset: 1px; border-radius: 4px; }

/* Lange Zeilen (Schlagzeilen in "Auch berichtet bei") duerfen die Box nicht verbreitern */
.b-one, .brief-sec, .more-panel, .also, .also .also-row, .b-top li, .b-list li { min-width: 0; max-width: 100%; }
.more-panel, .also { overflow: hidden; }
.also .also-row span { min-width: 0; }

/* Schwebender Zurueck-Knopf im Glossar, damit er auch nach dem Sprung zum Begriff sichtbar bleibt */
.back-fab { position: fixed; left: 14px; bottom: calc(var(--bar-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
@media (min-width: 720px) { .back-fab { bottom: 20px; } }

/* Offline speichern */
.off-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 0; }
.off-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.set-card .btn.primary { margin-top: 4px; }
.off-status { margin-top: 8px; }

/* Nachrichtenkarten: Schrift 1 px kleiner (skaliert weiter mit A+ und A-) */
.card h3 { font-size: calc(1.08rem - 1px); }
.card .summary, .card .card-hook { font-size: calc(1rem - 1px); }
.card .kontext { font-size: calc(.92rem - 1px); }
