/* Fehlerfuchs – Gestaltung
   Farben als Variablen, damit hell/dunkel automatisch passt. */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --text: #1b2232;
  --text-2: #434c5e;
  --muted: #6b7385;
  --border: #e3e6ee;
  --border-strong: #cfd4df;
  --brand: #e8590c;
  --brand-strong: #c2410c;
  --brand-soft: #fff1e7;
  --brand-ink: #9a3412;
  --focus: rgba(232, 89, 12, .35);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --radius: 14px;
  --radius-sm: 9px;

  --blue: #1d6fd8;   --blue-soft: #e8f1fd;
  --violet: #7048e8; --violet-soft: #f0ecfe;
  --orange: #e8590c; --orange-soft: #fff1e7;
  --yellow: #b7791f; --yellow-soft: #fff8e1;
  --green: #2b8a3e;  --green-soft: #e9f7ed;
  --red: #d92d20;    --red-soft: #fdecea;
  --gray: #5f6b7d;   --gray-soft: #eef0f4;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #1a1e27;
    --surface-2: #20252f;
    --text: #e9ecf2;
    --text-2: #c3c9d5;
    --muted: #8f98aa;
    --border: #2c3240;
    --border-strong: #3a4152;
    --brand: #ff7a2e;
    --brand-strong: #ff8f4d;
    --brand-soft: #3a2416;
    --brand-ink: #ffb68a;
    --focus: rgba(255, 122, 46, .4);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255,255,255,.02), 0 6px 18px rgba(0,0,0,.25);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);

    --blue: #6aa8ff;   --blue-soft: #1a2a42;
    --violet: #a993ff; --violet-soft: #2a2445;
    --orange: #ff8f4d; --orange-soft: #3a2416;
    --yellow: #f2c14e; --yellow-soft: #3a3016;
    --green: #5fd07a;  --green-soft: #183223;
    --red: #ff7b72;    --red-soft: #3d1d1b;
    --gray: #a3acbd;   --gray-soft: #272c37;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--gray-soft); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ------------------------------------------------------------ Grundlayout */

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; align-self: start;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--text); font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 550; font-size: .95rem;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav a .count { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--gray-soft); color: var(--text-2); padding: 1px 8px; border-radius: 99px; }
.nav a.active .count { background: var(--brand); color: #fff; }
.nav .btn { margin: 4px 0 10px; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); }
.me:hover { background: var(--surface-2); text-decoration: none; }
.me .who { min-width: 0; line-height: 1.25; }
.me .who strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who small { color: var(--muted); font-size: .78rem; }

.topbar { display: none; }
.scrim { display: none; }

.main { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.container { max-width: 1120px; margin: 0 auto; }
.container.slim { max-width: 780px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 280px;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(10, 14, 22, .45); z-index: 40; }
  .topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 30;
    padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .topbar .brand { padding: 0; font-size: 1.02rem; }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .grow { flex: 1; }
  .main { padding-top: 22px; }
  h1 { font-size: 1.4rem; }
}

/* ------------------------------------------------------------ Bausteine */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .layout-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 42px;
  border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(232, 89, 12, .3); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: 14px 22px; min-height: 52px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; min-height: 40px; min-width: 40px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: 2px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }
.alert-error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.alert-info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, transparent); color: var(--blue); }
.alert-warn { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 35%, transparent); color: var(--yellow); }
.alert > div { color: var(--text); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gray { background: var(--gray-soft); color: var(--gray); }
.badge-red { background: var(--red-soft); color: var(--red); }

.sev { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.sev-gray { color: var(--gray); } .sev-blue { color: var(--blue); } .sev-orange { color: var(--orange); } .sev-red { color: var(--red); }
.prio { font-size: .8rem; font-weight: 650; padding: 2px 8px; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap; }
.prio-gray { color: var(--gray); } .prio-blue { color: var(--blue); } .prio-orange { color: var(--orange); } .prio-red { color: var(--red); background: var(--red-soft); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--text-2); background: var(--gray-soft); padding: 2px 8px; border-radius: 6px; }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; flex: none; letter-spacing: .02em; }
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }
.avatar-guest { background: var(--gray); }

