/*
 * Landingpage und Bestell-App: Rollen des Themes hell und der Lieblingsfarbe (docs/gestaltung/farben-und-themes.md).
 *
 * Bisher gibt es nur das Theme hell mit der Startfarbe Salbei. Die Themes dunkel und hoher Kontrast kommen mit der
 * Bestell-App (Scheibe 9, DARST-7 und DARST-8); die Werte der Lieblingsfarbe setzt dann der Server je Besteller
 * (ADR-0019, Farben eines Bestellers über das Kontrastmaß der WCAG). Wie die Landingpage dunkel aussieht, ist in der
 * Gestaltung noch offen, deshalb bleiben beide Oberflächen vorerst hell, auch auf einem dunkel eingestellten Gerät.
 */

:root {
  color-scheme: light;

  /* Theme hell */
  --bg: #F7F8F7;
  --surface: #FFFFFF;
  --text: #1C2321;
  --text-muted: #5A6461;
  --line: rgb(28 35 33 / 0.14);
  --line-strong: rgb(28 35 33 / 0.45);
  --focus-width: 2px;

  /* Lieblingsfarbe, hier die Startfarbe Salbei: Fläche, Schrift auf der Fläche, kräftiger Ton, zarte Fläche */
  --accent: var(--sage-600);
  --on-accent: #FFFFFF;
  --accent-strong: var(--sage-700);
  --accent-soft: var(--sage-100);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
}

:where(a) {
  color: var(--accent-strong);
}

:where(a, button):focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: 2px;
}

/* Platzhalter, bis die Bestell-App ihren Aufbau bekommt (Scheibe 9) */
.placeholder {
  display: grid;
  align-content: start;
  gap: 1rem;
  max-width: 42rem;
  margin-inline: auto;
  padding: 4rem 1.5rem;
}

.placeholder-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--accent);
  font-size: var(--text-2xl);
  line-height: var(--text-2xl-lh);
}

.placeholder-brand .brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.placeholder-title {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.placeholder-text {
  color: var(--text-muted);
}

/* ===== Bausteine der Bestellansicht (docs/gestaltung/oberflaechen.md, Bestellansicht) =====
   Bisher nur im Beispiel auf der Landingpage im Einsatz; die Bestell-App übernimmt sie mit Scheibe 9 und 10. */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fortschritt: ein Abschnitt je Mahlzeit, 6 px hoch; erledigte gefüllt, der aktuelle mit Rahmen in der Lieblingsfarbe */
.progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  display: flex;
  gap: 4px;
  height: 6px;
  padding: 0;
  list-style: none;
}

.progress-bar > li {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.progress-bar > .is-done {
  background: var(--accent);
  box-shadow: none;
}

.progress-bar > .is-current {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.progress-text {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-muted);
}

/* Kachel eines Gerichts: Rand 3 px, Ecken 18 px; gewählt mit Rand in der Lieblingsfarbe und Ribbon „Gewählt“ */
.dish-tile {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
}

.dish-tile.is-chosen {
  border-color: var(--accent);
}

/* Ohne Foto zeigt die Kachel ein Besteck auf der zarten Fläche der Lieblingsfarbe */
.dish-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  min-height: 5rem;
  flex: none;
  border-radius: 15px 0 0 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dish-photo .icon {
  width: 2rem;
  height: 2rem;
}

.dish-name {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-family: var(--font-ui);
  font-size: 1.1875rem;
  line-height: 1.25;
  font-weight: 500;
}

/* Ribbon: waagerechter Streifen, der links über den Rand der Kachel ragt, mit Schatten und umgeschlagenem Ende */
.ribbon {
  position: absolute;
  top: 12px;
  left: -11px;
  z-index: 1;
  padding: 6px 14px 7px 12px;
  border-radius: 4px 10px 10px 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.22), 0 1px 2px rgb(0 0 0 / 0.2);
}

.ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent color-mix(in srgb, var(--accent) 55%, #000000) transparent transparent;
}

/* ===== Landingpage (docs/gestaltung/oberflaechen.md, Landingpage › Aufbau; Board W1 der Skizze) ===== */

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-main {
  flex: 1 0 auto;
}

/* Alle Abschnitte stehen in derselben Breite */
.site-head,
.site-foot,
.hero,
.section,
.tinted-inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-head {
  display: flex;
  align-items: center;
  padding-block: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: var(--text-2xl);
  line-height: var(--text-2xl-lh);
  text-decoration: none;
}

.site-brand .brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

/* Nebenwege als unterstrichene Textlinks, auch als Knopf (Einheitliche Aktionen) */
.text-link,
.site-foot-links a {
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.text-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2rem;
  color: var(--text-muted);
}

.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

/* Mindestens 44 px hohe Tippfläche für die Links im Fuß */
.site-foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Einstieg: zentriert, mit dem Beta-Hinweis als Plakette (REG-16) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 3rem 4rem;
  text-align: center;
}

.beta-notice {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 500;
}

.hero-title {
  max-width: 46rem;
  font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 40rem;
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Abschnitte: abwechselnd auf dem Grund und auf einer weißen Fläche über die volle Breite */
.section,
.tinted-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 4rem;
}

.tinted {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.section.split {
  align-items: flex-start;
}

.split-media {
  display: flex;
  flex: 1 1 18rem;
  justify-content: center;
  min-width: 0;
}

.split-text {
  display: flex;
  flex: 1 1 22rem;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.section-title {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  font-weight: 600;
}

.section-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--text-lg);
  line-height: 1.5;
}

.check-list > li {
  display: flex;
  gap: 0.75rem;
}

.check-list .icon {
  color: var(--accent);
  stroke-width: 2;
}

.card-row,
.steps {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.card-row {
  gap: 1.5rem;
}

.steps {
  gap: 2rem;
}

.card,
.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.card {
  flex: 1 1 20rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.step {
  flex: 1 1 14rem;
}

.card-title {
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
  font-weight: 600;
}

.card-text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.step-number {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--accent);
}

/* Beispiel der Bestellansicht als Handy, kleiner gesetzt als die Bestell-App selbst */
.order-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 19rem;
  max-width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: 2.25rem;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgb(28 35 33 / 0.25);
}

.order-preview-title {
  margin-top: 0.25rem;
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
  font-weight: 600;
}

.order-preview .progress-text {
  font-size: 0.8125rem;
}

.order-preview .dish-tile {
  border-width: 2px;
  border-radius: 14px;
}

.order-preview .dish-photo {
  border-radius: 12px 0 0 12px;
}

.order-preview .dish-name {
  font-size: 1rem;
}

.order-preview .ribbon {
  padding: 4px 9px 5px 8px;
  font-size: 0.75rem;
}

/* Impressum und Datenschutzerklärung: schlichter Lesetext in Nunito */
.legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 45rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-title {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-lead {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal h2 {
  margin-top: 1.5rem;
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
  font-weight: 600;
}

.legal ul {
  padding-left: 1.375rem;
}

.operator {
  font-style: normal;
}
