/* News & Changelog: /news (Magazin), /news/{slug} (Artikel), /changelog (Zeitleiste),
   Startseiten-Block "What's new" und der News-Editor im Moderations-Cockpit (.na-*). */

/* ===== Karten ======================================================================= */
.news-head-actions { gap: 8px; }
.news-filter { margin-bottom: 24px; }
.news-featured { margin-bottom: 24px; }
.news-featured:empty { display: none; }
.news-skeleton-feature { height: 340px; border-radius: var(--radius-xl); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; gap: 16px; } }

.news-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-1);
}
.news-card:hover { text-decoration: none; }
.news-card:hover .news-card-title { color: var(--accent-text); }
.news-card:focus-visible { outline-offset: 3px; border-radius: var(--radius-l); }

/* Titelbild: eigenes Bild oder gezeichnetes Motiv je Typ */
.news-cover { --c: var(--accent); position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); flex: none; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover-changelog { --c: var(--info); }
.news-cover-maintenance { --c: var(--warn); }
.news-cover-event { --c: var(--ok); }
.news-cover-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-2);
}
.news-cover-art::after {
  /* „Straße“ als Markenmotiv */
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 22%; height: 3px; transform: rotate(-8deg);
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, transparent) 0 26px, transparent 26px 44px);
  opacity: .55;
}
.news-cover-art .icon { width: 54px; height: 54px; color: var(--c); filter: drop-shadow(0 6px 22px color-mix(in srgb, var(--c) 45%, transparent)); }
.news-cover-version {
  position: absolute; left: 18px; top: 14px; font: 400 clamp(20px, 2.4vw, 28px)/1 var(--font-display);
  color: var(--text); letter-spacing: -.01em;
}

.news-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-card-title { margin: 0; font: 650 19px/1.3 var(--font-body); color: var(--text); overflow-wrap: anywhere; transition: color .15s; }
.news-card-text {
  margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--accent-text); }

/* Titelbeitrag */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: var(--radius-xl); }
.news-feature .news-cover { aspect-ratio: auto; min-height: 340px; }
.news-feature .news-cover-art .icon { width: 86px; height: 86px; }
.news-feature .news-card-body { justify-content: center; gap: 14px; padding: clamp(22px, 3.2vw, 40px); }
.news-feature .news-card-title { font: 400 clamp(26px, 3vw, 38px)/1.08 var(--font-display); letter-spacing: -.01em; }
.news-feature .news-card-text { -webkit-line-clamp: 5; line-clamp: 5; font-size: 17px; }
@media (max-width: 820px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature .news-cover { min-height: 0; aspect-ratio: 16 / 9; }
}

.news-pager { display: flex; justify-content: center; margin-top: 28px; }
.news-section-title { margin: 44px 0 16px; font: 650 20px/1.3 var(--font-body); }

/* ===== Artikel ====================================================================== */
.news-article { max-width: 780px; margin-inline: auto; }
.news-back { margin-bottom: 18px; font-size: 14px; }
.news-back .icon { order: -1; }
.flip { transform: scaleX(-1); }
.article-more .news-cover-version { font-size: 18px; }
.news-back:hover .icon.flip { transform: scaleX(-1) translateX(3px); }
.article-head .news-meta { margin-bottom: 14px; }
.article-title { margin-bottom: 14px; overflow-wrap: anywhere; }
.article-lead { margin-bottom: 22px; }
.article-lang-note { margin-bottom: 22px; font-size: 14px; }
.article-cover { margin: 6px 0 28px; border-radius: var(--radius-l); border: 1px solid var(--border); }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--text); }
.article-changes { margin-top: 28px; }
.article-changes .card-title { margin-bottom: 16px; }
.article-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-more .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-more .news-card-title { font-size: 16px; }
.article-more .news-card-text { display: none; }
@media (max-width: 720px) { .article-more .news-grid { grid-template-columns: 1fr; } }

