/* =============================================================================
   Einkaufsliste — Web-App
   Dieselben Tokens wie die Android-App (src/lib/theme.ts) und die
   Marketing-Seite. Kein Framework, keine Build-Stufe.
   ========================================================================== */

:root {
  --ink-950: #0a0a0a;
  --ink-900: #0f0f0f;
  --ink-850: #131313;
  --ink-800: #161616;
  --ink-700: #1c1c1c;
  --ink-600: #222222;
  --ink-500: #2e2e2e;

  --chalk: #fafafa;
  --chalk-muted: #8a8a8a;
  --chalk-faint: #5a5a5a;
  --chalk-ghost: #3a3a3a;

  --accent: #ff3b30;
  --positive: #4ade80;

  --shell: min(760px, 100% - 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--chalk);
  font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ Ladeschirm */

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  z-index: 200;
  transition: opacity 0.3s var(--ease);
}

#boot.gone {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-500);
  border-top-color: var(--chalk);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- Typografie */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(28px, 5vw, 34px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: 20px;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

.muted {
  color: var(--chalk-muted);
}
.faint {
  color: var(--chalk-faint);
}
.ghost {
  color: var(--chalk-ghost);
}

/* -------------------------------------------------------------- Formularteile */

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 7px;
}

.input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  padding: 0 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input::placeholder {
  color: var(--chalk-ghost);
}

.input:focus {
  border-color: var(--chalk-faint);
}

.input--error {
  border-color: var(--accent);
}

.field__hint,
.field__error {
  font-size: 12.5px;
  margin-top: 7px;
}

.field__hint {
  color: var(--chalk-faint);
}
.field__error {
  color: var(--accent);
}

/* --------------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.16s var(--ease), background 0.2s, border-color 0.2s,
    opacity 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn--primary {
  background: var(--chalk);
  color: var(--ink-950);
}

.btn--secondary {
  border-color: var(--ink-500);
  background: var(--ink-850);
}

.btn--secondary:hover {
  background: var(--ink-800);
}

.btn--ghost {
  color: var(--chalk-muted);
}

.btn--ghost:hover {
  color: var(--chalk);
  background: var(--ink-850);
}

.btn--danger {
  color: var(--accent);
}

.btn--danger:hover {
  background: rgba(255, 59, 48, 0.08);
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--loading {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.65s linear infinite;
  color: var(--ink-950);
}

.btn--secondary.btn--loading::after,
.btn--ghost.btn--loading::after {
  color: var(--chalk);
}

/* ------------------------------------------------------------------- Kopfzeile */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-600);
}

.topbar__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  display: grid;
  place-items: center;
  flex: none;
}

.brand__mark svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------------ Navigation */

.tabs {
  display: flex;
  gap: 2px;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  color: var(--chalk-muted);
  transition: color 0.2s, background 0.2s;
}

.tabs button svg {
  width: 17px;
  height: 17px;
}

.tabs button:hover {
  color: var(--chalk);
}

.tabs button.active {
  color: var(--chalk);
  background: var(--ink-800);
}

.tabs__label {
  display: inline;
}

/* Auf schmalen Schirmen wandert die Navigation nach unten – wie in der App. */
@media (max-width: 600px) {
  /* `backdrop-filter` erzeugt einen Bezugsrahmen für `position: fixed`.
     Bliebe er stehen, klebte die Leiste am unteren Rand der Kopfzeile
     statt am Fensterrand – sie sass dadurch oben. */
  .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink-950);
  }

  .tabs {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    background: var(--ink-900);
    border-top: 1px solid var(--ink-600);
    /* Feste Gesamthoehe (box-sizing: border-box), damit die Eingabeleiste
       mit demselben Wert rechnen kann und nicht darunter rutscht. */
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom);
    gap: 0;
  }

  .tabs button {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 100%;
    border-radius: 0;
    font-size: 10.5px;
  }

  .tabs button.active {
    background: transparent;
  }

  #view > *:not(.view-list) {
    padding-bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------------- Abschnitt */

main {
  padding: 26px 0 0;
}

/* Der untere Abstand gehoert in die Ansicht, nicht in `main`: die
   Einkaufsansicht braucht ihn nicht, weil ihre Eingabeleiste buendig
   am Fensterrand sitzen soll. */
#view > *:not(.view-list) {
  padding-bottom: 40px;
}

.stack > * + * {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* ----------------------------------------------------------------- Listenkarte */

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-600);
  border-radius: 18px;
  background: var(--ink-850);
  text-align: left;
  width: 100%;
  padding: 0;
  display: block;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--ink-500);
  transform: translateY(-2px);
}

