/* ============================================================
   Gestaltung der Speisekarte Kumpirallee
   Farben aus dem Logo: Dunkelbraun, Creme, Senfgelb, Weiß
   ============================================================ */

:root {
  color-scheme: light;
  --braun: #3e1d0b;
  --braun-logo: #6b300e;
  --braun-weich: #7a5a44;
  --creme: #f7eedc;
  --creme-hell: #fdf8ee;
  --senf: #efbe3f;
  --senf-dunkel: #b8860b;
  --linie: #e2cfa9;
  --weiss: #ffffff;
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rand: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--braun);
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Kopf ---------- */

.kopf {
  background: var(--braun);
  color: var(--creme);
  padding: 18px var(--rand) 22px;
  padding-top: max(18px, env(safe-area-inset-top));
}

.kopf-innen { max-width: 560px; margin: 0 auto; }

.kopf-oben {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  width: 96px;
  height: auto;
  animation: erscheinen 0.7s ease-out both;
}

.titel {
  margin: 14px 0 4px;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.2px;
  animation: erscheinen 0.7s 0.1s ease-out both;
}

.laden-info {
  margin: 0;
  color: #e9d9bd;
  font-size: 14px;
  line-height: 1.55;
  animation: erscheinen 0.7s 0.2s ease-out both;
}

/* ---------- Sprach-Umschalter ---------- */

.sprachen {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(239, 190, 63, 0.55);
  border-radius: 999px;
}

.sprachen button {
  min-width: 40px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--creme);
  font: 600 13px/1 var(--schrift-text);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.sprachen button[aria-pressed="true"] {
  background: var(--senf);
  color: var(--braun);
}

.sprachen button.inaktiv { opacity: 0.45; }

.sprachen button:focus-visible,
.leiste a:focus-visible {
  outline: 2px solid var(--senf);
  outline-offset: 2px;
}

/* ---------- Leiste mit Bereichen (bleibt oben stehen) ---------- */

.leiste {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px var(--rand);
  background: rgba(247, 238, 220, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
  scrollbar-width: none;
}

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

.leiste a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--weiss);
  color: var(--braun);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}

.leiste a[aria-current="true"] {
  background: var(--braun);
  color: var(--creme);
}

@media (min-width: 600px) {
  .leiste { justify-content: center; }
}

/* ---------- Bereiche ---------- */

main { max-width: 560px; margin: 0 auto; }

.bereich { padding: 0 0 36px; }

.bereich-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  overflow: hidden;
}

.bereich-kopf { padding: 26px var(--rand) 6px; }

.bereich-titel {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
}

.untertitel {
  margin: 6px 0 0;
  color: var(--senf-dunkel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hinweise { margin: 12px 0 0; padding: 0; list-style: none; }

.hinweise li {
  margin: 0 0 6px;
  padding-left: 14px;
  position: relative;
  color: var(--braun-weich);
  font-size: 14px;
  line-height: 1.5;
}

.hinweise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--senf);
}

/* ---------- Gerichte ---------- */

.gerichte { margin: 8px 0 0; padding: 0 var(--rand); list-style: none; }

