/* =====================================================================
   MeineBRD — Portal

   Wen bedient diese Seite? Menschen, die gerade Stress mit einer Behörde
   haben. Jemand ist umgezogen, hat den Job verloren, braucht einen
   Ausweis. Die Gestaltung hat genau eine Aufgabe: diesen Stress nicht
   zu vergrößern.

   Daraus folgen die Entscheidungen:

   - Viel Ruhe, wenig Fläche pro Bildschirm. Wer überfordert ist, liest
     keine Kachelwand.
   - Eine große Suche als Mittelpunkt. Alles andere ordnet sich unter.
   - Auf der Detailseite ist die zuständige Stelle nicht irgendein
     Abschnitt, sondern begleitet den Text im Seitenbereich mit.
   - Farbe bedeutet etwas: Petrol führt zu Handlungen, Bernstein warnt
     vor ungeprüften Angaben, Rot nur bei Fehlern.
   - Dunkelmodus wird unterstützt, weil viele Menschen abends am Handy
     lesen, wenn das Amt zu hat.
====================================================================== */

:root {
  color-scheme: light dark;

  --bg:            #f4f6f7;
  --surface:       #ffffff;
  --surface-2:     #eef1f1;
  --line:          #dfe4e4;
  --line-strong:   #c3cbcb;

  --ink:           #12181a;
  --text:          #2a3234;
  --text-soft:     #5d686b;

  --brand:         #0f5c66;
  --brand-strong:  #0a444c;
  --brand-soft:    #e4eff0;
  --brand-ring:    rgba(15, 92, 102, 0.25);

  --amber:         #8a6410;
  --amber-soft:    #fbf1dc;
  --alert:         #a32f2f;
  --alert-soft:    #fbeaea;
  --ok:            #23694a;
  --ok-soft:       #e6f2eb;

  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;

  --shadow-1: 0 1px 2px rgba(16, 30, 32, 0.05), 0 2px 8px rgba(16, 30, 32, 0.04);
  --shadow-2: 0 4px 12px rgba(16, 30, 32, 0.07), 0 16px 40px rgba(16, 30, 32, 0.07);

  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0e1416;
    --surface:     #161e20;
    --surface-2:   #1d2729;
    --line:        #263133;
    --line-strong: #38474a;

    --ink:         #eef3f3;
    --text:        #d3dcdd;
    --text-soft:   #94a3a5;

    --brand:       #5cb3bd;
    --brand-strong:#7cc7d0;
    --brand-soft:  #14292d;
    --brand-ring:  rgba(92, 179, 189, 0.3);

    --amber:       #e0b567;
    --amber-soft:  #2b2314;
    --alert:       #e58b8b;
    --alert-soft:  #2c1818;
    --ok:          #74c39b;
    --ok-soft:     #142720;

    --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2: 0 8px 30px rgba(0,0,0,0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--text-soft); font-size: 0.94em; }

/* Fließende Schriftgrößen: am Handy kompakt, am Schreibtisch großzügig,
   ohne Sprünge dazwischen. */
h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 600;
}
h2 {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 600;
}
h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }

.lede { color: var(--text-soft); font-size: clamp(16px, 1.7vw, 19px); max-width: 62ch; margin: 0 0 8px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 34px 22px 80px; }
.container--form { max-width: 480px; margin: 0 auto; padding: 44px 22px 80px; }

/* ---------------------------------------------------------------------
   Kopfbereich
------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
}
.logo__text { font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.015em; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 7px 11px;
  border-radius: var(--radius-s);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 500;
}
.nav-cta:hover { background: var(--brand-strong) !important; }
.nav-badge {
  display: inline-grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--alert); color: #fff;
  border-radius: 10px; font-size: 12px; font-weight: 600;
  margin-left: 5px;
}
.inline-form { display: inline; }
.link-button {
  background: none; border: none; cursor: pointer; padding: 7px 11px;
  color: var(--text-soft); font-size: 15px; border-radius: var(--radius-s);
}
.link-button:hover { background: var(--surface-2); color: var(--ink); }
.link-button--danger { color: var(--alert); font-size: 14px; }

.site-banner {
  background: var(--amber-soft); color: var(--amber);
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
  padding: 10px 22px; font-size: 15px; text-align: center;
}

/* ---------------------------------------------------------------------
   Startseite
------------------------------------------------------------------------ */

