/* GreenPulse — gemeinsames Stylesheet. Nur Systemschriften: keine externen Font-Requests (DSGVO). */
:root {
  /* Messblatt-Palette: Fichte (Kopfband), Flechte (Grund), ein Akzent für Bedienung, Ocker nur für Hinweise und Fristen */
  --bg: #f4f5ef;
  --surface: #ffffff;
  --ink: #14211c;
  --muted: #4d5c55;
  --faint: #5f6d66;
  --line: #d8ddd3;
  --line-strong: #bcc5b9;
  --accent: #1c5a45;
  --accent-strong: #14463a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(28, 90, 69, .09);
  --accent-web: #a85507;
  --accent-web-soft: rgba(168, 85, 7, .1);
  --accent-media: #1c5a45;
  --accent-events: #a85507;
  --danger: #b91c1c;
  --band: #143a2f;
  --band-ink: #e9f0e6;
  --band-muted: #a9c0b2;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10231d; --surface: #173027; --ink: #e8efe6; --muted: #b1c2b7; --faint: #8ba195;
    --line: #2a463b; --line-strong: #3c5c4f;
    --accent: #95d4ae; --accent-strong: #b4e3c6; --accent-ink: #0a1813;
    --accent-soft: rgba(149, 212, 174, .12);
    --accent-web: #f0b45a; --accent-web-soft: rgba(240, 180, 90, .12);
    --accent-media: #95d4ae; --accent-events: #f0b45a;
    --danger: #fca5a5; --band: #0a1813; --band-ink: #e9f0e6; --band-muted: #9db5a7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10231d; --surface: #173027; --ink: #e8efe6; --muted: #b1c2b7; --faint: #8ba195;
  --line: #2a463b; --line-strong: #3c5c4f;
  --accent: #95d4ae; --accent-strong: #b4e3c6; --accent-ink: #0a1813;
  --accent-soft: rgba(149, 212, 174, .12);
  --accent-web: #f0b45a; --accent-web-soft: rgba(240, 180, 90, .12);
  --accent-media: #95d4ae; --accent-events: #f0b45a;
  --danger: #fca5a5; --band: #0a1813; --band-ink: #e9f0e6; --band-muted: #9db5a7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Englisch: kurz unsichtbar, bis i18n.js übersetzt hat (höchstens 1,5 s) */
html.i18n-pending body { visibility: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── Masthead ── */
.mast { border-bottom: 1px solid var(--line); background: var(--surface); }
.mast-inner { display: flex; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding: 28px 0 18px; }
.brand { text-decoration: none; display: block; }
.brand-name {
  font: 600 clamp(30px, 4.2vw, 44px)/1 var(--serif); letter-spacing: -.02em; margin: 0;
}
.brand-name span { color: var(--accent); }
.brand-name .beta {
  display: inline-block; vertical-align: super; margin-left: 8px; padding: 2px 7px;
  font: 700 11px/1.3 var(--sans, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
}
.brand-tag { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.mast-status {
  margin-left: auto; text-align: right; font-size: 12.5px; color: var(--faint);
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.mast-status b { color: var(--muted); font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.dot.busy { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 640px) { .mast-status { margin-left: 0; text-align: left; } }

/* ── Toolbar ── */
.toolbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 0; }
.search { flex: 1 1 340px; position: relative; min-width: 0; }
.search input {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 9px 12px 9px 34px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button {
  font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0;
  padding: 8px 12px; cursor: pointer; white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--line); }
@media (max-width: 767px) {
  .toolbar-inner .seg { flex-wrap: wrap; max-width: 100%; }
  .toolbar-inner .seg button { flex: 1 1 auto; }
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border-radius: var(--radius); padding: 8px 13px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.primary:hover { filter: brightness(1.08); color: var(--surface); }
.btn:disabled { opacity: .5; cursor: default; }
.hint { font-size: 12px; color: var(--faint); margin: 0; padding: 0 0 10px; }
.hint code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

/* ── Kategorien ── */
.cats { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 0; border-bottom: 1px solid var(--line); }
/* Ab Tablet umbrechen statt seitlich abschneiden; auf dem Handy wischen */
@media (min-width: 768px) { .cats { flex-wrap: wrap; overflow-x: visible; gap: 8px 22px; } }
.cats::-webkit-scrollbar { display: none; }
.cat {
  font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 0 0 11px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cat:hover { color: var(--ink); }
.cat[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--cat, var(--ink)); }
.cat .n { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 4px; font-weight: 400; }

/* ── Gespeicherte Scraper-Suchen ── */
.queries { margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.queries summary { cursor: pointer; padding: 11px 14px; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.queries summary::-webkit-details-marker { display: none; }
.queries summary::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--faint); font-size: 16px; line-height: 1; }
.queries[open] summary::before { transform: rotate(90deg); }
.queries summary .n { color: var(--faint); font-weight: 400; }
.queries-body { padding: 0 14px 14px; }
.queries-body p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.qlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.qlist li {
  display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 100px; padding: 3px 3px 3px 11px;
}
.qlist button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 7px; border-radius: 100px; }
.qlist button:hover { color: var(--danger); }
.qlist .empty-q { font-family: var(--sans); background: none; border: 0; color: var(--faint); padding: 0; }
.qmsg { font-size: 12.5px; margin: 8px 0 0; min-height: 1em; }
.qmsg.err { color: var(--danger); }
.qmsg.ok { color: var(--accent); }

/* ── Spalten & Einträge ── */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; padding: 28px 0 56px; }
.cols > .col { grid-column: span 12; }
.cols.single { grid-template-columns: minmax(0, 760px); }
.cols.single > .col { grid-column: auto; }
/* Blöcke nebeneinander (data-cols): genau so viele Spalten wie gewählt (12er-Grid), nur auf dem Handy untereinander */
.cols[data-cols="1"] > .col > * { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  .cols[data-cols="2"] > .col { grid-column: span 6; }
  .cols[data-cols="3"] > .col { grid-column: span 4; }
  .cols[data-cols="4"] > .col { grid-column: span 3; }
  .cols[data-cols="3"], .cols[data-cols="4"] { column-gap: 24px; }
  /* schmale Spalten: Vorschaubild über dem Text statt daneben */
  .cols[data-cols="3"]:not(.single) .item.has-img, .cols[data-cols="4"]:not(.single) .item.has-img { grid-template-columns: 1fr; }
  .cols[data-cols="3"]:not(.single) .item-img, .cols[data-cols="4"]:not(.single) .item-img { grid-column: 1; grid-row: auto; margin: 0 0 8px; }
  /* Mehrere Spalten: Seite scrollt als Ganzes; Spalten strecken sich auf die Höhe der längsten
     und enden mit einer gemeinsamen Abschlusslinie */
  .cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) > .col { display: flex; flex-direction: column; }
  .cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) > .col > .list {
    flex: 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 767px) { .cols { gap: 36px 0; } }  /* nur Zeilenabstand: 11 Spaltenabstände machten jede Spalte breiter als das Handy */
/* Ein gemeinsamer Knopf unter allen Spalten */
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 1100; max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.flist li { display: inline-flex; align-items: center; gap: 2px; }
.fchip-x { border: 0; background: none; color: var(--faint); font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 50%; cursor: pointer; }
.fchip-x:hover, .fchip-x:focus-visible { color: var(--ink); background: var(--surface); }
.more-all { display: flex; justify-content: center; margin: -24px 0 48px; }
.more-all[hidden] { display: none; }
.more-all .more { width: auto; min-width: 240px; margin-top: 0; }
.col-count-ctl { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 13.5px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg label { position: relative; padding: 3px 12px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--accent); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.col { min-width: 0; }
.ev-date { font-size: 12px; font-weight: 600; color: var(--accent-events); font-variant-numeric: tabular-nums; }
.ev-loc { font-size: 12px; color: var(--muted); }
.sub-head { list-style: none; padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.sub-head:first-child { padding-top: 0; }
.sub-head h3 { margin: 0; font: 700 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-events); }
.ev-kind { background: color-mix(in srgb, var(--accent-events) 14%, transparent); color: var(--accent-events); }
.cfp-deadline { font-size: 15px; font-weight: 700; color: var(--accent-events); font-variant-numeric: tabular-nums; }
.cfp-item .item-title { margin-bottom: 3px; }
.ev-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); white-space: pre-line; }
.ev-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: 13px; }
.ev-facts dt { color: var(--muted); font-weight: 600; }
.ev-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ev-summary { margin: 6px 0 0; font-size: 13.5px; }
.ev-more { margin-top: 4px; font-size: 12.5px; }
.ev-more summary { cursor: pointer; color: var(--muted); }
.layout-body { display: grid; gap: 4px; }
.layout-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.layout-row:last-child { border-bottom: 0; }
.layout-row .lname { flex: 1; }
.layout-row button { padding: 2px 9px; }
.layout-row input { accent-color: var(--accent); margin: 0; }
.col-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.col-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.col-title { font: 600 21px/1.2 var(--serif); margin: 0; }
.col-count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.item { padding: 16px 0 17px; border-bottom: 1px solid var(--line); min-width: 0; }
.item-top { display: flex; gap: 10px; align-items: baseline; font-size: 11.5px; margin-bottom: 5px; flex-wrap: wrap; }
.item-cat { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cat); }
.item-src { color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.src-ico { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; vertical-align: middle; }
.item-new {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 3px; padding: 0 5px;
}
.item-title { font: 600 17.5px/1.35 var(--serif); margin: 0 0 6px; text-wrap: pretty; overflow-wrap: anywhere; }
.item-title a { text-decoration: none; }
.item-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.item-abs {
  margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-icon { margin-right: 6px; font-size: 15px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.item-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; }
.htag {
  font: inherit; font-size: 11.5px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
}
.htag:hover { text-decoration: underline; }
.fade-toggle { padding: 6px 11px; font-size: 13px; }
/* Verblassen nach Alter – bewusst dezent; beim Überfahren/Fokus wieder voll sichtbar */
.cols.fading .item { transition: opacity .2s; }
.cols.fading .item.age-7 { opacity: .9; }
.cols.fading .item.age-30 { opacity: .78; }
.cols.fading .item.age-old { opacity: .66; }
.cols.fading .item:hover, .cols.fading .item:focus-within { opacity: 1; }
.item.has-img { display: grid; grid-template-columns: 1fr 150px; column-gap: 16px; }
.item.has-img > :not(.item-img) { grid-column: 1; }
.item-img { grid-column: 2; grid-row: 1 / span 5; margin: 4px 0 0; position: relative; align-self: start; }
.item-img img { display: block; width: 150px; height: 100px; object-fit: cover; border-radius: 6px; background: var(--line); }
.item-img figcaption {
  position: absolute; left: 5px; bottom: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 3px; cursor: help;
}
@media (max-width: 520px) {
  .item.has-img { grid-template-columns: 1fr; }
  .item-img { grid-column: 1; grid-row: auto; margin: 0 0 8px; }
  .item-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
.item-ai { margin: 0 0 8px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.ai-label {
  display: inline-block; margin-right: 7px; padding: 0 6px; border-radius: 3px; vertical-align: 1px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--line); cursor: help;
}
.item-orig { margin: 0 0 8px; font-size: 12.5px; }
.item-orig summary { cursor: pointer; color: var(--faint); }
.item-orig .item-abs { margin-top: 6px; }
.item-orig-h { margin: 8px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.item-meta .rel { color: var(--accent); font-weight: 600; text-decoration: none; }
.item-meta .rel:hover { text-decoration: underline; }
.vote { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; }
.vote button { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; font: inherit; font-size: 12px; line-height: 1.5;
  background: none; border: 1px solid transparent; border-radius: 999px; color: var(--muted); cursor: pointer; filter: grayscale(1); opacity: .7; }
.vote button:hover { border-color: var(--line-strong); opacity: 1; }
.vote button[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--accent); color: var(--accent); }
.vote button span:empty { display: none; }
.item-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.more { margin-top: 16px; width: 100%; }
.empty { padding: 36px 0; color: var(--faint); font-size: 14px; }
.skel { height: 96px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--line), transparent) 0 0 / 200% 100%; animation: shim 1.3s linear infinite; opacity: .5; }
@keyframes shim { to { background-position: -200% 0; } }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.foot-inner { display: flex; gap: 18px 40px; flex-wrap: wrap; justify-content: space-between; padding: 26px 0 32px; }
.foot p { margin: 0; max-width: 560px; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Konto-Link im Kopf ── */
.mast-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mast-side .mast-status { margin-left: 0; }
.mast-links { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.mast-links a { text-decoration: none; color: var(--muted); }
.mast-links a:hover { color: var(--ink); }
.acct { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink) !important; }
.acct-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--surface); font-size: 12px; font-weight: 700;
}
@media (max-width: 640px) { .mast-side { margin-left: 0; align-items: flex-start; } .mast-side .mast-status { text-align: left; } }

