/* playmoomli.com – Moomlis Küche
   Bilderbuch-Wärme aus der App: Sonnengelb, Kakao-Braun wie Moomli,
   rot-weißes Karo wie sein Halstuch. Eine Schrift (Nunito, lokal). */

@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-extrabold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/nunito-black.woff2") format("woff2");
}

:root {
  --sonne: #ffd23f;
  --sonne-tief: #f5b923;
  --kakao: #4a2c1a;
  --kakao-weich: #6e4b36;
  --tomate: #d93b2f;
  --tomate-hell: rgba(229, 71, 58, 0.55);
  --wiese: #8ccb5e;
  --wiese-tief: #5a9a3c;
  --himmel: #d5f0fb;
  --sand: #f2cc85;
  --papier: #ffffff;
  --rand: 3px solid var(--kakao);
  --schatten: 0 6px 0 rgba(74, 44, 26, 0.18);
  --breite: 1120px;
  --text: 38rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--kakao);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--tomate);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.huelle {
  width: min(100% - 2rem, var(--breite));
  margin-inline: auto;
}

.ueberspringen {
  position: absolute;
  left: -999px;
}
.ueberspringen:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--papier);
  padding: 0.5rem 1rem;
}

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

.kopf {
  background: var(--sonne);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
}

.marke img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: var(--rand);
}

.sprache {
  display: flex;
  gap: 0.25rem;
  font-weight: 800;
}

.sprache a,
.sprache span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.sprache span {
  background: var(--kakao);
  color: var(--sonne);
}

/* ---------- Bühne (Hero) ---------- */

.buehne {
  background: var(--sonne);
  padding-block: 1rem 4rem;
}

