/* =========================================================
   Zunfthaus zum Grünen Glas — Vorschau
   Layout nach Figma "Favorit" (1369px Desktop) · aufgewertet
   Fonts: Playfair Display (Serif, Headings) + Instrument Sans (Sans)
   Farben: #656f69 Grün-Grau · #ffffff · #000000
   ========================================================= */

:root {
  --green: #656f69;
  --green-dark: #545d58;
  --green-deep: #3f4642;
  --white: #ffffff;
  --black: #000000;
  --ink: #656f69;
  --muted: #8a938d;
  --line: rgba(101, 111, 105, .35);
  --hair: rgba(101, 111, 105, .14);
  --maxw: 1200px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  line-height: 1.08;
  margin: 0;
}

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

/* Kleiner Überschrift-Kicker (Swiss-Style, uppercase) */
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hair);
  box-shadow: 0 8px 30px -24px rgba(63, 70, 66, .5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  transition: min-height .4s var(--ease);
}
.site-header.is-scrolled .container { min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 22px; width: auto;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.brand:hover img { opacity: .72; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 17px;
}
.nav a.navlink {
  position: relative;
  color: var(--green);
  padding: 4px 0;
}
.nav a.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a.navlink:hover::after,
.nav a.navlink[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--green);
  --bd: var(--green);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--white); border-color: var(--green); }
.btn:hover::before { transform: scaleX(1); }
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--solid { --fg: var(--white); --bd: var(--green); }
.btn--solid::before { transform: scaleX(1); }
.btn--solid:hover::before { background: var(--green-dark); }

.btn--light { --fg: var(--white); --bd: rgba(255,255,255,.65); }
.btn--light::before { background: var(--white); }
.btn--light:hover { color: var(--green); border-color: var(--white); }

.nav-toggle {
  display: none;
  border: 0; background: transparent;
  color: var(--green); font-size: 24px; line-height: 1;
  cursor: pointer; padding: 6px;
}

/* ---------- Hero ---------- */
.hero { padding-top: 40px; }
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 560;
  border-radius: 3px;
  overflow: hidden;
  background: var(--green);
  box-shadow: 0 40px 80px -50px rgba(63, 70, 66, .7);
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(63,70,66,.10) 0%, rgba(63,70,66,0) 30%, rgba(63,70,66,.28) 100%);
  pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__cue {
  position: absolute;
  left: 50%; bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
.hero__cue span { width: 1px; height: 34px; background: rgba(255,255,255,.75); animation: cue 1.9s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  padding: 104px 0 44px;
}
.intro .kicker { display: block; margin-bottom: 22px; }
.intro h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 34px;
}
.intro p {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.4;
  color: var(--green);
}

/* ---------- Kategorie-Kacheln (versetzt, Titel im Bild) ---------- */
.tiles { padding: 72px 0 52px; }
.tiles__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
.tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--green);
  aspect-ratio: 438 / 560;
  box-shadow: 0 34px 70px -46px rgba(63, 70, 66, .85);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s var(--ease-out);
}
.tile:hover img { transform: scale(1.07); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,50,47,0) 42%, rgba(45,50,47,.22) 68%, rgba(45,50,47,.78) 100%);
  transition: opacity .5s var(--ease);
}
.tile:hover::after { opacity: .9; }

.tile__cap {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--white);
}
.tile__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .72);
  transform: translateY(-8px);
}
.tile__name {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
}
.tile__name::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: rgba(255, 255, 255, .9);
  transition: width .55s var(--ease-out);
}
.tile:hover .tile__name::after { width: 100%; }

/* dezenter, ausbalancierter Versatz */
.tile--menue  { grid-column: 1 / 6;  margin-top: 0;    }
.tile--raeume { grid-column: 8 / 13; margin-top: 88px; }
.tile--events { grid-column: 4 / 9;  margin-top: 44px; }
/* Foto mit Instagram-UI: enger anschneiden, Pfeil/Punkte raus */
.tile--events img { object-position: 42% 30%; transform: scale(1.12); }
.tile--events:hover img { transform: scale(1.17); }

/* ---------- Küche ---------- */
.kitchen {
  text-align: center;
  padding: 110px 0 124px;
}
.kitchen .kicker { display: block; margin-bottom: 26px; }
.kitchen p {
  max-width: 720px;
  margin: 0 auto 42px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
  color: var(--green);
}
.kitchen__actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 84px 0 92px;
}
.footer .kicker { color: rgba(255,255,255,.6); display:block; margin-bottom: 16px; }
.footer h2 { color: var(--white); font-size: clamp(34px, 4vw, 46px); margin-bottom: 18px; }
.footer p { color: rgba(255, 255, 255, .82); max-width: 340px; margin: 0 0 30px; font-size: 20px; }
.footer__emblem img {
  height: 168px; width: auto; opacity: .92;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }

.footer address {
  font-style: normal;
  color: rgba(255, 255, 255, .78);
  font-size: 16px; line-height: 1.7;
  margin-top: 30px;
}
.footer address a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.footer address a:hover { border-bottom-color: rgba(255,255,255,.7); }
.footer address .sep { display: inline-block; margin: 0 .28em; color: rgba(255, 255, 255, .55); }

.footer__bar {
  position: relative;
  background: var(--black);
  color: rgba(255, 255, 255, .72);
  text-align: center;
  font-size: 14px; letter-spacing: .04em;
  padding: 20px 0;
}
.footer__bar a { transition: color .3s var(--ease); }
.footer__bar a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    transform: translateY(-140%);
    transition: transform .45s var(--ease-out);
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: 15px 24px; width: 100%; text-align: center; }
  .nav a.navlink::after { display: none; }
  .nav .btn { margin: 14px auto 4px; }
  .nav-toggle { display: inline-block; }

  .tiles__grid { display: flex; flex-direction: column; gap: 26px; }
  .tile {
    margin: 0 !important;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
  }
  .tile--raeume { align-self: flex-end; }
  .tile--events { align-self: center; }
  .tile__cap { left: 22px; right: 22px; bottom: 20px; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__emblem { display: none; }
}

@media (max-width: 560px) {
  .intro { padding-top: 68px; }
  .tile__media { max-width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { transform: none; }
}
