/* Stadt Meierei - Leoben
   Richtung: Wiener Secession in der Bergstadt
   Farben (2 + 1 Akzent): Kalk, Erz, Wiener Gruen
   Typo: Bodoni Moda (Display) + Jost (Text/Utility)
*/

:root {
  --kalk: #F1EDE2;
  --kalk-tief: #E6E0D0;
  --erz: #1B1917;
  --erz-soft: #262320;
  --grau: #6E6659;
  --gruen: #2F5D46;
  --gruen-tief: #234634;
  --linie: rgba(27, 25, 23, 0.16);
  --linie-fein: rgba(27, 25, 23, 0.09);
  --linie-hell: rgba(241, 237, 226, 0.22);
  --auf-erz: #F1EDE2;
  --auf-erz-soft: rgba(241, 237, 226, 0.7);
  --wrap: 1160px;
  --r: 2px;
  --shadow-dialog: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--erz);
  background: var(--kalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--erz);
  margin: 0;
}

p { margin: 0 0 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--erz); color: var(--kalk); padding: 12px 18px;
}
.skip:focus { left: 0; }

/* --- Hoffmann-Quadrat: das einzige Dekor-Element --- */
.quadrat {
  display: inline-block; width: 7px; height: 7px;
  background: var(--gruen); flex: none;
}
.hero .quadrat { background: var(--auf-erz); }
/* --- Meierei-Siegel --- */
.seal { width: 96px; height: 96px; color: var(--erz); }
.seal--hell { color: var(--auf-erz); }
.seal__txt {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 15px; letter-spacing: 0.04em; fill: currentColor;
}

/* --- Buttons: flaechig, quadratisch, kein Glow --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: "Jost", sans-serif; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--gruen); color: var(--kalk);
  border: 1px solid var(--gruen); border-radius: var(--r);
  cursor: pointer;
  transition: background 0.18s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); text-decoration: none; }
.btn--hell { background: transparent; color: var(--kalk); border-color: var(--linie-hell); }
.btn--hell:hover { background: var(--kalk); color: var(--erz); border-color: var(--kalk); }
.btn--linie { background: transparent; color: var(--erz); border-color: var(--linie); }
.btn--voll { width: 100%; }

.textlink { font-weight: 500; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.textlink:hover { text-decoration: none; }
.quadrat + .textlink, .textlink + .quadrat { margin-left: 0; }

/* --- Kopfzeile --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 237, 226, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie-fein);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--erz); }
.brand:hover { text-decoration: none; }
.brand .brand-name {
  font-family: "Bodoni Moda", Georgia, serif; font-size: 1.5rem; font-weight: 600;
  line-height: 1; letter-spacing: -0.01em;
}
.brand .brand-sub {
  display: block; font-family: "Jost", sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grau); margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--erz); font-size: 0.95rem; font-weight: 400; }
.site-nav a:hover { color: var(--gruen); text-decoration: none; }
.site-nav .nav-phone { color: var(--gruen); font-weight: 500; white-space: nowrap; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--linie);
  width: 46px; height: 44px; border-radius: var(--r); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--erz);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --- Hero --- */
.hero { position: relative; background: var(--erz); overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.66;
  animation: heroSettle 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
@keyframes heroSettle { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 16, 0.88), rgba(20, 18, 16, 0.55) 58%, rgba(20, 18, 16, 0.3));
}
.hero .wrap { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 96px; }
.hero-inner { max-width: 760px; }
.hero-mark {
  display: flex; align-items: center; gap: 12px;
  font-family: "Jost", sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--auf-erz-soft);
  margin-bottom: 26px;
}
.hero h1 {
  color: var(--auf-erz); font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.03; margin-bottom: 22px;
}
.hero-lead {
  color: rgba(241, 237, 226, 0.88); font-size: 1.1rem;
  max-width: 50ch; margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-link {
  color: var(--auf-erz); font-size: 0.95rem; font-weight: 500;
  border-bottom: 1px solid var(--linie-hell); padding-bottom: 2px;
}
.hero-link:hover { text-decoration: none; border-color: var(--auf-erz); }
.hero-note {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--linie-hell);
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--auf-erz-soft);
}
.hero-note b {
  font-family: "Bodoni Moda", serif; font-weight: 600;
  font-size: 1.15rem; color: var(--auf-erz); margin-right: 7px;
}

/* Secession-Rahmen mit Eckquadraten */
.hf { position: absolute; inset: 26px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(241, 237, 226, 0.38); }
.hf i { position: absolute; width: 10px; height: 10px; background: rgba(241, 237, 226, 0.6); }
.hf i:nth-child(1) { left: -1px; top: -1px; }
.hf i:nth-child(2) { right: -1px; top: -1px; }
.hf i:nth-child(3) { left: -1px; bottom: -1px; }
.hf i:nth-child(4) { right: -1px; bottom: -1px; }
@media (max-width: 780px) { .hf { inset: 12px; } }

/* --- Sektionen --- */
.section { padding: 96px 0; }
.section--tief { background: var(--kalk-tief); }
.section--erz { background: var(--erz); color: var(--auf-erz); }

.shead { max-width: 640px; margin-bottom: 56px; }
.shead--mitte { margin-left: auto; margin-right: auto; text-align: center; }
.shead--mitte p { margin-left: auto; margin-right: auto; }
.shead h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.shead p { color: var(--grau); font-size: 1.05rem; }
.shead--erz h2 { color: var(--auf-erz); }
.shead--erz p { color: var(--auf-erz-soft); }
.rule { height: 1px; background: var(--linie); border: 0; margin: 0; }

