/* ==========================================================================
   Theme Kita- & Schulverpflegung – hell, grün, freundlich, kindgerecht
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f2f8ee;
  --surface: #ffffff;
  --text: #22301f;
  --muted: #5d6b59;
  --accent: #2f7a33;
  --accent-hover: #256229;
  --accent-2: #f2a33c;
  --yellow: #f7d060;
  --green-light: #cfe8c5;
  --green-soft: #e6f2e0;
  --orange-soft: #fdebd3;
  --yellow-soft: #fdf5d6;
  --on-accent: #ffffff;
  --border: rgba(47, 122, 51, 0.16);
  --radius: 16px;
  --radius-l: 28px;
  --shadow: 0 16px 40px rgba(47, 122, 51, 0.14);
  --shadow-s: 0 6px 18px rgba(47, 122, 51, 0.1);
  --font-head: 'Fredoka', 'Fredoka Fallback', Arial, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
}

h1, h2, h3, h4 { font-weight: 600; }
.brand { font-weight: 600; }

/* ---------- Wellen-Trenner ---------- */
.wave {
  display: block;
  width: 100%;
  height: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: -1px;
}
.wave--flip { transform: scaleY(-1); margin-bottom: 0; margin-top: -1px; }

/* ---------- Doodles (handgezeichnete Illustrationen) ---------- */
.doodle {
  width: 4rem; height: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle--float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ---------- Hero ---------- */
.hero--kita {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(40% 50% at 90% 10%, var(--yellow-soft), transparent 70%),
    radial-gradient(35% 45% at 5% 90%, var(--green-soft), transparent 70%),
    var(--bg);
}
.hero--kita .container {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero--kita .container { grid-template-columns: 1.05fr 0.95fr; }
}
.hero--kita h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4rem);
  color: var(--accent);
}
.hero--kita h1 span { color: var(--text); }
.hero--kita .lead { color: var(--muted); max-width: 34rem; }

.hero__visual {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
}
.hero__visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 46% 54% 52% 48% / 42% 46% 54% 58%;
  box-shadow: var(--shadow);
}
.hero__visual .doodle {
  position: absolute;
  color: var(--accent);
}
.hero__visual .doodle--carrot { top: -6%; left: -4%; --rot: -14deg; color: var(--accent-2); }
.hero__visual .doodle--apple { bottom: -4%; right: 2%; --rot: 8deg; color: #d84b3a; }
.hero__visual .doodle--pea { top: 10%; right: -6%; --rot: 20deg; width: 3.4rem; height: 3.4rem; }
.hero__visual .doodle--spoon { bottom: 8%; left: -8%; --rot: -30deg; width: 3.4rem; height: 3.4rem; color: var(--muted); }
@media (max-width: 40rem) {
  .hero__visual .doodle { width: 2.75rem; height: 2.75rem; }
  .hero__visual .doodle--spoon, .hero__visual .doodle--pea { display: none; }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--step--1);
}
.hero__kicker .doodle { width: 1.4rem; height: 1.4rem; stroke-width: 2.8; }

