/* Sam's Thai Food — Farben aus dem Logo, siehe docs/DESIGN.md */

/* Figtree, selbst ausgeliefert: kein Request an Google beim Besucher.
   Variable Font, 400–800 in einer Datei je Zeichensatz, zusammen ~30 KB.
   Thai-Schrift deckt der Systemfallback im font-Stack ab. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gold:        #CB911D;
  --gold-light:  #D8AE5E;
  --gold-text:   #8F6410;
  --yellow:      #DEC13D;
  --green:       #56613B;
  --green-light: #6B7550;
  --ink:         #1D1D1D;
  --sand:        #E6D3A4;
  --sand-tint:   #F7F0E1;
  --paper:       #FDFCFC;
  --line:        #E6DFCE;

  --wrap: 46rem;
  --radius: 0.85rem;
  /* Thai-Schnitte am Ende: Figtree deckt kein Thai ab, der Browser greift
     dann automatisch auf den ersten passenden Fallback zurück. */
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "Leelawadee UI", "Noto Sans Thai", sans-serif;

  --shadow-s: 0 1px 2px rgba(29, 29, 29, 0.06), 0 2px 8px rgba(29, 29, 29, 0.05);
  --shadow-m: 0 2px 4px rgba(29, 29, 29, 0.07), 0 8px 24px rgba(29, 29, 29, 0.09);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 4.5rem; /* Rückfallwert für die Statusleiste, JS misst exakt nach */
}

h1, h2, h3 { line-height: 1.2; }

a { color: var(--gold-text); }

/* Sichtbarer Tastaturfokus — der Browserstandard geht auf farbigen Flächen unter */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--sand-tint) 0%, var(--paper) 62%);
  border-bottom: 3px solid var(--gold);
}

/* Bewusst zurückhaltend auf dem Handy: Das Logo soll nicht den halben
   ersten Bildschirm belegen, bevor der Gast Öffnungszeiten und Karte sieht. */
.hero__logo {
  width: min(52vw, 13rem);
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply; /* weisser Logo-Hintergrund verschmilzt mit der Seite */
}

.hero__tagline {
  margin: 0.15rem auto 0.9rem;
  max-width: 24rem;
  font-size: 1rem;
  color: var(--green);
  font-weight: 600;
  text-wrap: balance;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero__nav a {
  color: var(--green);
  text-decoration: none;
  background: rgba(203, 145, 29, 0.1);
  border: 1px solid rgba(203, 145, 29, 0.35);
  border-radius: 2rem;
  padding: 0.42rem 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero__nav a:hover,
.hero__nav a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

@media (min-width: 40rem) {
  .hero { padding: 2rem 1.25rem 2.25rem; }
  .hero__logo { width: min(40vw, 17rem); }
  .hero__tagline { font-size: 1.1rem; }
  .hero__nav { font-size: 0.85rem; gap: 0.5rem; }
}

/* ---------- Status-Pille ---------- */

.status {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-s);
  text-wrap: balance;
}
.status[data-open="false"] {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--sand);
}

/* ---------- Bänder und Sektionen ---------- */

.band, .section {
  padding: 2.5rem 1.25rem;
}

.band--intro {
  background: var(--green);
  color: #fff;
  text-align: center;
}

.intro {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 1.15rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.badges li {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.section { max-width: var(--wrap); margin: 0 auto; scroll-margin-top: 0.5rem; }
.section--alt {
  max-width: none;
  background: var(--sand-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--wrap); margin-inline: auto; }

.section h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* margin-inline: auto, damit die Ueberschrift in .section--alt mitzentriert
     wird — eine reine `margin: 0 0 …`-Kurzform wuerde das auto ueberschreiben. */
  margin: 0 auto 1.25rem;
  /* Ankersprünge aus der Navigation sollen nicht unter dem oberen Rand kleben */
  scroll-margin-top: 1rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}
.section h2.h2--spaced { margin-top: 2.5rem; }

/* ---------- Speisekarte ---------- */

.preview-note {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
}

.menu__group { margin-bottom: 2.25rem; }

.menu__group h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--sand);
}

/* Karten statt Listenzeilen: trennt die Gerichte klarer und lässt die
   Bilder als Teil des Gerichts wirken, nicht als loses Element davor. */
.dish {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
}
.dish:last-child { margin-bottom: 0; }