/* --- Story (kompakt gerahmt, kein dominantes Bild) --- */
.story { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.plate { border: 1px solid var(--linie); padding: 12px; background: var(--kalk); }
.plate img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-cap {
  margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grau);
}
.story-text h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 22px; }
.story-lead {
  font-family: "Bodoni Moda", serif; font-size: 1.5rem; line-height: 1.35;
  color: var(--erz); margin-bottom: 22px; max-width: 24ch;
}
.story-facts {
  list-style: none; margin: 26px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--linie);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.story-facts b {
  display: block; font-family: "Bodoni Moda", serif; font-weight: 600;
  font-size: 1.5rem; color: var(--gruen); line-height: 1;
}
.story-facts span { font-size: 0.82rem; color: var(--grau);
  letter-spacing: 0.06em; text-transform: uppercase; }
.story-sign {
  margin-top: 28px; font-family: "Bodoni Moda", serif;
  font-size: 1.35rem; color: var(--gruen);
}

/* --- Speisekarte: Kategorien mit echtem Bild --- */
.kat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.kat__media { border: 1px solid var(--linie); padding: 10px; background: var(--kalk); margin-bottom: 20px; }
.kat__media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.kat__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--erz);
}
.kat__head h3 { font-size: 1.45rem; }
.kat__head .quadrat { align-self: center; }
.kat__note { color: var(--grau); font-size: 0.9rem; margin: 10px 0 4px; }
.kat ul { list-style: none; margin: 0; padding: 0; }
.kat li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 0; border-bottom: 1px solid var(--linie-fein);
}
.kat li:last-child { border-bottom: 0; }
.kat .dish small { display: block; color: var(--grau); font-size: 0.82rem; margin-top: 3px; }
.kat .price { font-family: "Bodoni Moda", serif; font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

.menu-cta {
  margin-top: 48px; display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap; justify-content: center;
}

/* --- Mittagsmenue: gerahmtes Brett --- */
.midi {
  border: 1px solid var(--linie); padding: 56px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
  background: var(--kalk);
}
.midi-price {
  font-family: "Bodoni Moda", serif; font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 5.4rem); line-height: 0.95;
  color: var(--gruen); margin: 6px 0 0;
}
.midi-days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.midi-day { padding: 12px 0; border-bottom: 1px solid var(--linie-fein); font-size: 0.95rem; }
.midi-day b { display: block; font-weight: 500; color: var(--grau); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }

/* --- Weinkeller (dunkles Band) --- */
.wine-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.wine-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--linie-hell);
}
.wine-list li:last-child { border-bottom: 0; }
.wine-list .wg { font-family: "Bodoni Moda", serif; font-size: 1.3rem; color: var(--auf-erz); }
.wine-list .wr { color: var(--auf-erz-soft); font-size: 0.9rem; }

/* --- Galerie: Quadrat-Mosaik --- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--linie); background: var(--kalk-tief);
}
.gallery img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 13, 11, 0.95);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: var(--shadow-dialog); }
.lightbox button {
  position: absolute; background: transparent; color: var(--kalk);
  border: 1px solid var(--linie-hell); width: 50px; height: 50px;
  font-size: 1.3rem; cursor: pointer; border-radius: var(--r);
}
.lightbox button:hover { background: rgba(241, 237, 226, 0.14); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* --- Kontakt --- */
.info-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.info-tab { border-top: 1px solid var(--erz); }
.info-row { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--linie-fein); }
.info-row .k {
  flex: 0 0 190px; color: var(--grau);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px;
}
.info-row .v { font-size: 1rem; }
.map-frame { border: 1px solid var(--linie); padding: 10px; background: var(--kalk); }
.map-frame iframe { width: 100%; height: 460px; border: 0; display: block; }

/* --- FAQ --- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--erz); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 44px 20px 0; font-size: 1.05rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 1px; background: var(--gruen); transform: translateY(-50%);
}
.faq summary::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 1px; height: 11px; background: var(--gruen); transform: translateY(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq details p { padding: 0 0 22px; color: var(--grau); }

/* --- Footer --- */
.site-footer { background: var(--erz); color: var(--auf-erz-soft); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer .brand-name { color: var(--auf-erz); }
.site-footer h4 { font-family: "Jost", sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--auf-erz); margin: 0 0 14px; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.foot-list li { padding: 5px 0; }
.site-footer a { color: var(--auf-erz-soft); }
.site-footer a:hover { color: var(--auf-erz); }
.foot-brand {
  font-family: "Bodoni Moda", serif; font-size: 1.9rem; color: var(--auf-erz);
  margin-bottom: 14px;
}
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linie-hell);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--auf-erz-soft);
}

/* --- Reveal (nur sparsam gesetzt) --- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* --- Rechtsseiten --- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 24px; }
.legal h2 { font-family: "Jost", sans-serif; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gruen);
  margin: 36px 0 10px; }
.legal p, .legal li { color: var(--erz-soft, #262320); }
.legal ul { padding-left: 20px; }
.legal a { font-weight: 500; }
.back-home { display: inline-block; margin-bottom: 28px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
  .gallery img, .faq summary::after { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1000px) {
  .story { grid-template-columns: 1fr; gap: 36px; }
  .midi { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: var(--kalk); border-bottom: 1px solid var(--linie);
    padding: 10px 24px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; font-size: 1.05rem; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .kat-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .midi-day { font-size: 0.9rem; }
  .info-row { flex-direction: column; gap: 3px; }
  .info-row .k { flex: none; }
  .map-frame iframe { height: 360px; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .brand { min-width: 0; }
  .brand img { height: 34px; }
  .brand .brand-name { font-size: 1.18rem; }
  .brand .brand-sub { font-size: 0.6rem; letter-spacing: 0.13em; }
  .midi { padding: 28px; }
  .midi-days { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
