:root {
  --tisch: #f2ebdf;
  --papier: #fffcf6;
  --zettel: #fffef9;
  --mulde: #e9e0d1;
  --tinte: #2a2521;
  --tinte-2: #645b51;
  --tinte-3: #8d8378;
  --linie: rgba(42, 37, 33, 0.11);
  --linie-fest: rgba(42, 37, 33, 0.22);
  --haupt: #6b9468;
  --haupt-tinte: #10200f;
  --haupt-text: #47703f;
  --warn: #b8432e;
  --basilikum: #47764a;
  --butter: #f1cf6b;
  --druck: rgba(42, 37, 33, 0.06);
  --schrift: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --leiste: 62px;
  --weich: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tisch: #191613;
    --papier: #24201c;
    --zettel: #2a2621;
    --mulde: #14120f;
    --tinte: #f3ece2;
    --tinte-2: #b9aea0;
    --tinte-3: #8a8074;
    --linie: rgba(255, 240, 220, 0.1);
    --linie-fest: rgba(255, 240, 220, 0.22);
    --haupt: #6b9468;
    --haupt-tinte: #0d1a0c;
    --haupt-text: #9cc498;
    --warn: #e2725b;
    --basilikum: #8cbb88;
    --butter: #d9b450;
    --druck: rgba(255, 240, 220, 0.07);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  background: var(--tisch);
  color: var(--tinte);
  font: 16px/1.45 var(--schrift);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 2px;
}

.seite {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(var(--leiste) + env(safe-area-inset-bottom) + 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kopf {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.kopf.mit-knoepfen {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.kopf-knoepfe {
  display: flex;
  gap: 8px;
}

.ueber {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-2);
  letter-spacing: 0.01em;
}

h1 {
  font: 600 30px/1.12 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font: 600 13px/1.3 var(--schrift);
  color: var(--tinte-2);
  letter-spacing: 0.02em;
}

h3 {
  font: 600 13px/1.3 var(--schrift);
  color: var(--tinte-2);
}

.meta {
  font-size: 13px;
  color: var(--tinte-2);
  line-height: 1.35;
}

.meta.mitte {
  text-align: center;
}

.marke {
  font-size: 11px;
  font-weight: 600;
  color: var(--tinte-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hinweis {
  font-size: 13px;
  color: var(--tinte-2);
  background: var(--druck);
  border-radius: var(--r-s);
  padding: 10px 12px;
}

.notiz {
  font: italic 17px/1.45 var(--serif);
  color: var(--tinte-2);
}

.icon {
  display: inline-flex;
  flex: none;
}

.icon.blass {
  color: var(--tinte-3);
}

.icon.voll {
  color: var(--warn);
}

.icon.voll svg {
  fill: currentColor;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.karte {
  background: var(--papier);
  border-radius: var(--r-m);
  box-shadow: 0 0 0 1px var(--linie);
}

.stapel > * + * {
  border-top: 1px solid var(--linie);
}

.zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  background: none;
  border: 0;
  text-align: left;
}

a.zeile:active,
button.zeile:active,
.gericht:active {
  background: var(--druck);
}

.zeile-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.zeile-text strong,
.gericht-text strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.leerzeile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  color: var(--tinte-2);
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--linie-fest);
}

.leer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  color: var(--tinte-2);
}

.leer.klein {
  padding: 28px 12px;
}

.leer h2 {
  font: 600 20px/1.2 var(--serif);
  color: var(--tinte);
  letter-spacing: 0;
}

.leer p {
  max-width: 30ch;
  text-wrap: pretty;
}

.leer .knopf {
  margin-top: 8px;
}

.rund {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: var(--druck);
  color: var(--tinte);
  transition: transform 0.14s var(--weich);
}

.rund.voll {
  background: var(--haupt);
  color: var(--haupt-tinte);
}

.rund.herz-an {
  color: var(--warn);
}

.rund.herz-an svg {
  fill: currentColor;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--tinte);
  color: var(--tisch);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.14s var(--weich), opacity 0.14s;
}

.knopf.gross {
  min-height: 52px;
  width: 100%;
  background: var(--haupt);
  color: var(--haupt-tinte);
  font-size: 16px;
}

.knopf.leise {
  background: var(--druck);
  color: var(--tinte);
}

.knopf.warn {
  background: var(--warn);
  color: #fff;
}

.knopf.warn-text {
  color: var(--warn);
  background: none;
}

.knopf:active,
.rund:active,
.chip:active {
  transform: scale(0.97);
}

.knopf:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.knopf .icon svg {
  width: 20px;
  height: 20px;
}

.reihe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reihe > * {
  flex: 1;
}

.platz {
  flex: 1;
}

.magnet {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font: 600 15px/1 var(--serif);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.magnet.klein {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.magnete {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.magnet-wahl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1.5px solid var(--linie);
  background: none;
  font-weight: 500;
}

.magnet-wahl.an {
  border-color: var(--tinte);
  background: var(--druck);
}

.kind-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 17px/1.3 var(--serif);
  color: var(--tinte-2);
  margin-top: -8px;
}

.kind-zeile strong {
  color: var(--tinte);
  font-weight: 600;
}

.gericht {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  min-height: 76px;
}

.gericht-bild {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-s);
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.ohne {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mulde);
  color: var(--tinte-3);
  outline: 0;
}

.gericht-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gericht-text strong {
  font: 600 18px/1.2 var(--serif);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.feld-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-2);
}