/* Ladenfarbe läuft ins Schwarz aus – wie in der App, kein harter Strich. */
.card__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--store) 24%, transparent),
    color-mix(in srgb, var(--store) 7%, transparent) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.card__body {
  position: relative;
  padding: 17px 19px;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__sum {
  text-align: right;
  flex: none;
}

.card__sum b {
  font-size: 15px;
  font-weight: 500;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--chalk-ghost);
}

/* ------------------------------------------------------------------ Laden-Chip */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--store) 34%, transparent);
  background: color-mix(in srgb, var(--store) 9%, transparent);
  color: var(--store);
  white-space: nowrap;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--store);
  flex: none;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  font-size: 13px;
  color: var(--chalk-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--store, var(--chalk-faint));
  flex: none;
}

.chip.active {
  color: var(--chalk);
  border-color: var(--chalk-faint);
  background: var(--ink-700);
}

/* --------------------------------------------------------------- Fortschritt */

.bar {
  height: 3px;
  border-radius: 3px;
  background: var(--ink-600);
  overflow: hidden;
  margin-top: 14px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--store, var(--chalk));
  transition: width 0.7s var(--ease);
}

/* --------------------------------------------------------------- Artikelzeile */

.rows {
  border-top: 1px solid var(--ink-600);
}

.row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-600);
}

.row__action {
  position: absolute;
  inset: 0 0 0 auto;
  width: 92px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  grid-auto-flow: row;
  opacity: 0;
  transition: opacity 0.2s;
}

.row__action svg {
  width: 18px;
  height: 18px;
}

.row.open .row__action,
.row:hover .row__action {
  opacity: 1;
}

.row__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  background: var(--ink-950);
  transition: transform 0.22s var(--ease), background 0.2s;
  touch-action: pan-y;
}

.row.open .row__inner {
  transform: translateX(-92px);
}

.row__inner:hover {
  background: var(--ink-900);
}

.row__check {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  border: 1.5px solid var(--store, var(--ink-500));
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.22s, border-color 0.22s, transform 0.16s var(--ease);
}

.row__check:active {
  transform: scale(0.84);
}

.row__check svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.22s var(--ease);
}

.row.done .row__check {
  background: var(--chalk);
  border-color: var(--chalk);
}

.row.done .row__check svg {
  opacity: 1;
  transform: none;
}

.row__main {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  transition: opacity 0.25s;
}

