/* hoverOS – Basis-Styles (Layout, Komponenten). Theme-Overrides in theme.css. */


:root {
  --coral: #f9465b;
  --coral-soft: rgba(249, 70, 91, 0.1);
  --navy: #2c3e50;
  --navy-deep: #22313f;
  --ink: #1b2733;
  --muted: #6d7b8a;
  --faint: #9aa6b2;
  --gray: #d9d9d9;
  --gray-soft: #eceef0;
  --bg: #eceef1;
  --card: #ffffff;
  --line: rgba(44, 62, 80, 0.1);
  --line-soft: rgba(44, 62, 80, 0.06);
  --shadow-card: 0 1px 2px rgba(27, 39, 51, 0.04), 0 4px 14px rgba(27, 39, 51, 0.04);
  --shadow-pop: 0 20px 50px rgba(27, 39, 51, 0.18);
  --r-card: 10px;
  --r-ctrl: 8px;
  --font: "Thicccboi", "Avenir Next", "Segoe UI", sans-serif;
  --sidebar: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.app { display: block; min-height: 100vh; }

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: #fff;
}
.topnav__bar {
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-weight: 700; font-size: 19px; letter-spacing: -0.04em;
}
.brand__mark { width: 32px; height: 32px; border-radius: 7px; background: var(--coral); display: grid; place-items: center; flex: none; }
.brand__mark img { width: 22px; height: 12px; display: block; }

