/* ==========================================================================
   Mekla Khir — Stylesheet
   Farbwelt und Typografie sind direkt aus dem Menü-PDF abgeleitet.
   ========================================================================== */

:root {
  --green:        #2D5016;
  --green-mid:    #3D6B28;
  --green-soft:   #4A7C59;
  --sage:         #9BB6A5;
  --gold:         #C8A84B;
  --gold-light:   #D8B85C;
  --cream:        #F5F3EC;
  --white:        #FFFFFF;
  --ink:          #22301A;
  --ink-soft:     #5A6552;
  --line:         #E2DED1;

  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap:   1240px;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(34, 48, 26, .07);
  --shadow-lg: 0 14px 40px rgba(34, 48, 26, .16);
  --header-h: 68px;
}

/* Arabische Schrift: Anton hat keine arabischen Glyphen. */
html[lang^="ar"] {
  --font-display: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* --------------------------------------------------------------- Reset -- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--green); padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* -------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 15px 32px; border-radius: var(--radius);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-gold  { background: var(--gold);  color: var(--green); }
.btn-gold:hover { background: #D8B85C; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-mid); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --------------------------------------------------------------- Header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}
.header-inner { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.logo-mark { width: 5px; height: 30px; background: var(--gold); flex: none; }
.logo-text {
  font-family: var(--font-display); color: var(--white);
  font-size: 24px; letter-spacing: .06em; text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: rgba(255, 255, 255, .88); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: .03em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold); color: var(--green); font-weight: 700;
  padding: 9px 18px; border-radius: var(--radius); border-bottom: 0;
}
.site-nav .nav-cta:hover { background: #D8B85C; color: var(--green); border-bottom: 0; }

.lang-switch { display: flex; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .8); font-family: var(--font-body); font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 2px; transition: background-color .15s, color .15s;
}
.lang-switch button:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.lang-switch button.is-active { background: var(--gold); color: var(--green); }

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

.hero { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--green); min-height: 560px; }

.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(24px, 5vw, 88px);
  border-inline-start: 0;
  position: relative;
}
.hero-text::before {
  content: ""; position: absolute; inset-block: 96px; inset-inline-start: clamp(24px, 5vw, 88px);
  width: 5px; background: var(--gold);
}
.hero-title {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(56px, 8vw, 104px); line-height: .95;
  letter-spacing: .02em; text-transform: uppercase;
  padding-inline-start: 28px; margin-bottom: 28px;
}
.hero-tagline {
  padding-inline-start: 28px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(19px, 2vw, 24px); font-style: italic; line-height: 1.45;
  margin-bottom: 36px;
}
html[lang^="ar"] .hero-tagline { font-style: normal; }
.hero-text .btn { padding-inline: 32px; margin-inline-start: 28px; align-self: flex-start; }
.hero-values {
  margin-top: 42px; padding-inline-start: 28px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
}
html[lang^="ar"] .hero-values { letter-spacing: normal; }

.hero-media { position: relative; padding: 40px 40px 40px 0; }
html[dir="rtl"] .hero-media { padding: 40px 0 40px 40px; }
.hero-media::before {
  content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 60%; height: 26px; background: var(--green-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: relative; }

/* ----------------------------------------------------------------- Band -- */

.band {
  position: relative; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px; overflow: hidden;
  border-block: 14px solid var(--sage);
}
.band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .25); }
.band::before, .band::after {
  content: ""; position: absolute; inset-block: 0; width: clamp(14px, 3vw, 46px); background: var(--sage); z-index: 2;
}
.band::before { inset-inline-start: 0; }
.band::after  { inset-inline-end: 0; }