.hero { padding: clamp(44px, 7vw, 84px) 0 0; }
.hero__inner { max-width: 820px; margin: 0 auto; padding: 0 22px; text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero__lede { margin: 0 auto 30px; text-align: center; }

/* Die Suche ist der Mittelpunkt der Seite und wird als eigenständige
   Fläche gesetzt, die auf dem Hintergrund aufliegt. */
.searchbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
}
.searchbox input[type="search"] {
  flex: 1 1 300px;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font-size: 17px;
}
.searchbox input[type="search"]::placeholder { color: var(--text-soft); }
.searchbox input[type="search"]:focus { outline: none; }
.searchbox__ort {
  flex: 0 1 190px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-s);
  padding: 12px 13px;
  font-size: 15px;
}
.searchbox button {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.searchbox button:hover { background: var(--brand-strong); }

.searchbox--inline { box-shadow: var(--shadow-1); border-radius: var(--radius); margin-bottom: 26px; }
.searchbox--inline input[type="search"] { padding: 11px 10px; font-size: 16px; }
.searchbox--inline button { padding: 11px 20px; }

.examples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 22px 0 0; padding: 0; list-style: none; }
.examples a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
}
.examples a:hover { border-color: var(--brand); color: var(--brand); }

.section { padding: clamp(38px, 6vw, 66px) 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.tile-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}
.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  height: 100%;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
  text-decoration: none;
}
.tile__title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 16.5px; }
.tile__desc { display: block; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block; padding: 9px 17px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; color: var(--text); font-size: 15px;
}
.chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------------
   Ergebnisse
------------------------------------------------------------------------ */

.result-count { color: var(--text-soft); font-size: 15px; margin-bottom: 16px; }

.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.result__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.result__head h2 { font-size: 18.5px; margin: 0 0 6px; }
.result__head h2 a { text-decoration: none; color: var(--ink); }
.result__head h2 a:hover { color: var(--brand); }
.result__desc { color: var(--text-soft); font-size: 15px; margin: 0 0 14px; }

/* Die zuständige Stelle ist die eigentliche Antwort. */
.responsible {
  background: var(--brand-soft);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  font-size: 15px;
}
.responsible__label { display: block; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 3px; }
.responsible__name { font-weight: 600; color: var(--ink); }
.responsible__meta { display: block; color: var(--text-soft); font-size: 14px; }
.responsible--unknown { background: var(--surface-2); color: var(--text-soft); }

/* --- Datenstatus --- */

.data-status {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 13px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.data-status__dot { width: 6px; height: 6px; border-radius: 50%; }
.data-status--verified { background: var(--ok-soft); color: var(--ok); }
.data-status--verified .data-status__dot { background: var(--ok); }
.data-status--demo { background: var(--amber-soft); color: var(--amber); }
.data-status--demo .data-status__dot { background: var(--amber); }

/* ---------------------------------------------------------------------
   Detailseite: Inhalt und zuständige Stelle nebeneinander
------------------------------------------------------------------------ */

.detail-layout { display: grid; gap: 26px; align-items: start; }
@media (min-width: 940px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 322px; }
  .detail-aside { position: sticky; top: 78px; }
}

.breadcrumb { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-soft); }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 16px;
}
.card--brand { border-color: var(--brand); box-shadow: var(--shadow-1); }
.card--quiet { background: var(--surface-2); }

.authority-name { font-size: 17px; font-weight: 600; margin: 0 0 12px; }

.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 15px; }
.detail-list dt { color: var(--text-soft); }
.detail-list dd { margin: 0; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin: 0 0 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 13px 15px; }
.fact__label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 2px; }
.fact__value { display: block; font-weight: 600; color: var(--ink); font-size: 16px; }

.doc-list, .step-list { padding-left: 20px; margin: 0; font-size: 16px; }
.doc-list li, .step-list li { margin-bottom: 8px; }
.step-list li::marker { color: var(--brand); font-weight: 700; }