/* ── Panels, Formulare, Checkboxen ── */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; margin: 0 0 18px; }
.panel h2 { font: 600 19px/1.3 var(--serif); margin: 0 0 4px; }
.panel > p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 14px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 11px; width: 100%;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-weight: 400; color: var(--faint); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; padding: 0; border: 0; }
.checks legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.check {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 12px 5px 9px; background: var(--bg);
}
.check:has(input:checked) { border-color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 10%, transparent); }
.check input { accent-color: var(--cat, var(--accent)); margin: 0; }
.check-hint { font-size: 11px; color: var(--faint); }
.check-inline { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.check-inline input { margin-top: 3px; accent-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 7px; background: var(--line); color: var(--muted); }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--accent-web-soft); color: var(--accent-web); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabs button { font: inherit; font-size: 14px; background: none; border: 0; padding: 0 0 10px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.page { padding: 32px 0 64px; }
.page-head h1 { font: 600 32px/1.15 var(--serif); margin: 0 0 6px; }
.page-head p { margin: 0 0 24px; color: var(--muted); }
.narrow { max-width: 440px; }

/* ── Meine Filter (Startseite) ── */
.myfilters { margin: 18px 0 0; }
.flist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px;
}
.fchip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fchip input { accent-color: var(--accent); margin: 0; }
.fchip .fq { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.shared-banner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); font-size: 14px;
}
.shared-banner .fq { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.shared-banner .row { margin-left: auto; }

/* ── Filter-Karten (Konto & Community) ── */
.fcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fcard h3 { font: 600 17px/1.3 var(--serif); margin: 0; overflow-wrap: anywhere; }
.fcard p { margin: 0; color: var(--muted); font-size: 13.5px; }
.fcard .fq { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; overflow-wrap: anywhere; }
.fcard .meta { font-size: 12px; color: var(--faint); display: flex; gap: 4px 12px; flex-wrap: wrap; }
.fcard .row { margin-top: auto; padding-top: 6px; }
.terms { margin-top: 28px; }
.terms summary { cursor: pointer; }
.terms summary h2 { display: inline; }
.terms[open] summary { margin-bottom: 8px; }
.terms-list { list-style: none; margin: 0; padding: 0; }
.terms-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.terms-list .fq { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; flex: 1 1 240px; }
.terms-list .meta { font-size: 12px; color: var(--faint); }
.terms select { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); max-width: 100%; }
.terms-list .tags { flex: 2 1 240px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 7px; color: var(--cat, var(--muted)); background: color-mix(in srgb, var(--cat, var(--muted)) 11%, transparent); }

/* ── Hell-/Dunkelmodus-Schalter ── */
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-grid; place-items: center; padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── Newsletter-Rhythmen ── */
.nl-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nl-row .check { flex: 1 1 260px; }
.nl-prev { padding: 5px 11px; font-size: 12px; }
.note-inline {
  border-left: 3px solid var(--accent-web); background: var(--accent-web-soft); color: var(--ink);
  padding: 8px 12px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 13px; margin: 0 0 12px !important;
}

