/* JobScout – Stylesheet
   Farben: Tintenblau für Text & Aktionen, eine einfarbige Karmin-Skala nur für die Ränge S–D.
   Schrift: Archivo (variabel, Breiten-Achse) – breit & schwer für Rangbuchstaben, normal für Fließtext. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1f2a44;
  --ink-2: #4a556b;
  --muted: #5f687b;
  --paper: #ffffff;
  --row: #f3f5f8;
  --line: #dce1e8;
  --line-strong: #c4cbd6;
  --track: #e3e7ee;
  --focus: #2b59c3;

  --tier-s: #900e26;
  --tier-a: #b3212e;
  --tier-b: #cd443d;
  --tier-c: #de6d5b;
  --tier-d: #e6947f;

  --ok-bg: #e7f3ec;
  --ok-ink: #1d5c3c;
  --err-bg: #fbeaea;
  --err-ink: #8a1c1c;
  --info-bg: #eef1f6;
  --secret-bg: #fff4cf;

  --radius: 6px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern" 1;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 750; }
h1 { font-size: 32px; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-stretch: 108%; }
h3 { font-size: 17px; font-stretch: 104%; }
p { margin: 0 0 0.8em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* --- Kopfzeile ---------------------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 18px; }
.brand-mark { display: grid; grid-template-rows: repeat(3, 6px); gap: 2px; width: 22px; }
.brand-mark i { display: block; height: 6px; border-radius: 1px; }
.brand-mark i:nth-child(1) { background: var(--tier-s); width: 22px; }
.brand-mark i:nth-child(2) { background: var(--tier-b); width: 16px; }
.brand-mark i:nth-child(3) { background: var(--tier-d); width: 10px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2); white-space: nowrap;
}
.nav a:hover { background: var(--row); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.account { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.account form { margin: 0; }

/* --- Seitenrahmen ------------------------------------------------------------ */
.page { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; }
.page-narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
.page-actions { display: flex; gap: 10px; align-items: center; }
.footer { max-width: 1320px; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 4px; max-width: none; }