.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: 15.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--danger { background: transparent; color: var(--alert); border-color: var(--alert); }
.btn--danger:hover { background: var(--alert-soft); }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   Formulare
------------------------------------------------------------------------ */

.form { margin-bottom: 18px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: 14px; color: var(--text-soft); margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 400 !important; }
.inline-select-form { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.inline-select-form input, .inline-select-form select {
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); flex: 1 1 170px;
}

.notice {
  padding: 14px 17px;
  border-radius: var(--radius-s);
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  font-size: 15.5px;
}
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice--error { background: var(--alert-soft); border-color: var(--alert); color: var(--alert); }
.notice--warn  { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.notice--ok    { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.notice--info  { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }

/* ---------------------------------------------------------------------
   Community
------------------------------------------------------------------------ */

.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.cat-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { text-decoration: none; flex-grow: 1; }
.cat-list__name { display: block; font-weight: 600; color: var(--ink); }
.cat-list__desc { display: block; font-size: 14.5px; color: var(--text-soft); }
.cat-list__count {
  font-family: var(--mono); font-size: 13px; color: var(--text-soft);
  background: var(--surface-2); padding: 3px 11px; border-radius: 999px;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.post-list li:last-child { border-bottom: none; }
.post-list__title { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.post-list__title:hover { color: var(--brand); }
.post-list__meta { display: block; font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.post-list--cards li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 19px; margin-bottom: 10px;
}

.post-meta { font-size: 14.5px; color: var(--text-soft); margin: 0 0 12px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.7; }

.comment {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 19px; margin-bottom: 10px;
}

.vote-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.vote-btn {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 15px; font-size: 14.5px; cursor: pointer;
}
.vote-btn:hover { border-color: var(--brand); color: var(--brand); }
.vote-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.vote-score { font-size: 14px; color: var(--text-soft); font-family: var(--mono); }

.report-box { margin-left: auto; font-size: 14px; }
.report-box summary { cursor: pointer; color: var(--text-soft); }
.report-form {
  margin-top: 12px; padding: 15px; background: var(--surface-2);
  border-radius: var(--radius-s); min-width: 260px;
}

.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 24px; font-size: 15px; }

.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.notif-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notif-list li.is-unread { border-left: 3px solid var(--brand); }
.notif-list a { display: block; padding: 15px 18px; text-decoration: none; }
.notif-list a:hover { background: var(--surface-2); }
.notif-list__title { display: block; font-weight: 600; color: var(--ink); }
.notif-list__body { display: block; font-size: 15px; color: var(--text-soft); margin-top: 3px; }
.notif-list__time { display: block; font-size: 13px; color: var(--text-soft); font-family: var(--mono); margin-top: 5px; }

/* ---------------------------------------------------------------------
   Jobbörse
------------------------------------------------------------------------ */

.filter-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
}
.filter-bar__row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.filter-bar__row:last-child { margin-bottom: 0; }
.filter-bar input[type="search"], .filter-bar input[type="text"] {
  flex: 1 1 220px; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface);
}
.filter-bar select {
  padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); background: var(--surface); flex: 1 1 155px;
}

.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.job-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 19px 21px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.job-card__title { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.job-card__title:hover { color: var(--brand); }
.job-card__company { margin: 4px 0 11px; color: var(--text-soft); font-size: 15px; }
.job-card__tags { margin: 0; display: flex; gap: 7px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-soft); font-size: 13.5px;
}
.tag--accent { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------------
   Vorgänge
------------------------------------------------------------------------ */

.process { }
.process--overdue { border-left: 3px solid var(--alert); }
.overdue-flag { color: var(--alert); margin-left: 6px; }
.process__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.process__head h2 { margin: 0; font-size: 18px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--amber-soft); color: var(--amber); }
.badge--neutral { background: var(--surface-2); color: var(--text-soft); }