/* Formulare */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--muted); margin: -2px 0 8px; }
.field .hint-after { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.optional { font-weight: 500; color: var(--muted); font-size: .85em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7385' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check span small { display: block; color: var(--muted); font-size: .85rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-form { display: inline; }

/* Auswahlkarten (Schweregrad) */
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 14px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface); transition: border-color .12s, background .12s;
}
.choice .box .icon { width: 24px; height: 24px; }
.choice .box strong { font-size: .95rem; }
.choice .box small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.choice:hover .box { border-color: var(--border-strong); }
.choice input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + .box { box-shadow: 0 0 0 3px var(--focus); }
.choice .c-gray { color: var(--gray); } .choice .c-blue { color: var(--blue); } .choice .c-orange { color: var(--orange); } .choice .c-red { color: var(--red); }

/* Datei-Ablage */
.dropzone {
  display: block;
  border: 2px dashed var(--border-strong); border-radius: 12px; padding: 22px;
  text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .icon { width: 30px; height: 30px; color: var(--brand); }
.dropzone p { margin: 6px 0 0; }
.dropzone input[type=file] { display: none; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px 6px 5px 6px; font-size: .86rem; max-width: 100%; }
.file-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.file-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; font: inherit; }
.file-chip button:hover { background: var(--red-soft); color: var(--red); }

/* Schritte im Meldeformular */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step + .step { margin-top: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 750;
}
@media (max-width: 560px) { .step { padding-left: 0; } .step::before { position: static; display: inline-grid; margin-bottom: 8px; } }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); box-shadow: var(--shadow-sm); }
a.stat:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow); }
.stat .num { font-size: 1.9rem; font-weight: 780; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .88rem; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.stat .lbl .icon { color: var(--brand); }

/* Fortschrittsbalken nach Status */
.statusbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--gray-soft); margin: 6px 0 12px; }
.statusbar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--text-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* Listen / Tabellen */
.list { list-style: none; margin: 0; padding: 0; }
.bug-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--border); color: var(--text);
}
.list > li:first-child .bug-row { border-top: 0; }
.bug-row:hover { background: var(--surface-2); text-decoration: none; }
.bug-row .title { font-weight: 620; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.bug-row .title .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-row .id { color: var(--muted); font-weight: 550; font-variant-numeric: tabular-nums; font-size: .9rem; flex: none; }
.bug-row .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: .84rem; }
.bug-row .side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; grid-row: 1 / span 2; grid-column: 2; }
@media (max-width: 640px) {
  .bug-row { grid-template-columns: 1fr; padding: 14px 16px; }
  .bug-row .side { grid-row: auto; grid-column: 1; justify-content: flex-start; }
}