.dish > *:not(.dish__figure) {
  padding-inline: 0.95rem;
}

.dish__figure {
  position: relative;
  margin: 0 0 0.8rem;
}

.dish__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sand-tint);
}

/* Ohne Bild — etwa bei den Getränken — braucht die Karte oben Luft */
.dish:not(:has(.dish__figure)) { padding-top: 0.9rem; }

/* Pflichthinweis nach Artikel 50 EU-KI-VO: muss ohne Interaktion sichtbar sein */
.dish__ai {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(29, 29, 29, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
}

.dish__name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.dish__thai {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold-text);
}

.dish__desc {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--green-light);
}

.dish__marks {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--gold-text);
  font-weight: 600;
}

.variants {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.variants li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.2rem 0;
}
/* Fuehrungspunkte zwischen Bezeichnung und Preis, wie auf einer Speisekarte */
.variants li::after {
  content: "";
  flex: 1 1 auto;
  order: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.28em);
}
.variants li > span:first-child { flex: 0 1 auto; }
.variants__price {
  order: 2;
  flex: 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dish__price--tbd { color: var(--green-light); font-weight: 600; margin: 0.5rem 0 0; }

.menu__note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--green-light);
}
.menu__note--slim {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
  font-size: 0.85rem;
}

.hint--slim { padding: 0.8rem 1rem; }

.menu__empty {
  color: var(--green-light);
  font-style: italic;
}

/* ---------- Öffnungszeiten ---------- */

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours td {
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.hours td:last-child { text-align: right; white-space: nowrap; }

.hours tr[data-today="true"] {
  font-weight: 700;
  color: var(--gold-text);
}
.hours tr[data-today="true"] td:first-child::before {
  content: "▸ ";
  color: var(--gold);
}

.hours__closed { color: var(--green-light); font-weight: 600; }

.hours__summary {
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ---------- Standort und Kontakt ---------- */

.address {
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hint {
  background: var(--sand-tint);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.hint p { margin: 0.35rem 0; }
.hint__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-text);
}

.shot {
  margin: 0 0 1.5rem;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--green-light);
}

.contact-note {
  margin: 0 0 1.15rem;
  color: var(--green-light);
}

.actions { margin: 0; }
.actions--wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover, .btn:focus { background: var(--ink); color: var(--paper); }

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--primary:hover, .btn--primary:focus {
  background: var(--gold-text);
  border-color: var(--gold-text);
  color: #fff;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}
.footer p { margin: 0.35rem 0; }
.footer a { color: var(--sand); }

/* ---------- Mitlaufende Statusleiste ---------- */

.statusbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.22);
  z-index: 5;
}

/* Geschlossen: gedämpft statt einladend grün */
.statusbar[data-open="false"] {
  background: var(--ink);
  color: var(--sand);
}

.statusbar__dot {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #7CE08A;
  box-shadow: 0 0 0 3px rgba(124, 224, 138, 0.28);
}
.statusbar[data-open="false"] .statusbar__dot {
  background: var(--gold);
  box-shadow: none;
}

.statusbar__text { flex: 0 1 auto; }

.statusbar__call {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.statusbar__call::before {
  content: "Anrufen ";
  font-weight: 600;
  opacity: 0.75;
}

/* Auf sehr schmalen Geräten hat nur der Status Platz */
@media (max-width: 28rem) {
  .statusbar { font-size: 0.88rem; padding: 0.7rem 0.85rem; }
  .statusbar__call { display: none; }
}

@media (min-width: 40rem) {
  .band, .section { padding: 3.5rem 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Rechtsseiten ---------- */

.legal-page { padding-bottom: 0; }

.legal-head {
  text-align: center;
  padding: 1rem;
  border-bottom: 3px solid var(--gold);
  background: var(--sand-tint);
}
.legal-head__logo {
  width: 7rem; height: auto;
  mix-blend-mode: multiply;
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  color: var(--green);
}

.legal p { margin: 0.5rem 0; }

.todo {
  background: #FBE9E7;
  border-left: 5px solid #B3261E;
  color: #7A1B15;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.fill {
  background: #FFF3C4;
  border-bottom: 2px dashed #B3261E;
  padding: 0.1rem 0.25rem;
  font-style: italic;
}

.legal__back { margin-top: 2.5rem; font-weight: 600; }