.company {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 38px; padding: 0 10px 0 6px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #fff; font-weight: 600; font-size: 13px; max-width: 180px;
}
.company:hover { background: rgba(255,255,255,0.12); }
.company__badge {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--co-color, var(--navy)); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.company__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company svg.lucide { width: 14px; height: 14px; color: rgba(255,255,255,0.5); }
.flyout--left { right: auto; left: 0; min-width: 420px; }
.co-item strong { white-space: normal; }
.flyout__sep { height: 1px; margin: 6px 4px; background: var(--line-soft); }
.co-item { align-items: center !important; }
.co-item .company__badge { width: 30px; height: 30px; font-size: 11px; }
.co-item .check { margin-left: auto; color: var(--coral); }
.co-item .check svg.lucide { width: 16px; height: 16px; color: var(--coral); }
.co-item[aria-current="true"] { background: var(--gray-soft); }
.co-item small { font-weight: 500; }
.swatch-row { display: flex; gap: 8px; height: 42px; align-items: center; }
.swatch-row button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .12s; }
.swatch-row button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* Empty states */
.empty-state {
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: 36px 20px; color: var(--muted); font-weight: 500; font-size: 14px;
}
.empty-state .empty-state__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); color: var(--muted); }
.empty-state p { max-width: 36ch; }
.empty-state .btn { margin-top: 2px; }
tbody .empty-state { padding: 40px 20px; }
.chart .empty-state { height: 220px; align-content: center; }
.grid--kpi .empty-state { grid-column: 1 / -1; }
body.is-empty .kpi__value { color: var(--faint); }
body.is-empty .kpi--coral, body.is-empty .kpi--navy { background: #fff; color: var(--ink); }
body.is-empty .kpi--coral .kpi__label, body.is-empty .kpi--navy .kpi__label, body.is-empty .kpi--coral .kpi__sub, body.is-empty .kpi--navy .kpi__sub { color: var(--muted); }
body.is-empty .kpi--coral .kpi__icon, body.is-empty .kpi--navy .kpi__icon { background: var(--gray-soft); color: var(--navy); }
.hero-empty {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; margin-bottom: 16px; border-radius: var(--r-card);
  background: var(--ink); color: #fff;
}
.hero-empty .brand__mark { width: 44px; height: 44px; border-radius: 10px; }
.hero-empty .brand__mark img { width: 28px; height: 15px; }
.hero-empty strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; white-space: normal; }
.hero-empty span:not(.brand__mark) { display: block; margin-top: 2px; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; }
.hero-empty .btn--quiet { background: #fff; color: var(--ink); border-color: transparent; }
.share { height: 6px; width: 90px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; display: inline-block; vertical-align: middle; }
.share > i { display: block; height: 100%; width: var(--fill); background: var(--navy); }
.topnav__links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav__links::-webkit-scrollbar { display: none; }
.topnav__links button {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  height: 38px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,0.65); font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.topnav__links button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.topnav__links button[aria-current="page"] { background: #fff; color: var(--ink); }
.topnav__links button svg.lucide { width: 16px; height: 16px; }
.topnav__links .cnt {
  min-width: 20px; padding: 1px 6px; border-radius: 99px; text-align: center;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
}
.topnav__links .cnt--soft { background: rgba(255,255,255,0.14); color: #fff; }
.topnav__links button[aria-current="page"] .cnt--soft { background: var(--gray-soft); color: var(--muted); }
.topnav__sep { width: 1px; height: 22px; background: rgba(255,255,255,0.15); margin: 0 2px; flex: none; }

.topnav__end { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.topnav .search { flex: none; }
.search kbd { margin-left: 4px; }
@media (max-width: 1600px) {
  .topnav .search { width: 38px; padding: 0; justify-content: center; cursor: pointer; transition: width .2s; overflow: hidden; }
  .topnav .search input, .topnav .search kbd { display: none; }
  .topnav .search.is-open { width: 220px; padding: 0 14px; justify-content: flex-start; }
  .topnav .search.is-open input { display: block; }
}
@media (max-width: 1340px) {
  .topnav .btn .label { display: none; }
  .topnav .btn { width: 38px; padding: 0; }
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; border: 0;
  display: grid; place-items: center;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 13px;
}
.avatar:hover { background: var(--gray-soft); }

.strip {
  display: flex; align-items: center; gap: 20px;
  padding: 9px 32px; font-size: 13px; font-weight: 500; color: var(--muted);
  background: #fff; border-bottom: 1px solid var(--line);
}
.strip strong { color: var(--ink); font-weight: 700; }
.strip .meter { width: 140px; height: 5px; margin: 0; }
.strip .meter > i { background: var(--coral); }
.strip__item { display: inline-flex; align-items: center; gap: 8px; }
.strip__item svg.lucide { width: 14px; height: 14px; color: var(--faint); }

/* ---------- Main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar { display: none; }
.search {
  display: flex; align-items: center; gap: 10px;
  width: 230px; height: 38px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 999px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
}
.search:focus-within { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); }
.topnav .search input { color: #fff; caret-color: var(--coral); }
.topnav .search input::placeholder { color: rgba(255,255,255,0.5); }
.topnav .search kbd { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }
.topnav .icon-btn { background: rgba(255,255,255,0.1); border-color: transparent; color: #fff; }
.topnav .icon-btn:hover { background: rgba(255,255,255,0.18); }
.topnav .icon-btn .dot { box-shadow: 0 0 0 2px var(--ink); }
.search:focus-within { border-color: var(--navy); }
.search input {
  flex: 1 1 0; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-weight: 500; appearance: none; -webkit-appearance: none;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search svg.lucide { flex: none; }
.search input::placeholder { color: var(--faint); }
.search kbd {
  flex: none; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--faint);
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px;
}
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--navy);
}
.icon-btn:hover { background: var(--gray-soft); }
.icon-btn .dot {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px;
  background: var(--coral); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn--navy { background: var(--navy); }
.btn--quiet { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--quiet:hover { background: var(--gray-soft); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--gray-soft); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg.lucide { width: 16px; height: 16px; }

.view { padding: 28px 32px 48px; display: none; }
.view.is-active { display: block; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 22px;
}
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.page-head p { margin-top: 6px; color: var(--muted); font-weight: 500; }
.page-head__actions { display: flex; gap: 8px; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--gray-soft);
}
.seg button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 13px;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,39,51,0.1); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--r-card); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card); padding: 22px; min-width: 0;
}
.card--table { overflow: hidden; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.card__head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.card__head p { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }

.grid { display: grid; gap: 16px; }
.grid--kpi { grid-template-columns: repeat(4, 1fr); }
.grid--main { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr); margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }

.kpi { position: relative; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27,39,51,0.04), 0 14px 32px rgba(27,39,51,0.09); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; }
.kpi__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi__icon {
  width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
  background: var(--gray-soft); color: var(--navy);
}
.kpi__icon svg.lucide { width: 17px; height: 17px; }
.kpi__value { display: block; margin-top: 16px; font-size: 30px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.kpi__sub { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.trend svg.lucide { width: 12px; height: 12px; stroke-width: 2.5; }
.trend--up { background: rgba(44,62,80,0.08); color: var(--navy); }
.trend--down { background: var(--coral-soft); color: var(--coral); }
.kpi--coral { background: var(--coral); color: #fff; }
.kpi--coral .kpi__label, .kpi--coral .kpi__sub { color: rgba(255,255,255,0.8); }
.kpi--coral .kpi__icon { background: rgba(255,255,255,0.18); color: #fff; }
.kpi--coral .trend { background: rgba(255,255,255,0.2); color: #fff; }
.kpi--navy { background: var(--navy); color: #fff; }
.kpi--navy .kpi__label, .kpi--navy .kpi__sub { color: rgba(255,255,255,0.62); }
.kpi--navy .kpi__icon { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Chart ---------- */
.chart { position: relative; margin-top: 6px; }
.chart > svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .bar { rx: 2; transition: opacity .15s; cursor: pointer; }
.chart .bar--in { fill: var(--navy); }
.chart .bar--out { fill: var(--gray); }
.chart .bar--plan { fill: var(--coral); opacity: 0.35; }
.chart .bar:hover { opacity: 0.75; }
.chart .axis { font-size: 12px; font-weight: 600; fill: var(--muted); }
.legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart__tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px));
  padding: 8px 12px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop);
}
.chart__tip strong { display: block; font-size: 13px; }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -22px; padding: 0 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 10px 12px 12px; border: 0; margin-bottom: 0;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--coral), 0 1px 0 var(--coral); }
.tabs button .cnt { padding: 1px 7px; border-radius: 99px; background: var(--gray-soft); font-size: 11px; font-weight: 700; color: var(--muted); }
.tabs button[aria-current="page"] .cnt { background: var(--coral-soft); color: var(--coral); }
.tabs button svg.lucide { width: 16px; height: 16px; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0 4px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500;
}
.filter span { color: var(--muted); }
.filter select { appearance: none; border: 0; background: transparent; font-weight: 700; padding: 0; cursor: pointer; outline: 0; }
.filter svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.toolbar .btn--ghost { margin-left: auto; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; table-layout: fixed; }
.table td, .table th { overflow: hidden; text-overflow: ellipsis; }
.table th {
  padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); font-weight: 500; vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .12s; }
