/* =====================================================================
   CHEZ NOUS – Design System
   Happy French Riviera × Mid-Century × Greenhouse
   Warm, sonnengebleicht, botanisch. Mobile first.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Farbwelt (leicht entsättigt, „sun-bleached") */
  --cream:        #f6eedb;
  --cream-deep:   #efe4cc;
  --paper:        #fdf8ee;
  --paper-2:      #f9f1e2;

  --ink:          #26332b;   /* dunkles Olive/Petrol – Text */
  --ink-soft:     #5c6a5e;
  --ink-faint:    #8a9384;
  --line:         #e4d8bf;   /* warme Trennlinien */
  --line-strong:  #d8c9a8;

  --teal:         #2ba39b;   /* Côte d'Azur */
  --teal-deep:    #1c837c;
  --sage:         #8fa987;
  --sage-deep:    #6f8c68;
  --terra:        #cd6a4c;   /* Terracotta */
  --terra-deep:   #b5543a;
  --butter:       #eabf52;   /* Buttergelb */
  --butter-deep:  #d7a836;
  --cobalt:       #2f5cc4;   /* Cobalt Blue */
  --cobalt-deep:  #244a9e;
  --olive:        #7d8642;
  --olive-deep:   #656d33;

  /* Sanfte Tints (für Chips/Kreise) */
  --teal-soft:    #d7ece9;
  --sage-soft:    #e2e9dd;
  --terra-soft:   #f3ddd1;
  --butter-soft:  #f6e8bf;
  --cobalt-soft:  #dae2f5;
  --olive-soft:   #e6e8cf;

  --accent:       var(--terra);
  --good:         var(--teal-deep);

  /* Typografie */
  --font-display: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radius & Schatten (warm getönt) */
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 22px;  --r-xl: 30px;  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(56, 44, 20, .06), 0 2px 8px rgba(56, 44, 20, .05);
  --shadow-md: 0 2px 6px rgba(56, 44, 20, .07), 0 10px 26px rgba(56, 44, 20, .09);
  --shadow-lg: 0 8px 20px rgba(56, 44, 20, .12), 0 24px 60px rgba(56, 44, 20, .16);

  /* Layout */
  --maxw: 560px;
  --tabbar-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(43, 163, 155, .10), transparent 55%),
    radial-gradient(110% 80% at 0% 100%, rgba(143, 169, 135, .12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { -webkit-appearance: none; appearance: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--butter-soft); }

/* Botanisches Wasserzeichen im Hintergrund */
.leaf-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; overflow: hidden;
}
.leaf-bg svg { position: absolute; }
.leaf-bg .l1 { top: -40px; right: -30px; width: 260px; color: var(--sage-deep); transform: rotate(12deg); }
.leaf-bg .l2 { bottom: 60px; left: -50px; width: 240px; color: var(--teal-deep); transform: rotate(-18deg); }

/* ---------- App-Shell ---------- */
#app { position: relative; z-index: 1; min-height: 100%; }
.screen {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
  min-height: 100dvh;
}
.screen--flush { padding-bottom: calc(var(--safe-bottom) + 28px); }

/* Kopfbereich */
.appbar {
  padding-top: calc(var(--safe-top) + 20px);
  padding-bottom: 8px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; }
.brand__kicker {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 700;
}
.brand__title {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1.02; font-weight: 600; letter-spacing: .01em;
}
.brand__date { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; text-transform: capitalize; }

.appbar__side { display: flex; align-items: center; gap: 8px; }

/* Avatare der zwei Personen */
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #fff; border: 2px solid var(--paper); margin-left: -8px;
  box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.avatar[data-color="terracotta"] { background: var(--terra); }
.avatar[data-color="teal"]       { background: var(--teal-deep); }
.avatar[data-color="cobalt"]     { background: var(--cobalt); }
.avatar[data-color="sage"]       { background: var(--sage-deep); }
.avatar[data-color="butter"]     { background: var(--butter-deep); }
.avatar[data-color="olive"]      { background: var(--olive); }
.avatar--dim { opacity: .4; }
.avatar--sm { width: 22px; height: 22px; font-size: 10px; border-width: 1.5px; }

/* Icon-Button rund */
.iconbtn {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--ink);
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), background .2s;
}
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px; border-radius: var(--r-pill);
  font-weight: 650; font-size: 15.5px; letter-spacing: .01em;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .14s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(43,163,155,.32); }
