/* Landingpage: /neuigkeiten (CHANGELOG.md) und /roadmap. Laedt nach landing.css und nutzt
   dessen Tokens; Verhalten in landing-roadmap.js. */

.hidden { display: none !important; }

/* Der Scrollspy in landing.js setzt .is-active nur fuer Anker; die eigene Seite steht per aria-current. */
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { background: var(--accent); }

.news, .rm {
  --t-neu: var(--accent);
  --t-geaendert: #f2c46d;
  --t-behoben: #6fdc9b;
  --t-entfernt: #9fb0c4;
  --t-sicherheit: #ff9a8a;
  --c: var(--accent);
}
.news-t--neu { --c: var(--t-neu); }
.news-t--geaendert { --c: var(--t-geaendert); }
.news-t--behoben { --c: var(--t-behoben); }
.news-t--entfernt { --c: var(--t-entfernt); }
.news-t--sicherheit { --c: var(--t-sicherheit); }

.news-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--c);
  flex: 0 0 auto;
}
.news__empty { color: var(--meta); padding-block: 32px; }
.news__link {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--accent); cursor: pointer;
  border-bottom: 1px solid rgba(77, 208, 255, .4);
}
.news__link:hover { color: var(--accent-hover); }
.news__feed { margin-top: 28px; font-size: .88rem; color: var(--meta); }
.news__feed a { color: var(--accent); }

.news__back {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-bottom: 16px; padding: 12px 16px;
  border: 1px dashed rgba(77, 208, 255, .45);
  border-radius: var(--radius);
  background: rgba(77, 208, 255, .06);
  color: var(--body); font-size: .92rem;
}

/* Seitenspalte "Ich kenne Omnia bis Version ..." (Zeitleiste, neuste oben) neben den Eintraegen */
.news-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.news-main { min-width: 0; }
.news-since {
  position: sticky; top: calc(var(--nav-h-scrolled) + 16px);
  display: grid; gap: 14px;
  max-height: calc(100vh - var(--nav-h-scrolled) - 32px);
  overflow-y: auto; scrollbar-width: thin;
  padding: 18px 16px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  background: var(--surface);
}
.news-since__head { display: grid; gap: 6px; justify-items: start; }
.news-since__head h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.news-since__head p { margin: 0; color: var(--muted); font-size: .86rem; }
.news-since__more { justify-self: start; margin-left: 24px; font-size: .84rem; }