.feld-hinweis {
  font-size: 13px;
  color: var(--tinte-3);
}

input[type='text'],
input[type='password'],
input[type='search'],
input[type='url'],
input[type='number'],
input[type='date'],
input[type='datetime-local'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  background: var(--mulde);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tinte-2) 50%), linear-gradient(135deg, var(--tinte-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--tinte);
}

input::placeholder,
textarea::placeholder {
  color: var(--tinte-3);
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.04em;
}

.zweier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wahl {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--mulde);
}

.wahl button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinte-2);
}

.wahl button.an {
  background: var(--papier);
  color: var(--tinte);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--linie);
}

.zaehler {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--mulde);
}

.zaehler button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
}

.zaehler output {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips.still {
  flex-wrap: wrap;
  margin: 8px 0 0;
  padding: 0;
}

.blatt .chips {
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--linie-fest);
  background: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.14s var(--weich);
}

span.chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--tinte-2);
  border-color: var(--linie);
}

.chip.an {
  background: var(--tinte);
  border-color: var(--tinte);
  color: var(--tisch);
}

.chip .icon svg {
  width: 16px;
  height: 16px;
}

.chip .zahl {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.suchfeld {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-radius: var(--r-s);
  background: var(--mulde);
  color: var(--tinte-3);
}

.suchfeld input {
  background: none;
  padding-left: 0;
  color: var(--tinte);
}

.suchfeld input:focus {
  border-color: transparent;
}

.suchfeld:focus-within {
  box-shadow: 0 0 0 1px var(--tinte);
}

.farben {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.farben button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.farben button.an {
  outline: 2px solid var(--tinte);
  outline-offset: 3px;
}

.login {
  justify-content: center;
  min-height: 100dvh;
  padding-bottom: 40px;
}

.login-kopf h1 {
  font-size: 44px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.wochenplan {
  display: flex;
  flex-direction: column;
}

.tag {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--linie);
}

.tag:first-child {
  border-top: 0;
}

.tag-kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
}

.tag-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tinte-2);
}

.tag-zahl {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font: 600 19px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.tag.heute .tag-zahl {
  background: var(--butter);
  color: #2a2521;
}

.tag.vorbei .tag-kopf,
.tag.vorbei .essen {
  opacity: 0.55;
}

.tag-essen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.essen {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-s);
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--linie);
  text-align: left;
}

.essen:active {
  background: var(--druck);
}

.essen .marke,
.essen .essen-titel,
.essen .meta {
  grid-column: 1;
}

.essen-titel {
  font: 600 17px/1.25 var(--serif);
  overflow-wrap: anywhere;
}

.essen-rand {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--basilikum);
}

.essen.frei {
  min-height: 44px;
  grid-template-columns: auto 1fr;
  background: none;
  box-shadow: none;
  border: 1.5px dashed var(--linie-fest);
  color: var(--tinte-3);
}

.essen.frei .essen-titel {
  grid-column: 2;
  justify-self: end;
  display: flex;
}

.essen.frei .icon svg {
  width: 18px;
  height: 18px;
}

.fuss-aktionen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auswahl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 264px;
  overflow-y: auto;
  margin-top: 8px;
}

.auswahl-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: var(--r-s);
  background: none;
  text-align: left;
  font-weight: 500;
}

.auswahl-zeile span:nth-child(2) {
  flex: 1;
}

.auswahl-zeile img,
.auswahl-zeile .ohne {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.auswahl-zeile.an {
  background: var(--druck);
}

.gruppe {
  display: flex;
  flex-direction: column;
}

.gruppe h3 {
  padding: 4px 0;
}

.haken-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 0;
  border-top: 1px solid var(--linie);
}

