/**
 * Startseite als Bestellseite
 * ----
 * Ergaenzt menu.css. Die Speisekarte selbst wird von static-menu.js
 * gerendert und bringt ihre eigenen Styles aus menu.css mit.
 *
 * Grundgedanke: Die Seite hat einen Zweck - bestellen. Der erste Bildschirm
 * zeigt deshalb, wohin geliefert wird und bereits das erste Gericht.
 * Keine Buehne, kein Slogan ueber die volle Hoehe.
 */

/* ================================
   KOPF - flach
   ================================ */

.site-header--schlank .site-header__inner {
  min-height: 56px;
}

.kopf-tel {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.kopf-tel:hover { color: var(--color-accent); }

@media (max-width: 560px) {
  /* Auf dem Handy ist die Nummer im Fussbereich und als Anruf-Knopf
     erreichbar - oben nimmt sie nur Platz weg. */
  .kopf-tel { display: none; }
}

/* ================================
   WILLKOMMEN - eine Zeile, kein Absatz
   ================================ */

.willkommen {
  padding-block: var(--space-5) var(--space-2);
}

.willkommen__satz {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin: 0;
  max-width: 62ch;
}

.willkommen__satz small {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.willkommen__kontozeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.konto-punkte {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  background: var(--color-highlight-soft);
  border: 1px solid var(--color-highlight);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  color: var(--color-text);
  white-space: nowrap;
}

/* Letzte Bestellung wiederholen - fuer Stammkunden der kuerzeste Weg */
.nochmal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.nochmal__text {
  flex: 1 1 220px;
  min-width: 0;
}

.nochmal__label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  font-weight: var(--weight-bold);
  margin: 0 0 2px;
}

.nochmal__gerichte {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
}

/* ================================
   LIEFERGEBIET-PRUEFUNG
   ================================ */

.liefern {
  padding-bottom: var(--space-4);
}

.liefern__reihe {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  flex-wrap: wrap;
}

.plz-feld {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  height: 46px;
  flex: 1 1 200px;
  min-width: 0;
  cursor: text;
}

.plz-feld:focus-within {
  border-color: var(--color-accent);
  /* Das Label schluckt den globalen :focus-visible-Ring — der Ring muss
     hier selbst her, sonst ist der Fokus fuer Tastatur kaum sichtbar. */
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.plz-feld input::placeholder {
  color: var(--color-text-subtle);
}

.plz-feld input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.plz-feld__pin {
  color: var(--color-accent);
  flex-shrink: 0;
  display: flex;
}

/* Antwort auf die PLZ. Drei Zustaende - neutral, zugesagt, abgelehnt.
   Der Wechsel blendet weich — das ist der Moment, in dem die Seite dem
   Kunden antwortet, und der darf nicht springen. */
.zusage {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  padding: 0 var(--space-4);
  min-height: 46px;
  flex: 2 1 300px;
  min-width: 0;
  background: var(--color-bg-subtle);
}

.zusage__zeichen {
  flex-shrink: 0;
  font-weight: var(--weight-bold);
  color: var(--color-text-subtle);
}

.zusage__text {
  min-width: 0;
  padding-block: var(--space-2);
}

.zusage__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.zusage__text small {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.zusage.is-ja {
  background: var(--color-success-soft);
  border-color: var(--color-leaf);
}

.zusage.is-ja .zusage__zeichen { color: var(--color-success); }

/* Ablehnung nie allein ueber Farbe - die Marke ist selbst rot.
   Deshalb zusaetzlich Zeichen und klarer Text (siehe tokens.css). */
.zusage.is-nein {
  background: var(--color-error-soft);
  border-color: var(--color-error);
}

.zusage.is-nein .zusage__zeichen { color: var(--color-error); }

/* ================================
   SPEISEKARTE
   ================================ */

.karte {
  padding-bottom: var(--space-16);
}

.karte__beilagen {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-highlight);
}

/* ================================
   INFORMATIONEN (Fussbereich)
   ================================ */

.unten {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  padding-block: var(--space-10) var(--space-12);
}

.unten__gitter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-8);
}

.unten h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-3);
}

.unten p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
  line-height: var(--leading-normal);
}

.unten a {
  color: var(--color-accent-ink);
  font-weight: var(--weight-semibold);
}

.zahlarten {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.zahlart {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* Reka-Lunch hervorgehoben - auf eat.ch nicht verfuegbar */
.zahlart--reka {
  border-color: var(--color-highlight);
  background: var(--color-highlight-soft);
  color: var(--color-text);
}

@media (max-width: 560px) {
  .willkommen { padding-block: var(--space-4) var(--space-1); }
  .nochmal { padding: var(--space-3); }
}

/* ============ KONTO-ANREIZ (nur Gäste) ============
   Ruhig und sachlich — ein Vorteil, kein Marktgeschrei. */
.konto-anreiz {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.konto-anreiz:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.konto-anreiz__badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  /* accent-ink statt accent: 6.49:1 Kontrast — das reine Logo-Rot traegt
     Text unter 24px nicht (4.67:1). */
  color: var(--color-accent-ink);
}
.konto-anreiz__text { flex: 1; font-size: var(--text-sm); line-height: var(--leading-snug); }
.konto-anreiz__text small { display: block; color: var(--color-text-muted); margin-top: 2px; }
.konto-anreiz__pfeil { flex-shrink: 0; color: var(--color-accent); }

/* ============ MARKENBAND (nur Gäste) ============
   "Familienband" — das Original-Logo gross, ein Herkunftssatz, drei ruhige
   Fakten. Bleibt unter einem Fuenftel der Bildschirmhoehe (Prototyp 2,
   Entscheid Betreiber 11.09.2026). */
.marke {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) 0 var(--space-2);
}
.marke__logo {
  flex-shrink: 0;
  width: clamp(88px, 12vw, 122px);
  height: auto;
}
.marke__titel {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
.marke__titel em {
  font-style: italic;
  color: var(--color-accent-ink);
}
.marke__satz {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 58ch;
}
.marke__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.marke__chips span {
  font-size: var(--text-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
}
.marke__chips strong { color: var(--color-accent-ink); }
.marke__chips a { color: inherit; text-decoration: none; }
.marke__chips a:hover { color: var(--color-accent-ink); }

@media (max-width: 560px) {
  .marke { gap: var(--space-4); align-items: flex-start; }
  .marke__logo { width: 72px; margin-top: 4px; }
}