/* ── Fehler melden ── */
.linklike { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--ink); text-decoration: underline; }
.gp-online { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa84f; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); }
.stat-tile b { display: block; font: 600 24px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 12px; color: var(--muted); }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table tfoot td { font-weight: 600; }
.stat-scroll { overflow: auto; max-height: 360px; }
.stat-chart { width: 100%; height: 120px; display: block; margin: 0 0 12px; }
.stat-chart rect { fill: var(--accent); }
.stat-chart text { fill: var(--muted); font-size: 10px; }
.foot .copy { flex-basis: 100%; font-size: 12px; color: var(--faint); }
.foot .sci-line { flex-basis: 100%; max-width: none; font-size: 12.5px; }
.dlg {
  width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); padding: 22px 22px 16px;
}
.dlg::backdrop { background: rgba(10, 12, 8, .5); }
.dlg h2 { font: 600 20px/1.3 var(--serif); margin: 0 0 6px; }
.dlg > form > p, .dlg > div > p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Featured / Ankündigungen ── */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 20px 0 0; }
.feat {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.feat-highlight { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); border-left-color: var(--accent); }
.feat-event { border-left-color: var(--accent-web); }
.feat-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.feat-event .feat-kicker { color: var(--accent-web); }
.feat-title { font: 600 19px/1.3 var(--serif); margin: 0; }
.feat-body { margin: 0; color: var(--muted); font-size: 14px; }
.feat .btn { margin-top: 6px; }

/* ── Tagesbericht (Audio) ── */
.daily { margin: 20px 0 0; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); padding: 14px 18px; display: grid; gap: 8px; }
.daily-day { font: 400 15px/1.3 var(--sans, inherit); color: var(--muted); margin-left: 6px; }
.daily audio { width: 100%; max-width: 560px; height: 40px; }
.daily-more summary { cursor: pointer; font-size: 13.5px; color: var(--accent); }
.daily-script { font-size: 14px; color: var(--ink); max-width: 72ch; }
.daily-script p { margin: 8px 0; }
.daily-sources { font-size: 13.5px; padding-left: 20px; margin: 8px 0 0; }
.daily-sources li { margin: 3px 0; }
.daily-sources .muted, .daily-note { color: var(--muted); }
.daily-note { font-size: 12px; margin: 0; }
.daily-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.daily-head .feat-kicker { flex-basis: 100%; }
.daily-next { font-size: 12.5px; color: var(--muted); }
.daily-archive { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.daily-archive button { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13.5px; color: var(--accent); cursor: pointer; }
.daily-archive button:hover { text-decoration: underline; }
.daily-archive .daily-ep-active { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.daily-back { margin: 0 0 8px; font-size: 13.5px; }

/* ── Über-Seite ── */
.about-person { display: flex; gap: 22px; align-items: flex-start; margin: 8px 0 18px; }
.about-person h2 { margin-top: 0; }
.about-avatar {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--surface); font: 600 26px/1 var(--serif);
}
.profile-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 !important; }
.profile-links a {
  display: inline-block; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 14px; background: var(--surface);
}
.profile-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .about-person { flex-direction: column; } }

