/* Mittagsradar — Hausfarben von Simi's Stüble, warm und ruhig.
   Ein Blatt, kein Build. Dark ist die Grundlage, Hell kommt über
   prefers-color-scheme. Alles, was Bewegung ist, respektiert
   prefers-reduced-motion. */

:root {
  --grund: #1b1714;
  --flaeche: #241f1a;
  --flaeche-hell: #2e2721;
  --linie: #3d342c;
  --text: #f4e9dc;
  --text-leise: #b9a99a;
  --akzent: #e8734a;
  --akzent-tief: #c2552f;
  --akzent-text: #1b1714;
  --ok: #7fbf8a;
  --radius: 18px;
  --radius-klein: 12px;
  --breite: 62rem;
  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --grund: #fbf7f2;
    --flaeche: #ffffff;
    --flaeche-hell: #f4ece2;
    --linie: #e3d7c9;
    --text: #2a201a;
    --text-leise: #6f5d4f;
    --akzent: #c2552f;
    --akzent-tief: #9c4223;
    --akzent-text: #ffffff;
    --ok: #3f7a4c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--akzent);
  color: var(--akzent-text);
  padding: 0.75rem 1rem;
  z-index: 10;
  font-weight: 650;
}
.sprung:focus { left: 1rem; top: 1rem; }

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

.kopf {
  border-bottom: 1px solid var(--linie);
  background:
    radial-gradient(120% 140% at 8% 0%, color-mix(in oklab, var(--akzent) 22%, transparent), transparent 60%),
    var(--grund);
}
.kopf-inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.1rem, 4vw, 2rem) clamp(1.4rem, 3vw, 2rem);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.marke-punkt {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--akzent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--akzent) 60%, transparent);
  animation: puls 3s ease-out infinite;
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--akzent) 55%, transparent); }
  70% { box-shadow: 0 0 0 0.55rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.untertitel {
  margin: 0.7rem 0 0;
  color: var(--text-leise);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}

/* ---------- Radar ---------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.1rem, 4vw, 2rem) 3rem;
}

.radar {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.radar-schirm {
  position: relative;
  display: grid;
  place-items: center;
}
.radar-schirm svg {
  width: 100%;
  max-width: 15rem;
  height: auto;
  overflow: visible;
}
#radar-skala text {
  fill: var(--text-leise);
  font-size: 9px;
  font-family: var(--schrift);
}
#radar-skala line { stroke: var(--linie); stroke-width: 1; }
.radar-legende {
  position: absolute;
  bottom: -0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.zustand-art {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
  font-weight: 700;
}
.radar-text h2 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.zustand-detail {
  margin: 0.6rem 0 0;
  color: var(--text-leise);
  max-width: 34ch;
}
.balken {
  margin: 1.1rem 0 0.55rem;
  height: 6px;
  border-radius: 99px;
  background: var(--flaeche-hell);
  overflow: hidden;
}
.balken span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--akzent-tief), var(--akzent));
  transition: width 0.8s ease;
}
.zustand-zeit {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  color: var(--text-leise);
}
.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--linie);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  background: var(--flaeche-hell);
  transition: transform 0.15s ease, background 0.15s ease;
}
.knopf:hover { background: var(--linie); }
.knopf:active { transform: translateY(1px); }
.knopf-haupt {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--akzent-text);
}
.knopf-haupt:hover { background: var(--akzent-tief); border-color: var(--akzent-tief); }

/* Zustandsfarben */
.radar[data-art="mittagstisch"] .zustand-art { color: var(--ok); }
.radar[data-art="mittagstisch"] .balken span { background: var(--ok); }
.radar[data-art="geschlossen"] { opacity: 0.94; }

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

section { margin-top: clamp(2rem, 5vw, 3.2rem); }
.abschnitt-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}
.abschnitt-kopf h2 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  font-weight: 600;
}
.abschnitt-note {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.88rem;
}

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

.gerichte {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.gericht {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.gericht-bild {
  /* height: auto ist nötig: sonst gewinnt das height-Attribut des <img>
     gegen aspect-ratio und die Bilder laufen 900 px hoch. */
  height: auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--flaeche-hell);
  display: block;
}
.gericht-koerper {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.gericht h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}
.gericht p { margin: 0; color: var(--text-leise); font-size: 0.92rem; }
.gericht-fuss {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.preis { font-variant-numeric: tabular-nums; font-weight: 650; }
.preis-leer { color: var(--text-leise); font-size: 0.85rem; }
.gericht a.knopf { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

.leer {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--linie);
  border-radius: var(--radius-klein);
  color: var(--text-leise);
}

/* ---------- Wochenleiste ---------- */

.wochenleiste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
}
.tageskarte {
  position: relative;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: var(--radius-klein);
  border: 1px solid var(--linie);
  background: var(--flaeche);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 7.2rem;
}
.tageskarte[data-offen="false"] { background: transparent; border-style: dashed; color: var(--text-leise); }
.tageskarte[data-heute="true"] { border-color: var(--akzent); background: color-mix(in oklab, var(--akzent) 12%, var(--flaeche)); }
.tageskarte-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.tageskarte[data-heute="true"] .tageskarte-kopf { color: var(--akzent); font-weight: 700; }
.tageskarte ul { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; line-height: 1.35; }
.tageskarte li + li { margin-top: 0.25rem; }
.tageskarte .zeit { font-size: 0.78rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.tageskarte .ruhetag { font-size: 0.88rem; color: var(--text-leise); }

/* ---------- Hinweise ---------- */

.hinweise {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: var(--radius);
  background: var(--flaeche);
  border: 1px solid var(--linie);
}
.hinweise h2 { margin: 0 0 0.8rem; font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 600; }
.hinweise ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; color: var(--text-leise); }
.hinweise strong { color: var(--text); }

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

.fuss { border-top: 1px solid var(--linie); margin-top: 3rem; }
.fuss-inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.6rem clamp(1.1rem, 4vw, 2rem) 2.4rem;
  font-size: 0.9rem;
  color: var(--text-leise);
}
.fuss-inhalt p { margin: 0 0 0.5rem; }
.fuss-klein { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.textknopf {
  font: inherit;
  color: var(--akzent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fuss-hinweis {
  margin-top: 0.9rem !important;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--akzent);
  background: var(--flaeche);
  border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
}

/* ---------- Schmal ---------- */

@media (max-width: 40rem) {
  .radar {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .radar-schirm svg { max-width: 12rem; }
  .wochenleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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