/* =========================================================
   Layout: Nav, Mega-Menü, Footer, Page-Transition
   ========================================================= */

/* ---------- Nav ---------- */
.nav { position: fixed; top: clamp(16px, 2.6vh, 28px); left: 0; right: 0; z-index: 500; padding: 0 clamp(14px, 3vw, 40px); pointer-events: none; transition: transform .7s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 40px)); }
.nav__bar {
  pointer-events: auto; position: relative; max-width: 1420px; margin: 0 auto; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 12px 10px 16px; border-radius: 100px;
  background: rgba(13, 11, 10, .25); border: 1px solid rgba(255, 230, 190, .1);
  -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%);
  transition: background .5s, border-color .5s, border-radius .5s;
}
.nav.is-scrolled .nav__bar, .nav.mega-open .nav__bar { background: rgba(13, 11, 10, .7); border-color: var(--glass-border); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8); }
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__brand .nav__logo { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .nav__brand .nav__logo { height: 38px; } }
.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word b { font-family: var(--f-label); font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; }
.nav__word small { font-family: var(--f-head); font-style: normal; font-weight: 600; font-size: .95rem; color: var(--accent-2); margin-top: 3px; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 100px; font-size: .98rem; font-weight: 650; color: rgba(243, 236, 226, .88); transition: color .3s, background .3s; }
.nav__link:hover, .nav__link.is-current { color: var(--cream); background: rgba(255, 240, 220, .07); }
.nav__link svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .4s var(--ease); }
.nav.mega-open [data-mega-trigger] svg { transform: rotate(180deg); }
.nav__cta { flex-shrink: 0; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-border); position: relative; }
.nav__burger i { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 20px; } .nav__burger i:last-child { top: 27px; }
.menu-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Mega-Menü (Catering-Universum) ---------- */
.mega {
  pointer-events: auto; position: absolute; left: 50%; top: calc(100% + 12px); width: min(1420px, calc(100vw - 2 * clamp(14px, 3vw, 40px)));
  transform: translate(-50%, -10px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
  padding: 26px; border-radius: 30px; display: grid; grid-template-columns: 1fr 2.4fr; gap: 26px;
}
.nav.mega-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__intro { position: relative; border-radius: 20px; overflow: hidden; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.mega__intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s var(--ease), opacity .6s; }
.mega__intro { isolation: isolate; }
.mega__intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,11,10,.1) 0%, rgba(13,11,10,.55) 30%, rgba(13, 11, 10, .94) 58%, rgba(13, 11, 10, .98) 100%); }
.mega__intro h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; font-size: 2rem; line-height: 1; margin: 6px 0 8px; }
.mega__intro p { margin: 0 0 14px; font-size: .9rem; color: var(--cream-dim); }
.mega__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mega__k { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1.08; padding: 14px; border-radius: 16px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.mega__k img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.62) saturate(.85); transition: transform 1s var(--ease), filter .5s; }
.mega__k::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(13, 11, 10, .9)); }
.mega__k b { font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; font-size: 1.22rem; line-height: 1.05; }
.mega__k small { font-size: .74rem; color: var(--cream-dim); margin-top: 2px; }
.mega__k:hover { transform: translateY(-3px); border-color: var(--k, var(--accent)); }
.mega__k:hover img { transform: scale(1.08); filter: brightness(.82) saturate(1); }
.mega__k i { position: absolute; top: 12px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--accent)); box-shadow: 0 0 12px var(--k, var(--accent)); }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 400; background: var(--bg); padding: 120px var(--pad) 40px; display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 52px) 52px); transition: clip-path .9s var(--ease); }
.menu-open .menu { clip-path: circle(160% at calc(100% - 52px) 52px); }
.menu__links { display: flex; flex-direction: column; gap: 2px; }
.menu__links > a { font-family: var(--f-head); font-size: clamp(2rem, 8.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; display: flex; gap: 14px; align-items: baseline; font-weight: 600; }
.menu__links > a small { font-family: var(--f-label); font-weight: 700; font-size: .7rem; color: var(--accent-2); letter-spacing: .1em; }
.menu__kitchens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 10px 0 18px 34px; }
.menu__kitchens a { font-size: .95rem; color: var(--cream-dim); }
.menu__foot { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 6px; color: var(--cream-dim); }

/* ---------- Page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 990; pointer-events: none; display: grid; place-items: center; background: var(--bg); clip-path: inset(100% 0 0 0); }
.pt img { width: 64px; opacity: 0; }
.pt.is-in { clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.77, 0, .18, 1); }
.pt.is-in img { opacity: 1; transition: opacity .3s .35s; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(55px, 8vh, 90px) 0 30px; border-top: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 164, 106, .08), transparent 70%), var(--bg); }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer__cta .h1 { max-width: 12ch; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-top: 50px; border-top: 1px solid var(--line); }
.footer__brand img { width: 140px; margin-bottom: 18px; }
.footer__brand p { color: var(--cream-mute); max-width: 36ch; font-size: .92rem; margin: 0; }
.footer h4 { font-family: var(--f-label); font-weight: 700; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li, .footer p { font-size: .93rem; color: var(--cream-dim); }
.footer a:hover { color: var(--accent-2); }
.footer__big { font-family: var(--f-head); font-style: normal; font-weight: 600; font-size: clamp(5rem, 19vw, 21rem); line-height: .8; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 226, .12); margin: 45px 0 30px; user-select: none; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; color: var(--cream-mute); padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .mega { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .nav__word small { display: none; }
}
