/* Informer: clear, slim, calm. Space instead of boxes, hairlines instead of borders,
   one typeface, one quiet accent. Nothing that blinks, counts or pulls attention. */
:root {
  --bg: #f7f6f2; --text: #1f2320; --soft: #4a524d; --muted: #8a918c; --line: #e4e1d9; --accent: #5b7a69; --error: #a2513f;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --measure: 34rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121413; --text: #e7e5df; --soft: #b9bdb8; --muted: #7d847f; --line: #262a28; --accent: #93b4a2; --error: #e0937f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Frame */
.top { max-width: var(--measure); margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; padding: max(20px, env(safe-area-inset-top)) 24px 0; }
.brand { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
#lang { width: auto; appearance: none; -webkit-appearance: none; border: none; background: none; color: var(--muted); font: 13px var(--font); letter-spacing: .08em; padding: 0; cursor: pointer; }
main { max-width: var(--measure); margin: 0 auto; padding: 8px 24px calc(96px + env(safe-area-inset-bottom)); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px 0 max(14px, env(safe-area-inset-bottom)); }
.tabs a { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.tabs a.active { color: var(--text); }

/* Type */
h1 { font-size: 26px; font-weight: 300; letter-spacing: -.01em; line-height: 1.25; margin: 28px 0 8px; }
h1.date::first-letter { text-transform: uppercase; }
h2 { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 56px 0 4px; }
h3 { font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; margin: 0 0 6px; }
h4 { font-size: 13px; font-weight: 500; color: var(--soft); margin: 24px 0 4px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.error { color: var(--error); font-size: 14px; }

/* Einträge: hairlines between, nothing around */
.items > .card + .card { border-top: 1px solid var(--line); }
.card { padding: 22px 0; }
.card .headline { text-decoration: none; }
.card.unread h3 .headline::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 10px 2px 0; vertical-align: middle; }
.card p { color: var(--soft); font-size: 15px; }
.card.note { padding: 12px 0; }
.card.note p { color: var(--muted); font-size: 14px; font-style: italic; }
.card .why, .why { color: var(--muted); font-size: 14px; font-style: italic; }
.card .quellen, .quellen { font-size: 12px; color: var(--muted); letter-spacing: .02em; overflow-wrap: anywhere; margin-top: 10px; }
.quellen a { text-decoration: none; }
.quellen a:hover { color: var(--accent); }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.expired { color: var(--error); }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; font-size: 14px; margin: 10px 0; color: var(--soft); }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; }

/* Quiet actions */
.marks { display: flex; gap: 18px; margin-top: 10px; }
button { font: 14px var(--font); color: var(--text); background: none; border: none; padding: 0; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.mark { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.mark:hover, .mark.on { color: var(--accent); }
button.primary, .button { display: inline-block; font: 14px var(--font); letter-spacing: .04em; color: var(--text); border: 1px solid var(--text); border-radius: 999px; padding: 10px 22px; text-decoration: none; margin-top: 12px; }
button.primary:hover, .button:hover { background: var(--text); color: var(--bg); }
button.danger { color: var(--error); }
.row button, .ask button, .thema-edit button { font-size: 13px; color: var(--accent); }
.row button.danger, .thema-edit button.danger { color: var(--muted); }

/* Forms: a line, not a box */
input, textarea, select { width: 100%; font: 15px var(--font); color: var(--text); background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; outline: none; }
input:focus, textarea:focus { border-bottom-color: var(--accent); }
textarea { resize: vertical; }
input[type=search] { font-size: 17px; margin: 8px 0 16px; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.field { display: grid; gap: 0; margin: 10px 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.row { display: flex; gap: 20px; align-items: center; margin: 10px 0; }
.row input { flex: 1; }

/* Eintrag page */
.back { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-block; margin-top: 24px; }
.deep { margin: 8px 0 0; }
.deep h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 24px 0 4px; }
.deep p { color: var(--soft); }
.qa { border-top: 1px solid var(--line); padding: 16px 0; }
.qa .q { font-weight: 500; color: var(--text); }
.qa p { color: var(--soft); }
.ask { display: grid; gap: 4px; margin-top: 12px; }
.ask button { justify-self: start; margin-top: 6px; }

/* Archiv */
.hit { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hit b { font-weight: 500; }
.hit .small { color: var(--soft); }
mark { background: none; color: var(--accent); }
.days { list-style: none; padding: 0; margin: 24px 0; }
.days li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.days a { text-decoration: none; }
.days a::first-letter { text-transform: uppercase; }

/* Settings */
section { margin-bottom: 8px; }
.thema-edit { border-bottom: 1px solid var(--line); padding: 14px 0; }
.thema-edit summary { list-style: none; cursor: pointer; font-size: 16px; }
.thema-edit summary::-webkit-details-marker { display: none; }
.thema-edit summary::after { content: '+'; float: right; color: var(--muted); font-weight: 300; }
.thema-edit[open] summary::after { content: '–'; }
.sub { margin: 14px 0; padding-left: 14px; border-left: 1px solid var(--line); }
.feeds, .weniger { list-style: none; padding: 0; font-size: 14px; }
.feeds li, .weniger li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--soft); overflow-wrap: anywhere; }
.meter { height: 2px; background: var(--line); margin: 16px 0 8px; }
.meter div { height: 100%; background: var(--accent); }

/* Foldable Themen on Heute */
details.thema > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 4px; }
details.thema > summary::-webkit-details-marker { display: none; }
details.thema > summary h2 { margin: 0; }
details.thema > summary .count { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
details.thema > summary .count::after { content: '  –'; }
details.thema:not([open]) > summary { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
details.thema:not([open]) > summary .count::after { content: '  +'; }
details.thema:not([open]) + details.thema:not([open]) > summary { border-top: none; }