.haken-zeile input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--basilikum);
}

.haken-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.haken-text strong {
  font-weight: 500;
}

.menge {
  flex: none;
  font-size: 14px;
  color: var(--tinte-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rezept-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rezept-karte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  min-height: 80px;
  border-radius: var(--r-m);
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--linie);
}

.rezept-karte:active {
  background: var(--druck);
}

.rezept-karte img,
.rezept-karte .ohne {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}

.rezept-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rezept-text strong {
  font: 600 18px/1.2 var(--serif);
  overflow-wrap: anywhere;
}

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

.rezept-bild {
  width: calc(100% + 32px);
  max-width: none;
  margin: 0 -16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 592px) {
  .rezept-bild {
    width: 100%;
    margin: 0;
    border-radius: var(--r-m);
  }
}

.zutaten li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--linie);
}

.zutaten li:first-child {
  border-top: 0;
}

.zutaten .menge {
  text-align: right;
  font-weight: 600;
  color: var(--tinte);
  font-size: 15px;
}

.schritte {
  counter-reset: schritt;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.schritte li::before {
  content: counter(schritt);
  font: 600 20px/1.3 var(--serif);
  color: var(--haupt-text);
}

.schritte.gross li {
  font-size: 20px;
}

.kochmodus {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

.kochmodus .zutaten li {
  padding-left: 0;
  padding-right: 0;
}

.ab {
  opacity: 0.4;
  text-decoration: line-through;
}

.quelle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  color: var(--tinte-2);
  align-self: center;
}

.bild-wahl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bild-wahl img,
.bild-wahl .ohne {
  width: 72px;
  height: 72px;
  border-radius: var(--r-s);
  object-fit: cover;
}

.zettel {
  --zacke: 9px;
  background: var(--zettel);
  padding: 6px 14px calc(var(--zacke) + 14px);
  border-radius: 6px 6px 0 0;
  min-height: 180px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
}

.zettel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 2px;
  font-size: 13px;
  color: var(--tinte-2);
}

.zettel-status .icon svg {
  width: 18px;
  height: 18px;
}

.gang h2 {
  padding: 16px 0 4px;
  font: italic 600 15px/1.3 var(--serif);
  color: var(--haupt-text);
  letter-spacing: 0;
}

.posten {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--linie);
}

.posten-haupt {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: left;
}

.kreis {
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--linie-fest);
  transition: background-color 0.16s, border-color 0.16s;
}

.kreis svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.posten.ab {
  opacity: 1;
  text-decoration: none;
}

.posten.ab .kreis {
  background: var(--basilikum);
  border-color: var(--basilikum);
  color: var(--zettel);
}

.posten.ab .posten-name {
  text-decoration: line-through;
  color: var(--tinte-3);
}

.posten.ab .menge {
  color: var(--tinte-3);
}

.posten-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.posten-name {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.posten-mehr {
  width: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--tinte-3);
}

.wagen-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--tinte-2);
}

.wagen .knopf {
  margin-top: 12px;
  width: 100%;
}

.seite.mit-schreiben {
  padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom) + 96px);
}

.schreiben {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--leiste) + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(to top, var(--tisch) 72%, transparent);
}

.schreiben > * {
  width: 100%;
  max-width: 528px;
  margin: 0 auto;
}

.schreiben-zeile {
  display: flex;
  gap: 8px;
}

.schreiben-zeile input {
  background: var(--papier);
  border-color: var(--linie-fest);
  border-radius: 999px;
  padding-left: 18px;
}

.tipps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tipps:empty {
  display: none;
}

.tipps .chip {
  background: var(--papier);
}

#leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--papier);
  box-shadow: 0 -1px 0 var(--linie);
}

.tab {
  flex: 1;
  max-width: 112px;
  height: var(--leiste);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--tinte-3);
}

.tab.an {
  color: var(--haupt-text);
  font-weight: 600;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--leiste) + env(safe-area-inset-bottom) + 20px);
  z-index: 30;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--tinte);
  color: var(--tisch);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--weich);
}

#toast.an {
  opacity: 1;
  transform: translate(-50%, 0);
}

#toast.fehler {
  background: var(--warn);
  color: #fff;
}

dialog.blatt {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--tisch);
  color: var(--tinte);
  overflow: hidden;
}

dialog.blatt[open] {
  display: flex;
  flex-direction: column;
  animation: hoch 0.32s var(--weich);
}