/* ===== Changelog-Einträge ============================================================ */
.cl-groups { display: grid; gap: 16px; }
.cl-group { display: grid; gap: 8px; }
.cl-group > .badge { justify-self: start; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cl-list li { position: relative; display: flex; align-items: baseline; gap: 10px; padding-left: 16px; color: var(--text-2); line-height: 1.5; }
.cl-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.cl-text { min-width: 0; overflow-wrap: anywhere; }
.cl-comp {
  flex: none; padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2);
  font: 650 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.badge.cl-kind-fixed { background: var(--surface-3); color: var(--text); }

/* ===== Changelog-Zeitleiste ========================================================== */
.cl-container { max-width: 980px; }
.cl-toolbar { margin-bottom: 28px; }
.cl-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.cl-timeline::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--accent-line), var(--border) 40%);
}
.cl-timeline > .skeleton { margin: 0 0 18px 30px; }
.cl-item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding-left: 30px; margin-bottom: 26px; }
.cl-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--faint); }
.cl-item.is-latest .cl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.cl-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 1px; }
.cl-version { font: 400 22px/1.1 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.cl-side time { color: var(--muted); font-size: 13px; }
.cl-card { margin: 0; }
.cl-title { margin: 0 0 10px; font: 650 19px/1.3 var(--font-body); }
.cl-title a { color: var(--text); text-decoration: none; }
.cl-title a:hover { color: var(--accent-text); text-decoration: underline; }
.cl-comps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-summary { color: var(--text-2); }
.cl-body { font-size: 15.5px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .cl-item { grid-template-columns: 1fr; gap: 10px; }
  .cl-side { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
}

/* ===== Startseite ===================================================================== */
.home-news .news-grid { margin-top: 4px; }

/* ===== Cockpit: News-Editor (news-admin.js) ============================================ */
.na-h2 { font: 650 22px/1.25 var(--font-body); margin: 0; overflow-wrap: anywhere; }
.na-sub { margin: 4px 0 0; font-size: 14px; }
.na-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mono { font-family: var(--font-mono); font-size: .92em; }

/* Liste */
.na-list-card { padding: 0; overflow: hidden; }
.na-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 18px 12px; }
.na-filters select { width: auto; min-width: 150px; flex: 0 1 auto; min-height: 38px; padding-block: 6px; font-size: 14px; }
.na-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; position: relative; }
.na-search .icon { position: absolute; left: 12px; color: var(--muted); width: 17px; height: 17px; pointer-events: none; }
.na-search input { padding-left: 38px; min-height: 38px; padding-block: 6px; font-size: 14px; }
.na-counts { margin: 0 18px 12px; }
.na-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.na-row-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px 74px auto; gap: 14px; align-items: center;
  padding: 10px 18px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.na-row-item:last-child { border-bottom: 0; }
.na-row-item:hover { background: var(--surface-2); }
.na-row-main { display: flex; gap: 12px; align-items: center; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--radius-s); }
.na-row-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.na-row-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.na-row-icon .icon { width: 18px; height: 18px; }
.na-row-icon.tone-accent { background: var(--accent-soft); color: var(--accent-text); }
.na-row-icon.tone-info { background: var(--info-soft); color: var(--info); }
.na-row-icon.tone-warn { background: var(--warn-soft); color: var(--warn); }
.na-row-icon.tone-ok { background: var(--ok-soft); color: var(--ok); }
.na-row-text { display: grid; gap: 2px; min-width: 0; }
.na-row-title { display: flex; gap: 6px; align-items: center; min-width: 0; }
.na-row-title b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na-row-main:hover .na-row-title b { color: var(--accent-text); }
.na-pin { color: var(--accent); display: inline-flex; }
.na-pin .icon { width: 15px; height: 15px; }
.na-row-sub { display: flex; gap: 10px; color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; }
.na-row-sub span { overflow: hidden; text-overflow: ellipsis; }
.na-row-status { display: grid; gap: 3px; justify-items: start; }
.na-row-when { font-size: 12.5px; color: var(--muted); }
.na-row-langs { display: flex; gap: 4px; }
.na-lang-chip { font: 700 11px/1 var(--font-body); letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); color: var(--faint); }
.na-lang-chip.is-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.na-lang-chip.is-partial { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.na-lang-chip.is-missing { text-decoration: line-through; }
.na-row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.na-row-actions .is-on { color: var(--accent); }
.na-empty { padding: 28px 18px; list-style: none; }
@media (max-width: 900px) {
  .na-row-item { grid-template-columns: minmax(0, 1fr) auto; }
  .na-row-langs { display: none; }
  .na-row-status { grid-column: 1; grid-row: 2; display: flex; gap: 8px; align-items: center; padding-left: 48px; }
  .na-row-actions { grid-column: 2; grid-row: 1 / span 2; }
}

/* Vorlagen */
.na-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.na-tpl { display: grid; gap: 6px; text-align: left; align-content: start; cursor: pointer; font: inherit; color: inherit; padding: 20px; }
.na-tpl b { font-size: 16px; }
.na-tpl .muted { font-size: 14px; line-height: 1.5; }
.na-tpl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.na-tpl-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.na-tpl-icon .icon { width: 21px; height: 21px; }
.na-tpl-resume { border-color: var(--accent-line); }

/* Editor: Kopfzeile */
.na-topbar {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; padding: 12px 0; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.na-back { flex: none; }
.na-top-title { flex: 1; min-width: 0; display: grid; gap: 6px; }
.na-top-title .na-h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 20px; }
.na-top-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.na-save-state { color: var(--muted); }
.na-save-state.is-dirty { color: var(--warn); font-weight: 600; }
.na-save-state.is-dirty::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }
.na-top-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.na-banners { display: grid; gap: 10px; margin-bottom: 16px; }
.na-banners:empty { display: none; }
.na-banner { align-items: flex-start; }
.na-banner-body { display: grid; gap: 10px; }
.na-banner-body p { margin: 0; }