.news-track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
/* Linie durch die Punkte */
.news-track::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--hairline); }
.news-track__group {
  position: relative; padding: 12px 0 4px 24px;
  font: 500 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--meta);
}
.news-track__group:first-child { padding-top: 2px; }
.news-track__mark {
  display: flex; align-items: center; gap: 8px; padding: 6px 0 4px 24px;
  font: 500 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.news-track__mark::after { content: ""; flex: 1; height: 1px; background: var(--text); opacity: .45; }
.news-stop {
  position: relative;
  display: grid; grid-template-columns: 4rem 3.3rem minmax(0, 1fr) 2rem; align-items: center; gap: 8px;
  width: 100%; padding: 5px 6px 5px 24px;
  border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
}
.news-stop:hover { background: var(--surface-raised); }
.news-stop i {
  position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: var(--radius-full);
  background: var(--bg); border: 2px solid var(--meta);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.news-stop__v { font: 500 .86rem/1 var(--mono); color: var(--meta); }
.news-stop small { font-size: .74rem; color: var(--meta); white-space: nowrap; }
.news-stop__bar { display: flex; width: var(--w, 0%); min-width: 4px; height: 6px; border-radius: 999px; overflow: hidden; opacity: .25; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.news-stop__bar > span { flex: 0 0 0; background: var(--c); }
.news-stop b { font: 500 .76rem/1 var(--mono); color: var(--meta); text-align: right; font-variant-numeric: tabular-nums; }
/* neu fuer die Leserin: farbig */
.news-stop.is-in i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px rgba(77, 208, 255, .45); }
.news-stop.is-in .news-stop__v { color: var(--text); }
.news-stop.is-in b { color: var(--muted); }
.news-stop.is-in .news-stop__bar { opacity: 1; filter: none; }
.news-stop.is-mine { background: var(--surface-raised); }
.news-stop.is-mine i { border-color: var(--text); }
.news-stop.is-mine .news-stop__v { color: var(--text); font-weight: 600; }
.news-stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Gleich breite Spalten: Punkt und Zahl oben, Bezeichnung darunter - alle Zahlen auf einer Linie. */
.news-sum__legend { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: space-between; gap: 6px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.news-sum__legend > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-sum__legend b { display: flex; align-items: center; gap: 6px; height: 1rem; font: 600 .9rem/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.news-sum__legend em { font-style: normal; }
.news-sum__legend small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filter */
.news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 24px 8px; }
.news-main .news-filters { padding-top: 0; }
/* Filter und Suche bleiben beim Scrollen unter der Navigation stehen (am Computer). */
@media (min-width: 901px) {
  .news-main .news-filters {
    position: sticky; top: var(--nav-h-scrolled); z-index: 4;
    padding-block: 12px;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--hairline);
  }
}
.news-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border-btn);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 400 .85rem/1 var(--font);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.news-chip:hover { color: var(--text); border-color: var(--muted); }
.news-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.news-chip--area { border-style: dashed; }
.news-search { position: relative; margin-left: auto; flex: 0 1 280px; }
.news-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--meta); }
.news-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border-btn);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 400 .88rem/1.3 var(--font);
}
.news-search input:focus { outline: none; border-color: var(--accent); }

/* Versionen */
.news-list { display: grid; }
.news-rel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  padding-block: 28px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 150px;
}
.news-rel__side { position: sticky; top: calc(var(--nav-h-scrolled) + 84px); align-self: start; display: grid; gap: 4px; }
.news-rel__v { font: 500 1.4rem/1.1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.news-rel__v:hover { color: var(--accent); }
.news-rel__d { font-size: .85rem; color: var(--meta); }
.news-rel__now {
  justify-self: start; margin-top: 6px; padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent); color: var(--on-accent);
  font: 600 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.news-rel__body { display: grid; gap: 22px; min-width: 0; }
.news-grp h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--c);
}
.news-grp h3::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.news-grp ul { list-style: none; display: grid; gap: 11px; }
.news-grp li { position: relative; max-width: 80ch; padding-left: 18px; color: var(--body); font-size: .97rem; }
.news-grp li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--c); opacity: .85;
}
.news-grp strong { color: var(--text); font-weight: 600; }
.news-area {
  background: none; border: 0; padding: 0;
  font: 600 1em/inherit var(--font); color: var(--text);
  border-bottom: 1px dotted var(--meta);
  cursor: pointer;
}
.news-area:hover { color: var(--accent); border-bottom-color: var(--accent); }
.news mark { background: rgba(77, 208, 255, .24); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* Roadmap */
/* Kopf: Einleitung links, Einladung zum Wunsch rechts */
.rm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 40px; align-items: end; margin-bottom: 28px; }
.rm-hero .subpage__head { margin-bottom: 0; }
.rm-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.rm-stats > span { display: inline-flex; align-items: center; gap: 8px; }
.rm-stats b { font: 600 .95rem/1 var(--mono); color: var(--text); }
.rm-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--c); flex: none; }
.rm-invite {
  display: grid; gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: radial-gradient(420px 180px at 100% 0%, rgba(77, 208, 255, .12), transparent 70%), var(--surface);
}
.rm-invite h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.rm-invite p { color: var(--muted); font-size: .88rem; }
.rm-invite .btn { justify-self: stretch; }

