:root {
  --grund: #F7F4EE;
  --karte: #FFFDF9;
  --tinte: #191714;
  --gedaempft: #756D63;
  --linie: #E3DCD0;
  --kachel: #F2EDE3;
  --akzent: #A32F44;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--grund);
  color: var(--tinte);
  -webkit-font-smoothing: antialiased;
}

h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 38px; margin: 3px 0 0; line-height: 1; }
.augenbraue { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gedaempft); }

.seite { display: none; padding: 22px 20px 96px; }
.seite.aktiv { display: block; }

.knopf {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 16px;
  background: var(--tinte); color: var(--grund);
  font-family: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer;
}
.knopf.hell { background: var(--karte); color: var(--tinte); border: 1px solid var(--linie); }
.knopf.akzent { background: var(--akzent); color: #fff; }

.chip {
  height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--karte); color: #3A342D; font-family: inherit; font-size: 13.5px;
  white-space: nowrap; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }

.chipreihe { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }

.teil {
  background: var(--karte); border: 1px solid #EDE6DA; border-radius: var(--radius);
  padding: 11px; display: flex; flex-direction: column; gap: 9px; text-align: left;
  font-family: inherit; cursor: pointer;
}
.teil img { width: 100%; height: 102px; object-fit: contain; background: var(--kachel); border-radius: 14px; }
.teil .name { font-size: 13.5px; font-weight: 500; }
.teil .unter { font-size: 11.5px; color: var(--gedaempft); margin-top: 2px; }

.banner {
  margin-top: 14px; padding: 11px 14px; border-radius: 17px; background: #ECE5D7;
  display: flex; align-items: center; gap: 12px; font-size: 13.5px;
}

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--grund);
  border-top: 1px solid #E6DFD2; padding: 8px 24px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.leiste button {
  border: 0; background: transparent; min-width: 64px; min-height: 48px;
  font-family: inherit; font-size: 11px; color: var(--gedaempft); cursor: pointer;
}
.leiste button[aria-current="page"] { color: var(--tinte); font-weight: 500; }

.fab {
  position: fixed; right: 20px; bottom: 98px; width: 60px; height: 60px;
  border-radius: 50%; border: 0; background: var(--akzent); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 20px rgba(25,23,20,.22);
}

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(25, 23, 20, .45);
  display: flex; align-items: flex-end;
}
/* MUSS sein: display:flex sticht das hidden-Attribut, sonst liegt das
   Overlay dauerhaft schwarz ueber der App. */
.overlay[hidden] { display: none; }

.blatt {
  width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--grund); border-radius: 26px 26px 0 0;
  padding: 20px 20px 28px;
}
.kategoriewahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kategoriewahl button[aria-pressed="true"] { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }

/* Klebt am unteren Rand des Blatts. Ohne das muesste man sich bei jedem
   einzelnen Teil erst durch 29 Kategorie-Knoepfe nach unten scrollen. */
.blatt-fuss {
  position: sticky; bottom: 0;
  display: flex; gap: 10px;
  background: var(--grund);
  padding-top: 12px; margin-top: 12px;
  box-shadow: 0 -10px 14px -10px rgba(25, 23, 20, .3);
}

.feld {
  width: 100%; height: 48px; border: 1px solid var(--linie); border-radius: 14px;
  background: var(--karte); padding: 0 14px; font-family: inherit; font-size: 15px;
  color: var(--tinte); margin-top: 8px;
}
label { font-size: 13px; color: var(--gedaempft); }
.fehler { color: var(--akzent); font-size: 13.5px; margin-top: 10px; min-height: 18px; }