/* Editor: zwei Spalten */
.na-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 20px; align-items: start; }
.na-edit-col, .na-side-col { min-width: 0; display: grid; gap: 16px; }
.na-side-col { position: sticky; top: calc(var(--header-h) + 92px); max-height: calc(100dvh - var(--header-h) - 108px); overflow: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; }
.na-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.na-card { margin: 0 !important; }
.na-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.na-card-head .card-title { margin: 0; font-size: 16px; }
.na-card-meta { font-size: 13px; color: var(--muted); }
.na-card-compact .na-card-head { margin-bottom: 10px; }
@media (max-width: 980px) {
  .na-grid { grid-template-columns: 1fr; }
  .na-side-col { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .na-topbar { flex-wrap: wrap; position: static; }
  .na-top-actions { width: 100%; justify-content: flex-end; }
}

/* Segment-Schalter (Typ, Status) */
.na-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.na-seg-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font: 600 14px/1 var(--font-body); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.na-seg-btn .icon { width: 17px; height: 17px; color: var(--muted); }
.na-seg-btn:hover { border-color: var(--border-strong); color: var(--text); }
.na-seg-btn.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.na-seg-btn.active .icon { color: var(--accent); }
.na-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.na-fieldset:disabled .na-seg-btn { cursor: default; opacity: .75; }

/* Sprachen */
.na-lang-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.na-lang { margin: 0; }
.na-lang .tab { gap: 8px; }
.na-lang-state { font: 600 11px/1 var(--font-body); padding: 3px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.na-lang-state.is-done { background: var(--ok-soft); color: var(--ok); }
.na-lang-state.is-partial { background: var(--warn-soft); color: var(--warn); }
.na-lang-state.is-missing { background: var(--bad-soft); color: var(--bad); }
.na-field-count { grid-template-columns: 1fr auto; }
.na-field-count > label { grid-column: 1; }
.na-field-count > .char-count { grid-column: 2; align-self: end; }
.na-field-count > :not(label):not(.char-count) { grid-column: 1 / -1; }
.char-count.near:not(.over) { color: var(--warn); }
.na-title-input { font-size: 17px; font-weight: 600; }

/* Markdown-Editor */
.na-md { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.na-md:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.na-toolbar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.na-tb {
  min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2);
  font: 700 14px/1 var(--font-body); cursor: pointer; display: inline-grid; place-items: center;
}
.na-tb:hover { background: var(--surface-3); color: var(--text); }
.na-tb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.na-tb .icon { width: 17px; height: 17px; }
.na-tb-italic span { font-style: italic; font-family: Georgia, serif; }
.na-tb-heading span { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.na-tb-code span { font-family: var(--font-mono); font-size: 12.5px; }
.na-tb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.na-md .na-textarea {
  display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none !important; outline: none; resize: vertical;
  min-height: 300px; padding: 14px 16px; font: 14.5px/1.65 var(--font-mono); background: transparent;
}
.na-md .na-textarea.drop { background: var(--accent-soft); }
.na-md-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.na-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.na-stats .near { color: var(--warn); }
.na-md-help { font-size: 13px; }
.na-md-help summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.na-md-help[open] { flex-basis: 100%; }
.na-md-help[open] summary { margin-bottom: 8px; }
.na-md-table { border-collapse: collapse; width: 100%; margin-bottom: 8px; }
.na-md-table td { padding: 5px 8px 5px 0; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.na-md-table code { font-size: 12.5px; white-space: nowrap; }
.na-help { font-size: 12.5px; color: var(--muted); margin: 0; }
.na-fd-preview { width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--radius-s); background: var(--bg-2); margin-bottom: 14px; }

/* Changelog */
.na-cl-top { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 0 20px; align-items: start; margin-bottom: 6px; }
@media (max-width: 640px) { .na-cl-top { grid-template-columns: 1fr; } }
.hint[data-tone="bad"], .msg[data-tone="bad"] { color: var(--bad); }
.hint[data-tone="warn"] { color: var(--warn); }
.na-suggest { border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.na-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.na-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text-2);
}
.na-chip .icon { width: 14px; height: 14px; display: none; }
input:checked + .na-chip { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
input:checked + .na-chip .icon { display: block; color: var(--accent); }
input:focus-visible + .na-chip { outline: 2px solid var(--accent); outline-offset: 2px; }
.na-entries-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 8px; }
.na-entries { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.na-entries-empty { padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; font-size: 14px; }
.na-entry {
  display: grid; grid-template-columns: 26px 128px 120px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center;
  padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); position: relative;
}
.na-entry .na-entry-de { grid-column: 4 / 5; }
.na-entry select, .na-entry input, .na-entry-add select, .na-entry-add input { min-height: 36px; padding-block: 5px; font-size: 14px; }
.na-entry .na-entry-de { font-size: 13.5px; background: var(--surface); }
.na-entry.dragging { opacity: .45; }
.na-entry.drop-before::before, .na-entry.drop-after::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--accent);
}
.na-entry.drop-before::before { top: -5px; }
.na-entry.drop-after::after { bottom: -5px; }
.na-handle {
  width: 26px; height: 36px; border: 0; background: none; color: var(--faint); cursor: grab; border-radius: 6px; display: grid; place-items: center; padding: 0;
}
.na-handle:hover { color: var(--text); background: var(--surface-3); }
.na-handle:active { cursor: grabbing; }
.na-handle:focus-visible { outline: 2px solid var(--accent); }
.na-handle .icon { width: 16px; height: 16px; }
.na-entry-tools { display: flex; gap: 2px; }
.na-kind { font-weight: 650; }
.na-kind-added { color: var(--ok); }
.na-kind-changed { color: var(--info); }
.na-kind-fixed { color: var(--accent-text); }
.na-kind-security { color: var(--bad); }
.na-kind-badge.na-kind-added { background: var(--ok-soft); }
.na-kind-badge.na-kind-changed { background: var(--info-soft); }
.na-kind-badge.na-kind-fixed { background: var(--accent-soft); }
.na-kind-badge.na-kind-security { background: var(--bad-soft); }
.na-entry-add {
  display: grid; grid-template-columns: 128px 120px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-bottom: 8px;
}
@media (max-width: 760px) {
  .na-entry { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .na-entry .na-entry-en, .na-entry .na-entry-de { grid-column: 2 / -1; }
  .na-entry-add { grid-template-columns: 1fr 1fr; }
  .na-entry-add input { grid-column: 1 / -1; }
}
.na-import-ta { font: 13.5px/1.6 var(--font-mono); min-height: 180px; }
.na-import-result { margin-top: 12px; }
.na-import-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; font-size: 14px; }
.na-import-list li { display: flex; gap: 8px; align-items: center; }

