/* =========================================================
   Letti's Ratschstubn – Dein Dorfladen
   Farbwelt direkt aus dem Logo:
   Creme #F5E4C8 · Anthrazit #33322D · Terracotta #B5502F · Oliv #6E7245
   Schriften lokal eingebunden (DSGVO-konform, keine externen Server)
   ========================================================= */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yellowtail-latin-400-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --cream: #f9e9da;        /* Logo-Hintergrund (finales Logo, wärmerer Ton) */
  --cream-deep: #f7e2ce;   /* leicht abgesetzte Creme für Wechselflächen (heller) */
  --paper: #fdf6ec;        /* helle Karten ("Speisekarten-Papier") */
  --ink: #33322d;          /* Anthrazit der Schriftzüge */
  --ink-soft: #605d51;     /* weicher Fließtext */
  --terracotta: #b5502f;   /* roter Kreis des Logos */
  --terracotta-dark: #97401f;
  --olive: #6e7245;        /* Zweig im Logo */
  --line: rgba(51, 50, 45, 0.18);
  --radius: 14px;
  --shadow: 0 14px 40px -18px rgba(51, 50, 45, 0.35);
  --nav-h: 72px;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-script: "Yellowtail", cursive;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta);
}

a:hover {
  color: var(--terracotta-dark);
}

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.container-wide {
  width: min(1240px, 94%);
}

section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--cream);
}

