/* SORENTO Testclient DEV-008 – schlicht und dunkel. Akzent #16605A nur für Flächen und Rahmen. */
:root {
  --bg: #08090a;
  --panel: #121516;
  --panel-2: #0c0e0f;
  --line: #2b3234;
  --text: #f4f6f6;
  --muted: #bcc4c5;
  --accent: #16605A;
  --accent-edge: #1f8077;
  --accent-surface: #0e2a27;
  --warn: #d6a33f;
  --err: #d65a50;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; }
h1 { font-size: 21px; }
h2 { font-size: 17px; }
h3 { font-size: 16px; }
h4 { font-size: 15px; }
p { margin: 0 0 6px; }
ul { margin: 4px 0 8px; padding-left: 20px; }

/* ---------- Kopfzeile, dauerhaft sichtbar ---------- */
.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  border-bottom: 3px solid var(--accent);
  padding: 10px 16px 8px;
}
.topbar-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.who { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.tab-on { background: var(--accent); border-color: var(--accent-edge); }
.tab-quiet { margin-left: auto; }

/* ---------- Grundlayout ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 420px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.head-row { justify-content: space-between; }
.head-row h1 { margin: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }

/* ---------- Karten ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 12px;
  min-width: 0;
}
.card-warn { border-left-color: var(--warn); }
.sub { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.sub-warn { border-left: 3px solid var(--warn); padding-left: 8px; }

.kv .k { color: var(--muted); }
.kv-warn { border-left: 3px solid var(--warn); padding-left: 8px; }

.task-id { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.task-title { font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 14px;
  background: var(--panel-2);
  max-width: 100%;
}

/* ---------- Meldungen ---------- */
.msg {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--panel-2);
}
.msg-info { border-left-color: var(--line); }
.msg-ok { border-left-color: var(--accent-edge); }
.msg-warn { border-left-color: var(--warn); }
.msg-error { border-left-color: var(--err); }
.out:empty { display: none; }

/* ---------- Bedienelemente ---------- */
.btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent-edge);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}
.btn-quiet { background: transparent; border-color: var(--accent); }
.btn:disabled, .tab:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, .tab:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.field { display: block; margin: 0 0 12px; }
.field .k { display: block; margin-bottom: 4px; color: var(--muted); font-size: 14px; }
input, select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #3c4749;
  border-radius: 6px;
  background: #030404;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.row input.date { flex: 1 1 150px; width: auto; }
#login-form .btn { width: 100%; }

/* ---------- Vorschläge, Bestätigung, Aufträge ---------- */
.props { margin-top: 8px; }
.prop { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.confirm {
  background: var(--accent-surface);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
}
.docs li { margin: 2px 0; }
.job {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--panel-2);
}
.job-warn { border-left-color: var(--warn); }
.job-err { border-left-color: var(--err); }
.result-link {
  display: inline-block;
  color: #fff;
  text-decoration: underline;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
}

@media (max-width: 480px) {
  .wrap { padding: 12px 16px; }
  .topbar-title { font-size: 14px; }
  .row .btn { flex: 1 1 auto; }
  .row input.date { flex: 1 1 100%; }
}