/* Details */
.na-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .na-row2 { grid-template-columns: 1fr; } }
.na-prefixed { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.na-prefixed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.na-prefix { display: grid; place-items: center; padding: 0 4px 0 12px; color: var(--muted); font: 14px var(--font-mono); background: var(--surface-2); border-right: 1px solid var(--border); padding-right: 10px; }
.na-prefixed input { border: 0; box-shadow: none !important; border-radius: 0; outline: none; }
.na-cover-field { margin-top: 6px; }
.na-image { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.na-image-drop { width: 220px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; flex: none; }
.na-image-drop img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.na-image-drop.drop { outline: 3px dashed var(--accent); outline-offset: 2px; }
.na-image-empty { width: 100%; height: 100%; border-radius: 12px; border: 1.5px dashed var(--border-strong); display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.na-image-empty .icon { width: 22px; height: 22px; }
.na-image-actions { display: grid; gap: 8px; flex: 1 1 220px; justify-items: start; }
.na-image-actions .hint { font-size: 12.5px; }

/* Veröffentlichung */
.na-status { margin-bottom: 10px; }
.na-status-note { margin-bottom: 12px; }
.na-when { margin-bottom: 4px; }
.na-when input { max-width: 280px; }
.na-quick { display: flex; gap: 4px; flex-wrap: wrap; }

/* Prüfliste */
.na-check details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.na-check details > summary::-webkit-details-marker { display: none; }
.na-check details[open] > summary { margin-bottom: 12px; }
.na-check .card-title { margin: 0; font-size: 16px; }
.na-check-sum { display: flex; gap: 6px; }
.na-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.na-chk { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; line-height: 1.45; padding: 3px 0; }
.na-chk > .icon { width: 17px; height: 17px; margin-top: 2px; }
.na-chk.is-ok { color: var(--muted); }
.na-chk.is-ok > .icon { color: var(--ok); }
.na-chk.is-warn > .icon { color: var(--warn); }
.na-chk.is-error > .icon, .na-chk.is-publish > .icon { color: var(--bad); }
.na-chk.is-error, .na-chk.is-publish { color: var(--text); font-weight: 600; }
.na-chk-go { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.na-chk-go:hover { text-decoration-color: currentColor; }

/* Veröffentlichen-Dialog */
.na-publish-dlg { width: min(1040px, calc(100vw - 24px)); }
.na-pub-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.na-pub-head .dialog-icon { flex: none; margin: 0; }
.na-pub-head p { margin: 0; }
.na-pub-cols { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .na-pub-cols { grid-template-columns: 1fr; } }
.na-pub-check { display: grid; gap: 10px; }
.na-pub-check .label { margin: 0; }
.na-pub-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.na-pub-preview .na-preview-frame { max-height: min(56vh, 560px); }

/* Fließtext der Beiträge: erweiterte Formatierung (auch öffentliche Seiten) */
.prose h2, .prose h3 { color: var(--text); font-family: var(--font-body); line-height: 1.3; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 1.3em; font-weight: 700; }
.prose h3 { font-size: 1.1em; font-weight: 650; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 0 0 1.1em; padding: .4em 0 .4em 1em; border-left: 3px solid var(--accent); color: var(--text); background: var(--accent-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose em { color: var(--text); }
.prose code { font: .88em var(--font-mono); padding: .12em .4em; border-radius: 5px; background: var(--surface-3); color: var(--text); }
.prose-figure { margin: 1.4em 0; }
.prose-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); border: 1px solid var(--border); }
.cl-text code { font: .9em var(--font-mono); padding: .1em .35em; border-radius: 4px; background: var(--surface-3); }

.na-side-col .na-preview-frame { max-height: none; padding: 16px; }

/* Vorschau */
.na-preview { min-width: 0; }
.na-preview .tabs { margin-bottom: 12px; }
.na-preview-frame { border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--bg); padding: 18px; max-height: calc(100dvh - var(--header-h) - 140px); overflow: auto; }
.na-preview-frame .news-article { max-width: none; }
.na-preview-frame .article-title { font-size: clamp(24px, 2.4vw, 32px); }
.na-preview-frame .prose { font-size: 15.5px; }
.na-preview-cards { display: grid; gap: 14px; margin-top: 18px; }
.na-preview-cards .news-card { pointer-events: none; }
.na-preview-label { font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* Launcher-Mock (dunkel wie der Launcher) */
.na-launcher { background: #121110; border-radius: 14px; padding: 16px; color: #F2F1EE; font-family: var(--font-body); }
.na-launcher-feature { position: relative; height: 210px; border-radius: 12px; overflow: hidden; }
.na-launcher-feature .news-cover { position: absolute; inset: 0; aspect-ratio: auto; }
.na-launcher-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgb(0 0 0 / 82%)); }
.na-launcher-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 6px; }
.na-launcher-text b { font: 400 22px/1.1 var(--font-display); }
.na-launcher-text span { font-size: 13px; color: #D2CEC7; }
.na-launcher-badges { display: flex; gap: 6px; }
.na-launcher-badges i { font-style: normal; font: 700 10.5px/1 var(--font-body); letter-spacing: .08em; padding: 4px 7px; border-radius: 5px; background: #FF7A00; color: #1A1108; }
.na-launcher-badges i.muted { background: #2e2c29; color: #D2CEC7; }
.na-launcher-bar { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #1c1b19; font-size: 13px; overflow: hidden; }
.na-launcher-bar b { white-space: nowrap; }
.na-launcher-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #A6A29B; }

/* Discord-Mock (Embed) */
.na-discord { background: #313338; border-radius: 10px; padding: 16px; color: #dbdee1; font: 15px/1.375 var(--font-body); }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; display: grid; place-items: center; }
.dc-avatar img { width: 28px; height: 28px; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-bot { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.dc-time { margin-left: 8px; font-size: 12px; color: #949ba4; }
.dc-embed { margin-top: 6px; max-width: 432px; border-left: 4px solid var(--c, #FF7A00); background: #2b2d31; border-radius: 4px; padding: 10px 16px 14px 12px; display: grid; gap: 8px; }
.dc-author { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-title { color: #00a8fc; font-weight: 600; overflow-wrap: anywhere; }
.dc-desc { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; font-size: 14px; }
.dc-fields b { display: block; font-size: 13px; color: #f2f3f5; }
.dc-image { border-radius: 4px; overflow: hidden; }
.dc-image .news-cover { border-radius: 4px; }
.dc-footer { font-size: 12px; color: #b5bac1; }
.flip-v { transform: scaleY(-1); }