/* --- Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 14.5px; line-height: 1;
  padding: 11px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c3a5c; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--row); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--err-ink); border-color: #e3b5b5; }
.btn-danger:hover { border-color: var(--err-ink); }
.btn-small { padding: 7px 11px; font-size: 13.5px; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* --- Hinweise ------------------------------------------------------------------- */
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--info-bg); color: var(--ink); border-left: 4px solid var(--ink-2);
}
.notice p { margin: 0; }
.notice .btn { margin-left: auto; }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); border-left-color: var(--ok-ink); }
.notice-error { background: var(--err-bg); color: var(--err-ink); border-left-color: var(--err-ink); }
.notice-secret { background: var(--secret-bg); border-left-color: #a37b00; }
.notice-secret strong { font-variant-numeric: tabular-nums; user-select: all; }
.notice-icon { flex: none; font-weight: 800; width: 18px; text-align: center; }

/* --- Lauf-Status ---------------------------------------------------------------- */
.runbox { display: grid; gap: 6px; min-width: min(420px, 100%); }
.runbox-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 0.6s ease; }
.progress.is-indeterminate > span { width: 30%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* --- Ansicht & Filter ----------------------------------------------------------- */
.views { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.views a {
  text-decoration: none; padding: 10px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.views a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.views .count { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 18px;
}
.filters input[type="search"] { width: 260px; }
.filters select { width: auto; }
.filters .checkline { margin: 0; }
.filter-summary { margin-left: auto; color: var(--muted); font-size: 13.5px; }

/* --- Tierlist ----------------------------------------------------------------------- */
.tierlist { display: grid; gap: 8px; }
.tier {
  display: grid; grid-template-columns: 92px 1fr; min-height: 104px;
  background: var(--row); border-radius: var(--radius); overflow: hidden;
}
.tier-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; padding: 10px 6px;
}
.tier-letter { font-size: 50px; line-height: 1; font-weight: 900; font-stretch: 125%; }
.tier-count { font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: 0.92; }
.tier-S .tier-label { background: var(--tier-s); }
.tier-A .tier-label { background: var(--tier-a); }
.tier-B .tier-label { background: var(--tier-b); }
.tier-C .tier-label { background: var(--tier-c); color: var(--ink); }
.tier-D .tier-label { background: var(--tier-d); color: var(--ink); }
.tier-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; padding: 8px; align-content: start;
}
.tier-empty { align-self: center; color: var(--muted); font-size: 13.5px; padding: 0 8px; }
.tier-more { grid-column: 1 / -1; justify-self: start; }

/* --- Job-Kachel ----------------------------------------------------------------------- */
.job {
  position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 4px 12px;
  padding: 12px 14px 12px 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.job:hover { border-color: var(--ink-2); }
.job:hover .job-title { text-decoration: underline; text-decoration-thickness: 1px; }
.job-score {
  grid-row: 1 / span 2; align-self: start; text-align: center; font-weight: 800; font-size: 21px;
  font-variant-numeric: tabular-nums; line-height: 1; padding-top: 2px;
}
.job-score small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.job-head { min-width: 0; }
.job-title { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.job-company { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.job-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.job-body { grid-column: 2; display: grid; gap: 8px; margin-top: 4px; }
.job-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); }
.job-facts span { white-space: nowrap; }
.job-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }

.tag {
  display: inline-block; font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 4px;
  background: var(--row); color: var(--ink-2); white-space: nowrap;
}
.tag-new { background: var(--ink); color: #fff; font-weight: 700; }
.tag-status { background: #fff; border: 1px solid var(--ink-2); color: var(--ink); }
.tag-capped { background: #fff; border: 1px dashed var(--line-strong); }

/* Mini-Balken für die vier Kriterien */
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--ink-2); }
.meter b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter-track { grid-column: 1 / -1; height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.meter.is-pending .meter-fill { background: var(--line-strong); }

/* Breitenklassen (CSP-freundlich) */
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* --- Leerzustand -------------------------------------------------------------------- */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 28px; text-align: left;
  display: grid; gap: 10px; justify-items: start; max-width: 720px;
}
.empty h2 { font-size: 20px; }
.empty p { margin: 0; color: var(--ink-2); }

/* --- Detail-Schublade --------------------------------------------------------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(31, 42, 68, 0.38); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--paper); z-index: 50;
  overflow-y: auto; box-shadow: -12px 0 32px rgba(31, 42, 68, 0.18); transform: translateX(0); transition: transform 0.22s ease;
}
.drawer.is-loading { opacity: 0.6; }
.drawer-close { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px 0; background: linear-gradient(var(--paper) 70%, transparent); z-index: 1; }

.panel { padding: 4px 32px 40px; display: grid; gap: 26px; }
.panel-full { max-width: 820px; margin: 0 auto; padding: 0 0 40px; }
.panel-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.panel-tier {
  width: 72px; height: 72px; border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
}
.panel-tier b { font-size: 40px; line-height: 1; font-weight: 900; font-stretch: 125%; }
.panel-tier span { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.panel-tier.tier-S { background: var(--tier-s); }
.panel-tier.tier-A { background: var(--tier-a); }
.panel-tier.tier-B { background: var(--tier-b); }
.panel-tier.tier-C { background: var(--tier-c); color: var(--ink); }
.panel-tier.tier-D { background: var(--tier-d); color: var(--ink); }
.panel-head h2 { font-size: 23px; font-stretch: 104%; overflow-wrap: anywhere; }
.panel-head p { margin: 4px 0 0; color: var(--ink-2); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-section h3 { margin-bottom: 10px; }
.panel-section ul { margin: 0; padding-left: 20px; }
.panel-section li { margin-bottom: 3px; }
.panel-summary { font-size: 16px; line-height: 1.55; max-width: 66ch; margin: 0; }

.criteria { display: grid; gap: 14px; }
.criterion { display: grid; grid-template-columns: 120px 1fr 44px; gap: 4px 14px; align-items: center; }
.criterion-name { font-weight: 700; }
.criterion-name small { display: block; font-weight: 400; color: var(--muted); }
.criterion-bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.criterion-bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.criterion-value { font-weight: 800; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.criterion-reason { grid-column: 2 / -1; color: var(--ink-2); font-size: 14px; margin: 0; }
.rank-explain { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.inline-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.inline-field .checkline { margin: 0; }
.inline-field input[type="number"] { width: 84px; }
.hint.stat-note { margin: -14px 0 30px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.description { white-space: pre-line; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 75ch; }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 10px; }

/* --- Formulare ---------------------------------------------------------------------- */
label { font-weight: 650; display: block; margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"],
input[type="time"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 11px; min-height: 40px;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; flex: none; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.hint { font-size: 13.5px; color: var(--muted); margin: 5px 0 0; font-weight: 400; }
.label-like { display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.checkline { display: flex; align-items: center; gap: 9px; font-weight: 500; margin-bottom: 8px; cursor: pointer; }
.checkline.is-disabled { opacity: 0.55; cursor: not-allowed; }
.section {
  border: 0; border-top: 1px solid var(--line); margin: 0; padding: 26px 0 10px;
  display: grid; grid-template-columns: 260px 1fr; gap: 12px 40px;
}
.section > legend, .section-intro { padding: 0; }
.section-intro h2 { font-size: 19px; margin-bottom: 6px; }
.section-intro p { color: var(--muted); font-size: 14px; margin: 0; }
.section-body { min-width: 0; }
.savebar {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  padding: 14px 0; display: flex; gap: 12px; align-items: center; z-index: 5; margin-top: 20px;
}

.area-list { display: grid; gap: 8px; margin-bottom: 10px; }
.area-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px; cursor: pointer; font-weight: 500;
}
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cat-card .checkline { font-weight: 700; }
.cat-card textarea { min-height: 76px; font-size: 14px; }

.weights { display: grid; gap: 14px; }
.weight-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 14px; align-items: center; }
.weight-row output { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

.scale { margin: 10px 0 6px; }
.scale-bar { display: flex; height: 30px; border-radius: var(--radius); overflow: hidden; }
.scale-bar span {
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-stretch: 125%; color: #fff; min-width: 0;
  font-size: 14px; overflow: hidden;
}
.scale-bar .s-S { background: var(--tier-s); } .scale-bar .s-A { background: var(--tier-a); }
.scale-bar .s-B { background: var(--tier-b); } .scale-bar .s-C { background: var(--tier-c); color: var(--ink); }
.scale-bar .s-D { background: var(--tier-d); color: var(--ink); }
.scale-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.thresholds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 10px; font-weight: 500; cursor: pointer; }
.day:has(input:checked) { border-color: var(--ink); background: var(--row); }

/* --- Profil ------------------------------------------------------------------------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; position: sticky; top: 16px; }
.side-card h2 { font-size: 18px; }
.side-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.file-pill { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--row); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; }

/* --- Tabellen ----------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--line); padding: 9px 10px; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.table td.actions { white-space: nowrap; }
.table td.actions form { display: inline; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-fertig::before { background: var(--ok-ink); }
.status-fehler::before { background: var(--err-ink); }
.status-läuft::before { background: var(--focus); }
.log { white-space: pre-wrap; font-size: 12.5px; background: var(--row); border-radius: var(--radius); padding: 10px 12px; max-height: 320px; overflow: auto; margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 28px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }
.syslist { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 28px; }
.syslist dt { color: var(--muted); }
.syslist dd { margin: 0; }
.yes { color: var(--ok-ink); font-weight: 700; }
.no { color: var(--err-ink); font-weight: 700; }

/* --- Login ------------------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--row); display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 26px; }
.auth-art .demo-tier { display: grid; grid-template-columns: 64px 1fr; height: 64px; border-radius: var(--radius); overflow: hidden; background: #e8ebf1; }
.auth-art .demo-tier b { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 900; font-stretch: 125%; }
.auth-art .demo-tier span { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.auth-art .demo-tier i { display: block; height: 40px; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.auth-art h1 { font-size: 40px; font-stretch: 120%; font-weight: 850; max-width: 14ch; }
.auth-art p { font-size: 17px; color: var(--ink-2); max-width: 44ch; margin: 0; }
.demo-list { display: grid; gap: 6px; max-width: 520px; }
.tier-s-bg { background: var(--tier-s); }
.tier-a-bg { background: var(--tier-a); }
.tier-b-bg { background: var(--tier-b); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.auth-form form, .auth-form .auth-inner { width: min(380px, 100%); }
.auth-form h2 { font-size: 26px; margin-bottom: 18px; }

/* --- Fehlerseite ---------------------------------------------------------------------- */
.error-page { max-width: 640px; margin: 10vh auto; padding: 24px; display: grid; gap: 14px; }
.error-code { font-size: 72px; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--tier-b); }

/* --- Responsiv ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .section { grid-template-columns: 1fr; gap: 12px; }
  .profile-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px 24px; }
  .auth-art h1 { font-size: 30px; }
  .auth-form { padding: 32px 24px 48px; }
}
@media (max-width: 720px) {
  .topbar-inner { padding: 0 14px; gap: 14px; height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .page { padding: 20px 14px 56px; }
  h1 { font-size: 26px; }
  .tier { grid-template-columns: 1fr; }
  .tier-label { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 6px 12px; }
  .tier-letter { font-size: 30px; }
  .tier-items { grid-template-columns: 1fr; }
  .filters input[type="search"] { width: 100%; }
  .filter-summary { margin-left: 0; }
  .radio-cards, .cat-grid, .two-col, .thresholds { grid-template-columns: 1fr; }
  .area-row { grid-template-columns: 1fr 110px auto; }
  .panel { padding: 4px 18px 32px; }
  .criterion { grid-template-columns: 96px 1fr 40px; }
  .weight-row { grid-template-columns: 96px 1fr 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .filters, .views, .page-actions, .footer, .drawer-backdrop { display: none; }
}