/* Werkzeuge: Bereich links, Sortierung rechts */
.rm-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 22px; padding-block: 14px; border-block: 1px solid var(--hairline); }
.rm-areas { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rm-areas .news-chip small { font: 500 .72rem/1 var(--mono); color: var(--meta); }
.rm-areas .news-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgba(77, 208, 255, .1); }
.rm-tools__sort { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--meta); }
.rm-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-card); border-radius: 10px; }
.rm-seg button { padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.rm-seg button:hover { color: var(--text); }
.rm-seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); }

/* Reiter nur am Handy */
.rm-tabs { display: none; }

/* Spalten */
.rm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rm-col { display: grid; gap: 12px; }
.rm-col--geplant { --c: var(--meta); }
.rm-col--arbeit { --c: var(--t-geaendert); }
.rm-col--erledigt { --c: var(--t-behoben); }
.rm-col__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 2px 2px 10px; border-bottom: 2px solid var(--c); }
.rm-col__head h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.rm-col__head span { font: 500 .8rem/1 var(--mono); color: var(--meta); }
.rm-col__head p { grid-column: 2 / -1; font-size: .8rem; color: var(--meta); }
.rm-col__list { display: grid; gap: 12px; }
.rm-col__empty { padding: 18px; border: 1px dashed var(--border-card); border-radius: 12px; color: var(--meta); font-size: .88rem; text-align: center; }
.rm-col__empty .news__link { margin-top: 6px; }

/* Karte: Stimme links gross, Inhalt rechts */
.rm-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px;
  padding: 16px 16px 14px 12px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .2s;
  scroll-margin-top: 110px;
}
.rm-card:hover { border-color: var(--border-strong); }
.rm-card.is-flash { animation: rm-flash 1.6s ease; }
@keyframes rm-flash {
  0%, 40% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 208, 255, .2); }
  100% { border-color: var(--border-card); box-shadow: none; }
}
.rm-card__body { display: grid; gap: 8px; min-width: 0; align-content: start; }
.rm-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.rm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .78rem; color: var(--meta); }
.rm-tag { padding: 2px 8px; border-radius: 6px; background: var(--surface-raised); color: var(--muted); font: 500 .72rem/1.5 var(--mono); }
.rm-when { display: inline-flex; align-items: center; gap: 5px; }
.rm-card__desc { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rm-card__desc.is-open { display: block; -webkit-line-clamp: unset; }
.rm-more { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .82rem; cursor: pointer; }
.rm-more:hover { text-decoration: underline; }
.rm-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 500 .75rem/1 var(--mono); color: var(--t-geaendert); }
.rm-progress progress {
  width: 100%; height: 6px;
  appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 999px; overflow: hidden;
  background: var(--hairline);
}
.rm-progress progress::-webkit-progress-bar { background: var(--hairline); }
.rm-progress progress::-webkit-progress-value { background: var(--t-geaendert); }
.rm-progress progress::-moz-progress-bar { background: var(--t-geaendert); }