.btn--terra   { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(205,106,76,.30); }
.btn--ghost   { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn--soft    { background: var(--cream-deep); box-shadow: none; }
.btn--block   { display: flex; width: 100%; }
.btn--lg      { padding: 17px 22px; font-size: 16.5px; }
.btn svg { width: 19px; height: 19px; }

/* Der große „Was brauchen wir?"-Auslöser */
.quickadd {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 17px 20px; margin: 6px 0 20px;
  border-radius: var(--r-xl); text-align: left;
  background: linear-gradient(135deg, var(--terra), var(--terra-deep));
  color: #fff; box-shadow: 0 10px 26px rgba(205,106,76,.34);
  transition: transform .16s var(--ease), box-shadow .25s;
}
.quickadd:active { transform: translateY(1px) scale(.99); }
.quickadd__plus {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: 0 0 auto;
  background: rgba(255,255,255,.22); display: grid; place-items: center;
}
.quickadd__plus svg { width: 22px; height: 22px; }
.quickadd__t { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.quickadd__s { font-size: 12.5px; opacity: .82; }

/* ---------- Abschnitts-Überschriften ---------- */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 26px 2px 12px;
}
.section-h__t {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
.section-h__a { font-size: 13px; color: var(--teal-deep); font-weight: 650; }

/* ---------- Ort-Kacheln (Home) ---------- */
.tiles { display: flex; flex-direction: column; gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .16s var(--ease), box-shadow .2s;
}
.tile:active { transform: scale(.985); box-shadow: var(--shadow-md); }
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--tile-color, var(--teal));
}
.tile__emoji {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--tile-soft, var(--teal-soft));
}
.tile__body { flex: 1 1 auto; min-width: 0; }
.tile__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.tile__preview { color: var(--ink-soft); font-size: 13px; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__count {
  flex: 0 0 auto; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); display: grid; place-items: center;
  font-weight: 750; font-size: 17px; color: #fff; background: var(--tile-color, var(--teal));
  font-variant-numeric: tabular-nums;
}
.tile__count--zero { background: var(--cream-deep); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }

.tile-color-teal   { --tile-color: var(--teal-deep);   --tile-soft: var(--teal-soft); }
.tile-color-sage   { --tile-color: var(--sage-deep);   --tile-soft: var(--sage-soft); }
.tile-color-terracotta { --tile-color: var(--terra); --tile-soft: var(--terra-soft); }
.tile-color-butter { --tile-color: var(--butter-deep); --tile-soft: var(--butter-soft); }
.tile-color-cobalt { --tile-color: var(--cobalt);      --tile-soft: var(--cobalt-soft); }
.tile-color-olive  { --tile-color: var(--olive);       --tile-soft: var(--olive-soft); }

/* ---------- Segmented control (Planen / Einkaufen) ---------- */
.segmented {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--cream-deep); box-shadow: inset 0 1px 2px rgba(56,44,20,.06);
}
.segmented button {
  flex: 1; padding: 11px 12px; border-radius: var(--r-pill);
  font-weight: 650; font-size: 14.5px; color: var(--ink-soft);
  letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s, background .2s, box-shadow .2s;
}
.segmented button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Kategorie-Gruppe & Artikel ---------- */
.group { margin-top: 22px; }
.group__h {
  display: flex; align-items: center; gap: 9px; margin: 0 2px 8px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
.group__h .emoji { font-size: 15px; }
.group__count { margin-left: auto; letter-spacing: 0; text-transform: none; color: var(--ink-faint); font-weight: 650; }

.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden; }

.item {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  transition: background .2s, opacity .3s, transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.item:last-child { border-bottom: none; }
.item:active { background: var(--paper-2); }

/* Runde Checkbox */
.check {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: var(--r-pill);
  border: 2px solid var(--line-strong); background: var(--paper);
  display: grid; place-items: center; position: relative;
  transition: border-color .2s, background .2s, transform .18s var(--ease-back);
}
.check svg { width: 16px; height: 16px; color: #fff; stroke-dasharray: 22; stroke-dashoffset: 22; }
.item--done .check { background: var(--teal); border-color: var(--teal); }
.item--done .check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .3s var(--ease) .05s; }
.check:active { transform: scale(.85); }

.item__body { flex: 1 1 auto; min-width: 0; }
.item__name { font-size: 16px; font-weight: 550; transition: color .25s; }
.item__meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item__note { color: var(--terra-deep); }
.item--done .item__name { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--sage); }

.qty {
  flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px;
  color: var(--ink-soft); padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--cream-deep);
}
.item__place {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; background: var(--tile-soft, var(--cream-deep)); flex: 0 0 auto;
}

/* Zeile verlässt die Liste (abgehakt) */
.item.leaving { opacity: 0; transform: translateX(14px); }

/* ---------- Chips (Ortauswahl etc.) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px; padding: 2px 18px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  background: var(--paper); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .14s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); }
.chip .emoji { font-size: 15px; }
.chip--add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-soft); }

/* ---------- Klassiker ---------- */
.classics { display: flex; flex-wrap: wrap; gap: 9px; }
.classic {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px 10px 12px; border-radius: var(--r-pill);
  background: var(--paper); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line);
  transition: transform .14s var(--ease), box-shadow .2s;
}
.classic:active { transform: scale(.95); }
.classic.just-added { animation: pop .4s var(--ease-back); }
.classic .emoji { font-size: 17px; }
.classic__plus { color: var(--teal-deep); font-weight: 800; margin-left: 1px; }