/* ---------- Typografie ---------- */
.script {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  display: block;
  margin: 0 0 0.35rem;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 1.1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* Oliven-Zweig als Trenner (Motiv aus dem Logo) */
.sprig {
  display: block;
  margin: 0.25rem auto 1.5rem;
  color: var(--olive);
}

.sprig.left {
  margin: 0.25rem 0 1.5rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(249, 233, 218, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.brand:hover img {
  opacity: 0.82;
}

@media (max-width: 480px) {
  .brand img {
    height: 27px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* Sprachumschalter */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0.3rem 0.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  color: var(--terracotta);
}

.lang-btn.is-active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.lang-sep {
  color: var(--line);
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .lang-switch {
    margin-left: auto;
    margin-right: 0.2rem;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 1.4rem;
    border-bottom: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.hero-logo {
  width: min(400px, 78vw);
  margin-inline: auto;
}

.hero .tagline {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 300;
  color: var(--ink);
  max-width: 34ch;
  margin: 1.2rem auto 0.4rem;
  line-height: 1.5;
}

.hero .subline {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--terracotta);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--terracotta);
  background: transparent;
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Angebots-Band ---------- */
.band {
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.9rem 0;
  overflow: hidden;
}

.band-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: band-scroll 32s linear infinite;
}

.band span {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.band .dot {
  opacity: 0.7;
}

@keyframes band-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Abschnitte ---------- */
.section {
  padding: clamp(3.2rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--cream-deep);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

@media (max-width: 820px) {
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
    order: initial;
  }
}

.photo-frame {
  background: var(--paper);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-frame img {
  border-radius: calc(var(--radius) - 6px);
}

.photo-caption {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.7rem;
}

/* Info-Kacheln (Brot, Leberkäs, Treffpunkt) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.2rem;
}

@media (max-width: 820px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.tile .tile-day {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--olive);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.9rem;
}

.tile p {
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Speise- & Getränkekarte ---------- */
/* Zwei Karten nebeneinander (Desktop) – untereinander (Handy) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
}

.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 780px;
  margin-inline: auto;
}

/* In der Karten-Rasterung volle Spaltenbreite nutzen */
.cards-grid .menu-card {
  max-width: none;
  margin: 0;
  height: 100%;
}

/* Kartenkopf innerhalb einer Karte */
.menu-card-head {
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.menu-card-head .script {
  margin-bottom: 0.1rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.menu-card-title {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.menu-item {
  padding: 1.4rem 0;
}

.menu-item + .menu-item {
  border-top: 1px solid var(--line);
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.menu-row .name {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-size: 1rem;
}

.menu-row .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(51, 50, 45, 0.35);
  transform: translateY(-4px);
}

.menu-row .price {
  font-weight: 600;
  white-space: nowrap;
}

.menu-includes {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.menu-includes li {
  position: relative;
  padding-left: 0.9rem;
}

.menu-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
}

/* ---------- Getränke (innerhalb der Karte) ---------- */
.drink-group {
  padding: 1.3rem 0;
}

.drink-group:first-of-type {
  padding-top: 1.2rem;
}

.drink-group + .drink-group {
  border-top: 1px solid var(--line);
}

.drink-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.4rem 0;
}

.price-list .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(51, 50, 45, 0.35);
  transform: translateY(-4px);
}

.price-list .price {
  font-weight: 500;
  white-space: nowrap;
}

/* Zahlungsmethoden in der Getränkekarte */
.pay-intro {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.pay-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.pay-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
}

.pay-list img {
  display: block;
  height: 24px;
  width: auto;
}

/* Sammelpreis unter den Fruchtsäften – gleiche Optik wie die Preiszeilen */
.juice-price {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
}

.juice-price .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(51, 50, 45, 0.35);
  transform: translateY(-4px);
}

.juice-price .price {
  font-weight: 500;
  white-space: nowrap;
}

.price-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.juice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}

.juice-list li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.1rem;
}

.juice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
}

.juice-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

/* Besondere Wünsche – als abschließender Block innerhalb der Getränkekarte */
.wish-inline {
  text-align: center;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.wish-inline .script {
  margin-bottom: 0.4rem;
}

.wish-inline p {
  font-size: 0.96rem;
  margin: 0;
}

.wish-inline .script-small {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: 1.45rem;
  display: block;
  margin-top: 0.4rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}

/* An den Kartenboden gepinnter Block (füllt die Karte gleichmäßig) */
.card-bottom {
  margin-top: auto;
  padding-top: 1.2rem;
}

.card-bottom .price-note {
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.contact-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-card ul li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  color: var(--ink-soft);
}

.contact-card ul li svg {
  flex: 0 0 auto;
  margin-top: 0.25rem;
  color: var(--terracotta);
}

.contact-card a {
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.order-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Öffnungszeiten – kompakte Leiste unter den Kontaktkarten */
.hours-bar {
  max-width: 920px;
  margin: clamp(1.2rem, 3vw, 1.8rem) auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem clamp(1.3rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.hours-bar-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--ink);
}

.hours-bar-title svg {
  color: var(--terracotta);
}

.hours-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(1rem, 3vw, 2rem);
}

.hours-bar-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--line);
}

.hours-bar-list .day {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hours-bar-list .time {
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}

.hours-bar-list .time.closed {
  font-style: italic;
}

@media (max-width: 720px) {
  .hours-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hours-bar-title {
    justify-content: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .hours-bar-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hours-bar-list li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0 0.6rem 0;
    border-left: 0;
  }

  .hours-bar-list li + li {
    border-top: 1px solid var(--line);
  }
}

.order-chips span {
  border: 1px solid var(--olive);
  color: var(--olive);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 2.8rem 0 2.2rem;
}

.site-footer .script {
  color: var(--cream);
  font-size: 1.8rem;
}

.site-footer .sprig {
  color: var(--olive);
  filter: brightness(1.5);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  margin: 1.2rem 0 1rem;
  padding: 0;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(245, 228, 200, 0.65);
  margin: 0;
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-top: 2.4rem;
}

.legal .notice {
  background: var(--paper);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.legal address {
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- Frühstücksboxen: Kurzvorstellung auf der Startseite ---------- */
.box-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}

.box-teaser {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.box-teaser img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.box-teaser-body {
  padding: 0.9rem 1rem 1.1rem;
}

.box-teaser .menu-row .name {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.box-teaser .menu-row .price {
  font-size: 0.95rem;
  font-weight: 600;
}

.box-teaser-meta {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.box-teaser-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Auf dem Handy quer: Bild links, Text rechts – hält den Abschnitt kurz */
@media (max-width: 640px) {
  .box-teaser-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .box-teaser {
    flex-direction: row;
    align-items: stretch;
  }

  .box-teaser img {
    width: 38%;
    flex: 0 0 38%;
    height: 100%;
    aspect-ratio: auto;
  }

  .box-teaser-body {
    flex: 1;
    padding: 0.8rem 0.9rem;
  }
}

.boxes-cta {
  text-align: center;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

/* ---------- Frühstücksboxen bestellen ---------- */
/* Feine Trennlinie zur folgenden Sektion (gleiche Hintergrundfarbe) */
.section-boxes + .section-alt {
  border-top: 1px solid var(--line);
}

.order-form {
  max-width: 1180px;
  margin-inline: auto;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

@media (max-width: 980px) {
  .box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .box-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Bei genau fünf Boxen die letzte Zeile mittig ausrichten.
   Kommen Boxen dazu oder fallen weg, greift die Regel automatisch nicht mehr. */
@media (min-width: 981px) {
  .box-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .box-card {
    grid-column: span 2;
  }

  .box-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

.box-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.box-media {
  position: relative;
  margin: 0;
}

.box-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.box-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.box-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem clamp(1.2rem, 2.5vw, 1.6rem) 1.5rem;
}

.box-body .menu-includes {
  margin-bottom: 1.2rem;
}

/* Mengenauswahl */
.box-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.box-qty label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.qty-control input {
  width: 60px;
  height: 38px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.box-card.is-selected {
  border-color: var(--terracotta);
  outline: 1px solid var(--terracotta);
  outline-offset: -4px;
}

/* Formularkarte */
.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 780px;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
}

/* Zusammenfassung der gewählten Boxen */
.order-summary {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.order-summary-empty {
  margin: 0;
  font-size: 0.95rem;
}

.order-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-summary-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}

.order-summary-list .dots,
.order-summary-total .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(51, 50, 45, 0.35);
  transform: translateY(-4px);
}

.order-summary-list .price {
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
}

.order-summary-total {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--ink);
}

.order-summary-total .price {
  font-size: 1.05rem;
  letter-spacing: normal;
  white-space: nowrap;
}

/* Eingabefelder */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(1rem, 2.5vw, 1.6rem);
  padding-top: 1.5rem;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--terracotta);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  background: #fffaf3;
}

/* Datumsauswahl */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  cursor: pointer;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.field input[type="date"]:hover::-webkit-calendar-picker-indicator,
.field input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Hinweis, wenn ein Tag knapp wird oder ausgebucht ist */
.field-hint-warn {
  color: var(--terracotta);
  font-weight: 500;
}

/* Erklärender Text zwischen Beschriftung und Eingabefeld */
.field-lead {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--terracotta);
  background: #fdeee8;
}

/* Spamschutz-Feld – für Besucher:innen nicht sichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hinweise */
.form-note {
  margin: 1.4rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.98rem;
}

.form-note-ok {
  background: rgba(110, 114, 69, 0.12);
  border-left: 4px solid var(--olive);
  color: var(--ink);
}

.form-note-error {
  background: rgba(181, 80, 47, 0.1);
  border-left: 4px solid var(--terracotta);
  color: var(--ink);
}

.order-submit {
  text-align: center;
  margin-top: 1.6rem;
}

.order-submit .btn {
  font-family: var(--font-body);
  cursor: pointer;
}

.order-submit .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.order-submit .price-note {
  max-width: 46ch;
  margin: 0.9rem auto 0;
  font-size: 0.85rem;
}

/* Bestaetigungsseite (ohne JavaScript) */
.order-status {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  max-width: 680px;
  text-align: center;
}

/* ---------- Extras (Add-ons) auf der Bestellseite ---------- */
.addon-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  max-width: 780px;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
}

.addon-head {
  text-align: center;
  margin-bottom: 1rem;
}

.addon-head .script {
  display: block;
  margin-bottom: 0.15rem;
}

.addon-head p {
  margin: 0;
  font-size: 0.9rem;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.addon-row + .addon-row {
  margin-top: 0.9rem;
}

.addon-info {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.addon-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.addon-zusatz {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-soft);
}

.addon-info .price {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Bestellseite (bestellung/index.php) ---------- */
.section-order {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 3.5rem));
}

.page-title {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 1.1rem;
}

.order-done {
  text-align: center;
}

.order-done .form-note {
  text-align: left;
}

.order-done .order-summary {
  border-bottom: 0;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.order-done .price-note {
  margin-top: 1.2rem;
}

/* ---------- Login-Bereich ---------- */
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
  max-width: 760px;
  margin: 0 auto 1.4rem;
}

.admin-form .field + .field {
  margin-top: 1rem;
}

.admin-form-zeile {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1.4fr) auto;
  gap: 1rem;
  align-items: end;
}

.admin-form-zeile .field + .field {
  margin-top: 0;
}

@media (max-width: 640px) {
  .admin-form-zeile {
    grid-template-columns: 1fr;
  }
}

.field-optional {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.admin-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-liste li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.admin-liste li:first-child {
  border-top: 0;
}

.admin-tag {
  font-weight: 600;
  color: var(--ink);
}

.admin-grund {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.admin-inline input[type="number"] {
  width: 70px;
  height: 40px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.btn-klein {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.admin-hash {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* ---------- Scroll-Animationen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="delay-1"].in {
  transition-delay: 0.12s;
}

.js [data-reveal="delay-2"].in {
  transition-delay: 0.24s;
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .band-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