.gericht { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.gericht:last-child { border-bottom: 0; }

/* Gerichte ohne Beschreibung (z. B. Getränke) etwas enger */
.gericht:not(:has(.beschreibung)) { padding: 11px 0; }

/* Auswahl-Listen (Toppings, Saucen) auf hellem Grund */
.bereich:not(.hervorgehoben) .chips li {
  padding: 6px 12px;
  border: 1px solid var(--linie);
  background: var(--creme-hell);
  font-size: 14px;
  font-weight: 500;
}

.bereich:not(.hervorgehoben) .auswahl { margin-top: 18px; }
.bereich:not(.hervorgehoben) .auswahl + .gerichte { margin-top: 22px; border-top: 1px solid var(--linie); }

.gericht-zeile {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gericht-name {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

/* gepunktete Linie zwischen Name und Preis – wie auf einer gedruckten Karte */
.punkte {
  flex: 1 1 auto;
  min-width: 16px;
  border-bottom: 2px dotted #cdb68a;
  transform: translateY(-4px);
}

.preis {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.beschreibung {
  margin: 4px 0 0;
  color: var(--braun-weich);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Hervorgehobener Bereich (Açaí) ---------- */

.bereich.hervorgehoben {
  background: var(--braun);
  color: var(--creme);
  padding-bottom: 30px;
}

.hervorgehoben .bereich-foto {
  aspect-ratio: 1 / 1;
  max-height: 520px;
}

.hervorgehoben .untertitel { color: var(--senf); }
.hervorgehoben .hinweise li { color: #e9d9bd; }

.hervorgehoben .gerichte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.hervorgehoben .gericht {
  padding: 14px 14px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--senf);
  color: var(--braun);
}

.hervorgehoben .gericht-zeile {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hervorgehoben .gericht-name { font-size: 14px; font-weight: 600; }
.hervorgehoben .punkte { display: none; }
.hervorgehoben .preis { font-size: 26px; font-family: var(--schrift-titel); font-weight: 400; }
.hervorgehoben .beschreibung { color: var(--braun); }

.auswahl, .info { padding: 0 var(--rand); margin-top: 22px; }

.block-titel {
  margin: 0 0 8px;
  color: var(--senf-dunkel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hervorgehoben .block-titel { color: var(--senf); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.chips li {
  padding: 7px 14px;
  border: 1.5px solid var(--senf);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.info p { margin: 0; font-size: 16px; line-height: 1.55; }

/* ---------- Fuß ---------- */

.fuss {
  max-width: 560px;
  margin: 0 auto;
  padding: 26px var(--rand) 14px;
  color: var(--braun-weich);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.fuss p { margin: 0 0 4px; }

.lade-hinweis {
  padding: 40px var(--rand);
  color: var(--braun-weich);
  text-align: center;
}

/* kleiner Link zu Impressum und Datenschutz ganz unten */
.rechtliches {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--rand) 36px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  color: #a08a72;
  font-size: 12px;
  text-align: center;
}

.rechtliches a { color: inherit; text-underline-offset: 3px; }

/* Seite Impressum / Datenschutz */
.rechtsseite .titel { font-size: 34px; margin-top: 10px; }

.zurueck {
  display: inline-block;
  padding: 6px 0;
  color: var(--senf);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.rechtstext {
  padding: 8px var(--rand) 10px;
  font-size: 15px;
  line-height: 1.6;
}

.rechtstext h2 {
  margin: 26px 0 6px;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: 24px;
}

.rechtstext h3 { margin: 18px 0 4px; font-size: 15px; }
.rechtstext p { margin: 0 0 8px; color: var(--braun); }
.rechtstext a, .fuss a { color: var(--braun-logo); text-underline-offset: 3px; }

/* kleine Meldung unten (z. B. "Übersetzung folgt") */
.meldung {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--braun);
  color: var(--creme);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.meldung.sichtbar { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Leichte Animationen ---------- */

@keyframes erscheinen {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Elemente gleiten beim Scrollen sanft herein (nur wenn JavaScript läuft) */
.js .einblenden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--verzoegerung, 0s);
}

.js .einblenden.da { opacity: 1; transform: none; }

/* Foto zoomt beim Erscheinen ganz leicht heraus */
.foto-rahmen { overflow: hidden; }
.js .foto-rahmen .bereich-foto { transform: scale(1.06); transition: transform 1.6s ease-out; }
.js .foto-rahmen.da .bereich-foto { transform: none; }

/* Wer weniger Bewegung eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .einblenden, .js .foto-rahmen .bereich-foto { opacity: 1; transform: none; }
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 600px) {
  body { background: #efe3cb; }
  main, .fuss, .rechtliches, .rechtstext { background: var(--creme); }
  .bereich.hervorgehoben { border-radius: 0; }
}
