/* ============================================================
   China-Restaurant Asia Wok - Leoben
   Design: Lackrot auf Pergament, Messing, Stempel, Fundstück-Charme
   Farben: 2 Grund + 1 Akzent (Regelwerke REGELN-FÜR-WEBSITES)
   ============================================================ */

:root {
  --ink: #2B1B12;            /* dunkles Holz / Espresso */
  --ink-deep: #1E120B;       /* fast schwarz, Footer/Hero */
  --paper: #F5EDDF;          /* altes Pergament */
  --paper-light: #FBF6EC;    /* hellste Fläche */
  --accent: #A6231E;         /* chinesisches Lackrot (einziger Akzent) */
  --accent-deep: #861A16;
  --brass: #C09A45;          /* Messing - nur für Linien/Siegel, sekundär */
  --text: #3A2A1E;
  --text-soft: #6B5946;
  --line: rgba(43, 27, 18, 0.14);

  --display: "Noto Serif SC", "Times New Roman", serif;
  --body: "Karla", "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(30, 18, 11, 0.08);
  --shadow-lg: 0 18px 50px rgba(30, 18, 11, 0.22);

  --section-pad: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typografie ---------- */

.kicker {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink-deep); }

h1 { font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 900; }

.lead { font-size: 1.08rem; color: var(--text-soft); max-width: 60ch; margin-top: 8px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 48px;
}

.btn-accent {
  background: var(--accent);
  color: #FFF8F0;
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-solid {
  background: var(--ink);
  color: var(--paper-light);
}
.btn-solid:hover { background: var(--ink-deep); transform: translateY(-2px); }

.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 237, 223, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink-deep);
}

.brand-cn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #FFF8F0;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-weight: 700;
}

.brand-text { font-size: 1.15rem; }
.brand-accent { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }
.nav a.active::after { transform: scaleX(1); }

.head-call { padding: 10px 18px; min-height: 42px; font-size: 0.95rem; }

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -1px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 18, 11, 0.55) 0%, rgba(30, 18, 11, 0.35) 40%, rgba(30, 18, 11, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px 72px;
  color: var(--paper-light);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker { color: var(--brass); display: flex; align-items: center; gap: 10px; }

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFF8F0;
  font-family: var(--display);
  font-size: 1.1rem;
  box-shadow: 0 0 0 1px rgba(192, 154, 69, 0.4);
}