/* ---------- Trust-Leiste ---------- */
.trust {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding: 0; margin: 0;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: var(--step--1);
  line-height: 1.3;
}
.trust .icon {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--accent);
}
.trust .icon--orange { background: var(--orange-soft); color: #b9731a; }
.trust .icon--yellow { background: var(--yellow-soft); color: #9a7a0a; }
.trust .icon svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Vorteile ---------- */
.benefits .card { border: 0; box-shadow: var(--shadow-s); }
.benefits .card .icon { border-radius: 50%; background: var(--green-soft); }
.benefits .card:nth-child(3n + 2) .icon { background: var(--orange-soft); color: #b9731a; }
.benefits .card:nth-child(3n) .icon { background: var(--yellow-soft); color: #9a7a0a; }

/* ---------- Schritte ---------- */
.steps li { border: 0; box-shadow: var(--shadow-s); }
.steps li::before { background: var(--accent-2); color: #22301f; font-family: var(--font-head); }

/* ---------- Speiseplan-Vorschau ---------- */
.plan {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.plan__day {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.plan__day h3 {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: var(--step-0);
  background: var(--accent);
  color: #fff;
}
.plan__day:nth-child(2) h3 { background: var(--accent-2); color: #22301f; }
.plan__day:nth-child(3) h3 { background: var(--yellow); color: #22301f; }
.plan__day:nth-child(4) h3 { background: #6bb56f; color: #22301f; }
.plan__day:nth-child(5) h3 { background: #7fb2dd; color: #22301f; }
.plan__day ul {
  list-style: none;
  padding: var(--space-s);
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: var(--step--1);
}
.plan__day li strong { display: block; color: var(--text); }
.plan__day li { color: var(--muted); hyphens: auto; overflow-wrap: break-word; }
.tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  background: var(--green-soft);
  color: var(--accent);
}
.tag--bio { background: var(--yellow-soft); color: #7a5f00; }
.tag--fisch { background: #dcecf8; color: #23577d; }

/* ---------- Für wen ---------- */
.audience {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  padding: 0; margin: 0;
  list-style: none;
}
.audience li {
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 2px dashed var(--green-light);
  text-align: center;
  font-weight: 700;
}
.audience .doodle { margin: 0 auto 0.6rem; color: var(--accent); }
.audience li span { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }

/* ---------- Bild-Text ---------- */
.media__img img { border-radius: var(--radius-l); }
.media--blob .media__img img { border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%; aspect-ratio: 1; }

/* ---------- Kontakt ---------- */
.contact-card { background: var(--accent); }
.contact-card .btn--primary { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); }

/* Wechsel-Banner in Restaurant-Farben */
.switch-banner--restaurant {
  background: #18181d;
  border: 0;
  color: #f4f1ea;
}
.switch-banner--restaurant strong { color: #b7b095; font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif; font-weight: 700; }
.switch-banner--restaurant .btn { background: #b7b095; border-color: #b7b095; color: #18181d; }
.switch-banner--restaurant .btn:hover { background: #d2cbb0; border-color: #d2cbb0; color: #18181d; }

/* ---------- Musterspeiseplan-Seite ---------- */
.plan-page { padding-block: var(--space-l) var(--section); }
.plan-page .plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}
.plan-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  font-size: var(--step--1);
}
.plan-table th, .plan-table td {
  padding: 0.85rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.plan-table thead th {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-0);
}
.plan-table thead th:first-child { width: 9.5rem; }
.plan-table thead th:nth-child(3) { background: var(--accent-2); color: #22301f; }
.plan-table thead th:nth-child(4) { background: var(--yellow); color: #22301f; }
.plan-table thead th:nth-child(5) { background: #6bb56f; color: #22301f; }
.plan-table thead th:nth-child(6) { background: #7fb2dd; color: #22301f; }
.plan-table tbody th {
  width: 9.5rem;
  background: var(--bg-alt);
  font-weight: 800;
  color: var(--accent);
}
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table td { hyphens: auto; overflow-wrap: break-word; }
.plan-table td small { display: block; color: var(--muted); }
@media (max-width: 52rem) {
  .plan-table, .plan-table thead, .plan-table tbody, .plan-table tr, .plan-table th, .plan-table td { display: block; }
  .plan-table thead { display: none; }
  .plan-table tbody tr { padding: var(--space-s); border-bottom: 1px solid var(--border); }
  .plan-table tbody th { width: auto; border-radius: 10px; margin-bottom: 0.4rem; }
  .plan-table td { border: 0; padding: 0.4rem 0.6rem; }
  .plan-table td::before { content: attr(data-day) ': '; font-weight: 800; color: var(--text); }
}
.week-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.week-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--step--1);
  text-decoration: none;
}
.week-nav a:hover { background: var(--accent); color: #fff; }
.plan-week { scroll-margin-top: 5rem; }
.plan-week + .plan-week { margin-top: var(--space-l); }
.plan-week h2 { margin: 0 0 var(--space-s); font-size: var(--step-1); }
.plan-table sup, .legend sup {
  margin-left: 0.1em;
  font-size: 0.68em;
  font-weight: 600;
  color: var(--muted);
}
.allergens {
  display: grid;
  gap: 0.3rem var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin: 0 0 var(--space-s);
  font-size: var(--step--1);
}
.allergens div { display: flex; gap: 0.5rem; }
.allergens dt { min-width: 1.2rem; font-weight: 800; color: var(--accent); }
.allergens dd { margin: 0; }
.additives { font-size: var(--step--1); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  margin-top: var(--space-m);
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--step--1);
}