dialog.blatt.voll {
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}

dialog.blatt::backdrop {
  background: rgba(20, 16, 12, 0.45);
  animation: ein 0.2s;
}

.blatt-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) * 0 + 16px) 16px 8px 20px;
}

.blatt.voll .blatt-kopf {
  padding-top: calc(env(safe-area-inset-top) + 16px);
}

.blatt-kopf h2 {
  font: 600 21px/1.2 var(--serif);
  color: var(--tinte);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.blatt-inhalt {
  overflow-y: auto;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 24px);
  overscroll-behavior: contain;
}

@keyframes hoch {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

@keyframes ein {
  from {
    opacity: 0;
  }
}

@media (min-width: 620px) {
  dialog.blatt {
    margin: auto;
    border-radius: var(--r-l);
  }
}

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

.mitte {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.umschalter {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--mulde);
}

.umschalter a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinte-2);
}

.umschalter a.an {
  background: var(--papier);
  color: var(--tinte);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--linie);
}

.schalter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 500;
}

.schalter input {
  width: 22px;
  height: 22px;
  accent-color: var(--haupt);
}

.zeit {
  flex: none;
  min-width: 46px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tinte-2);
}

.magnet-reihe {
  display: flex;
  gap: 4px;
  flex: none;
}

.spaet {
  color: var(--warn);
  font-weight: 500;
}

.abstand {
  margin-top: 12px;
}

.monat {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.monat-kopf {
  padding-bottom: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--tinte-3);
}

.zelle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 50px;
  padding: 5px 0 4px;
  border: 0;
  border-radius: var(--r-s);
  background: none;
}

.zelle-zahl {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font: 600 16px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.zelle.fremd .zelle-zahl {
  color: var(--tinte-3);
  font-weight: 400;
}

.zelle.heute .zelle-zahl {
  background: var(--butter);
  color: #2a2521;
}

.zelle.an {
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--linie-fest);
}

.zelle-punkte {
  display: flex;
  gap: 3px;
  height: 6px;
}

.zelle-punkte i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tasten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.taste {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-m);
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--linie);
  text-align: left;
  transition: transform 0.14s var(--weich);
}

.taste strong {
  font: 600 17px/1.2 var(--serif);
}

.taste:active {
  transform: scale(0.97);
}

.taste.an {
  background: var(--haupt);
  color: var(--haupt-tinte);
  box-shadow: none;
}

.taste.an .meta {
  color: inherit;
  opacity: 0.8;
}

.werte {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.karte.werte {
  padding: 14px;
}

.wert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wert strong {
  font: 600 19px/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
}

.kurve {
  color: var(--haupt-text);
  padding: 6px 4px 0;
}

.kurve svg {
  display: block;
  width: 100%;
  height: 120px;
}

.kreis.voll {
  background: var(--basilikum);
  border-color: var(--basilikum);
  color: var(--papier);
}

.bilanz {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 16px;
}

.bilanz-haupt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bilanz-haupt strong {
  font: 600 38px/1.05 var(--serif);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.minus {
  color: var(--warn);
}

.bilanz .wert strong {
  font-size: 16px;
}

.betrag {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.betrag.plus {
  color: var(--haupt-text);
}

.balken {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--mulde);
  overflow: hidden;
}

.balken i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--haupt);
}

.balken.ueber i {
  background: var(--warn);
}

.kacheln {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kachel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 124px;
  padding: 14px;
  border-radius: var(--r-m);
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--linie);
  transition: transform 0.14s var(--weich);
}

.kachel:active {
  transform: scale(0.97);
}

.kachel .icon {
  color: var(--haupt-text);
  margin-bottom: 6px;
}

.kachel strong {
  font: 600 18px/1.2 var(--serif);
}

.notizfeld {
  background: var(--zettel);
  font: 17px/1.6 var(--serif);
  min-height: 50dvh;
}

.flach {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}

.liste-innen {
  padding: 0 4px 0 14px;
}

.liste-innen .posten:last-child {
  border-bottom: 0;
}

a.kind-zeile {
  min-height: 32px;
}

.rund.klein {
  width: 36px;
  height: 36px;
}

.rund:disabled {
  opacity: 0.3;
}

.zeile.schmal {
  min-height: 48px;
  padding: 4px 10px 4px 14px;
  gap: 8px;
}

.icon.gruen {
  color: var(--basilikum);
}

.vorzeilen {
  white-space: pre-line;
}

.auswahl-zeile .zeile-text {
  flex: 1;
}