.task-list { list-style: none; padding: 0; margin: 14px 0; }
.task-list li { border-bottom: 1px solid var(--line); }
.task-list li:last-child { border-bottom: none; }
.task { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.task .task-form { flex: 1 1 250px; margin: 0; }
.task--overdue .task-toggle__label { color: var(--alert); }

.task-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; padding: 12px 2px; cursor: pointer; font-size: 16px;
}
.task-toggle:hover { color: var(--brand); }
.task-toggle__box {
  width: 21px; height: 21px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; color: #fff;
}
.task-toggle.is-done .task-toggle__box { background: var(--brand); border-color: var(--brand); }
.task-toggle.is-done .task-toggle__label { color: var(--text-soft); text-decoration: line-through; }

.task__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; }
.task__due {
  font-family: var(--mono); font-size: 13px; color: var(--text-soft);
  background: var(--surface-2); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.task__due.is-overdue { background: var(--alert-soft); color: var(--alert); }
.task__setup summary { cursor: pointer; font-size: 14px; color: var(--text-soft); }
.task__form-inline {
  margin-top: 11px; padding: 15px; background: var(--surface-2);
  border-radius: var(--radius-s); min-width: 240px;
}
.task__form-inline .field { margin-bottom: 11px; }

.add-task { display: flex; gap: 9px; margin: 16px 0; flex-wrap: wrap; }
.add-task input[type="text"] {
  flex: 1 1 220px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface);
}
.process__more { margin: 14px 0; }
.process__more summary { cursor: pointer; font-size: 15px; color: var(--text-soft); }
.process__note {
  background: var(--surface-2); border-radius: var(--radius-s);
  padding: 13px 16px; margin: 14px 0; font-size: 15.5px; white-space: pre-wrap;
}

/* ---------------------------------------------------------------------
   Fußbereich
------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 0;
  margin-top: 60px;
}
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.disclaimer { font-size: 14.5px; color: var(--text-soft); max-width: 72ch; margin: 0 0 16px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; }
.footer-nav a { color: var(--text-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile:hover { transform: none; }
}

/* --- Forum ---------------------------------------------------------------- */

.board-section { margin-bottom: 30px; }
.board-section h2 { font-size: 15px; text-transform: none; color: var(--text-soft); font-weight: 600;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }

.board-list { list-style: none; padding: 0; margin: 0; }
.board {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px;
  align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.board:last-child { border-bottom: none; }
.board__name { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.board__name:hover { color: var(--brand); }
.board__desc { display: block; font-size: 14.5px; color: var(--text-soft); margin-top: 2px; }
.board__figures { display: grid; gap: 2px; font-size: 13.5px; color: var(--text-soft); text-align: right; white-space: nowrap; }
.board__last { font-size: 13.5px; text-align: right; min-width: 170px; display: grid; gap: 2px; }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; gap: 8px; }
  .board__figures, .board__last { text-align: left; }
}

.topic-list { list-style: none; padding: 0; margin: 0; }
.topic {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 8px;
}
.topic--pinned { border-left: 3px solid var(--brand); }
.topic__title { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.topic__title:hover { color: var(--brand); }
.topic__meta { display: block; font-size: 14px; color: var(--text-soft); margin-top: 3px; }
.topic__figures { display: grid; gap: 2px; font-size: 13.5px; color: var(--text-soft); text-align: right; white-space: nowrap; }
.topic__last { font-size: 13.5px; text-align: right; min-width: 160px; display: grid; gap: 2px; }
@media (max-width: 760px) {
  .topic { grid-template-columns: 1fr; gap: 8px; }
  .topic__figures, .topic__last { text-align: left; }
}

/* Beitrag mit Verfasserspalte, wie in klassischer Forensoftware. */
.fpost {
  display: grid; grid-template-columns: 190px minmax(0,1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.fpost__author {
  background: var(--surface-2); padding: 16px 18px; display: grid; gap: 3px; align-content: start;
  border-right: 1px solid var(--line);
}
.fpost__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.fpost__body { padding: 16px 20px; min-width: 0; }
.fpost__head { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .fpost { grid-template-columns: 1fr; }
  .fpost__author { border-right: none; border-bottom: 1px solid var(--line);
    display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
}

/* --- Anfragen ------------------------------------------------------------- */

.ticket-msg {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px 19px; margin-bottom: 10px;
}
.ticket-msg--own { border-left-color: var(--brand); background: var(--brand-soft); }
