/* hoyhay — eine Datei, handgeschrieben, kein Build-Schritt.
   Die CSP im edge-Caddy erlaubt `style-src 'self'` ohne `unsafe-inline`; ein Style-Attribut
   im Markup waere damit wirkungslos, nicht nur unschoen.

   Die Farbregel ist der Kern und keine Dekoration:
     Ámbar #F2B33D — ausschliesslich, was der Gast waehlt. Optionen, Preise, Hauptknopf, Marke.
     Verde #6FC0AD — ausschliesslich, was schon dabei ist. Nie antippbar, nie ein Knopf.
   Wer scrollt, soll ohne Lesen erkennen, wo er entscheidet. Genau dort machen falsch
   ausgelesene Karten sonst Aerger im Restaurant. */

@font-face {
  font-family: 'Archivo';
  src: url('/estatico/fonts/archivo.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/estatico/fonts/instrument-sans.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}

:root {
  --tablero: #14120e;
  --superficie: #201d18;
  --superficie-2: #2b2721;
  --linea: #3a352c;
  --tiza: #f4f1e8;
  --apagado: #9c9487;
  --ambar: #f2b33d;
  --ambar-hondo: #c98f1e;
  --verde: #6fc0ad;
  --falta: #e36a55;
  --display: 'Archivo', system-ui, sans-serif;
  --texto: 'Instrument Sans', system-ui, sans-serif;
}

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

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

body {
  background: var(--tablero);
  color: var(--tiza);
  font-family: var(--texto);
  /* Nichts unter 15 px. Die Zielgruppe ist nicht 25. */
  font-size: 17px;
  line-height: 1.55;
  padding: 20px 18px 64px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Wortmarke ----------
   `hoy` in 800, `hay` in 300 und Ámbar. Zwei Spruenge auf einmal machen aus dem Doppel-H
   eine sichtbare Absicht statt eines Tippfehlers. Nie umfaerben, nie Versalien. */
.cabecera { padding-block: 8px 26px }
.marca {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 34px;
  line-height: 0.9;
  color: var(--tiza);
  text-decoration: none;
}
.marca i { font-style: normal; font-weight: 300; color: var(--ambar) }

/* ---------- Text ---------- */
.titulo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 18ch;
}
.subtitulo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--apagado);
  margin-top: 38px;
}
.apagado { color: var(--apagado); font-size: 15px }
.recibida { margin-top: 10px; font-size: 14px }

/* ---------- Countdown "wann es wieder losgeht" ----------
   Weder Auswahl (Ámbar) noch Inkludiertes (Verde), sondern gedämpfte Information. */
.cuenta {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 40px);
  letter-spacing: -0.025em;
  color: var(--apagado);
  font-variant-numeric: tabular-nums;
}
.cuenta time { color: inherit }

/* ---------- Aviso-Formular ---------- */
.avisame { margin-top: 28px }

/* Auffaelligste Stelle der Seite, wenn sie da ist: eigener Kasten, deutlich groesser als
   .hint, mit Abstand. Kein Aussen-Knopf — es ist nichts zum Klicken. */
.aviso-mensaje {
  margin-block: 28px;
  padding: 22px 18px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-left-width: 4px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tiza);
}
.aviso-mensaje--mal { border-left-color: var(--falta) }

/* ---------- Liste ---------- */
.lista { list-style: none; margin-top: 22px }
.tarjeta { margin-bottom: 10px }
.tarjeta a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  min-height: 48px;
}
.tarjeta a:hover { border-color: var(--apagado) }
.restaurante {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.precio {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ambar);
  /* Untereinander stehende Betraege muessen buendig sein, sonst sieht die Karte nach
     Bastelei aus. */
  font-variant-numeric: tabular-nums;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}

/* ---------- Incluido ----------
   Verde markiert nur, was ohne Zutun im Teller liegt. Kein Rahmen, keine Flaeche, nichts,
   was nach Knopf aussieht. */
.incluido { border-left: 3px solid var(--verde); padding: 4px 0 4px 15px; margin-top: 24px }
.incluido .etiqueta { color: var(--verde) }
.incluido ul { list-style: none; font-size: 16px }
.incluido li { padding: 3px 0 }
.incluido li::before { content: '·'; color: var(--verde); margin-right: 9px; font-weight: 700 }

.etiqueta {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--apagado);
  margin-bottom: 10px;
}

/* ---------- Fuss ---------- */
.pie { margin-top: 48px; display: flex; gap: 18px; font-size: 14px }
.pie a { color: var(--apagado) }

a { color: var(--tiza) }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px }