.rm-vote {
  display: grid; justify-items: center; align-content: center; gap: 3px;
  width: 52px; height: 58px; padding: 0;
  border: 1px solid var(--border-btn);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.rm-vote b { font: 600 .95rem/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.rm-vote svg { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.rm-vote:hover { border-color: var(--accent); color: var(--accent); }
.rm-vote:hover svg { transform: translateY(-2px); }
.rm-vote[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rm-vote[aria-pressed="true"] b { color: var(--on-accent); }
.rm-vote.is-busy { opacity: .6; cursor: progress; }

/* Erledigt: kompakt, mit Haken statt Stimme */
.rm-card--done { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 14px 12px 12px; }
.rm-card--done h3 { font-size: .95rem; }
.rm-check { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: var(--radius-full); background: rgba(111, 220, 155, .15); color: var(--t-behoben); }
.rm-done { color: var(--t-behoben); font: 500 .74rem/1 var(--mono); }
.rm-done:hover { text-decoration: underline; }
.rm-votes-static { font: 500 .74rem/1 var(--mono); }
.rm-hint { margin-top: 4px; font-size: .82rem; color: var(--meta); }
.rm-status { min-height: 1.4em; margin-top: 10px; font-size: .85rem; color: var(--t-sicherheit); }

/* Wunsch-Formular: im Dialog, geoeffnet ueber "Wunsch einreichen" */
.rm-dialog {
  margin: auto; /* das Reset der Landingpage setzt margin 0 - so bleibt der Dialog mittig */
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
.rm-dialog::backdrop { background: rgba(4, 8, 15, .72); backdrop-filter: blur(4px); }
.rm-dialog[open] { animation: rm-dialog-in .2s ease-out; }
@keyframes rm-dialog-in { from { opacity: 0; transform: translateY(8px); } }
.rm-dialog__close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border-card); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.rm-dialog__close:hover { color: var(--text); border-color: var(--meta); }
.rm-dialog .rm-wish { margin-top: 0; border: 0; border-radius: 0; }
.rm-wish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: radial-gradient(600px 240px at 0% 0%, rgba(77, 208, 255, .09), transparent 70%), var(--surface);
  scroll-margin-top: 90px;
}
.rm-wish__text { display: grid; gap: 12px; align-content: start; }
.rm-wish__text h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); letter-spacing: -.03em; line-height: 1.2; }
.rm-wish__text p { color: var(--muted); max-width: 46ch; }
.rm-steps { list-style: none; counter-reset: rm; display: grid; gap: 10px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.rm-steps li { display: flex; gap: 10px; counter-increment: rm; }
.rm-steps li::before {
  content: counter(rm);
  flex: 0 0 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font: 500 .72rem/1 var(--mono); color: var(--text);
}
.rm-wish form { display: grid; gap: 14px; }
.rm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rm-field { display: grid; gap: 6px; }
.rm-field label { font-size: .8rem; color: var(--muted); }
.rm-field label small { color: var(--meta); font-size: inherit; }
.rm-field input, .rm-field textarea, .rm-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-btn);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 300 .95rem/1.45 var(--font);
  transition: border-color .15s;
}
.rm-field textarea { resize: vertical; min-height: 120px; }
.rm-field input:focus, .rm-field textarea:focus, .rm-field select:focus { outline: none; border-color: var(--accent); }
.rm-field__meta { display: flex; justify-content: space-between; gap: 12px; font: 400 .72rem/1.3 var(--mono); color: var(--meta); }
.rm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-legal { font-size: .78rem; color: var(--meta); }
.rm-legal a { color: var(--muted); text-decoration: underline; }

.rm-similar {
  display: grid; gap: 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(77, 208, 255, .55);
  border-radius: 8px;
  background: rgba(77, 208, 255, .05);
}
.rm-similar p { font-size: .8rem; color: var(--accent); }
.rm-similar button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 0; border-radius: 6px;
  background: var(--bg);
  color: var(--body);
  font: 400 .88rem/1.35 var(--font);
  text-align: left;
  cursor: pointer;
}
.rm-similar button:hover { background: var(--surface-raised); }
.rm-similar button span { margin-left: auto; white-space: nowrap; font: 500 .72rem/1 var(--mono); color: var(--muted); }