.row__name {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.row__name::after {
  content: '';
  position: absolute;
  left: 0;
  top: 53%;
  height: 1.5px;
  width: 0;
  background: var(--chalk-muted);
  transition: width 0.35s var(--ease);
}

.row.done .row__name::after {
  width: 100%;
}

.row__sub {
  font-size: 11.5px;
  color: var(--chalk-faint);
  margin-top: 1px;
}

.row__price {
  flex: none;
  text-align: right;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s;
}

.row__price small {
  display: block;
  font-size: 10.5px;
  color: var(--chalk-ghost);
}

.row.done .row__main,
.row.done .row__price {
  opacity: 0.45;
}

/* Eintreffen / Verschwinden – ruhig, ohne Federn. */
@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.row.enter .row__inner {
  animation: rowIn 0.24s var(--ease);
}

/* --------------------------------------------------------- Einkaufsansicht */

/* Die Eingabeleiste soll auch bei kurzer Liste am unteren Rand stehen und
   nicht mitten im Bild kleben. Dafür füllt die Ansicht die Fensterhöhe und
   der Zeilenbereich nimmt den Rest ein. */
/* Platz für die fest stehende Eingabeleiste, damit die letzte Zeile nicht
   darunter verschwindet. */
.view-list {
  padding-bottom: 88px;
}

@media (max-width: 600px) {
  .view-list {
    padding-bottom: calc(88px + var(--bar-h) + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------- Eingabeleiste */

/*
 * Fest am Fensterrand statt klebend.
 *
 * Mit `position: sticky` hing die Leiste bei kurzer Liste mitten im Bild.
 * Der übliche Ausweg – volle Breite über `margin-inline: calc(50% - 50vw)` –
 * hat einen Haken: sobald die Seite senkrecht rollt, ist `100vw` breiter als
 * der Inhaltsbereich, es entsteht ein waagrechter Rollbalken, und der schiebt
 * die Leiste um dessen Höhe nach oben. `fixed` kennt beide Probleme nicht.
 */
.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink-900);
  border-top: 1px solid var(--ink-600);
  padding: 11px 0 calc(11px + env(safe-area-inset-bottom));
}

@media (max-width: 600px) {
  .composer {
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  }
}

.composer__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.composer__field {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  padding-left: 15px;
  min-width: 0;
}

.composer__field input {
  border: 0;
  background: none;
  outline: none;
  height: 100%;
  min-width: 0;
}

.composer__name {
  flex: 1;
}

.composer__sep {
  width: 1px;
  height: 26px;
  background: var(--ink-600);
  flex: none;
}

.composer__price {
  display: flex;
  align-items: center;
  padding: 0 12px 0 10px;
  flex: none;
}

.composer__price span {
  font-size: 11px;
  color: var(--chalk-ghost);
  padding-right: 6px;
}

.composer__price input {
  width: 58px;
  font-variant-numeric: tabular-nums;
}

/* Auf dem Handy braucht der Artikelname den Platz – das Preisfeld
   schrumpft entsprechend, bleibt aber sichtbar. */
@media (max-width: 600px) {
  .composer__field {
    padding-left: 12px;
  }

  .composer__price {
    padding: 0 8px 0 7px;
  }

  .composer__price span {
    padding-right: 4px;
    font-size: 10px;
  }

  .composer__price input {
    width: 44px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

.icon-btn {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  transition: transform 0.16s var(--ease), background 0.2s;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn--accent {
  border-color: transparent;
  background: var(--store, var(--chalk));
  color: #fff;
}

.icon-btn--plain {
  border: 0;
  background: none;
  width: 38px;
  height: 38px;
}

/* --------------------------------------------------------------------- Sheet */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop.in {
  opacity: 1;
}

.sheet {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 12px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.sheet-backdrop.in .sheet {
  transform: none;
}

@media (min-width: 620px) {
  .sheet-backdrop {
    align-items: center;
  }
  .sheet {
    border-radius: 22px;
    border-bottom: 1px solid var(--ink-600);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s var(--ease), opacity 0.22s;
  }
  .sheet-backdrop.in .sheet {
    transform: none;
    opacity: 1;
  }
}

.sheet__grip {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-500);
  margin: 0 auto 14px;
}

@media (min-width: 620px) {
  .sheet__grip {
    display: none;
  }
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--ink-800);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--chalk-muted);
}

.sheet__close svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ Segmente */

.segment {
  display: flex;
  padding: 4px;
  border-radius: 15px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  margin-bottom: 20px;
}

.segment button {
  flex: 1;
  height: 38px;
  border: 0;
  background: none;
  border-radius: 11px;
  font-size: 14px;
  color: var(--chalk-muted);
  transition: background 0.2s, color 0.2s;
}

.segment button.active {
  background: var(--chalk);
  color: var(--ink-950);
  font-weight: 600;
}

/* --------------------------------------------------------------- Auswahlpillen */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--ink-600);
  background: var(--ink-850);
  font-size: 13px;
  color: var(--chalk-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--store);
  flex: none;
}

.pill.active {
  border-color: var(--chalk);
  background: var(--chalk);
  color: var(--ink-950);
  font-weight: 600;
}

/* --------------------------------------------------------------- Auswertung */

.stats {
  display: grid;
  gap: 1px;
  background: var(--ink-600);
  border: 1px solid var(--ink-600);
  border-radius: 18px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  background: var(--ink-850);
  padding: 20px 18px;
}

.stat__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat__label {
  font-size: 12px;
  color: var(--chalk-faint);
  margin-top: 6px;
}

.breakdown {
  display: grid;
  gap: 14px;
}

.breakdown__row {
  display: grid;
  gap: 7px;
}

.breakdown__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}

.months {
  display: flex;
  align-items: stretch;
  gap: 5px;
  height: 132px;
  padding-top: 8px;
}

.months__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* Die Spur braucht eine echte Hoehe – sonst laeuft die Prozentangabe des
   Balkens gegen einen inhaltsgrossen Eltern und ergibt 0. */
.months__track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.months__bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--ink-600);
  height: 0;
  transition: height 0.8s var(--ease);
}

.months__bar.on {
  background: var(--chalk-faint);
}

.months__label {
  font-size: 9.5px;
  color: var(--chalk-ghost);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Leerstelle */

.empty {
  border: 1px dashed var(--ink-600);
  border-radius: 18px;
  padding: 42px 26px;
  text-align: center;
}

.empty h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.empty p {
  font-size: 13.5px;
  color: var(--chalk-muted);
  max-width: 40ch;
  margin-inline: auto;
}

/* -------------------------------------------------------------------- Kachel */

.panel {
  border: 1px solid var(--ink-600);
  border-radius: 18px;
  background: var(--ink-850);
  padding: 19px;
}

.panel + .panel {
  margin-top: 12px;
}

.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 26px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-600);
  font-size: 14px;
}

.list-plain li:last-child {
  border-bottom: 0;
}

/* ------------------------------------------------------------------- Meldung */

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 300;
  max-width: min(440px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--ink-500);
  background: var(--ink-800);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.28s var(--ease);
}

#toast.in {
  opacity: 1;
  transform: translate(-50%, 0);
}

#toast.bad {
  border-color: var(--accent);
}

/* ---------------------------------------------------------------- Einblenden */

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.5s var(--ease) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