/* ---------- Bottom Sheet ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(38, 32, 18, .38);
  opacity: 0; transition: opacity .25s var(--ease); backdrop-filter: blur(2px);
}
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--paper); border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 10px 20px calc(20px + var(--safe-bottom));
  transform: translateY(102%); transition: transform .32s var(--ease);
  max-height: 92dvh; overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet__grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong);
  margin: 6px auto 14px; }
.sheet__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.sheet__sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- Formfelder ---------- */
.field { margin-bottom: 16px; }
.field__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin: 0 2px 7px; display: block; }
.input, .textarea, .selectbox {
  width: 100%; padding: 14px 15px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1.5px solid var(--line);
  font-size: 16px; transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus, .selectbox:focus { border-color: var(--teal); background: var(--paper); outline: none; }
.textarea { resize: none; min-height: 52px; }
.input--hero {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  padding: 16px 16px; background: var(--paper); border-width: 2px;
}
.input--hero::placeholder { color: var(--ink-faint); font-weight: 500; }

/* Mengen-Stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; color: var(--ink); transition: background .15s; }
.stepper button:active { background: var(--cream-deep); }
.stepper input { width: 54px; text-align: center; border: none; background: transparent;
  font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.inline-add { display: flex; gap: 10px; align-items: center; }

/* ---------- „Alles erledigen" / Unterwegs ---------- */
.togo-head {
  border-radius: var(--r-xl); padding: 22px 20px; color: #fff; margin: 6px 0 18px;
  background: linear-gradient(135deg, var(--tile-color, var(--teal)), color-mix(in srgb, var(--tile-color, var(--teal)) 62%, #000 12%));
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.togo-head__emoji { font-size: 40px; }
.togo-head__name { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-top: 6px; }
.togo-head__sub { opacity: .85; font-size: 14px; margin-top: 2px; }

/* ---------- Bottom Tab Bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; max-width: var(--maxw); margin: 0 auto;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-faint); font-size: 10.5px; font-weight: 650; letter-spacing: .02em;
  transition: color .2s;
}
.tab svg { width: 23px; height: 23px; transition: transform .2s var(--ease-back); }
.tab[aria-current="page"] { color: var(--terra-deep); }
.tab[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.tab:active svg { transform: scale(.9); }

/* ---------- Empty / Loading / Toast ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-soft); }
.empty__art { font-size: 46px; margin-bottom: 10px; filter: saturate(.9); }
.empty__t { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.empty__s { font-size: 14px; }

.skeleton { background: linear-gradient(100deg, var(--paper) 30%, var(--paper-2) 50%, var(--paper) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); }

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: toast-in .3s var(--ease-back);
}
.toast button { color: var(--butter); font-weight: 750; }
.toast--leaving { animation: toast-out .25s var(--ease) forwards; }

/* Sync/Offline-Indikator */
.netdot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); transition: background .3s; }
.netdot--off { background: var(--terra); }
.netdot--sync { background: var(--butter-deep); animation: pulse 1s infinite; }

/* ---------- Setup / Login ---------- */
.gate { max-width: 420px; margin: 0 auto; padding: calc(var(--safe-top) + 8dvh) 24px 40px;
  min-height: 100dvh; display: flex; flex-direction: column; }
.gate__logo { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; }
.gate__kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--terra-deep); font-weight: 700; margin-bottom: 8px; }
.gate__lead { color: var(--ink-soft); margin: 10px 0 30px; font-size: 15px; }
.gate__arch { text-align: center; margin: 8px 0 24px; color: var(--sage-deep); }

.person-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person-card {
  padding: 22px 14px; border-radius: var(--r-lg); background: var(--paper);
  box-shadow: var(--shadow-sm); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .15s var(--ease), border-color .2s;
}
.person-card:active { transform: scale(.96); }
.person-card .avatar { width: 54px; height: 54px; font-size: 20px; margin: 0; }
.person-card__n { font-family: var(--font-display); font-size: 18px; font-weight: 600; }

/* ---------- Utilities ---------- */
.mut { color: var(--ink-soft); }
.center { text-align: center; }
.hidden { display: none !important; }
.hr { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.pill-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 650; background: var(--cream-deep); color: var(--ink-soft); }

/* Settings-Liste */
.list { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden; }
.list__row { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-bottom: 1px solid var(--line);
  width: 100%; text-align: left; transition: background .15s; }
.list__row:last-child { border-bottom: none; }
.list__row:active { background: var(--paper-2); }
.list__row .emoji { font-size: 20px; }
.list__row .grow { flex: 1; min-width: 0; }
.list__row .sub { font-size: 12.5px; color: var(--ink-soft); }
.list__row .chev { color: var(--ink-faint); }

.swatch { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.swatch--sel { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emoji-grid button { aspect-ratio: 1; border-radius: var(--r-md); font-size: 22px; background: var(--paper-2);
  display: grid; place-items: center; transition: transform .12s var(--ease), background .2s; }
.emoji-grid button:active { transform: scale(.9); }
.emoji-grid button[aria-pressed="true"] { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }

/* ---------- Keyframes ---------- */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes toast-in { from { transform: translateY(20px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px) scale(.95); opacity: 0; } }
@keyframes fade-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.enter { animation: fade-up .35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Desktop: etwas luftiger, Tabbar bleibt (einfach & konsistent) */
@media (min-width: 720px) {
  .brand__title { font-size: 40px; }
  .screen { padding-top: 4px; }
}
