/* news – Nachrichten aus Dänemark und Deutschland (/neuigkeiten, Feed-Karte, rechte Spalte, Admin /admin/feeds). Nur .news-* */
.news-page { max-width: 860px; margin-inline: auto; }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.news-filter label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; flex: 1 1 150px; min-width: 0; }
.news-filter-go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-group { padding-block: 10px 6px; }
.news-day { font-size: 1rem; margin: 0 0 4px; color: var(--muted); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.news-list .news-item:first-child { border-top: 0; }
.news-flag { flex: 0 0 auto; line-height: 1.5; }
.news-item-main { min-width: 0; flex: 1 1 auto; }
.news-title { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.news-title:visited { color: var(--muted); }
.news-title::after, .news-card-title a::after, .news-box-list a::after { content: " ↗"; font-size: .8em; color: var(--muted); font-weight: 400; }
.news-discuss { white-space: nowrap; }
.news-legal { margin-top: 18px; }

.news-card { border-left: 4px solid var(--accent); }
.news-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.news-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.news-card-title { font-size: 1.05rem; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; }
.news-card-title a { color: var(--ink); }

.news-box-list { list-style: none; margin: 0; padding: 0; }
.news-box-list li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.news-box-list li:first-child { border-top: 0; padding-top: 0; }
.news-box-list a { color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }

/* Admin */
.news-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.news-tabs a, .news-chips a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; color: var(--ink); font-size: .9rem; }
.news-tabs a.active, .news-chips a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.news-tabs a.active .meta, .news-chips a.active .meta { color: inherit; }
.news-tabs a:hover, .news-chips a:hover { text-decoration: none; border-color: var(--accent); }
.news-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.news-explain { margin: 6px 0 10px; padding-left: 20px; }
.news-explain li { margin-bottom: 4px; }
.news-feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.news-feed { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.news-feed.news-off { opacity: .75; border: 1px dashed var(--warn); }
.news-feed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.news-feed-head h2 { margin: 0; font-size: 1.05rem; }
.news-url { overflow-wrap: anywhere; margin: 0; }
.news-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; margin: 0; }
.news-facts dt { font-size: .78rem; color: var(--muted); }
.news-facts dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.news-feed .row { margin-top: auto; }
.news-paused form { display: inline-flex; margin-inline: 6px; }
.news-form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.news-form-row > label { flex: 1 1 160px; min-width: 0; }
.news-groups { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.news-groups legend, .news-groups .hint { flex-basis: 100%; margin: 0; }
.news-danger { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.news-danger summary { cursor: pointer; color: var(--alarm); }
.news-table td.news-num, .news-table th.news-num { text-align: right; white-space: nowrap; }
.news-num.neg, .news-hits .neg strong { color: var(--alarm); }
.news-num.pos, .news-hits .pos strong { color: var(--ok); }
.news-table tr.news-fail td { color: var(--muted); }
.news-table tr.news-fail td a { color: var(--muted); }
.news-table tr.news-off td { opacity: .6; }
.news-actions { white-space: nowrap; }
.news-actions form { display: inline-flex; margin: 0 2px 2px 0; }
.news-hits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.news-hits li { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .82rem; white-space: nowrap; }
.news-hits li.off { opacity: .55; text-decoration: line-through; }
.news-hits code, .news-kw-table code { font-size: .88em; overflow-wrap: anywhere; white-space: normal; }
.news-kw-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.news-kw-new > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; flex: 1 1 140px; min-width: 0; }
.news-kw-new > label.check { flex: 0 1 auto; flex-direction: row; align-items: center; font-weight: 400; }
.news-import { margin-top: 16px; }
.news-import summary { cursor: pointer; font-weight: 600; }
.news-example { background: var(--soft); border-radius: 8px; padding: 8px 12px; overflow-x: auto; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; max-width: 100%; }
.news-result.news-pass { border-left: 4px solid var(--ok); }
.news-result.news-fail { border-left: 4px solid var(--alarm); }
.news-group-list > div { margin-bottom: 8px; }
.news-group-list dd { margin: 2px 0 0 0; color: var(--muted); }
@media (max-width: 600px) {
  .news-filter label, .news-kw-new > label { flex-basis: 100%; }
  .news-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .news-facts { grid-template-columns: 1fr 1fr; }
}

/* phrases */
/* Sprachhappen (Feed-Karte, rechte Spalte, Archiv, Admin) und Wochen-Mail (Frage, Konto, Admin) – nur .phrase-* / .digest-* */
.phrase-card { border-left: 4px solid var(--accent); }
.phrase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.phrase-title { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); flex: 1 1 auto; }
.phrase-tag { font-size: .75rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); white-space: nowrap; }
a.phrase-tag:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.phrase-da { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin: 4px 0 2px; color: var(--accent); overflow-wrap: anywhere; }
.phrase-da a { color: inherit; }
.phrase-de { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); overflow-wrap: anywhere; }
.phrase-note { margin: 0 0 8px; }
.phrase-example { background: var(--soft); border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; }
.phrase-example p { margin: 0; font-style: italic; overflow-wrap: anywhere; }
.phrase-example p + p { margin-top: 2px; }
.phrase-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.phrase-sub { font-size: .95rem; margin: 10px 0 6px; color: var(--muted); }
.phrase-other { margin: 0 0 8px; font-size: .92rem; }
.phrase-other summary { cursor: pointer; color: var(--accent); }
.phrase-detail .phrase-da { font-size: 2rem; }
.phrase-box-da { font-size: 1.2rem; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.phrase-box-de { margin: 0 0 4px; }
.phrase-box .digest-ask { margin-top: 10px; }

.phrase-page { max-width: 760px; margin-inline: auto; }
.phrase-intro h1 { margin: 0 0 6px; font-size: 1.4rem; }
.phrase-intro .lead { margin: 0; }
.phrase-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.phrase-filter .field { flex: 1 1 150px; min-width: 0; }
.phrase-filter .phrase-filter-q { flex: 2 1 220px; }
.phrase-filter-go { display: flex; gap: 8px; flex-wrap: wrap; }
.phrase-list { list-style: none; margin: 0; padding: 0; }
.phrase-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; padding-block: 10px; margin-bottom: 8px; }
.phrase-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.phrase-item-da { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.phrase-item-de { overflow-wrap: anywhere; }
.phrase-item-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.phrase-related ul { margin: 0; padding-left: 18px; }
.phrase-related li { margin-bottom: 4px; }
.phrase-more { text-align: center; }

.phrase-admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.phrase-stats { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-stats li { background: var(--soft); border-radius: 8px; padding: 6px 12px; }
.phrase-schedule tr.phrase-today td { background: var(--accent-soft); font-weight: 600; }
.phrase-table tr.phrase-off td { opacity: .6; }
.phrase-import-duplicate td, .phrase-import-invalid td { color: var(--muted); }
.phrase-import-invalid td:last-child { color: var(--alarm); }
.phrase-csv-head { background: var(--soft); border-radius: 8px; padding: 8px 12px; overflow-x: auto; font-size: .85rem; }
.phrase-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.phrase-form-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

.digest-ask { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.digest-ask-q { margin: 0 0 2px; }
.digest-ask .meta { margin: 0 0 8px; }
.digest-status { font-weight: 600; }
.digest-choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.digest-preview { background: var(--soft); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; max-width: 80ch; }

@media (max-width: 600px) {
  .phrase-da { font-size: 1.35rem; }
  .phrase-detail .phrase-da { font-size: 1.6rem; }
  .phrase-form-grid { grid-template-columns: 1fr; }
  .phrase-filter .field, .phrase-filter .phrase-filter-q { flex-basis: 100%; }
}
