/* ===========================================================
   BAAN THAI – Würzburg / Höchberg · OnePager
   Palette aus dem Logo: Olivgrün + Gold/Amber, warmes Creme
   =========================================================== */

:root {
  --green:      #7a9a2e;
  --green-dark: #5c7621;
  --gold:       #c08a2d;
  --gold-light: #d9a94a;
  --brown:      #4a3526;
  --ink:        #3a2c20;
  --cream:      #faf6ef;
  --cream-2:    #f3ece0;
  --sand:       #efe7d8;
  --white:      #ffffff;
  --muted:      #7c6f60;
  --line:       #e6ddcd;
  --shadow:     0 14px 40px -18px rgba(74, 53, 38, .35);
  --radius:     14px;
  --maxw:       1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(92, 118, 33, .7);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(92, 118, 33, .8); }
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.brand-logo { height: 50px; width: auto; display: block; }
.hero-logo { display: block; width: clamp(230px, 40vw, 350px); height: auto; margin: 0 0 24px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  color: var(--brown);
  font-weight: 400;
  font-size: .98rem;
  letter-spacing: .02em;
  position: relative;
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--green-dark); }
.nav-cta.nav-book {
  background: var(--green);
  border: 0;
  font-family: "Jost", sans-serif;
  font-size: .98rem;
  line-height: inherit;
  cursor: pointer;
}
.nav-cta.nav-book:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--brown);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(38, 26, 16, .86) 0%, rgba(54, 38, 22, .62) 50%, rgba(74, 53, 38, .40) 100%),
    url("../assets/img/hero.jpg") center 55% / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.hero-content { position: relative; max-width: 660px; padding-top: 56px; padding-bottom: 64px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .78rem;
  color: var(--gold-light);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 600;
  margin-bottom: .3em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-text {
  font-size: 1.18rem;
  max-width: 560px;
  color: rgba(255, 255, 255, .94);
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero .btn-ghost { color: #fff; border-color: var(--gold-light); }
.hero .btn-ghost:hover { background: var(--gold-light); color: var(--brown); }
.hero-hours {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: .05em;
  margin: 0;
}

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .76rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 12px;
}
.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section h2::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
}
.section-sub { color: var(--muted); margin-top: 14px; }

.prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.prose p { margin: 0 0 1.2em; }
.prose em { color: var(--green-dark); font-style: italic; }

/* Über uns – Zweispalter mit Bild */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid .prose { margin: 0; max-width: none; }
.about-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  border-radius: var(--radius);
}

/* ===== Team ===== */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
}
.team-card h3 { font-size: 1.6rem; color: var(--green-dark); }
.team-card p { margin: 0; color: var(--muted); }

/* ===== Cards / Preise ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -20px rgba(74,53,38,.45); }
.card h3 { font-size: 1.5rem; }
.card > p { color: var(--muted); margin: 0 0 20px; flex-grow: 1; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 1rem;
}
.price-list li span:last-child { font-weight: 600; color: var(--gold); }

/* "Jetzt buchen" je Anwendung */
.card-cta {
  margin-top: 20px;
  align-self: stretch;
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.card-cta:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* Zentraler Buchen-Button */
.section-cta { text-align: center; margin-top: 48px; }
.btn-lg { font-size: 1.05rem; padding: 16px 40px; }

.note { text-align: center; color: var(--muted); margin-top: 28px; font-size: .98rem; }

/* ===== NAMI Dialog (Buchung / Gutschein) ===== */
.nami-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nami-dialog[hidden] { display: none; }
.nami-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 28, 18, .55);
  backdrop-filter: blur(3px);
}
.nami-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(300px, 94vw, 460px);
  height: min(88vh, 800px);
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
  animation: namiIn .22s ease;
}
@keyframes namiIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.nami-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 11px 18px;
  background: var(--brown);
  color: #fff;
  flex-shrink: 0;
}
.nami-title {
  flex: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.nami-open, .nami-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
}
.nami-open { color: var(--gold-light); font-size: 1.15rem; }
.nami-open:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nami-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.nami-close:hover { background: rgba(255, 255, 255, .26); }
.nami-frame-wrap { flex: 1; background: #fff; min-height: 0; }
.nami-frame { width: 100%; height: 100%; border: 0; display: block; }

/* Auf kleinen Handys bildschirmfüllend (kein Überlauf, mehr Platz) */
@media (max-width: 600px) {
  .nami-dialog { padding: 0; }
  .nami-box { width: 100%; height: 100%; max-width: none; border-radius: 0; }
}

/* ===== Gutscheine ===== */
.section-gift {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(135deg, rgba(70, 92, 24, .93), rgba(110, 140, 42, .82)),
    url("../assets/img/gift.jpg") center / cover no-repeat;
  background-attachment: scroll, fixed;
  color: #fff;
}
.gift-inner { display: flex; justify-content: center; text-align: center; }
.gift-text { max-width: 640px; }
.section-gift .eyebrow { color: var(--gold-light); }
.section-gift h2 { color: #fff; }
.section-gift h2::after { background: var(--gold-light); }
.section-gift p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 1.1em; }
.section-gift .btn-primary {
  background: #fff; color: var(--green-dark);
  margin-top: 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
}
.section-gift .btn-primary:hover { background: var(--gold-light); color: #fff; }

/* ===== Kontakt / Anfahrt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: stretch;
}
.contact-info h3 { font-size: 1.9rem; color: var(--green-dark); margin-bottom: .3em; }
.contact-info .addr { font-size: 1.1rem; margin: 0 0 22px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 0 0 28px; }
.meta dt { font-weight: 500; color: var(--brown); }
.meta dd { margin: 0; color: var(--muted); }
.contact-info h4 { font-size: 1.25rem; margin: 22px 0 10px; }
.bus { list-style: none; padding: 0; margin: 0 0 18px; }
.bus li { padding: 5px 0; color: var(--muted); }
.bus strong { color: var(--brown); font-weight: 500; }
.hint { font-size: .9rem; color: var(--muted); font-style: italic; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--white);
  min-height: 380px;
}
.contact-map iframe { width: 100%; flex-grow: 1; border: 0; min-height: 340px; }
.map-link {
  display: block;
  text-align: center;
  padding: 14px;
  font-weight: 500;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

/* ===== Footer ===== */
.site-footer { background: var(--brown); color: #e9ddca; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 60px 24px 44px;
}
.footer-logo { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #c9b89c; margin: 0; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: .6em; }
.site-footer p { margin: 0; color: #d8c9b0; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 3px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: .85rem;
}
.footer-bottom p { color: #b6a486; margin: 0; text-align: center; }

/* ===== Legal pages ===== */
.legal { padding: 64px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.5rem; margin: 1.6em 0 .4em; color: var(--green-dark); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 74px; right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 74px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--cream);
    padding: 28px 26px;
    box-shadow: -12px 0 40px -18px rgba(0,0,0,.4);
    transform: translateX(110%);
    transition: transform .3s ease;
    border-left: 1px solid var(--line);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { font-size: 1.1rem; padding: 8px 0; width: 100%; }
  .nav-cta { margin-top: 10px; }

  .team, .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-figure { order: -1; }
  .section-gift { background-attachment: scroll, scroll; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .team, .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero { min-height: 78vh; }
}
