/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .12s var(--ease), background-color .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: var(--surface-2); color: var(--accent); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--small { min-height: 34px; padding: 0 12px; font-size: 15px; border-radius: 9px; }
.btn--block { width: 100%; }

.iconbtn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn:active { transform: scale(.94); }
.iconbtn.is-on { color: var(--accent); }
.iconbtn.is-on svg { fill: currentColor; }
.iconbtn--small { width: 36px; height: 36px; border-radius: 10px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions--end { justify-content: flex-end; }
.actions > .btn { flex: 1 1 auto; }

/* ---- Karten und Abstände ---------------------------------------------- */

.stack > * + * { margin-top: 12px; }
.stack--l > * + * { margin-top: 20px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
}
.section-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.card__title { margin-bottom: 12px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card__head .card__title { margin: 0; }
.section-label { margin: 28px 4px 10px; }

.hero {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.hero__label { font-size: 15px; color: var(--text-2); font-weight: 500; }
.hero__value {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(30px, 9.5vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero__sub { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.hero--text .hero__value { font-size: clamp(22px, 6.6vw, 28px); letter-spacing: -.01em; line-height: 1.2; }
.hero--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.hero--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.hero--bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* ---- Felder ------------------------------------------------------------ */

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  align-items: start;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); padding-left: 4px; }
.field__box {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__box input,
.field__box select,
.field__box textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.field__box textarea { min-height: 96px; resize: vertical; line-height: 1.4; font-size: 15.5px; }
.field__box select { cursor: pointer; }
.field__box select option { background: var(--surface); color: var(--text); }
.field__box input::placeholder, .field__box textarea::placeholder { color: var(--text-3); opacity: 1; }
.field__box input[type="date"] { min-height: 24px; }
.field__unit { padding-left: 8px; font-size: 14px; color: var(--text-3); white-space: nowrap; }
.field__hint { font-size: 12.5px; color: var(--text-3); }
.field__value { margin-left: 8px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.field.is-invalid .field__box { border-color: var(--bad); }
.field--mono input, .field--mono textarea { font-family: var(--font-mono); font-size: 14.5px; }

.form-error { min-height: 20px; font-size: 14px; color: var(--bad); }
.form-error:empty { display: none; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); cursor: pointer; }
.switch__text { font-size: 17px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  flex: none;
  width: 51px;
  height: 31px;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background-color .18s;
}
.switch__track::after {
  content: "";
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
  transition: transform .18s var(--ease);
}
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(118, 118, 128, .24);
  border-radius: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg--wrap { flex-wrap: wrap; overflow: visible; }
.seg--wrap .seg__btn { flex: 1 1 auto; }
.seg__btn {
  flex: 1 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { background: #FFFFFF; font-weight: 600; box-shadow: var(--shadow-seg); }
:root[data-theme="dark"] .seg__btn[aria-selected="true"], :root[data-theme="dark"] .seg__btn[aria-pressed="true"] { background: #636366; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }

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

.results { margin: 0; }
.results__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: .5px solid var(--line);
}
.results__row:first-child { padding-top: 0; }
.results__row:last-child { padding-bottom: 0; border-bottom: 0; }
.results dt { font-size: 16px; color: var(--text-2); }
.results dd { margin: 0; text-align: right; font-weight: 590; font-variant-numeric: tabular-nums; }
.results__row--big dd { font-size: 26px; font-weight: 720; letter-spacing: -.015em; line-height: 1.15; }
.results__sub { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }
.results__row.is-copyable { cursor: copy; }

.tone-ok { color: var(--ok); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }
.tone-accent { color: var(--accent); }
.tone-muted { color: var(--text-3); }

.note { font-size: 15px; line-height: 1.4; color: var(--text-2); }
.note--small { font-size: 13px; color: var(--text-2); }

.callout {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.callout svg { margin-top: 1px; color: var(--text-3); }
.callout--warn { background: var(--warn-soft); color: var(--text); }
.callout--warn svg { color: var(--warn); }
.callout--bad { background: var(--bad-soft); color: var(--text); }
.callout--bad svg { color: var(--bad); }
.callout--ok { background: var(--ok-soft); color: var(--text); }
.callout--ok svg { color: var(--ok); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--accent { background: var(--accent-soft); color: var(--accent); }

.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease); }
.bar--ok > i { background: var(--ok); }
.bar--bad > i { background: var(--bad); }

/* ---- Listen und Tabellen ---------------------------------------------- */

.list { list-style: none; margin: 0; padding: 0; }
.list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: .5px solid var(--line);
}
.list__item:first-child { padding-top: 0; }
.list__item:last-child { padding-bottom: 0; border-bottom: 0; }
.list__item--tap { cursor: pointer; }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 500; line-height: 1.3; }
.list__sub { margin-top: 2px; font-size: 14px; color: var(--text-2); line-height: 1.35; }
.list__value { text-align: right; font-weight: 590; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list__value small { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }

.list-heading { margin: 20px 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.list-heading:first-child { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.table th {
  padding: 8px 8px 8px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}
.table td { padding: 9px 8px 9px 0; border-bottom: .5px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; padding-right: 0; padding-left: 8px; white-space: nowrap; }
.table tr.is-strong td { font-weight: 700; }
.table tr.is-muted td { color: var(--text-3); }

.empty { padding: 28px 12px; text-align: center; color: var(--text-2); }
.empty__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

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

.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); margin-bottom: 20px; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  background: rgba(118, 118, 128, .24);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-2);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 17px;
}
.search--big { height: 46px; border-radius: 12px; }
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 12px var(--font-mono);
  color: var(--text-3);
}

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.example {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: 14px var(--font-mono);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.example:hover { background: var(--surface-2); }

.quick-list { display: grid; gap: 8px; margin-top: 10px; }
.quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.quick__label { font-size: 13px; color: var(--text-2); }
.quick__value { font-size: 21px; font-weight: 720; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.quick__go { color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 108px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .12s var(--ease), border-color .15s, background-color .15s;
}
.tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tile:active { transform: scale(.98); }
.tile__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  transition: background-color .15s, color .15s;
}
.tile:hover .tile__icon { background: var(--accent); color: var(--accent-ink); }
.tile__title { font-size: 15px; font-weight: 650; line-height: 1.25; }
.tile__sub {
  margin-top: -6px;
  font-size: 12.5px;
  line-height: 1.32;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__badge { position: absolute; top: 12px; right: 12px; color: var(--text-3); }
.tile.is-first { border-color: var(--accent-line); }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 650;
}

/* ---- Seitenleiste (Desktop) ------------------------------------------- */

.sidebar__head { padding: 2px 10px 22px; }
.nav__label { margin: 18px 10px 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .12s, color .12s;
}
.nav__link:hover { background: var(--surface-2); color: var(--text); }
.nav__link[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }
.nav__link[aria-current="page"] .cell__icon { background: rgba(255, 255, 255, .22) !important; }
.nav__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__foot { margin-top: auto; padding-top: 14px; }

/* ---- Anmeldung --------------------------------------------------------- */

.login {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}
.login__box { width: 100%; max-width: 380px; }
.login__mark { margin-bottom: 34px; }
.login__mark .wordmark { font-size: 44px; }
.login__text { margin-bottom: 18px; color: var(--text-2); }
.login__error { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--bad); }

/* ---- Dialoge und Hinweise --------------------------------------------- */

dialog.sheet {
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg-raise);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .24s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .58); }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: 14px; }
  dialog.sheet[open] { animation-name: rise; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 4px 18px; }
.sheet__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sheet__body { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 620;
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  animation: rise .2s var(--ease) both;
}
.toast--bad { background: var(--bad); color: #1a0806; }
.toast button { border: 0; background: none; color: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; padding: 4px; }

.mono { font-family: var(--font-mono); font-size: .93em; }
.muted { color: var(--text-2); }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* ---- Konto anlegen, Einrichtung, Startseite wählen -------------------------- */
.login--wide .login__box { max-width: 520px; }
.login__switch { margin-top: 16px; text-align: center; }
.linkbtn { border: 0; background: none; padding: 8px; color: var(--text-2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.onboarding__title { font-size: 26px; font-weight: 740; letter-spacing: -.015em; line-height: 1.15; }

.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--text-2);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.pick__icon { display: grid; place-items: center; color: var(--text-3); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 620; }
.pick[aria-pressed="true"] .pick__icon { color: var(--accent); }

.account { align-items: flex-start; }
.account__tools { margin-top: 4px; }
.account__tools .switch { min-height: 40px; }

.form-heading { margin: 10px 0 -4px; color: var(--accent); }
.form-heading:first-child { margin-top: 0; }

/* ---- Belege ------------------------------------------------------------------- */
.attach { display: grid; gap: 8px; }
.attach__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.attach__item {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--field);
  color: var(--text-2);
  overflow: hidden;
  cursor: pointer;
}
.attach__item img { width: 100%; height: 100%; object-fit: cover; }
.attach__doc, .attach__add { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; }
.attach__add { border-style: dashed; color: var(--accent); }
.attach__item--busy { cursor: progress; background: linear-gradient(90deg, var(--surface-2), var(--field), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.viewer { display: grid; place-items: center; min-height: 160px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.viewer img { display: block; max-width: 100%; max-height: 62dvh; object-fit: contain; }
.viewer--file { gap: 8px; padding: 24px; color: var(--text-2); text-align: center; }

/* ---- Gruppierte Listen (wie iOS-Einstellungen) ---------------------------------- */

.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.group + .group { margin-top: 20px; }
.group-head { margin: 26px 16px 7px; font-size: 13px; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; }
.group-head:first-child { margin-top: 4px; }
.group-foot { margin: 7px 16px 0; font-size: 13px; color: var(--text-2); }

.cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px 8px 16px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s;
}
.cell:active { background: var(--surface-2); }
@media (hover: hover) { .cell:hover { background: var(--surface-2); } }
.cell + .cell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 58px;
  border-top: .5px solid var(--line);
}
.cell--plain + .cell::before, .cell + .cell--plain::before { left: 16px; }
.cell__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--c-gray);
  color: #fff;
}
.cell__icon svg { width: 18px; height: 18px; stroke-width: 2.1; }
.cell__main { flex: 1; min-width: 0; }
.cell__title { font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__sub { margin-top: 1px; font-size: 14px; line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__value { flex: none; max-width: 45%; font-size: 17px; color: var(--text-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cell__value.tone-ok { color: var(--ok); } .cell__value.tone-warn { color: #FF9F0A; } .cell__value.tone-bad { color: var(--bad); }
.cell__chev { flex: none; display: grid; color: var(--text-3); margin-right: -4px; }
.cell__chev svg { width: 18px; height: 18px; stroke-width: 2.6; }

.ic-alltag { background: var(--c-alltag) !important; }
.ic-schule { background: var(--c-schule) !important; }
.ic-arbeit { background: var(--c-arbeit) !important; }
.ic-technik { background: var(--c-technik) !important; }
.ic-ok { background: var(--ok) !important; }
.ic-bad { background: var(--bad) !important; }
.ic-warn { background: #FF9F0A !important; }
.ic-blue { background: #0A84FF !important; }
.ic-teal { background: #30B0C7 !important; }
.ic-indigo { background: #5E5CE6 !important; }
.ic-pink { background: #FF375F !important; }
.ic-brown { background: #A2845E !important; }
.ic-gray { background: var(--c-gray) !important; }

/* ---- App-Symbole (angeheftet) --------------------------------------------------- */

.appgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; padding: 16px 8px; background: var(--surface); border-radius: var(--radius-l); }
@media (min-width: 600px) { .appgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.appicon { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--text); text-decoration: none; }
.appicon__img { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--c-gray); color: #fff; transition: transform .12s var(--ease); }
.appicon__img svg { width: 28px; height: 28px; stroke-width: 1.9; }
.appicon:active .appicon__img { transform: scale(.92); }
.appicon__name { max-width: 100%; font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Widgets der Startseite ----------------------------------------------------- */

.widgets { display: grid; gap: 12px; }
@media (min-width: 700px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .widget--wide { grid-column: 1 / -1; } }
.widget { display: block; min-width: 0; padding: 14px 16px 16px; background: var(--surface); border-radius: var(--radius-l); color: var(--text); text-decoration: none; transition: transform .12s var(--ease); }
a.widget:active { transform: scale(.985); }
.widget__head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.widget__head .cell__icon { width: 24px; height: 24px; border-radius: 6px; }
.widget__head .cell__icon svg { width: 15px; height: 15px; }
.widget__head .grow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget__big { margin-top: 10px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.widget__sub { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.widget__rows { margin-top: 12px; display: grid; gap: 9px; }
.widget__row { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.widget__row .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget__row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.widget__empty { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c-gray); }
.dot--ok { background: var(--ok); }
.dot--warn { background: #FF9F0A; }
.dot--bad { background: var(--bad); }
.dot--accent { background: var(--accent); }

/* ---- Fahrzeug-Kopf im Bereich Auto ------------------------------------------------ */

.carhead { padding: 16px; background: var(--surface); border-radius: var(--radius-l); }
.carhead__top { display: flex; align-items: center; gap: 14px; }
.carhead__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--c-alltag); color: #fff; }
.carhead__icon svg { width: 30px; height: 30px; }
.carhead__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.carhead__sub { margin-top: 2px; font-size: 15px; color: var(--text-2); }
.carhead__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.carhead__stat { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.carhead__stat b { display: block; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carhead__stat span { font-size: 12.5px; color: var(--text-2); }
.carhead__stat.tone-bad b { color: var(--bad); } .carhead__stat.tone-warn b { color: #FF9F0A; } .carhead__stat.tone-ok b { color: var(--ok); }

.cell__check { flex: none; display: grid; color: var(--accent); visibility: hidden; }
.cell[aria-pressed="true"] .cell__check { visibility: visible; }

/* ---- Schnellaktionen auf der Übersicht ------------------------------------------ */
.quickactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.quickaction { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; transition: transform .12s var(--ease); }
.quickaction:active { transform: scale(.95); }
.quickaction__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