.table tbody tr:hover td { background: #f8f9fa; }
.table tbody tr.is-selected td { background: var(--coral-soft); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table td.amount, .table td.num, .table .who { white-space: nowrap; }
.table td.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.table--compact { font-size: 13.5px; }
.table--compact td { padding: 11px 10px; }
.table--compact th { padding: 10px; }
.table .sub { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 1px; }
.table .late { color: var(--coral); font-weight: 700; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.who i {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; flex: none;
  font-style: normal; font-size: 12px; font-weight: 700; background: var(--gray-soft); color: var(--navy);
}
.row-act { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); }
.row-act:hover { background: var(--gray-soft); color: var(--ink); }
.row-act svg.lucide { width: 16px; height: 16px; }
.table__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.table__foot strong { color: var(--ink); }
.empty { padding: 36px 0; text-align: center; color: var(--muted); font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--sent { background: var(--gray-soft); color: var(--navy); }
.chip--paid { background: var(--navy); color: #fff; }
.chip--late { background: var(--coral); color: #fff; }
.chip--ask { background: var(--coral-soft); color: var(--coral); }
.chip--oral { background: var(--gray-soft); color: var(--muted); }
.chip--plan { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-soft); text-align: left; background: transparent; border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%; font: inherit; color: inherit;
}
.list__item:first-child { border-top: 0; padding-top: 4px; }
.list__item:hover strong { color: var(--coral); }
.list__item .txt strong { display: block; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; transition: color .12s; }
.list__item .txt { min-width: 0; }
.list__item .txt span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__item em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.mark { flex: none; width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; }
.mark svg.lucide { width: 17px; height: 17px; }
.mark--late { background: var(--coral-soft); color: var(--coral); }
.mark--ask { background: rgba(44,62,80,0.08); color: var(--navy); }
.mark--plan { background: var(--gray-soft); color: var(--muted); }
.mark--ok { background: var(--navy); color: #fff; }

.meter { height: 8px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; margin: 10px 0 0; }
.meter > i { display: block; height: 100%; width: var(--fill, 0%); border-radius: inherit; background: var(--navy); }
.meter--coral > i { background: var(--coral); }

/* Überschlag */
.calc { display: flex; flex-direction: column; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 500; }
.calc__row:first-child { border-top: 0; padding-top: 0; }
.calc__row em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__row em.neg { color: var(--coral); }
.calc__sum { margin-top: 10px; padding: 14px 16px; border-radius: 6px; background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.calc__sum span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.calc__sum strong { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__sum.is-neg { background: var(--coral); }

/* Einstellungen */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.settings__nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.settings__nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); text-align: left; }
.settings__nav button[aria-current="page"] { background: var(--gray-soft); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctrl);
  background: #fff; font-weight: 500; outline: 0; width: 100%;
}
.field input:focus { border-color: var(--navy); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.toggle strong { display: block; font-weight: 700; font-size: 14px; }
.toggle span { display: block; color: var(--muted); font-size: 13px; }
.switch { width: 44px; height: 26px; border-radius: 99px; border: 0; background: var(--gray); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch[aria-checked="true"] { background: var(--coral); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* ---------- Flyouts ---------- */
.menu { position: relative; }
.flyout {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  min-width: 300px; padding: 8px; border-radius: 6px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-pop);
  animation: pop .15s ease-out;
}
.flyout--sm { min-width: 220px; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.flyout__title { margin: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.flyout button, .flyout a {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); text-align: left; text-decoration: none; font-size: 14px; font-weight: 600;
}
.flyout button:hover, .flyout a:hover { background: var(--gray-soft); }
.flyout strong { display: block; font-weight: 700; }
.flyout small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.flyout svg.lucide { color: var(--navy); margin-top: 1px; }
.flyout .mark { width: 32px; height: 32px; border-radius: 6px; }
.flyout .mark svg.lucide { margin: 0; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(27, 39, 51, 0.35); backdrop-filter: blur(2px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 51; width: 440px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop);
  animation: slide .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.drawer__head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.drawer__head p { color: var(--muted); font-weight: 500; font-size: 14px; margin-top: 2px; }
.drawer__close { margin-left: auto; }
.drawer__body { padding: 20px 22px; overflow: auto; flex: 1; display: grid; gap: 18px; align-content: start; }
.drawer__amount { font-size: 38px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 600; }
.timeline { display: grid; gap: 0; }
.timeline div { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.timeline div::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.timeline div::after { content: ""; position: absolute; left: 8.5px; top: 14px; bottom: -2px; width: 1px; background: var(--line); }
.timeline div:last-child::after { display: none; }
.timeline div.is-done::before { background: var(--navy); }
.timeline div.is-hot::before { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.timeline strong { display: block; font-weight: 700; }
.timeline span { color: var(--muted); font-weight: 500; }
.drawer__foot { display: flex; gap: 8px; padding: 16px 22px 22px; border-top: 1px solid var(--line-soft); }
.drawer__foot .btn { flex: 1; }

/* ---------- Modal ---------- */
#modal-root, #modal-plan, #modal-firma, #modal-drop, #modal-plus {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 12px;
}
.modal {
  position: relative; z-index: 51;
  width: 560px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop); padding: 26px;
  animation: fade .15s ease-out;
}
.modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 18px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-pop);
  animation: toast-in .18s ease-out;
  will-change: transform;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast svg.lucide { color: var(--coral); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid--kpi { grid-template-columns: repeat(2, 1fr); }
  .grid--main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topnav__bar { height: auto; flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
  .topnav__links { order: 3; width: 100%; overflow-x: auto; }
  .topnav__sep { display: none; }
  .search { width: 100%; }
  .strip { display: none; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; }
  .grid--kpi { grid-template-columns: 1fr; }
  .company__name { display: none; }
  .settings { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}

/* ---------- Ausgaben: Status-Selects, Toggles, Gruppen ---------- */
.chip-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; height: 28px; padding: 0 26px 0 12px; border: 0; border-radius: 99px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: -0.01em; outline: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.chip-select[data-v="offen"], .chip-select[data-v="ausstehend"] { background-color: var(--coral-soft); color: var(--coral); }
.chip-select[data-v="angezahlt"] { background-color: #fff3d6; color: #8a5a00; }
.chip-select[data-v="abgeschlossen"], .chip-select[data-v="bezahlt"], .chip-select[data-v="zurueck"] { background-color: var(--navy); color: #fff; }
.chip-select[data-v="geplant"] { background-color: var(--gray-soft); color: var(--navy); }
.chip-select:focus-visible { box-shadow: 0 0 0 2px var(--coral); }

.tick {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: transparent;
  display: inline-grid; place-items: center; cursor: pointer;
}
.tick[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tick svg.lucide { width: 14px; height: 14px; stroke-width: 3; }

.group-row td {
  padding: 18px 12px 6px; border-bottom: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  background: transparent !important; cursor: default;
}
.group-row td span { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 8px; }
.table tbody tr.static { cursor: default; }
.table tbody tr.static:hover td { background: transparent; }
.sum-row td { font-weight: 700; border-top: 2px solid var(--line); background: transparent !important; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 16px 0 6px; }
.summary div { padding: 12px 14px; border-radius: var(--r-ctrl); background: var(--bg); }
.summary span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.summary strong { display: block; margin-top: 2px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.summary strong.neg { color: var(--coral); }
.part { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 6px; background: var(--gray-soft); font-size: 12px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.part svg.lucide { width: 12px; height: 12px; color: var(--muted); }
.add-part { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px dashed var(--line); border-radius: 6px; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); }
.add-part:hover { color: var(--ink); border-color: var(--navy); }
.add-part svg.lucide { width: 12px; height: 12px; }
.cell-note { color: var(--muted); font-size: 12px; font-weight: 500; }
.ausg-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 8px 0 0; border-radius: var(--r-ctrl); background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 500; }
.ausg-note svg.lucide { width: 15px; height: 15px; color: var(--navy); }

/* ---------- Liquidität ---------- */
.legend--liq { margin: 0 0 14px; }
.lc { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lc--paid { background: var(--navy); } .lc--sent { background: #cfd6dd; } .lc--plan { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.lc--ask { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); } .lc--oral { background: #e9ddf5; } .lc--late { background: var(--coral); }
.liq-wrap { overflow: visible; }
.liq { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.liq th, .liq td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.liq thead th { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); padding: 10px 12px; background: transparent; }
.liq thead th:first-child { text-align: left; width: 220px; }
.liq thead th.is-now { color: var(--faint); }
.now-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }
.liq thead th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); font-size: 11px; }
.liq th.row-head { text-align: left; font-weight: 600; white-space: normal; }
.liq th.row-head small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.liq td { text-align: right; font-variant-numeric: tabular-nums; }
.liq tr.tot td, .liq tr.tot th { font-weight: 700; background: transparent; }
.liq tr.tot--in td { color: var(--navy); }
.liq tr.tot--out td { color: var(--coral); }
.liq tr.tot--diff td { border-top: 1px solid var(--line); }
.liq tr.tot--bal td, .liq tr.tot--bal th { background: transparent; color: inherit; border-top: 1px solid var(--line); }
.liq tr.tot--bal td.neg { color: var(--coral); }
.liq tr.sec th, .liq tr.sec td { padding: 16px 10px 6px; background: #fff; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.liq tr.sec th span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 8px; }
.lcell {
  display: block; text-align: left; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; margin: 2px 0;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.lcell:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--navy), 0 4px 10px rgba(27,39,51,0.08); }
.lcell strong { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.lcell span { display: block; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lcell--bezahlt { background: var(--navy); color: #fff; box-shadow: none; } .lcell--bezahlt span { color: rgba(255,255,255,0.65); }
.lcell--gestellt { background: #e4e8ec; box-shadow: none; }
.lcell--geplant { border: 0; }
.lcell--frage { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
.lcell--muendlich { background: #e9ddf5; box-shadow: none; }
.lcell--ueberfaellig { background: var(--coral); color: #fff; box-shadow: none; } .lcell--ueberfaellig span { color: rgba(255,255,255,0.75); }
.lcell--out { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-soft); color: var(--muted); cursor: default; }
.lcell--out:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--line-soft); }
.lcell--out strong { color: var(--ink); }
.lcell--fix { background: var(--bg); box-shadow: none; }
.liq td.is-now { background: rgba(249,70,91,0.035); }

/* ---------- Projekte / Team ---------- */
.pbar { display: flex; align-items: center; gap: 8px; }
.pbar .meter { width: 90px; margin: 0; height: 6px; }
.pbar small { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.meter--warn > i { background: #e0a100; } .meter--over > i { background: var(--coral); }
.avatars { display: inline-flex; }
.avatars i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--navy); color: #fff; margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.avatars i:first-child { margin-left: 0; } .avatars i.ext { background: #fff; color: var(--navy); box-shadow: 0 0 0 2px #fff, inset 0 0 0 1.5px var(--navy); }
.plan-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.plan-dots i { width: 9px; height: 9px; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.plan-dots i.gestellt { background: #cfd6dd; box-shadow: none; } .plan-dots i.bezahlt { background: var(--navy); box-shadow: none; } .plan-dots i.ueberfaellig { background: var(--coral); box-shadow: none; }
.chip--laufend { background: var(--navy); color: #fff; } .chip--angebot { background: var(--coral-soft); color: var(--coral); } .chip--abgeschlossen { background: var(--gray-soft); color: var(--muted); }
.marge { font-weight: 700; } .marge.low { color: var(--coral); }

/* Projekt-Drawer */
.drawer--wide { width: 560px; }
.pd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-kpis div { padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--bg); }
.pd-kpis span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pd-kpis strong { display: block; margin-top: 2px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-h { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.pd-h .btn { text-transform: none; letter-spacing: 0; }
.leist { border: 1px solid var(--line-soft); border-radius: var(--r-ctrl); padding: 10px 12px; margin-bottom: 8px; }
.leist__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.leist__head small { color: var(--muted); font-weight: 600; font-size: 12px; }
.leist__grid { display: grid; grid-template-columns: 1fr 64px 88px 96px; gap: 8px 12px; align-items: center; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.leist__grid .h { font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.leist__grid .r { text-align: right; color: var(--ink); font-weight: 400; }
.leist__grid .who { font-weight: 400; gap: 8px; min-width: 0; }
.leist__grid .is-over { color: var(--coral); }
.pd-inv { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.pd-inv:first-of-type { border-top: 0; }
.pd-inv .num { font-weight: 700; }
.pd-inv .when { color: var(--muted); font-weight: 600; }
.pd-inv .btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.action-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.action-row:first-child { border-top: 0; padding-top: 4px; }
.action-row strong { display: block; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.action-row span:not(.mark) { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.action-row .mark { display: grid; place-items: center; }
.action-row .btn--sm { height: 30px; padding: 0 12px; font-size: 12px; }
.topnav__links .cnt { display: none; }

.legend .lg-in { background: var(--navy); }
.legend .lg-out { background: var(--gray); }
.meter--space { margin-top: 14px; }
.fine { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.grid--spaced { margin-bottom: 16px; }
.toolbar--flush { padding-top: 0; }
.grid--flush { margin-top: 0; }
.kpi--static { cursor: default; }
.label-block { display: block; margin-bottom: 10px; }
.modal__lead { color: var(--muted); margin: -10px 0 18px; }
.field--full { grid-column: 1 / -1; }
.share-pct { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions--loose { gap: 8px; }
.drawer-jump { margin: -6px 0 0 -12px; }
.budget-of { font-size: 11px; color: var(--muted); font-weight: 300; }
.ausg-note--gap { margin-top: 10px; }
#d-custom:not([hidden]) { display: grid; gap: 18px; }
.table--home col:nth-child(1) { width: 24%; } .table--home col:nth-child(2) { width: 22%; } .table--home col:nth-child(3) { width: 16%; } .table--home col:nth-child(4) { width: 16%; } .table--home col:nth-child(5) { width: 16%; } .table--home col:nth-child(6) { width: 6%; }
.table--einnahmen col:nth-child(1) { width: 16%; } .table--einnahmen col:nth-child(2) { width: 18%; } .table--einnahmen col:nth-child(3) { width: 13%; } .table--einnahmen col:nth-child(4) { width: 12%; } .table--einnahmen col:nth-child(5) { width: 13%; } .table--einnahmen col:nth-child(6) { width: 12%; } .table--einnahmen col:nth-child(7) { width: 12%; } .table--einnahmen col:nth-child(8) { width: 4%; }
.table--laufend col:nth-child(1) { width: 28%; } .table--laufend col:nth-child(2) { width: 16%; } .table--laufend col:nth-child(3) { width: 14%; } .table--laufend col:nth-child(4) { width: 12%; } .table--laufend col:nth-child(5) { width: 14%; } .table--laufend col:nth-child(6) { width: 16%; }
.table--gehalt col:nth-child(1) { width: 28%; } .table--gehalt col:nth-child(2) { width: 16%; } .table--gehalt col:nth-child(3) { width: 16%; } .table--gehalt col:nth-child(4) { width: 18%; } .table--gehalt col:nth-child(5) { width: 22%; }
.table--fremd col:nth-child(1) { width: 16%; } .table--fremd col:nth-child(2) { width: 16%; } .table--fremd col:nth-child(3) { width: 22%; } .table--fremd col:nth-child(4) { width: 16%; } .table--fremd col:nth-child(5) { width: 14%; } .table--fremd col:nth-child(6) { width: 16%; }
.table--kredit col:nth-child(1) { width: 14%; } .table--kredit col:nth-child(2) { width: 16%; } .table--kredit col:nth-child(3) { width: 14%; } .table--kredit col:nth-child(4) { width: 18%; } .table--kredit col:nth-child(5) { width: 22%; } .table--kredit col:nth-child(6) { width: 16%; }
.table--auslage col:nth-child(1) { width: 34%; } .table--auslage col:nth-child(2) { width: 16%; } .table--auslage col:nth-child(3) { width: 12%; } .table--auslage col:nth-child(4) { width: 18%; } .table--auslage col:nth-child(5) { width: 20%; }
.table--projekte col:nth-child(1) { width: 18%; } .table--projekte col:nth-child(2) { width: 11%; } .table--projekte col:nth-child(3) { width: 12%; } .table--projekte col:nth-child(4) { width: 13%; } .table--projekte col:nth-child(5) { width: 16%; } .table--projekte col:nth-child(6) { width: 13%; } .table--projekte col:nth-child(7) { width: 9%; } .table--projekte col:nth-child(8) { width: 5%; } .table--projekte col:nth-child(9) { width: 3%; }
.table--team col:nth-child(1) { width: 16%; } .table--team col:nth-child(2) { width: 15%; } .table--team col:nth-child(3) { width: 18%; } .table--team col:nth-child(4) { width: 11%; } .table--team col:nth-child(5) { width: 12%; } .table--team col:nth-child(6) { width: 18%; } .table--team col:nth-child(7) { width: 6%; } .table--team col:nth-child(8) { width: 4%; }
.table--kunden col:nth-child(1) { width: 18%; } .table--kunden col:nth-child(2) { width: 8%; } .table--kunden col:nth-child(3) { width: 10%; } .table--kunden col:nth-child(4) { width: 13%; } .table--kunden col:nth-child(5) { width: 12%; } .table--kunden col:nth-child(6) { width: 11%; } .table--kunden col:nth-child(7) { width: 12%; } .table--kunden col:nth-child(8) { width: 12%; } .table--kunden col:nth-child(9) { width: 4%; }
.table--zugang col:nth-child(1) { width: 18%; } .table--zugang col:nth-child(2) { width: 16%; } .table--zugang col:nth-child(3) { width: 42%; } .table--zugang col:nth-child(4) { width: 24%; }

.dot.c0 { --c: #e5533f; }
.dot.c1 { --c: #2f80ed; }
.dot.c2 { --c: #27ae60; }
.dot.c3 { --c: #f2994a; }
.dot.c4 { --c: #9b51e0; }
.dot.c5 { --c: #eb5a9d; }
.dot.c6 { --c: #00a3bf; }
.dot.c7 { --c: #8d6e63; }
.dot.c8 { --c: #6c8e2a; }
.dot.c9 { --c: #c9a227; }
.dot.c10 { --c: #3d5a80; }
.dot.c11 { --c: #d35400; }
.fill-0 { --fill: 0%; }
.fill-1 { --fill: 1%; }
.fill-2 { --fill: 2%; }
.fill-3 { --fill: 3%; }
.fill-4 { --fill: 4%; }
.fill-5 { --fill: 5%; }
.fill-6 { --fill: 6%; }
.fill-7 { --fill: 7%; }
.fill-8 { --fill: 8%; }
.fill-9 { --fill: 9%; }
.fill-10 { --fill: 10%; }
.fill-11 { --fill: 11%; }
.fill-12 { --fill: 12%; }
.fill-13 { --fill: 13%; }
.fill-14 { --fill: 14%; }
.fill-15 { --fill: 15%; }
.fill-16 { --fill: 16%; }
.fill-17 { --fill: 17%; }
.fill-18 { --fill: 18%; }
.fill-19 { --fill: 19%; }
.fill-20 { --fill: 20%; }
.fill-21 { --fill: 21%; }
.fill-22 { --fill: 22%; }
.fill-23 { --fill: 23%; }
.fill-24 { --fill: 24%; }
.fill-25 { --fill: 25%; }
.fill-26 { --fill: 26%; }
.fill-27 { --fill: 27%; }
.fill-28 { --fill: 28%; }
.fill-29 { --fill: 29%; }
.fill-30 { --fill: 30%; }
.fill-31 { --fill: 31%; }
.fill-32 { --fill: 32%; }
.fill-33 { --fill: 33%; }
.fill-34 { --fill: 34%; }
.fill-35 { --fill: 35%; }
.fill-36 { --fill: 36%; }
.fill-37 { --fill: 37%; }
.fill-38 { --fill: 38%; }
.fill-39 { --fill: 39%; }
.fill-40 { --fill: 40%; }
.fill-41 { --fill: 41%; }
.fill-42 { --fill: 42%; }
.fill-43 { --fill: 43%; }
.fill-44 { --fill: 44%; }
.fill-45 { --fill: 45%; }
.fill-46 { --fill: 46%; }
.fill-47 { --fill: 47%; }
.fill-48 { --fill: 48%; }
.fill-49 { --fill: 49%; }
.fill-50 { --fill: 50%; }
.fill-51 { --fill: 51%; }
.fill-52 { --fill: 52%; }
.fill-53 { --fill: 53%; }
.fill-54 { --fill: 54%; }
.fill-55 { --fill: 55%; }
.fill-56 { --fill: 56%; }
.fill-57 { --fill: 57%; }
.fill-58 { --fill: 58%; }
.fill-59 { --fill: 59%; }
.fill-60 { --fill: 60%; }
.fill-61 { --fill: 61%; }
.fill-62 { --fill: 62%; }
.fill-63 { --fill: 63%; }
.fill-64 { --fill: 64%; }
.fill-65 { --fill: 65%; }
.fill-66 { --fill: 66%; }
.fill-67 { --fill: 67%; }
.fill-68 { --fill: 68%; }
.fill-69 { --fill: 69%; }
.fill-70 { --fill: 70%; }
.fill-71 { --fill: 71%; }
.fill-72 { --fill: 72%; }
.fill-73 { --fill: 73%; }
.fill-74 { --fill: 74%; }
.fill-75 { --fill: 75%; }
.fill-76 { --fill: 76%; }
.fill-77 { --fill: 77%; }
.fill-78 { --fill: 78%; }
.fill-79 { --fill: 79%; }
.fill-80 { --fill: 80%; }
.fill-81 { --fill: 81%; }
.fill-82 { --fill: 82%; }
.fill-83 { --fill: 83%; }
.fill-84 { --fill: 84%; }
.fill-85 { --fill: 85%; }
.fill-86 { --fill: 86%; }
.fill-87 { --fill: 87%; }
.fill-88 { --fill: 88%; }
.fill-89 { --fill: 89%; }
.fill-90 { --fill: 90%; }
.fill-91 { --fill: 91%; }
.fill-92 { --fill: 92%; }
.fill-93 { --fill: 93%; }
.fill-94 { --fill: 94%; }
.fill-95 { --fill: 95%; }
.fill-96 { --fill: 96%; }
.fill-97 { --fill: 97%; }
.fill-98 { --fill: 98%; }
.fill-99 { --fill: 99%; }
.fill-100 { --fill: 100%; }

/* Instanz-PIN */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: #e5533f; color: #fff; padding: 24px;
}
.gate__card {
  position: relative;
  display: grid; justify-items: center; gap: 28px;
  margin: 0; padding: 0;
  background: transparent; border: 0;
}
.gate__mark { width: min(46vw, 200px); height: auto; display: block; }
.gate__copy { display: grid; justify-items: center; gap: 6px; text-align: center; }
.gate__copy h1 { margin: 0; color: #fff; font-size: 28px; font-weight: 300; letter-spacing: -0.04em; }
.gate__copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 300; }
.gate__err { margin: -12px 0 0; color: #fff; font-size: 13px; font-weight: 400; }
.pin { display: flex; gap: 10px; }
.pin i {
  width: 52px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.75); border-radius: var(--r-ctrl); background: transparent;
}
.pin i.is-on::before { content: ""; width: 8px; height: 8px; background: #fff; }
.gate__card:focus-within .pin i { border-color: #fff; }
.pin__field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; cursor: text; color: transparent;
}