/* ── Rechtsseiten ── */
.legal { max-width: 760px; padding: 40px 0 72px; }
.legal h1 { font: 600 34px/1.15 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.legal .stand { color: var(--faint); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font: 600 20px/1.3 var(--serif); margin: 34px 0 10px; }
.legal h3 { font-size: 15px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.7; margin: 0 0 12px; }
.legal .note {
  border-left: 3px solid var(--accent-web); background: var(--accent-web-soft);
  padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 13.5px; color: var(--ink); margin: 0 0 28px;
}
.back { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }

/* ── Hinweis: Filter schränken die Liste ein ── */
.filter-note { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:16px 0 0; padding:9px 14px; border-radius:var(--radius); background:var(--accent-web-soft); border:1px solid color-mix(in srgb, var(--accent-web) 30%, transparent); font-size:13.5px; color:var(--ink); }
.filter-note .btn { padding:4px 11px; font-size:12.5px; }
.lic { width:100%; border-collapse:collapse; font-size:13.5px; margin:0 0 16px; }
.lic th, .lic td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.lic th { color:var(--muted); font-weight:600; }
.time-src { color: var(--faint); font-style: italic; }

.btn-sm { padding: 4px 10px; font-size: 12.5px; border: 1px solid var(--border, #d0d7d0); border-radius: 7px; background: var(--card, #fff); color: var(--fg, #1a1a1a); cursor: pointer; }
.btn-sm:hover { background: var(--hover, #f0f4f0); }
.btn-sm.danger { color: #b91c1c; border-color: #e7b7b7; }
.viewmenu { position: relative; display: inline-block; }
.viewmenu > summary { list-style: none; cursor: pointer; }
.viewmenu > summary::-webkit-details-marker { display: none; }
.viewmenu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; min-width: 244px; padding: 6px; gap: 2px; background: var(--card, #fff); border: 1px solid var(--border, #d0d7d0); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.viewmenu-item { text-align: left; padding: 8px 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 14px; color: var(--fg, #1a1a1a); cursor: pointer; }
.viewmenu-item:hover { background: var(--hover, #eef3ee); }

/* ══ Aufgeräumte Startseite (11/2026): Filteransicht, Meldung oben, Kategorie-Slider, kompakte Weekly-Karte,
      ruhigere Artikelkarten und mehr Weißraum ══ */

/* Weißraum */
.mast-inner { padding-top: 36px; padding-bottom: 24px; }
.toolbar-inner { padding: 14px 0; gap: 12px; flex-wrap: nowrap; }
.cols { gap: 56px; padding: 36px 0 64px; }
.item { padding: 22px 0; }
.item-top { margin-bottom: 8px; }
.item-title { margin: 0 0 10px; }
.item-abs, .item-ai { margin: 0 0 12px; }
.col-head { padding-bottom: 14px; }
.btn { transition: border-color .15s, color .15s, background .15s; }
.btn.primary { color: var(--accent-ink, var(--surface)); }
.btn.primary:hover { background: var(--accent-strong, var(--accent)); border-color: var(--accent-strong, var(--accent)); color: var(--accent-ink, var(--surface)); filter: none; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, var(--surface)); }

/* Suche mit Hilfe-Symbol (Operatoren als Tooltip) */
.search { flex: 1 1 auto; }
.search input { padding: 11px 38px 11px 36px; border-radius: 999px; font-size: 14.5px; }
.search svg { left: 14px; }
.search-help {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; cursor: help;
  color: var(--muted); border: 1px solid var(--line-strong); background: var(--surface);
}
.search-help:hover, .search-help:focus-visible { color: var(--accent); border-color: var(--accent); }
.filter-open { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 16px; }
.filter-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink, var(--surface)); font-size: 11.5px; font-weight: 700;
}
.toolbar .viewmenu > summary { border-radius: 999px; padding: 10px 14px; }
@media (max-width: 560px) { .filter-open span:first-of-type { display: none; } }

/* Filteransicht als Seitenpanel; auf dem Handy von unten */
body.drawer-lock { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 9, .45); opacity: 0; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .22s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 600 20px/1.2 var(--serif); }
.drawer-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.drawer-x:hover { color: var(--ink); background: var(--bg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer-sec:last-child { border-bottom: 0; }
.drawer-sec h3 { margin: 0 0 12px; font: 700 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg-wrap { display: flex; flex-wrap: wrap; gap: 8px; border: 0; background: none; overflow: visible; }
.seg-wrap button, .seg-wrap button + button {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; background: var(--surface);
}
.seg-wrap button:hover { border-color: var(--accent); color: var(--accent); }
.seg-wrap button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink, var(--surface)); }
.switch { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.drawer .myfilters { margin: 0; }
.drawer .myfilters .hint { padding: 0; font-size: 13.5px; color: var(--muted); }
.drawer .queries { margin-top: 12px; }
.drawer-foot { display: flex; gap: 10px; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .primary { flex: 1; }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; transform: translateY(100%); box-shadow: 0 -12px 40px rgba(0, 0, 0, .2); }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }

/* Meldung am oberen Rand (Ankündigungen), blendet sich aus */
.notice-bar { position: sticky; top: 0; z-index: 20; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
.notice-bar.show { max-height: 200px; opacity: 1; }
.notice { background: var(--accent); color: var(--accent-ink, #fff); font-size: 13.5px; }
.notice + .notice { border-top: 1px solid color-mix(in srgb, var(--accent-ink, #fff) 20%, transparent); }
.notice-event { background: var(--accent-web); color: var(--surface); }
.notice-inner { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.notice-text { flex: 1; min-width: 0; }
.notice-body { opacity: .92; }
.notice a { color: inherit; font-weight: 600; }
.notice-x { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px; opacity: .85; }
.notice-x:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .notice-bar { transition: none; } }

/* Kategorien: eine Zeile, seitlich scrollbar, mit Pfeilen */
.cats-bar { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.cats-bar .cats {
  flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth;
  gap: 8px; padding: 2px 0; border-bottom: 0; scroll-snap-type: x proximity;
}
.cats-bar .cats.fade-r { mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cats-bar .cats.fade-l { mask-image: linear-gradient(90deg, transparent, #000 15%); }
.cats-bar .cats.fade-l.fade-r { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cats-bar .cat {
  scroll-snap-align: start; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); margin: 0; font-size: 13.5px;
}
.cats-bar .cat:hover { border-color: var(--cat, var(--accent)); color: var(--ink); }
.cats-bar .cat[aria-pressed="true"] { border-color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, var(--surface)); font-weight: 600; }
.cats-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.cats-arrow:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .cats-arrow { display: none; } }

/* Weekly: kompakte Karte */
.daily { margin: 24px 0 0; padding: 14px 18px; gap: 0; border-left-width: 1px; border-color: var(--line); border-radius: 14px; }
.wk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 20px; }
.wk-head { min-width: 0; cursor: default; }
.wk-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wk-title { margin: 2px 0 0; font: 600 17px/1.25 var(--serif); white-space: nowrap; }
.wk-kw { font: 400 13.5px var(--sans); color: var(--muted); margin-left: 4px; }
.daily audio { width: 100%; max-width: none; height: 36px; }
.wk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wk-actions [aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.wk-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.daily-archive li { font-size: 13.5px; }
@media (max-width: 900px) {
  .wk-row { grid-template-columns: 1fr; }
  .wk-actions { justify-content: flex-start; }
}

/* Artikel: Lesezeichen neben den Daumen, Vorschaubilder */
.item-meta { align-items: center; row-gap: 6px; }
.item-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.item-actions .vote { margin-left: 0; }
.item-img img { border-radius: 10px; }
/* In schmalen Spalten (2–4 nebeneinander) Vorschaubild über volle Spaltenbreite, 16:9 */
.cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) .item.has-img { grid-template-columns: 1fr; }
.cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) .item-img { grid-column: 1; grid-row: auto; margin: 0 0 14px; }
.cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) .item-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .cols { gap: 40px 0; padding-top: 28px; } .toolbar-inner { gap: 8px; } }  /* Handy: kein Spaltenabstand, sonst wird jede Spalte breiter als das Display */

/* ══ Kräftigere Akzente & mehr Luft (11/2026) ══
   --brand: leuchtendes Smaragd für Flächen (Knöpfe, aktive Chips, Leiste); Text-Akzente bleiben --accent (AA-Kontrast) */
:root {
  --brand: #1c5a45; --brand-2: #1c5a45; --brand-ink: #ffffff;
  --brand-soft: rgba(28, 90, 69, .1); --brand-glow: rgba(28, 90, 69, .18);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand: #95d4ae; --brand-2: #95d4ae; --brand-ink: #0a1813; --brand-soft: rgba(149, 212, 174, .14); --brand-glow: rgba(149, 212, 174, .2); }
}
:root[data-theme="dark"] { --brand: #95d4ae; --brand-2: #95d4ae; --brand-ink: #0a1813; --brand-soft: rgba(149, 212, 174, .14); --brand-glow: rgba(149, 212, 174, .2); }

/* Flächen in Markengrün */
.btn.primary, .btn.primary:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { box-shadow: 0 4px 14px var(--brand-glow); }
.seg button[aria-pressed="true"], .seg-wrap button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.filter-count { background: var(--brand); color: var(--brand-ink); }
.notice { background: var(--band); color: var(--band-ink); border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); }
.notice a { color: var(--band-ink); }
.dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Suche, Filterknopf, Kategorien */
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.filter-open:hover, .toolbar .viewmenu > summary:hover { border-color: var(--brand); color: var(--accent); }
.cats-bar .cat[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.cats-bar .cat[data-cat="all"][aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cats-bar .cat[data-cat="all"][aria-pressed="true"] .n { color: var(--brand-ink); opacity: .75; }

/* Spaltenköpfe mit grüner Linie, Weekly-Karte leicht getönt */
.daily { background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.wk-kicker { color: var(--accent); }
.item-title a:hover { color: var(--accent); }
.item-meta .rel { color: var(--accent); }
.vote button[aria-pressed="true"] { border-color: var(--brand); color: var(--accent); background: var(--brand-soft); }

/* Mehr Luft */
body { font-size: 16px; line-height: 1.65; }
.wrap { max-width: 1320px; padding-left: 32px; padding-right: 32px; }
.mast-inner { padding-top: 44px; padding-bottom: 30px; }
.toolbar-inner { padding: 18px 0; gap: 14px; }
.cats-bar { margin-top: 32px; }
.daily { margin-top: 28px; padding: 18px 22px; }
.cols { gap: 72px; padding: 48px 0 80px; }
.col-head { padding-bottom: 16px; margin-bottom: 4px; }
.item { padding: 28px 0; }
.item-top { margin-bottom: 10px; }
.item-title { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.item-abs, .item-ai { font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) .item-img { margin-bottom: 18px; }
.item-meta { font-size: 12.5px; }
.foot-inner { padding-top: 40px; padding-bottom: 48px; }
@media (max-width: 640px) { .wrap { padding-left: 18px; padding-right: 18px; } .mast-inner { padding-top: 28px; padding-bottom: 20px; } }
@media (max-width: 767px) { .cols { gap: 48px 0; padding-top: 32px; } }  /* Handy: kein Spaltenabstand (sonst breiter als das Display) */

/* Dialoge (Blöcke anordnen, Scraper-Suchen): öffnen über das ⋯-Menü, schließen sich wieder */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(5, 12, 9, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 600 19px/1.25 var(--serif); }
.modal-head .n { font: 400 14px var(--sans); color: var(--muted); }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-body > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.modal-foot { display: flex; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
/* iCal-Abo-Links in der Veranstaltungsspalte */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ical-link { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.ical-link:hover { text-decoration: underline; }
/* Promo-Kachel (eigene Produkte) oben in der rechten Spalte */
.promo { list-style: none; padding: 22px 0; border-bottom: 1px solid var(--line); }
.promo a.promo-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 12px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), transparent 70%), var(--surface); transition: box-shadow .15s, border-color .15s;
}
.promo a.promo-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px var(--brand-glow); }
.promo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--line); }
.promo-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.promo-title { font: 600 16px/1.3 var(--serif); }
.promo-text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.promo-cta { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.promo-intro { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.promo-coffee { display: inline-block; margin: 0 0 12px; text-decoration: none; }

.promo a.promo-card:not(:has(img)) { grid-template-columns: 1fr; }
/* Themen-Hinweis (Eigenwerbung) unter passenden Beiträgen */
.promo-hint { margin: 12px 0 0; padding: 8px 12px; font-size: 13px; border-radius: 10px; background: var(--brand-soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.promo-hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
.promo-hint a:hover { text-decoration: underline; }
.promo-hint .promo-label { font-size: 10px; }
/* Über-Seite: große Kachel „Blauer Engel für Software“ neben den Profil-Links */
.profile-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-top: 14px; }
.profile-row .profile-links { margin: 0 !important; align-content: flex-start; flex: 1 1 260px; }
.be-tile {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink);
  border: 1px solid color-mix(in srgb, #1d4ed8 35%, var(--line)); border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, #1d4ed8 10%, transparent), transparent 70%), var(--surface);
  transition: box-shadow .15s, border-color .15s;
}
.be-tile:hover { border-color: var(--accent-media); box-shadow: 0 6px 20px color-mix(in srgb, #1d4ed8 18%, transparent); }
.be-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.be-title { font: 600 19px/1.25 var(--serif); }
.be-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.be-cta { font-size: 13.5px; font-weight: 600; color: var(--accent-media); margin-top: 4px; }
/* Admin: Abrufintervalle */
.rf-grid { display: grid; gap: 10px; margin: 0 0 12px; }
.rf-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rf-row:last-child { border-bottom: 0; }
.rf-meta { font-size: 12.5px; color: var(--muted); padding-bottom: 9px; white-space: nowrap; }
@media (max-width: 640px) { .rf-row { grid-template-columns: 1fr auto; } .rf-meta { grid-column: 1 / -1; padding: 0; } }
/* Spaltenende: Füllfläche bis zur gemeinsamen Unterkante */
.col-fill { list-style: none; flex: 1 0 auto; display: flex; padding: 18px 0 22px; min-height: 0; }
.col-fill-btn {
  flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent);
  border: 1px dashed var(--line-strong); border-radius: 14px; background: color-mix(in srgb, var(--brand-soft) 50%, transparent);
}
.col-fill-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.col-fill-empty { padding: 0; }

@media (min-width: 768px) { .cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) ~ .more-all { display: none; } }  /* in mehreren Spalten übernimmt „Mehr aus …“ am Spaltenende */
/* KI-Kurzüberblick zur gewählten Kategorie */
.cat-summary { margin: 18px 0 0; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-soft), transparent 55%), var(--surface); }
.cs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.cs-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); cursor: help; }
.cs-cat { font: 600 16px/1.3 var(--serif); }
.cs-day { font-size: 12px; color: var(--muted); }
.cs-text { margin: 0; font-size: 15px; line-height: 1.65; max-width: 95ch; }
.cs-src-btn { margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; }
.cs-src-btn:hover { text-decoration: underline; }
.cs-sources { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; }
.cs-sources li { margin: 3px 0; }
.cs-sources .muted { color: var(--muted); }
/* Admin: Seitenleiste mit Bereichen, rechts immer nur ein Bereich */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-title { padding: 0 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); text-decoration: none; }
.admin-nav a:hover { background: var(--bg); }
.admin-nav a[aria-current="true"] { background: var(--brand-soft); color: var(--accent); font-weight: 600; }
.admin-nav-select { display: none; }
.admin-content > .panel { margin: 0; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; gap: 16px; }
  .admin-nav { position: static; padding: 10px; }
  .admin-nav-group { display: none; }
  .admin-nav-select { display: block; width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
}
/* Admin: Kategorie-Folgen des Wochenberichts */
.wk-cat-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.wk-cat-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
/* Gebündelte Versionen eines Beitrags */
.item-versions { margin: -4px 0 12px; font-size: 12.5px; color: var(--muted); }
.item-versions a { color: var(--accent); text-decoration: none; }
.item-versions a:hover { text-decoration: underline; }
/* Admin: Quellen-Gesundheit */
.sh-table td { vertical-align: middle; }
.sh-error td:first-child { color: var(--danger); font-weight: 600; }
.sh-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.sh-bar { width: 4px; border-radius: 1px; background: var(--brand); }
.sh-bar.zero { background: var(--line-strong); }
.sh-bar.fail { background: var(--danger); }

/* Admin: Relevanz-Filter */
.rel-panel .row { flex-wrap: wrap; }
.rel-subhead { margin: 18px 0 6px; font: 600 15px/1.3 var(--serif); }
.rel-dspy { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.rel-progress { height: 8px; max-width: 420px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 2px 0 8px; }
.rel-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .3s ease; }
.rel-grid { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.rel-grid .field { flex: 1 1 180px; min-width: 0; margin: 0 0 12px; }
.rel-grid .rel-grow { flex: 2 1 260px; }
.rel-grid .check { margin: 0 0 14px; font-size: 13px; }
.rel-explain, .rel-stats { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.rel-label { margin: 8px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rel-muted { color: var(--faint); font-size: 12.5px; }
.rel-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.rel-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rel-table th, .rel-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.rel-table th { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rel-table tr:last-child td { border-bottom: 0; }
.rel-table input { width: 84px; font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.rel-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 28px; }
.rel-bar { width: 6px; border-radius: 1px; background: var(--brand); }
.rel-bar.muted { background: var(--line-strong); }
.rel-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.rel-tab { font: inherit; font-size: 13.5px; line-height: 1.3; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; }
.rel-tab:hover { border-color: var(--brand); color: var(--ink); }
.rel-tab[aria-selected="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); font-weight: 600; }
.rel-panel button:focus-visible, .rel-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rel-queue, .rel-rules { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.rel-item, .rel-rule { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; min-width: 0; }
.rel-item-title a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rel-src { font-size: 12px; color: var(--faint); margin-left: 6px; }
.rel-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.rel-meta b { color: var(--ink); font-weight: 600; }
.rel-flag { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.badge.hide { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.rel-reason { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.rel-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.rel-actions .btn { padding: 4px 10px; font-size: 12.5px; }
.rel-actions input, .rel-actions select, .rel-add input, .rel-edit input { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); max-width: 100%; }
.rel-actions input { flex: 1 1 160px; }
.rel-rule-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rel-rule-text { overflow-wrap: anywhere; }
.rel-edit { width: 100%; }
.rel-edit input { width: 100%; margin-bottom: 6px; }
.rel-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.rel-add input { flex: 1 1 260px; }
.rel-mono { font-family: var(--mono); font-size: 13px; line-height: 1.5; width: 100%; }
/* KI-Prompts (Admin): Liste links, Editor rechts */
.pr-layout { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pr-group { display: flex; flex-direction: column; gap: 2px; }
.pr-group-title { padding: 0 6px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pr-item { font: inherit; font-size: 13.5px; text-align: left; padding: 7px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.pr-item:hover { background: var(--bg); }
.pr-item[aria-current="true"] { background: var(--brand-soft); color: var(--accent); font-weight: 600; }
.pr-editor { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; }
.pr-title { margin: 0 0 4px; font-size: 16px; }
.pr-desc, .pr-muted { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pr-chip { font-family: var(--mono); font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.pr-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.pr-text { font-family: var(--mono); font-size: 13px; line-height: 1.5; width: 100%; min-height: 240px; resize: vertical; box-sizing: border-box; }
.pr-actions { flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pr-preview { margin: 8px 0 0; padding: 12px 14px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.pr-editor button:focus-visible, .pr-item:focus-visible, .pr-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 760px) { .pr-layout { grid-template-columns: 1fr; gap: 14px; } .pr-list { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; } .pr-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; } .pr-group-title { width: 100%; padding: 0; } .pr-item { padding: 5px 9px; font-size: 13px; } .pr-editor { padding: 12px; } }
@media (max-width: 560px) { .rel-grid .field, .rel-grid .rel-grow { flex-basis: 100%; } }


/* ── Lernpfad (/lernpfad, /en/learning-path) ── */
.lp .lp-status { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lp .lp-chapter { margin: 0 0 18px; }
.lp .lp-ch-head { display: flex; align-items: flex-start; gap: 12px; font: 600 19px/1.3 var(--serif); margin: 0 0 4px; color: var(--ink); }
.lp .lp-n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 600 14px/1 var(--sans); }
.lp .lp-topic { padding: 12px 0 10px; border-top: 1px solid var(--line); }
.lp .lp-topic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lp .lp-topic-name { color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.lp .lp-badge { font-size: 11.5px; line-height: 1.4; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--accent); border: 1px solid var(--line-strong); white-space: nowrap; }
.lp .lp-badge.lp-practical { background: var(--accent-web-soft); color: var(--accent-web); }
.lp .lp-rel { font-size: 13px; color: var(--accent); text-decoration: none; }
.lp .lp-rel:hover { text-decoration: underline; }
.lp .lp-sub { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.lp .lp-sub a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.lp .lp-sub a:hover { color: var(--accent); text-decoration: underline; }
.lp .lp-tools h3 { margin: 18px 0 4px; }
.lp .lp-tools ul { list-style: none; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; font-size: 13.5px; }
.lp .lp-tools a { color: var(--accent); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .lp .lp-ch-head { font-size: 17px; }
  .lp .lp-tools ul { grid-template-columns: 1fr; }
}

/* ── Werkzeuge (/werkzeuge, /en/tools) ── */
.wz .wz-stamp { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }
.wz .wz-status, .wz .wz-empty { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.wz .wz-filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.wz .wz-filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wz .wz-filter-label { font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 52px; }
.wz .wz-chip { font: inherit; font-size: 13px; line-height: 1.4; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.wz .wz-chip:hover { color: var(--ink); border-color: var(--muted); }
.wz .wz-chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.wz .wz-group { margin: 0 0 26px; }
.wz .wz-group-head { font: 600 18px/1.3 var(--serif); margin: 0 0 12px; color: var(--ink); }
.wz .wz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wz .wz-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wz .wz-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.wz .wz-name { margin: 0; font: 600 16px/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.wz .wz-name a { color: var(--ink); text-decoration: none; }
.wz .wz-name a:hover { color: var(--accent); text-decoration: underline; }
.wz .wz-type { font-size: 11.5px; font-weight: 600; line-height: 1.4; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--brand-soft); color: var(--accent); border: 1px solid var(--line-strong); }
.wz .wz-type-service { background: var(--line); color: var(--muted); }
.wz .wz-type-standard { background: var(--accent-web-soft); color: var(--accent-web); }
.wz .wz-desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.wz .wz-counts, .wz .wz-regions { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wz .wz-regions { color: var(--faint); }
.wz .wz-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.wz .wz-links a { color: var(--accent); text-decoration: none; }
.wz .wz-links a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .wz .wz-grid { grid-template-columns: 1fr; }
  .wz .wz-filter-label { min-width: 0; width: 100%; }
}
/* Admin: GreenPulse Weekly – Formular in Abschnitten */
#wk-form .wk-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 14px; min-width: 0; }
#wk-form .wk-sec legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
#wk-form .wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; }
#wk-form .wk-grid .field, #wk-form .wk-voice .field { margin: 0; }
#wk-form .wk-check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 38px; cursor: pointer; }
#wk-form .wk-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
#wk-form .wk-voice { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
#wk-form .wk-voice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; }
#wk-form .wk-voice-head .wk-check { min-height: 0; font-weight: 400; font-size: 13.5px; }
#wk-form .wk-voice input:not([type=checkbox]) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; width: 100%; }
#wk-form .hint { margin: 4px 0 12px; color: var(--muted); font-size: 12.5px; }
#wk-form .wk-check { white-space: nowrap; min-height: 0; }
#wk-form .wk-static { margin: 0; color: var(--muted); font-size: 13.5px; cursor: default; }
#wk-form .wk-grid.wk-flex, #wk-form .wk-sec:last-of-type .wk-grid { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; }
#wk-form .wk-sec:last-of-type .wk-grid .field { width: 190px; }
#wk-form .wk-sec:first-of-type .wk-check { align-self: center; padding-top: 18px; }
@media (max-width: 480px) { #wk-form .wk-check { white-space: normal; } }
/* Admin: Weekly – Folgen dieser Woche als Tabelle */
#wk-form .wk-table-wrap { overflow-x: auto; }
#wk-form .wk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#wk-form .wk-table th, #wk-form .wk-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
#wk-form .wk-table thead th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
#wk-form .wk-table tbody th { font-weight: 500; white-space: normal; }
#wk-form .wk-table tr.wk-main th { font-weight: 700; }
#wk-form .wk-table tbody tr:last-child th, #wk-form .wk-table tbody tr:last-child td { border-bottom: 0; }
#wk-form .wk-act { text-align: right; }
#wk-form .wk-act .btn + .btn { margin-left: 6px; }
#wk-form .wk-st { color: var(--muted); }
#wk-form .wk-st.ok { color: var(--accent); font-weight: 600; }
#wk-form .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#wk-form .wk-table tbody th { white-space: nowrap; }
#wk-form .wk-sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
#wk-form .wk-act .btn { min-width: 58px; }

#wk-form .wk-table td.wk-act { white-space: normal; }
#wk-form .wk-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
#wk-form .wk-act .btn + .btn { margin-left: 0; }
@media (max-width: 560px) { #wk-form .wk-table tbody th { white-space: normal; } }
/* ── Quellen & Suchbegriffe (Admin) ── */
#src-panel [hidden] { display: none !important; }
.src-view-toggle { display: inline-flex; gap: 2px; margin: 0 0 12px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.src-view-btn { font: inherit; font-size: 13px; line-height: 1.3; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.src-view-btn:hover { color: var(--ink); }
.src-view-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.src-view-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.src-cat-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.src-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.src-tab { font: inherit; font-size: 13.5px; line-height: 1.3; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; }
.src-tab:hover { border-color: var(--brand); color: var(--ink); }
.src-tab[aria-selected="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); font-weight: 600; }
.src-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.src-count { font-variant-numeric: tabular-nums; opacity: .75; }
.src-paused { font-weight: 400; color: var(--muted); }
.src-add { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.src-add-fields { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.src-add .field { flex: 0 1 180px; min-width: 0; }
.src-add .src-grow { flex: 1 1 260px; }
.src-add .btn { margin-bottom: 12px; }
.src-bulk-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13.5px; cursor: pointer; }
.src-bulk-toggle input, .src-chip input { accent-color: var(--brand); cursor: pointer; }
.src-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.src-bulk[hidden] { display: none; }
.src-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.src-chip:hover { border-color: var(--brand); }
.src-chip:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.src-chip.is-off { opacity: .45; cursor: not-allowed; }
.src-plat { min-width: 320px; }
.src-plat .src-bulk { margin: 0; gap: 4px; }
.src-plat .src-chip { font-size: 11.5px; padding: 2px 8px; }
.src-bulk-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.src-tabs[hidden] { display: none; }
.src-bulk-links { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.src-link { font: inherit; font-size: 12.5px; padding: 0; border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; }
.src-link:focus-visible, .src-chip:focus-within, .src-bulk-toggle:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.src-toolbar { margin: 0 0 10px; }
.src-toolbar input { width: 100%; max-width: 360px; font: inherit; font-size: 13.5px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.src-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.src-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.src-table th, .src-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.src-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.src-table tr:last-child td { border-bottom: 0; }
.src-table .hint { padding: 12px 0; }
.src-status { width: 1%; white-space: nowrap; font-size: 15px; }
.src-status span { cursor: help; }
.src-value { max-width: 520px; word-break: break-word; overflow-wrap: anywhere; }
.src-q { font-family: var(--mono); font-size: 13px; }
.src-name { font-weight: 600; }
.src-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.src-sub a { color: var(--muted); }
.src-row.is-paused > td:nth-child(2), .src-row.is-paused > td:nth-child(3), .src-row.is-paused > td:nth-child(5) { opacity: .5; }
.src-table select { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); max-width: 200px; }
.src-edit input { display: block; width: 100%; margin: 0 0 6px; font: inherit; font-size: 13.5px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.src-edit-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.src-edit-btns .btn, .src-actions .btn { padding: 3px 9px; font-size: 12.5px; }
.src-actions { white-space: nowrap; }
.src-actions .btn + .btn { margin-left: 4px; }
.src-toggle { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.src-rule { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.src-rule-fixed { font-size: 13px; color: var(--muted); }
.src-min-wrap { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.src-min { width: 64px; font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.src-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .src-add .field, .src-add .src-grow { flex: 1 1 100%; }
  .src-value { max-width: 240px; }
}


/* Quellen & Suchbegriffe: kompaktere Tabelle (Regel-Spalte) */
.src-table .src-value { min-width: 240px; max-width: 460px; word-break: normal; overflow-wrap: break-word; }
.src-table .src-sub { overflow-wrap: anywhere; }
.src-origin { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.src-table select { max-width: 170px; }
.src-rule { flex-wrap: nowrap; }
.src-min { width: 54px; }
.src-ib { min-width: 30px; padding: 3px 7px !important; font-size: 13px !important; line-height: 1.2; }
.src-table .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .src-rule { flex-wrap: wrap; } .src-table .src-value { min-width: 180px; } }
.src-table th, .src-table td { padding: 6px 8px; }
.src-table select { max-width: 150px; }
.src-table .src-value { min-width: 220px; }

/* Qualität: aufklappbare Hilfetexte */
.help-box { border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); margin: 0 0 14px; }
.help-box > summary { padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.help-box > summary::-webkit-details-marker { display: none; }
.help-box > summary::before { content: "\25B8"; font-size: 12px; color: var(--muted); }
.help-box[open] > summary::before { content: "\25BE"; }
.help-box > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.help-body { padding: 2px 16px 12px; font-size: 13.5px; line-height: 1.55; max-width: 75ch; }
.help-body h4 { font-size: 13.5px; margin: 12px 0 4px; }
.help-body p { margin: 0 0 8px; }
.help-body ul, .help-body ol { margin: 4px 0 8px; padding-left: 20px; }

/* ══ Messblatt (11/2026): Kopf als Fichtenband, eine Zeile, darunter die Puls-Leiste ══ */
.mast { background: var(--band); color: var(--band-ink); border-bottom: 0; }
.mast .mast-inner { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; color: var(--band-ink); }
.brand-name { font-size: 28px; }
.brand-name span { color: var(--band-muted); }
.brand-name .beta { vertical-align: baseline; padding: 0; border: 0; border-radius: 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--band-muted); }
.brand-tag { margin: 0; font-size: 13px; color: var(--band-muted); }
@media (max-width: 1100px) { .brand-tag { display: none; } }
.mast-links { flex-wrap: wrap; gap: 6px 18px; }
.mast-links a, .mast-links a:hover, .mast .acct { color: var(--band-ink) !important; }
.mast-links a:hover { text-decoration: underline; }
.mast-links a[aria-current="page"] { font-weight: 600; box-shadow: 0 2px 0 var(--band-ink); }
.mast .theme-toggle { background: none; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); }
.mast .theme-toggle:hover { border-color: var(--band-ink); color: var(--band-ink); }
.mast .acct-avatar { background: var(--band-ink); color: var(--band); }
.mast :focus-visible { outline-color: var(--band-ink); }
/* Puls: neue Einträge pro Tag, im Browser aus den geladenen Einträgen gezählt (keine eigene Anfrage) */
.pulse { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: end; padding-bottom: 14px; }
.pulse-chart { display: grid; gap: 4px; min-width: 0; }
.pulse-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.pulse-bars i { flex: 1 1 0; min-width: 2px; min-height: 2px; background: var(--band-muted); border-radius: 1px 1px 0 0; }
.pulse-bars i.peak { background: var(--band-ink); }
.pulse-bars i.today { background: none; border: 1px solid var(--band-muted); border-bottom: 0; }
.pulse-axis { display: flex; justify-content: space-between; gap: 12px; font: 11px/1.2 var(--mono); color: var(--band-muted); }
.pulse .mast-status { grid-column: 2; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--band-muted); }
.pulse .mast-status b { color: var(--band-ink); font-weight: 500; }
.mast .dot { background: var(--band-ink); box-shadow: none; }
@media (max-width: 640px) {
  .pulse { grid-template-columns: minmax(0, 1fr); }
  .pulse-bars { height: 28px; }
  .pulse .mast-status { grid-column: 1; text-align: left; }
}

/* ══ Messblatt, Teil 2 (11/2026): Kopfzone mit Lagebild und Fristen, Leiteintrag und kompakte Zeilen ══ */
.toolbar-inner { padding: 12px 0; }
.cats-bar { margin-top: 20px; }
.cols { padding-top: 28px; }
.topzone { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; margin-top: 20px; }
.cat-summary { flex: 1.5 1 420px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.cs-text { font: 15.5px/1.6 var(--serif); max-width: 78ch; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cat-summary.open .cs-text { display: block; }
.cs-more { margin-right: 16px; }
.cs-kicker, .due-head { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.due { flex: 1 1 300px; min-width: 0; }
.due-head { margin: 0 0 6px; }
.due-list { list-style: none; margin: 0; padding: 0; }
.due-list li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.due-date { font: 12.5px/1.4 var(--mono); color: var(--muted); }
.due-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-decoration: none; }
.due-what:hover { color: var(--accent); text-decoration: underline; }
.due-chip { font: 500 12px/1.3 var(--mono); padding: 2px 7px; border-radius: 3px; background: var(--accent-soft); white-space: nowrap; }
.due-chip:empty { display: none; }
.due-chip.soon { background: var(--accent-web-soft); color: var(--accent-web); font-weight: 600; }
.due-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.due-foot a, .due-foot .linkbtn { color: var(--accent); font-size: inherit; }

.item { padding: 16px 0; }
.item-top { margin-bottom: 4px; }
.item-cat { font: 500 11px/1.4 var(--mono); color: var(--faint); }
.item-title { font: 600 16px/1.4 var(--sans); margin-bottom: 6px; }
.item.lead .item-title { font: 600 22px/1.25 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.item-ai, .item-abs { font-size: 14px; line-height: 1.55; margin-bottom: 8px; color: var(--muted); }
.item.lead .item-ai { font-size: 15px; color: var(--ink); }
/* Leiteintrag in schmalen Spalten: Titel und Text zuerst, Bild danach */
.item.lead.has-img .item-img { order: 1; }
.item.lead.has-img > :is(.item-meta, .item-orig, .promo-hint) { order: 2; }
.cols:is([data-cols="2"], [data-cols="3"], [data-cols="4"]):not(.single) .item.lead .item-img { margin: 4px 0 12px; }
.item:not(.lead) .item-ai, .item:not(.lead) > .item-abs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item:has(.item-orig[open]) .item-ai, .item-orig .item-abs { display: block; }
/* gekürzte Texte per Klick aufklappen (index.html) */
.item .item-ai, .item .item-abs, .ev-clamp { cursor: pointer; }
.item .item-ai.open, .item .item-abs.open, .ev-clamp.open { display: block; cursor: auto; }
.item-meta { font-family: var(--mono); font-size: 12px; }
.item-meta .rel { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.rel-meter { width: 44px; height: 6px; border-radius: 1px; background: var(--line); overflow: hidden; }
.rel-meter i { display: block; height: 100%; background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vote button { filter: none; padding: 3px 5px; }
.item-orig { margin: 6px 0 0; }
.item-extra { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0; color: var(--faint); }
.item-orig .item-versions { margin: 6px 0 0; }
.cats-bar .cat:hover { border-color: var(--accent); }
.promo-foot { list-style: none; margin: 0 0 56px; padding: 0; max-width: 620px; }
.promo-foot .promo { border-bottom: 0; border-top: 1px solid var(--line); }

/* Handy: Reiter statt gestapelter Blöcke, Kopfzone gekürzt */
.blocktabs { display: none; }
@media (max-width: 767px) {
  .blocktabs { display: flex; margin-top: 24px; }
  .blocktabs button { flex: 1 1 0; padding: 10px 4px; font-size: 13.5px; }
  .cols.tabbed { padding-top: 8px; }
  .cols.tabbed > .col { display: none; }
  .cols.tabbed[data-tab="academic"] > #col-academic, .cols.tabbed[data-tab="web"] > #col-web,
  .cols.tabbed[data-tab="media"] > #col-media, .cols.tabbed[data-tab="events"] > #col-events { display: block; }
  .cols.tabbed .col-title { display: none; }
  .cols.tabbed .col-head { border-bottom: 0; padding-bottom: 0; }
  .cs-text { -webkit-line-clamp: 4; }
  .due-list li:nth-child(n+4) { display: none; }
}

/* ── Landkarte (/landkarte): GreenSoft-Raster und Mess-Ansicht ── */
.lk .lk-stamp { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }
.lk .lk-status { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lk .lk-scroll { overflow-x: auto; margin: 0 0 26px; }
.lk .lk-grid { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.lk .lk-grid th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; vertical-align: bottom; padding: 4px 6px; overflow-wrap: anywhere; }
.lk .lk-grid th:first-child { width: 150px; }
.lk .lk-grid tbody th { vertical-align: middle; }
.lk .lk-grid td { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; vertical-align: top; }
.lk .lk-grid td[style]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--lk-fill, 0) * 100%); background: var(--accent-soft); pointer-events: none; }
.lk .lk-grid td.lk-empty { border-style: dashed; text-align: center; vertical-align: middle; color: var(--faint); }
.lk .lk-grid td.lk-empty::after { content: none; }
.lk .lk-cell { display: block; width: 100%; min-height: 76px; margin: 0; padding: 8px 10px 12px; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.lk .lk-cell:hover { background: var(--accent-soft); }
.lk .lk-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lk .lk-cell[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.lk .lk-cell strong { display: block; font: 600 20px/1.2 var(--serif); color: var(--accent); }
.lk .lk-top { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.lk .lk-top li { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk .lk-facets { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.lk .lk-facet { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lk .lk-facet-label { font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 96px; }
.lk .lk-chip { font: inherit; font-size: 13px; line-height: 1.4; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.lk .lk-chip span { color: var(--faint); font-variant-numeric: tabular-nums; }
.lk .lk-chip:hover { color: var(--ink); border-color: var(--muted); }
.lk .lk-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lk .lk-chip:disabled { opacity: .45; cursor: default; }
.lk .lk-chip:disabled:hover { color: var(--muted); border-color: var(--line-strong); }
.lk .lk-chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.lk .lk-chip[aria-pressed="true"] span { color: var(--brand-ink); }
.lk .lk-result { scroll-margin-top: 80px; margin: 0 0 26px; }
.lk .lk-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.lk .lk-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.lk .lk-list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lk .lk-list a:hover { color: var(--accent); text-decoration: underline; }
.lk .lk-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.lk .lk-badge { font-size: 11.5px; line-height: 1.4; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .lk .lk-top { display: none; }
  .lk .lk-cell { min-height: 44px; }
  .lk .lk-grid { min-width: 520px; }
  .lk .lk-grid th:first-child { width: 110px; }
}
.lk .lk-legend { margin: 0 0 22px; }
.lk .lk-legend details { border-top: 1px solid var(--line); padding: 8px 0; }
.lk .lk-legend summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.lk .lk-legend dl { margin: 8px 0 0; font-size: 13.5px; }
.lk .lk-legend dt { font-weight: 600; margin-top: 8px; }
.lk .lk-legend dd { margin: 0; color: var(--muted); }
.lk .lk-legend details > p { margin: 8px 0 0; font-size: 12.5px; color: var(--faint); }
.so-preview { white-space: pre-wrap; font: inherit; font-size: 13.5px; margin: 4px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
/* WCAG 2.2, 2.5.8: Tippflächen mind. 24 px hoch. Inline-Links bekommen Innenabstand oben/unten
   (vergrößert die Klickfläche, ohne die Zeilen zu verschieben), Knöpfe eine Mindesthöhe. */
.lp-chapter li > a, .lp-toolkit li > a, #lp-toolkit li > a, .lp-rel, .wz-links a, .foot nav a, .mast-links a,
.np-util-side a, .acct, .item-actions a, .due-what, .due-foot a { padding-block: 3px; }
.foot nav .linklike, .vote button, .linkbtn, .notice-x, details.item-orig > summary { min-height: 24px; }
/* Lernpfad: Original (roadmap.sh) deutlich abgesetzt, darunter die GreenPulse-Ergänzung */
.lp-origin { border: 2px solid var(--brand); }
.lp-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, var(--brand)); }
.lp-origin h2, .lp-extra-head h2 { margin-top: 0; }
.lp-extra-head { margin: 32px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
/* Landkarte: zwei große Umschalter (GREENSOFT / Green Software Measurement Model), darunter die gewählte Sicht */
.lk-views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.lk-view { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 20px; border: 2px solid var(--line-strong, var(--line));
  border-radius: var(--radius, 10px); background: var(--surface, var(--bg)); color: var(--ink); cursor: pointer; font: inherit; }
.lk-view:hover { border-color: var(--ink); }
.lk-view[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.lk-view-model { font: 600 12px/1.3 var(--sans, inherit); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.lk-view-q { font: 700 20px/1.25 var(--serif, inherit); }
.lk-view-n { font-size: 13.5px; opacity: .8; }
.lk-panel { margin-top: 18px; }
.lk-panel .lk-legend { margin-top: 22px; }
@media (max-width: 640px) { .lk-views { grid-template-columns: 1fr; } .lk-view-q { font-size: 18px; } }
.lk details.lk-legend { border-top: 1px solid var(--line); padding: 10px 0; }
.lk details.lk-legend > summary { cursor: pointer; font-weight: 600; }
/* Konto-Menü im Kopf (alle Seiten): Name als Knopf, darunter Konto, Lesezeichen, Moderation/Admin, Abmelden */
.acct-menu { position: relative; }
button.acct { border: 0; background: none; padding: 3px 0; cursor: pointer; font: inherit; font-weight: 600; }
.acct-caret { font-size: 11px; opacity: .7; }
.acct-drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; display: flex; flex-direction: column;
  padding: 6px; background: var(--surface, var(--bg)); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.acct-drop[hidden] { display: none; }
.acct-drop a, .acct-drop button { display: block; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--ink) !important; font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.acct-drop a:hover, .acct-drop button:hover, .acct-drop :focus-visible { background: var(--surface-2, rgba(127, 127, 127, .12)); }
.acct-drop a[aria-current="page"] { font-weight: 700; }
.acct-drop .acct-logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
/* Admin-Bereich für Moderatoren: Löschen und Zurücksetzen ausblenden (der Server lehnt es ohnehin ab) */
.role-mod [data-src-del], .role-mod [data-term-del], .role-mod [data-delete], .role-mod [data-promo-del], .role-mod #src-reset { display: none !important; }
.role-table { border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.role-table th, .role-table td { padding: 4px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.role-table td:first-child { text-align: left; }
/* Kontoseite: Reiter und kompakte Quellenwahl */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.acct-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.acct-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.acct-tab[hidden] { display: none; }
.acct-tab > .panel + .panel { margin-top: 18px; }
.src-group { border-top: 1px solid var(--line); padding: 8px 0; }
.src-group > summary { cursor: pointer; padding: 4px 0; }
.src-group-tools { font-size: 13px; margin: 4px 0 6px; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