table.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
}

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1 1 240px; position: relative; }
.filters .search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters .search input { padding-left: 40px; }
.filters select { width: auto; min-width: 150px; flex: 0 1 auto; }
.chips { display: inline-flex; background: var(--gray-soft); padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.chips a { padding: 7px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.chips a:hover { text-decoration: none; color: var(--text); }
.chips a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty img, .empty .icon { width: 64px; height: 64px; margin-bottom: 10px; opacity: .9; }
.empty h3 { color: var(--text); }

/* Detailansicht */
.bug-title { font-size: 1.55rem; margin: 4px 0 10px; overflow-wrap: anywhere; }
.bug-sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 20px 0 6px; }
.section-title:first-child { margin-top: 0; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }

.props { display: grid; gap: 14px; }
.props dt { font-size: .8rem; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.props dd { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a.thumb { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery a.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.files a { display: inline-flex; gap: 8px; align-items: center; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.timeline > li:first-child { border-top: 0; }
.timeline .body { min-width: 0; flex: 1; }
.timeline .head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.timeline .head strong { font-size: .95rem; }
.timeline .head time { color: var(--muted); font-size: .82rem; }
.timeline .internal { background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; margin: 0 -4px; }
.timeline .event { color: var(--muted); font-size: .88rem; align-items: center; padding: 8px 0; }
.timeline .event .icon { margin: 0 9px 0 8px; }
.timeline .event b { color: var(--text-2); font-weight: 600; }

.callout { border-radius: 12px; padding: 16px 18px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.callout h3 { color: var(--brand-ink); }

/* Login / Einrichtung */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(900px 500px at 110% 110%, var(--blue-soft), transparent 60%),
  var(--bg); }
.narrow { width: 100%; max-width: 440px; }
.medium { width: 100%; max-width: 640px; }
.auth-card { padding: 32px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 22px; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 14px; }
.auth-head h1 { font-size: 1.45rem; margin-bottom: 4px; }
.auth-head p { color: var(--muted); margin: 0; }
.auth-links { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }

.wizard-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.wizard-steps span { font-size: .8rem; font-weight: 650; padding: 5px 12px; border-radius: 99px; background: var(--gray-soft); color: var(--muted); }
.wizard-steps span.on { background: var(--brand); color: #fff; }
.wizard-steps span.done { background: var(--green-soft); color: var(--green); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.checks li:first-child { border-top: 0; }
.checks .ok { color: var(--green); } .checks .bad { color: var(--red); } .checks .warn { color: var(--yellow); }
.checks small { display: block; color: var(--muted); }
details.more { margin: 4px 0 16px; }
details.more summary { cursor: pointer; color: var(--brand-strong); font-weight: 600; font-size: .92rem; padding: 4px 0; }
pre.config { background: var(--gray-soft); padding: 14px; border-radius: 10px; overflow: auto; font-size: .82rem; }

/* Logo-Einstellungen */
.logo-preview { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-preview .box { width: 88px; height: 88px; border: 1px solid var(--border); border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); }
.logo-preview .box img { max-width: 72px; max-height: 72px; }
.logo-preview .box.sm { width: 48px; height: 48px; border-radius: 10px; }
.logo-preview .box.sm img { max-width: 32px; max-height: 32px; }
.logo-preview figure { margin: 0; text-align: center; }
.logo-preview figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.lightbox { position: fixed; inset: 0; background: rgba(8, 10, 16, .85); display: none; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }

.footer-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 40px; }

/* ------------------------------------------------------------ Kanban-Board */
.container.wide { max-width: none; }
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start;
  scroll-snap-type: x proximity;
}
.board-col {
  background: var(--gray-soft); border-radius: var(--radius); padding: 12px;
  min-height: 160px; scroll-snap-align: start; display: flex; flex-direction: column;
  max-height: calc(100vh - 190px);
}
.board-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.board-col-head h2 { font-size: .95rem; margin: 0; }
.board-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.board-count { margin-left: auto; font-size: .78rem; font-weight: 700; background: var(--surface); color: var(--text-2); padding: 1px 9px; border-radius: 99px; }
.board-cards { display: flex; flex-direction: column; gap: 10px; min-height: 60px; overflow-y: auto; border-radius: 10px; padding: 2px; transition: background .12s, box-shadow .12s; }
.board-cards.over { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.board-hint { font-size: .78rem; color: var(--muted); margin: -6px 4px 10px; }
.board-archive { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: .86rem; font-weight: 600; }
.board-archive:hover { background: var(--surface); text-decoration: none; color: var(--text); border-color: var(--muted); }
.board-archive .board-count { margin-left: auto; }
.board-empty { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.kcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 13px; box-shadow: var(--shadow-sm);
}
.kcard[draggable=true] { cursor: grab; }
.kcard[draggable=true]:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .45; cursor: grabbing; }
.kcard.saving { opacity: .6; }
.kcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.kcard-top .id { color: var(--muted); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kcard-title { font-size: .95rem; font-weight: 620; margin: 0 0 8px; overflow-wrap: anywhere; line-height: 1.35; }
.kcard-title a { color: var(--text); }
.kcard-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; }
.kcard-meta .sev { font-size: .8rem; }
.kcard-meta .grow { margin-left: auto; }
.kcard-move { margin-top: 10px; min-height: 34px; padding: 5px 34px 5px 10px; font-size: .85rem; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .kcard-move { display: none; } .kcard:focus-within .kcard-move, .kcard:focus .kcard-move { display: block; } }
@media (max-width: 900px) { .board { grid-auto-columns: 82%; } .board-col { max-height: none; } }

/* ------------------------------------------------------------ Art: Fehler / Wunsch, Slogan */
.type { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 6px; white-space: nowrap; }
.type .icon { width: 1em; height: 1em; }
.type-bug { background: var(--red-soft); color: var(--red); }
.type-feature { background: var(--violet-soft); color: var(--violet); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text small { font-size: .74rem; font-weight: 550; color: var(--muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-stack { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 11px; row-gap: 7px; }
.brand-stack .brand-tag { grid-column: 1 / -1; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.auth-head .tagline, .tagline-hero { display: block; color: var(--brand-strong); font-weight: 650; font-size: .9rem; margin: -2px 0 8px; letter-spacing: .01em; }
.btn-soft { background: var(--violet-soft); border-color: transparent; color: var(--violet); }
.btn-soft:hover { background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
.choice input:checked + .box.box-feature { border-color: var(--violet); background: var(--violet-soft); }
@media (max-width: 420px) { .topbar .brand-text small { display: none; } }
