/* ==========================================================================
   THAIMARKT LINZ — style.css
   Palette: Pandan-Grün, Chili-Rot, Jasminreis, Kurkuma
   Type:    Kanit (Display) + Sarabun (Text) — lokal gehostet
   ========================================================================== */

:root {
  --pandan:      #0C3B25;
  --pandan-deep: #082A1A;
  --jade:        #17714A;
  --chili:       #D5382B;
  --chili-deep:  #B72D22;
  --turmeric:    #E9A13B;
  --rice:        #FBF8F1;
  --rice-deep:   #F2EBDD;
  --ink:         #17251D;
  --ink-soft:    #51604F;
  --line:        #E4DCC9;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(12, 59, 37, .10);
  --font-display: "Kanit", "Avenir Next Condensed", system-ui, sans-serif;
  --font-body:    "Sarabun", "Helvetica Neue", system-ui, sans-serif;
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--rice);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--turmeric);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 100;
  font-family: var(--font-display);
}
.skip-link:focus { left: .5rem; top: .5rem; }

.wrap {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Kleinteile ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--chili);
  margin: 0 0 .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }

.btn-chili { background: var(--chili); color: #fff; }
.btn-chili:hover { background: var(--chili-deep); }

.btn-ghost {
  color: var(--rice);
  border: 2px solid rgba(251, 248, 241, .45);
}
.btn-ghost:hover { border-color: var(--rice); background: rgba(251, 248, 241, .08); }

.btn-jade { background: var(--pandan); color: var(--rice); }
.btn-jade:hover { background: var(--pandan-deep); }

.chili-ico { width: 1.05em; height: 1.05em; flex: none; }

/* Schärfegrad */
.heat {
  display: inline-flex;
  gap: 2px;
  vertical-align: -2px;
  color: var(--chili);
}
.heat .chili-ico { width: .95em; height: .95em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pandan);
  color: var(--rice);
  border-bottom: 1px solid rgba(251, 248, 241, .12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--rice);
  margin-right: auto;
}
.brand .chili-ico { width: 1.6rem; height: 1.6rem; color: var(--chili); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .06em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--turmeric);
  margin-top: .15rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--rice);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--turmeric); }
.site-nav .nav-call {
  background: var(--chili);
  border-radius: 999px;
  padding: .5rem 1.1rem;
}
.site-nav .nav-call:hover { background: var(--chili-deep); border-bottom-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--rice);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

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

.hero {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(23, 113, 74, .55), transparent 60%),
    var(--pandan);
  color: var(--rice);
  overflow: hidden;
}

.hero-thai {
  position: absolute;
  right: -1rem;
  bottom: -2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(251, 248, 241, .10);
  pointer-events: none;
  user-select: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 6rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--turmeric); }

.hero-lead {
  font-size: 1.15rem;
  max-width: 34rem;
  color: rgba(251, 248, 241, .88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.hero-address {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--turmeric);
}

/* Foto-Stapel */
.hero-photos {
  position: relative;
  min-height: 26rem;
}
.hero-photos figure {
  position: absolute;
  margin: 0;
  background: var(--rice);
  padding: .6rem .6rem 2.4rem;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.hero-photos img { border-radius: 3px; }
.hero-photos figcaption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-align: center;
  margin-top: .55rem;
}
.photo-a {
  width: 70%;
  top: 0;
  left: 0;
  transform: rotate(-3deg);
  z-index: 3;
}
.photo-b {
  width: 60%;
  right: 0;
  bottom: 0;
  transform: rotate(2.5deg);
  z-index: 2;
}
.hero-sticker {
  position: absolute;
  z-index: 4;
  top: -1.25rem;
  right: 6%;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: var(--turmeric);
  color: var(--pandan-deep);
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.25;
  padding: .5rem;
  transform: rotate(8deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

/* Fakten-Leiste */
.facts {
  background: var(--pandan-deep);
  color: var(--rice);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 3rem;
  justify-content: center;
}
.facts li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .05em;
}
.facts .chili-ico { color: var(--turmeric); width: 1.1rem; height: 1.1rem; }

/* ---------- Sektionen allgemein ---------- */

.section { padding: 5.5rem 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  color: var(--pandan);
}
.section-head p { color: var(--ink-soft); }

/* ---------- Markt & Küche ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.duo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.duo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.duo-card > div { padding: 1.75rem 2rem 2rem; }
.duo-card h3 {
  font-size: 1.45rem;
  color: var(--pandan);
}
.duo-card h3 .thai {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--turmeric);
  letter-spacing: .06em;
}
.duo-card p:last-child { margin-bottom: 0; }

/* ---------- Speisekarte ---------- */

.menu-section { background: var(--rice-deep); }

.menu-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
}
.menu-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.menu-legend .note {
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin-left: auto;
}

.menu-cat { margin-bottom: 3.25rem; }
.menu-cat:last-of-type { margin-bottom: 0; }

.menu-cat-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 3px solid var(--pandan);
  padding-bottom: .4rem;
  margin-bottom: 1.4rem;
}
.menu-cat-head h3 {
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--pandan);
  margin: 0;
}
.menu-cat-head .range {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-left: auto;
  letter-spacing: .08em;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 3.5rem;
}
.menu-item {
  break-inside: avoid;
  padding: .8rem 0;
}