.hero-title { color: #FFF8F0; max-width: 18ch; margin-bottom: 20px; }
.hero-sub { max-width: 52ch; font-size: 1.12rem; color: rgba(251, 246, 236, 0.9); margin-bottom: 32px; }

.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-note { font-size: 0.92rem; color: rgba(251, 246, 236, 0.85); border-left: 2px solid var(--brass); padding-left: 14px; }

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

.section { padding: var(--section-pad) 0; }

.section-dark {
  background: var(--ink-deep);
  color: rgba(245, 237, 223, 0.92);
}
.section-dark h2 { color: var(--paper-light); }
.section-dark .lead { color: rgba(245, 237, 223, 0.72); }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.col-copy p + p { margin-top: 16px; }

.figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(245, 237, 223, 0.94);
  color: var(--ink-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Küche / Karten ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.dish-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover .dish-card { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link:hover .dish-media img { transform: scale(1.04); }
.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-lg); }

.dish-media { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dish-card:hover .dish-media img { transform: scale(1.04); }

.dish-body { padding: 24px; }
.dish-cn { font-family: var(--display); color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.dish-body h3 { margin-bottom: 8px; }
.dish-body p { color: var(--text-soft); font-size: 0.96rem; }

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

.gallery {
  margin-top: 40px;
  columns: 3 260px;
  column-gap: 20px;
}

.g-item {
  position: relative;
  break-inside: avoid;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.g-item img { width: 100%; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-md); }

.g-item figcaption {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(30, 18, 11, 0.82));
  color: var(--paper-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Zitate ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.quote {
  background: rgba(245, 237, 223, 0.05);
  border: 1px solid rgba(245, 237, 223, 0.14);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote::before {
  content: "“";
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--brass);
}
.quote p { font-style: italic; }
.quote footer { font-size: 0.85rem; color: rgba(245, 237, 223, 0.6); font-weight: 600; }

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

.info-list { list-style: none; margin: 24px 0 32px; display: grid; gap: 12px; }
.info-list li { position: relative; padding-left: 26px; }
.info-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 10px; height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.info-list a { color: var(--accent); font-weight: 700; }

.map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 10, 6, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lb-figure { max-width: 90vw; max-height: 82vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 74vh; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lb-figure figcaption { color: var(--paper-light); margin-top: 16px; font-weight: 600; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(245, 237, 223, 0.12);
  color: #FFF8F0;
  border: 1px solid rgba(245, 237, 223, 0.25);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); transform: translateY(-2px); }

.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-next:hover { transform: translateY(-50%) translateY(-2px); }
.lb-prev:hover { transform: translateY(-50%) translateY(-2px); }

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

.site-foot {
  background: var(--ink);
  color: rgba(245, 237, 223, 0.68);
  padding: 32px 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.site-foot a { color: var(--brass); font-weight: 700; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand-cn { width: 24px; height: 24px; font-size: 0.8rem; }
.foot-inner .foot-links { display: flex; gap: 16px; }
.foot-inner .foot-links a { color: var(--paper-light); font-weight: 600; font-size: 0.92rem; }

/* ---------- Reveal (nur mit JS aktiv, reduced-motion respektiert) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

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

@media (max-width: 900px) {
  .two-col, .card-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 32px; }
  .nav { gap: 16px; }
  .head-call { display: none; }
}

@media (max-width: 620px) {
  :root { --section-pad: 64px; }
  .card-grid, .quote-grid, .two-col, .menu-cols { grid-template-columns: 1fr; }
  .menu-cols { gap: 32px; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.85rem; }
  .hero { min-height: 72vh; }
  .hero-inner { padding-bottom: 48px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}

/* ============================================================
   Multi-Seiten: Seiten-Hero, Menü, Reservierung, Admin, Tabelle
   ============================================================ */

.page-hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--paper-light);
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(166, 35, 30, 0.35), transparent 70%);
  pointer-events: none;
}
.page-hero .kicker { color: var(--brass); }
.page-hero h1 { color: #FFF8F0; max-width: 22ch; }

/* ---------- Menü (Speisekarte) ---------- */

.menu-cols { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 44px; }
.two-col.menu-cols { grid-template-columns: 1.05fr 1fr; }

.menu-list { list-style: none; max-width: 720px; margin-top: 12px; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(43, 27, 18, 0.18);
}
.menu-list .cn {
  font-family: var(--display);
  color: var(--accent);
  font-weight: 600;
  min-width: 52px;
  text-align: center;
}
.menu-list .name { font-weight: 700; color: var(--ink-deep); }
.menu-list .desc { color: var(--text-soft); font-size: 0.92rem; flex-basis: 100%; }

.menu-cat { margin-top: 40px; }
.menu-cat h3 { display: flex; align-items: center; gap: 12px; }
.menu-cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.section-dark .menu-list .cn { color: var(--brass); }
.section-dark .menu-list .name { color: var(--paper-light); }
.section-dark .menu-list .desc { color: rgba(245, 237, 223, 0.68); }
.section-dark .menu-list li { border-bottom-color: rgba(245, 237, 223, 0.14); }

.menu-note {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--r-md);
  background: var(--paper-light);
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 720px;
}

.priceless { color: var(--text-soft); font-size: 0.85rem; }

/* ---------- Formular / Reservierung ---------- */

.form-grid {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-field label { font-weight: 700; font-size: 0.9rem; color: var(--ink-deep); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(43, 27, 18, 0.24);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  color: var(--text);
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-hint { font-size: 0.82rem; color: var(--text-soft); }

.res-form .btn { width: 100%; margin-top: 8px; }

.form-ok {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: #EFF5EA;
  border: 1px solid #C4D9B8;
  color: #2E4A1F;
}
.form-ok.show { display: block; }
.form-ok strong { display: block; margin-bottom: 4px; }
.form-ok a { color: var(--accent); font-weight: 700; }

.form-err {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #F9E6E2;
  border: 1px solid #EDC9C1;
  color: #6E2A22;
  font-size: 0.92rem;
}
.form-err.show { display: block; }

.info-box {
  background: var(--ink);
  color: var(--paper-light);
  border-radius: var(--r-lg);
  padding: 28px;
}
.info-box h3 { color: #FFF8F0; margin-bottom: 12px; }
.info-box ul { list-style: none; display: grid; gap: 10px; }
.info-box li { font-size: 0.95rem; color: rgba(245, 237, 223, 0.85); }
.info-box .cn { color: var(--brass); font-family: var(--display); font-weight: 600; margin-right: 6px; }

/* ---------- Admin ---------- */

.admin-shell { max-width: 960px; margin: 40px auto; padding: 0 24px; }
.admin-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.admin-login { max-width: 380px; margin: 60px auto; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-new { background: #FCE8B7; color: #6B4A12; }
.badge-ok { background: #E4F0DB; color: #2E4A1F; }
.badge-off { background: #F2E1DE; color: #6E2A22; }

.table-scroll { overflow-x: auto; }

.booking-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.booking-table th, .booking-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.booking-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #FFF;
  cursor: pointer;
}
.row-actions button:hover { border-color: var(--accent); color: var(--accent); }

.admin-msg { display: none; padding: 12px 16px; border-radius: var(--r-sm); margin: 16px 0; font-size: 0.92rem; }
.admin-msg.show { display: block; }
.admin-msg-err { background: #F9E6E2; color: #6E2A22; border: 1px solid #EDC9C1; }

.empty-note { color: var(--text-soft); font-style: italic; margin-top: 16px; }

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

.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Responsive Zusätze ---------- */

@media (max-width: 700px) {
  .form-grid .row { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 48px; }
  .admin-shell { margin: 24px auto; }
  .booking-table { font-size: 0.82rem; }
  .booking-table th, .booking-table td { padding: 8px 6px; }
  .row-actions { flex-direction: column; }
}

/* Spät gesetzt, damit es die Basis-Regel .two-col.menu-cols schlägt (Mobil) */
@media (max-width: 700px) {
  .two-col.menu-cols { grid-template-columns: 1fr; }
}