.band-disc {
  position: relative; z-index: 3;
  width: clamp(260px, 40vw, 380px); aspect-ratio: 1;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.band-disc h2 {
  font-family: var(--font-display); color: var(--green);
  font-size: clamp(24px, 3vw, 34px); line-height: 1.2; text-transform: uppercase; letter-spacing: .01em;
}
.band-sub {
  position: relative; z-index: 3; margin-top: 28px;
  background: var(--white); color: var(--green);
  padding: 10px 26px; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
html[lang^="ar"] .band-sub { letter-spacing: normal; }

/* ---------------------------------------------------------------- About -- */

.section-head { background: var(--green); padding: 34px 0; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(30px, 4vw, 46px); text-transform: uppercase; letter-spacing: .02em;
}
.about { padding-bottom: 96px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 6px solid var(--green-mid);
  padding: 26px 26px 30px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--green); font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ----------------------------------------------------------------- Menu -- */

.menu { padding: 84px 0 96px; background: var(--cream); border-top: 1px solid var(--line); }

.menu-head {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 2px solid var(--line); margin-bottom: 26px;
}
.menu-head h2 {
  font-family: var(--font-display); color: var(--green);
  font-size: clamp(32px, 4.6vw, 52px); text-transform: uppercase; letter-spacing: .02em;
}
.menu-date { color: var(--gold); font-size: 20px; font-weight: 700; margin-top: 6px; }
.menu-facts { text-align: end; color: var(--ink-soft); font-size: 14px; }
.menu-facts .strong { color: var(--green); font-weight: 700; font-size: 15px; }

.menu-help { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }

.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.menu-grid[aria-busy="true"] { min-height: 320px; }

.day { display: flex; flex-direction: column; gap: 12px; }
.day-head {
  background: var(--green); color: var(--white); text-align: center;
  padding: 11px 8px; font-size: 17px; font-weight: 700; letter-spacing: .02em;
}
.day.is-done .day-head { background: var(--green-mid); }
.day.is-done .day-head::after { content: " ✓"; color: var(--gold); }

/* Gericht-Karte = Label um ein visuell verstecktes Radio */
.dish { position: relative; display: block; cursor: pointer; }
.dish input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  margin: 0; pointer-events: none;
}
.dish-body {
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green-mid);
  padding: 18px 18px 20px; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.dish:hover .dish-body { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Platz fuer das Auswahl-Haekchen oben rechts freihalten. */
.dish-name { color: var(--green); font-size: 16px; font-weight: 700; line-height: 1.3; padding-inline-end: 30px; }
.dish-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin-top: auto; }

.dish-check {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.dish-check::after {
  /* Bewusst physische Kanten: das Haekchen darf im RTL-Layout nicht spiegeln. */
  content: ""; width: 10px; height: 6px;
  border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white);
  transform: rotate(-45deg) scale(0); transition: transform .18s ease; margin-bottom: 3px;
}
.dish input:checked ~ .dish-body {
  border-color: var(--gold); border-top-color: var(--gold);
  background: #FBF8EE;
  box-shadow: 0 0 0 2px var(--gold), var(--shadow);
}
.dish input:checked ~ .dish-check { background: var(--gold); border-color: var(--gold); transform: scale(1.05); }
.dish input:checked ~ .dish-check::after { transform: rotate(-45deg) scale(1); }
.dish input:focus-visible ~ .dish-body { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Alternativ-Salate */
.day-alt { border: 1px dashed var(--line); background: rgba(255, 255, 255, .5); padding: 12px 14px 14px; }
.day-alt-label { color: var(--ink-soft); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
html[lang^="ar"] .day-alt-label { letter-spacing: normal; text-transform: none; }
.alt { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 5px 0; }
.alt input { accent-color: var(--green); margin: 3px 0 0; flex: none; }
.alt span { color: var(--ink); font-size: 13px; line-height: 1.4; }
.alt .kcal { color: var(--ink-soft); font-size: 12px; }

/* In der Fuenf-Spalten-Ansicht sollen Tagesleiste, beide Gerichte und der
   Salat-Kasten ueber alle Tage hinweg auf einer Linie liegen — wie im PDF.
   Subgrid uebernimmt dafuer die Zeilen des Eltern-Rasters. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1081px) {
    .menu-grid { grid-template-rows: auto 1fr 1fr auto; }
    .day { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  }
}

.menu-note { margin-top: 30px; color: var(--ink-soft); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------------------------------------------------------------- Order -- */

.order { background: var(--green); padding: 84px 0 96px; }
.order-head { margin-bottom: 40px; }
.order-head h2 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(30px, 4vw, 46px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px;
}
.order-head p { color: rgba(255, 255, 255, .75); max-width: 62ch; }

.order-cols { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }

.summary { background: var(--cream); padding: 26px; box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 {
  color: var(--green); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding-bottom: 14px; border-bottom: 2px solid var(--gold); margin-bottom: 16px;
}
html[lang^="ar"] .summary h3 { letter-spacing: normal; }
.summary-list li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-list .s-day { color: var(--green); font-weight: 700; flex: none; min-width: 82px; }
.summary-list .s-dish { color: var(--ink-soft); }
.summary-empty { color: var(--ink-soft); font-size: 14px; font-style: italic; padding: 8px 0 4px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.summary-total span { color: var(--green); font-weight: 700; font-size: 14px; }
.summary-total strong { font-family: var(--font-display); color: var(--green); font-size: 30px; letter-spacing: .01em; }
.summary-note { color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.summary-edit { display: inline-block; margin-top: 16px; color: var(--green); font-size: 13px; font-weight: 600; }

.order-form {
  background: var(--white); padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--green); font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.field .opt { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green-soft); background: var(--white); box-shadow: 0 0 0 3px rgba(74, 124, 89, .18); }
.field .hint { color: var(--ink-soft); font-size: 12.5px; }
.field .err { color: #A32B1E; font-size: 12.5px; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #A32B1E; background: #FCF4F3; }


.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; font-size: 14.5px; padding: 0; }
.form-status.is-error { color: #A32B1E; background: #FCF4F3; border-inline-start: 4px solid #A32B1E; padding: 12px 14px; }
.form-status.is-ok { color: var(--green); background: #F1F6EC; border-inline-start: 4px solid var(--green-mid); padding: 12px 14px; }
.form-status strong { display: block; margin-bottom: 3px; }

.order-form.is-sent { text-align: center; }

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

.site-footer { background: #23400F; padding: 48px 0 40px; text-align: center; }
.footer-brand {
  font-family: var(--font-display); color: var(--gold);
  font-size: 24px; letter-spacing: .12em; text-transform: uppercase;
}
.footer-tagline { color: rgba(255, 255, 255, .7); font-size: 14px; font-style: italic; margin-top: 8px; }
html[lang^="ar"] .footer-tagline { font-style: normal; }
.footer-legal { color: rgba(255, 255, 255, .4); font-size: 12.5px; margin-top: 22px; }

/* ----------------------------------------------------------- Sticky bar -- */

.sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  background: var(--green); border-top: 3px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(34, 48, 26, .22);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
body.has-sticky-bar { padding-bottom: 68px; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 13px; }
.sticky-progress { display: flex; align-items: center; gap: 14px; color: var(--white); font-size: 14.5px; font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); transition: background-color .2s ease, transform .2s ease;
}
.dots i.on { background: var(--gold); transform: scale(1.15); }

/* ----------------------------------------------------------- Responsive -- */

@media (max-width: 1080px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .order-cols { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px 24px 48px; order: 2; }
  .hero-text::before { inset-block: 60px auto; height: 100px; inset-inline-start: 24px; }
  .hero-media { order: 1; padding: 0; height: 300px; }
  html[dir="rtl"] .hero-media { padding: 0; }
  .hero-media::before { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .menu-head { flex-direction: column; align-items: flex-start; }
  .menu-facts { text-align: start; }
  .order-form { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .menu-grid { grid-template-columns: 1fr; gap: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .band { min-height: 340px; padding: 48px 18px; }
  .about, .menu, .order { padding-bottom: 64px; }
  .menu, .order { padding-top: 56px; }
  .sticky-inner { padding-block: 10px; }
  .sticky-progress span { display: none; }
}