.menu-item .row {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.menu-item .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--chili);
  min-width: 1.7rem;
}
.menu-item .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.menu-item .desc {
  margin: .15rem 0 0 2.3rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.menu-item .desc .allergens {
  color: #8a8471;
  font-size: .8rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.menu-item .variants {
  margin: .4rem 0 0 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.menu-item .variants span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--jade);
  border: 1px solid var(--jade);
  border-radius: 999px;
  padding: .1rem .6rem;
}

.menu-foot {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.menu-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.menu-note strong { color: var(--ink); }
.menu-note details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pandan);
  margin-bottom: .5rem;
}
.menu-note dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .1rem 1rem;
  margin: .75rem 0 0;
  font-size: .85rem;
}
.menu-note dl div { display: flex; gap: .4rem; }
.menu-note dt { font-weight: 700; color: var(--ink); }
.menu-note dd { margin: 0; }

/* ---------- Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem .8rem .55rem;
  background: linear-gradient(transparent, rgba(8, 42, 26, .85));
  color: var(--rice);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .05em;
}

/* ---------- Öffnungszeiten ---------- */

.hours-section {
  background:
    radial-gradient(50rem 25rem at 10% 110%, rgba(23, 113, 74, .5), transparent 60%),
    var(--pandan);
  color: var(--rice);
}
.hours-section .section-head h2 { color: var(--rice); }
.hours-section .section-head p { color: rgba(251, 248, 241, .75); }

.hours-notice {
  background: var(--turmeric);
  color: var(--pandan-deep);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  padding: .9rem 1.5rem;
  margin: 0 0 2rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.hours-card {
  background: rgba(251, 248, 241, .06);
  border: 1px solid rgba(251, 248, 241, .18);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}
.hours-card h3 {
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--turmeric);
  margin-bottom: 1.25rem;
}
.hours-card table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
}
.hours-card td {
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(251, 248, 241, .2);
  font-weight: 500;
  font-size: 1.02rem;
}
.hours-card tr:last-child td { border-bottom: 0; }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.hours-card .closed { color: var(--turmeric); }

.hours-hint {
  margin-top: 2rem;
  text-align: center;
  color: rgba(251, 248, 241, .75);
  font-size: .95rem;
}

/* ---------- Catering ---------- */

.catering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.catering-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.catering-card .chili-ico {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--chili);
  margin-bottom: 1rem;
}
.catering-card h3 { font-size: 1.25rem; color: var(--pandan); }
.catering-card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem;
}
.contact-card address {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.contact-card ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.contact-card li { padding: .3rem 0; }
.contact-card li a { color: var(--jade); font-weight: 600; text-decoration: none; }
.contact-card li a:hover { text-decoration: underline; }
.contact-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.contact-side h3 { color: var(--pandan); font-size: 1.3rem; }
.contact-side p { color: var(--ink-soft); }

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

.site-footer {
  background: var(--pandan-deep);
  color: rgba(251, 248, 241, .8);
  padding: 2.5rem 0;
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer .foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--rice);
  margin-right: auto;
}
.site-footer .foot-brand .thai { color: var(--turmeric); font-weight: 500; margin-left: .5rem; }
.site-footer a { color: var(--rice); }

/* ---------- Impressum-Seite ---------- */

.legal { max-width: 44rem; }
.legal h1 { color: var(--pandan); font-size: 2.25rem; }
.legal h2 { font-size: 1.2rem; color: var(--pandan); margin-top: 2rem; }

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid figure:hover img { transform: none; }
}

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

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 3.5rem 0 4.5rem; }
  .hero-photos { min-height: 0; height: 24rem; max-width: 30rem; }
  .menu-list { columns: 1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .catering-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pandan-deep);
    display: none;
    border-bottom: 1px solid rgba(251, 248, 241, .12);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.25rem;
  }
  .site-nav a {
    display: block;
    padding: .8rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(251, 248, 241, .1);
  }
  .site-nav .nav-call {
    margin-top: .75rem;
    text-align: center;
    border-radius: 999px;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .duo { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .menu-foot { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .facts ul { flex-direction: column; align-items: center; gap: .6rem; }
  .contact-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-photos { height: 20rem; }
  .hero-sticker { width: 6.25rem; height: 6.25rem; font-size: .75rem; right: 0; }
  .menu-legend .note { margin-left: 0; }
}