.buehne__innen {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.buehne h1 {
  font-size: clamp(3.25rem, 10vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.buehne h1 span {
  display: block;
}

.buehne__satz {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  max-width: 30rem;
}

.buehne__knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.knopf {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: var(--rand);
  background: var(--tomate);
  color: var(--papier);
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: var(--schatten);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.knopf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(74, 44, 26, 0.18);
}

.knopf:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(74, 44, 26, 0.18);
}

.bald {
  font-weight: 800;
  color: var(--kakao-weich);
}

.buehne__bild img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  animation: hallo 1.2s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes hallo {
  from {
    transform: scale(0.85) rotate(-4deg);
    opacity: 0;
  }
}

/* ---------- Tischtuch: rot-weißes Karo mit Zackenrand ---------- */

.tischtuch {
  --karo: 34px;
  background-color: var(--papier);
  background-image: linear-gradient(90deg, var(--tomate-hell) 50%, transparent 50%),
    linear-gradient(var(--tomate-hell) 50%, transparent 50%);
  background-size: var(--karo) var(--karo);
}

.tischtuch--band {
  height: 56px;
  -webkit-mask: radial-gradient(14px at 50% 0, transparent 98%, #000) 50% / 34px 100%;
  mask: radial-gradient(14px at 50% 0, transparent 98%, #000) 50% / 34px 100%;
  margin-top: -14px;
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.abschnitt__kopf {
  max-width: var(--text);
  margin-bottom: 2.5rem;
}

.abschnitt__kopf p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* So kocht dein Kind */

.szenen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.szenen img {
  height: 220px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.szenen h3 {
  margin-bottom: 0.4rem;
}

/* Welt mit Häusern */

.welt {
  /* Himmel oben, Wiese ab der halben Haushöhe */
  background: linear-gradient(var(--himmel) 0 calc(100% - 9rem), var(--wiese) calc(100% - 9rem));
  border-block: var(--rand);
  overflow: hidden;
  padding-bottom: 2rem;
}

.welt .abschnitt__kopf {
  margin-bottom: 1rem;
}

.haeuser {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  position: relative;
}

.haeuser::before {
  /* der Sandweg wie in der App */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.6rem;
  height: 22px;
  background: var(--sand);
  border-block: 3px solid #d6aa62;
  border-radius: 999px;
}

.haeuser li {
  text-align: center;
  position: relative;
}

.haeuser img {
  height: 130px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.haeuser span {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.15rem 0.7rem;
  background: var(--papier);
  border: 2px solid var(--kakao);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Gerichte auf Tellern */

.teller {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 1.25rem;
}

.teller li {
  text-align: center;
  font-weight: 800;
}

.teller__rund {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--papier);
  border: var(--rand);
  box-shadow: inset 0 0 0 10px #f3f7f9, var(--schatten);
  display: grid;
  place-items: center;
  padding: 16%;
  margin-bottom: 0.75rem;
}

.teller__rund img {
  position: absolute;
  inset: 16%;
  width: 68%;
  height: 68%;
  object-fit: contain;
}

/* Rezeptkarte für Eltern */

.eltern {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.karte {
  max-width: 44rem;
  margin-inline: auto;
  background: var(--papier);
  border: var(--rand);
  border-radius: 18px;
  box-shadow: 0 10px 0 rgba(74, 44, 26, 0.22);
  padding: clamp(1.5rem, 5vw, 3rem);
  transform: rotate(-1deg);
}

.karte h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
}

.karte > p {
  margin-top: 0.75rem;
}

.zutaten {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.zutaten li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.zutaten li::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 3px solid var(--kakao);
  background: var(--wiese)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%234a2c1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.zutaten strong {
  display: block;
  font-weight: 900;
}

/* Speisekarte (Preise) */

.preise {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.tafel {
  background: var(--kakao);
  color: var(--papier);
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  box-shadow: 0 10px 0 rgba(74, 44, 26, 0.25);
}

.tafel h3 {
  color: var(--sonne);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.tafel dl {
  margin: 0;
}

.tafel__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.tafel__zeile .punkte {
  flex: 1;
  border-bottom: 3px dotted rgba(255, 255, 255, 0.45);
  transform: translateY(-0.35em);
}

.tafel__zeile dd {
  margin: 0;
  font-weight: 900;
  white-space: nowrap;
}

.tafel__zeile .tafel__hinweis {
  flex-basis: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sonne);
}

.tafel__fuss {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.preise__moomli img {
  max-height: 380px;
  margin-inline: auto;
}

/* Fragen */

.fragen {
  max-width: 46rem;
}

.fragen details {
  border-bottom: 3px solid var(--sonne);
  padding-block: 1rem;
}

.fragen summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.fragen summary::-webkit-details-marker {
  display: none;
}

.fragen summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--tomate);
  transition: transform 0.2s ease;
}

.fragen details[open] summary::after {
  transform: rotate(45deg);
}

.fragen details p {
  margin-top: 0.75rem;
  max-width: var(--text);
}

/* Fuß */

.fuss {
  background: var(--kakao);
  color: var(--papier);
  padding-block: 3rem;
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.fuss nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 800;
}

.fuss small {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Rechtstexte ---------- */

.recht {
  padding-block: 3rem 5rem;
}

.recht article {
  max-width: 44rem;
}

.recht h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
}

.recht h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.recht p,
.recht ul {
  margin-block: 0.75rem;
}

.recht address {
  font-style: normal;
}

.stand {
  color: var(--kakao-weich);
}

.fehlt {
  background: #fff3c4;
  padding: 0 0.3rem;
  border-radius: 4px;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 900px) {
  .buehne__innen,
  .preise {
    grid-template-columns: 1fr;
  }
  .buehne__bild {
    order: -1;
  }
  .buehne__bild img {
    max-width: 340px;
  }
  .szenen {
    grid-template-columns: repeat(2, 1fr);
  }
  .teller {
    grid-template-columns: repeat(3, 1fr);
  }
  .haeuser {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 1rem;
  }
  .haeuser li {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
  .haeuser::before {
    width: 1200px;
    right: auto;
  }
  .preise__moomli {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.05rem;
  }
  .szenen img {
    height: 170px;
  }
  .teller {
    grid-template-columns: repeat(2, 1fr);
  }
  .karte {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.fragen h2 {
  margin-bottom: 1rem;
}

.verirrt {
  margin-top: 2rem;
  max-height: 280px;
  width: auto;
}