.rm-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rm-submit .btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.rm-guard { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--meta); }
/* Ruhig: nichts zu sehen, solange nicht geprueft wird; Ring waehrend der Pruefung, Schild danach. */
.rm-guard__ring, .rm-guard__shield { display: none; }
.rm-guard.is-run .rm-guard__ring, .rm-guard.is-err .rm-guard__ring { display: block; }
.rm-guard.is-ok .rm-guard__shield { display: block; }
.rm-guard__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-guard.is-err .rm-guard__text { position: static; width: auto; height: auto; clip: auto; white-space: normal; color: var(--t-sicherheit); }
.rm-guard__shield { width: 22px; height: 22px; fill: rgba(111, 220, 155, .14); stroke: var(--t-behoben); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: rm-shield-in .35s ease-out; }
@keyframes rm-shield-in { from { opacity: 0; transform: scale(.6); } }
.rm-guard__ring { width: 18px; height: 18px; flex: 0 0 auto; }
.rm-guard__ring circle { fill: none; stroke-width: 2.5; }
.rm-guard__bg { stroke: var(--hairline); }
.rm-guard__fg {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 50.27; stroke-dashoffset: 50.27;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset .2s;
}
.rm-guard.is-ok { color: var(--t-behoben); }
.rm-guard.is-ok .rm-guard__fg { stroke: var(--t-behoben); }
.rm-error { font-size: .85rem; color: var(--t-sicherheit); }

.rm-thanks { display: grid; gap: 12px; justify-items: start; align-content: center; padding-block: 20px; }
.rm-thanks__check {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-full);
  background: rgba(111, 220, 155, .15);
  color: var(--t-behoben);
}
.rm-thanks h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.rm-thanks p { color: var(--muted); max-width: 46ch; }
.rm-linkmsg { color: #ff9a8a; }
.rm-linkmsg--ok { color: var(--body); }

@media (max-width: 1180px) {
  .news-rel { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-since { position: static; max-height: none; }
  .rm-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .rm-board { grid-template-columns: minmax(0, 1fr); }
  /* Reiter statt drei Spalten untereinander */
  .rm-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--border-card); border-radius: 12px; position: sticky; top: calc(var(--nav-h-scrolled) + 8px); z-index: 5; background: var(--bg); }
  .rm-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 4px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: .86rem; cursor: pointer; }
  .rm-tabs button b { font: 500 .74rem/1 var(--mono); color: var(--meta); }
  .rm-tabs button[aria-selected="true"] { background: var(--surface-raised); color: var(--text); }
  .rm-col { display: none; }
  .rm-col.is-tab { display: grid; }
  .rm-col__head { border-bottom: 0; padding-bottom: 0; }
  .rm-col__head h2, .rm-col__head span, .rm-col__head .rm-dot { display: none; }
  .rm-col__head p { grid-column: 1 / -1; }
  .rm-tools { display: grid; grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; }
  .rm-areas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rm-areas .news-chip { flex: none; }
  .rm-tools__sort { width: 100%; }
  .rm-tools__sort > span { display: none; }
  .rm-seg { flex: 1; }
  .rm-seg button { flex: 1; white-space: nowrap; padding-inline: 8px; }
  .rm-wish { grid-template-columns: minmax(0, 1fr); }
  .news-rel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-rel__side { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .news-rel__now { margin-top: 0; }
  .news-search { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 520px) {
  .rm-row { grid-template-columns: minmax(0, 1fr); }
}
/* Handy: Wunsch-Dialog als Vollbild-Blatt, Knopf ueber dem Board */
.rm-dialog { scrollbar-width: thin; scrollbar-color: var(--meta) transparent; }
@media (max-width: 640px) {
  .rm-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .rm-dialog .rm-wish { padding: 20px 16px max(24px, env(safe-area-inset-bottom, 0px)); gap: 18px; background: var(--surface); }
  .rm-dialog__close { position: fixed; top: max(10px, env(safe-area-inset-top, 0px)); right: 10px; }
  .rm-dialog .rm-wish__text { padding-right: 44px; }
  .rm-dialog .rm-steps { display: none; }
  .rm-field__meta { flex-wrap: wrap; gap: 2px 12px; }
  .rm-submit .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-dialog[open], .rm-guard__shield { animation: none; }
  .news-stop i, .news-stop__bar, .rm-card, .rm-vote, .rm-vote svg, .rm-guard__fg { transition: none; }
  .rm-card.is-flash { animation: none; }
}