/* ---------- Restaurantseite ---------- */
.titulo-rest {
  font-family: var(--display);
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
/* Das Fassadenbild steht ueber dem Namen. Mit nativer Breite/Hoehe im Markup und
   aspect-ratio im CSS wird der Platz reserviert, bevor das Bild geladen ist.
   Auf dem Handy bleibt es ein Streifen von maximal 150 px Hoehe; object-position
   zentriert das Gebaeude, damit die Fassade nicht wegfaellt. */
.fachada {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 18px;
}
.aviso { margin-top: 22px; color: var(--apagado) }
.texto { margin-top: 10px; max-width: 52ch }
.bloque { margin-top: 26px }

/* ---------- Teller-Akkordeon ----------
   Bei mehreren Tellern klappbar, bei einem einzelnen eine flache Kachel. */
.plato {
  margin-top: 20px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 12px;
  overflow: hidden;
}
.plato-cuerpo { padding: 4px 18px 16px }
.plato summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.plato summary::-webkit-details-marker { display: none }
.plato summary .plato-titulo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.plato summary .plato-resumen {
  flex: 1;
  text-align: right;
  color: var(--apagado);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plato[open] summary { border-bottom: 1px solid var(--linea) }

/* ---------- Zonenwahl ---------- */
.zonas { display: flex; gap: 10px; align-items: flex-end; margin-top: 24px }
.zonas .campo { flex: 1 }

/* ---------- Auswahlgruppen ----------
   Ámbar markiert AUSSCHLIESSLICH, was der Gast waehlt. Der ausgewaehlte Zustand muss ohne
   Lesen erkennbar sein — deshalb Rahmen UND Flaeche, nicht nur ein Haken. */
.grupo { border: 0; margin-top: 26px }
.grupo legend { padding: 0 }
.opcion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 9px;
  background: var(--superficie-2);
  font-size: 17px;
  min-height: 48px;
  cursor: pointer;
}
.opcion:hover { border-color: var(--apagado) }
.opcion input[type='radio'] { accent-color: var(--ambar); width: 20px; height: 20px; flex: none; order: -1 }
.opcion .nombre { flex: 1 }
.opcion:has(input:checked) { border-color: var(--ambar); background: #332a16 }
.opcion[data-sel='1'] { border-color: var(--ambar); background: #332a16 }
.subgrupo { margin: 0 0 12px 18px; padding-left: 14px; border-left: 1px solid var(--linea) }
.subgrupo .etiqueta { margin: 8px 0 8px }

/* ---------- Formularfelder ---------- */
.campo { display: block; margin-bottom: 12px }
.campo > span { display: block; font-size: 14px; color: var(--apagado); margin-bottom: 5px }
.campo input, .campo select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 10px;
  color: var(--tiza);
  font-family: var(--texto);
  font-size: 17px;
}
.campo input:focus, .campo select:focus { border-color: var(--ambar); outline: none }
.guardado { margin-top: 14px; font-size: 14px }
.enlace {
  background: none;
  border: 0;
  color: var(--tiza);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
/* Fehlt ein Pflichtfeld, wird es konkret benannt — nie "campo obligatorio". */
.falta { color: var(--falta); margin: 14px 0; font-size: 15px }

/* ---------- Summe und Knopf ---------- */
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--linea);
}
.precio-total {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  color: var(--ambar);
  font-variant-numeric: tabular-nums;
}
.precio-total.sin-precio {
  font-weight: 400;
  font-size: 15px;
  color: var(--tiza);
  line-height: 1.35;
  text-align: right;
}
.precio-linea { color: var(--ambar); font-variant-numeric: tabular-nums }
.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  background: var(--ambar);
  color: var(--tablero);
  border: 0;
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--ambar-hondo) }
/* Sekundaere Aktionen sind Textlinks oder ein stiller Knopf — nie ein zweiter Ámbar-Knopf. */
.btn-secundario {
  min-height: 48px;
  padding: 12px 18px;
  background: var(--superficie-2);
  color: var(--tiza);
  border: 1px solid var(--linea);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.hint { color: var(--apagado); font-size: 14px; margin-top: 11px; text-align: center }
.hint a { color: var(--apagado) }

/* ---------- Bestellbestaetigung ---------- */
.resumen { margin-top: 24px }
.resumen .linea {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linea);
}
.pagos { margin-top: 26px }

/* ---------- Daumen ----------
   Kein Sterne-Rating, keine Kommentare, kein Formular. Zwei Flaechen, ein Klick. Bewusst
   NICHT in Ámbar: der Gast waehlt hier nichts fuer seine Bestellung aus, er gibt uns eine
   Auskunft. Ámbar bliebe sonst nicht die Farbe der Auswahl. */
.pulgares { display: flex; align-items: center; gap: 12px; margin-top: 32px }
.pulgares .etiqueta { margin: 0; flex: 1 }
.pulgar {
  min-width: 48px;
  min-height: 48px;
  font-size: 22px;
  line-height: 1;
  background: var(--superficie-2);
  border: 1px solid var(--linea);
  border-radius: 10px;
  color: var(--tiza);
  cursor: pointer;
}
.pulgar:hover { border-color: var(--apagado) }
