/* Trattoria Fontana — sample site by AEGIS Systems
   Dark and immersive: scroll-driven oven video, glass cards, one bold sans-serif (Plus Jakarta Sans). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0d0b;
  --bg-raised: #191510;
  --glass: rgba(255, 246, 232, .055);
  --glass-strong: rgba(24, 20, 16, .62);
  --glass-border: rgba(255, 246, 232, .13);
  --text: #f7f2ea;
  --muted: #bcb1a2;
  --tomato: #ff6b3d;
  --saffron: #ffb23f;
  --accent-gradient: linear-gradient(120deg, var(--tomato), var(--saffron));
  --on-accent: #1c0f07;
  --open: #4cc27a;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --content: min(72rem, calc(100% - 2 * var(--gutter)));
  --section-space: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 1.25rem;
  --actionbar-h: 0px;
  --strip-h: 2.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: var(--actionbar-h);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(5.5rem + var(--strip-h)); }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: .7rem 1rem; border-radius: .6rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- shared pieces ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
}
.section-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-top: .5rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 8px 28px rgba(255, 107, 61, .28); }
.btn--accent:hover { box-shadow: 0 10px 34px rgba(255, 107, 61, .42); }
.btn--glass {
  background: rgba(255, 246, 232, .1);
  border-color: var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 246, 232, .18); }
.btn--small { min-height: 2.6rem; padding: .55rem 1.15rem; font-size: .92rem; }
.btn--wide { width: 100%; }

/* ---------- sample strip + nav ---------- */
/* The strip stays visible while scrolling, so business owners always have a way to the offer. */
.sample-strip {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--strip-h);
  padding: 0 var(--gutter);
  background: #1d1914;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.sample-strip strong { color: var(--text); }
.sample-strip a { color: var(--saffron); font-weight: 700; text-underline-offset: 3px; }
.sample-strip__short { display: none; }

.nav-wrap { position: sticky; top: var(--strip-h); z-index: 30; height: 0; }
.nav {
  position: absolute;
  top: .9rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--content);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .45rem .45rem .45rem 1.3rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}
/* The restaurant's own menu and buttons step aside once the AEGIS offer is on screen. */
.offer-in-view .nav { transform: translate(-50%, -150%); opacity: 0; visibility: hidden; }
.nav__logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--text); }

/* ---------- scroll story (hero) ---------- */
.story { position: relative; height: calc(100svh - var(--strip-h)); min-height: 34rem; }
.story-on .story { height: 320vh; }
.story__sticky { position: sticky; top: var(--strip-h); height: calc(100svh - var(--strip-h)); min-height: 34rem; overflow: hidden; }
.story__poster,
.story__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__canvas { opacity: 0; transition: opacity .4s ease; }
.has-frames .story__canvas { opacity: 1; }
.story__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 13, 11, .95) 0%, rgba(15, 13, 11, .55) 38%, rgba(15, 13, 11, .05) 70%),
    linear-gradient(to right, rgba(15, 13, 11, .55) 0%, rgba(15, 13, 11, 0) 65%);
}
.chapter {
  position: absolute;
  left: 50%;
  bottom: clamp(3.5rem, 11vh, 7rem);
  transform: translateX(-50%);
  width: var(--content);
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.chapter:not(.chapter--first) { display: none; }
.story-on .chapter:not(.chapter--first) { display: grid; opacity: 0; visibility: hidden; }
.chapter__title {
  font-weight: 800;
  font-size: clamp(2.9rem, 8.4vw, 7.25rem);
  line-height: .98;
  letter-spacing: -.035em;
  word-spacing: .04em;
  max-width: 12ch;
  text-wrap: balance;
}
.chapter__text { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.45; color: #e5dccf; max-width: 32rem; }
.chapter__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .3rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .95rem .4rem .75rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(15, 13, 11, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .92rem;
  font-weight: 600;
}
.status__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(76, 194, 122, .25); }
.status.is-closed .status__dot { background: var(--tomato); }

.story__hint {
  position: absolute;
  right: var(--gutter);
  bottom: 1.4rem;
  display: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.story-on .story__hint { display: block; }
.story__hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 2.2rem;
  margin: .5rem auto 0;
  background: linear-gradient(var(--saffron), transparent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- page sections ---------- */
main > section,
.aegis { width: var(--content); margin-inline: auto; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.facts__item { padding: 1.4rem 1.5rem; display: grid; gap: .3rem; }
.facts__value { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.facts__value a { text-decoration: none; }
.facts__value a:hover { color: var(--saffron); }

.kitchen { padding-top: var(--section-space); display: grid; gap: 1.25rem; }
.kitchen__title {
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  word-spacing: .04em;
  max-width: 16ch;
}
.expand { display: inline-block; vertical-align: -.05em; }
.expand__img {
  display: block;
  width: 2.3em;
  height: .8em;
  border-radius: 999px;
  background: var(--bg-raised) url('../img/haende.webp') center / cover no-repeat;
}
.expand__word {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.kitchen__text { max-width: 36rem; color: var(--muted); font-size: 1.15rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(9rem, 17vw, 14rem);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.bento__item--big { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento__item:hover img { transform: scale(1.05); }
.bento__item figcaption {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .88rem;
  font-weight: 700;
}

.menu { padding-top: var(--section-space); }
.tabs {
  display: inline-flex;
  max-width: 100%;
  gap: .25rem;
  margin: 2rem 0 1.25rem;
  padding: .3rem;
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  scrollbar-width: none;
}
.tabs__tab {
  flex: none;
  min-height: 2.75rem;
  padding: .6rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 700 .98rem/1 var(--font);
  cursor: pointer;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected='true'] { background: var(--text); color: var(--bg); }
.menu__panel { padding: .5rem clamp(1.1rem, 3vw, 2rem); }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name price' 'desc desc';
  gap: .15rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.dish__name { grid-area: name; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.dish__desc { grid-area: desc; color: var(--muted); font-size: .95rem; }
.dish__price { grid-area: price; font-weight: 800; color: var(--saffron); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

.board { padding-top: var(--section-space); }
.board__card {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1.5px solid transparent;
  border-radius: calc(var(--radius) + .25rem);
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--accent-gradient) border-box;
}
.board__list { margin-top: 1.75rem; }
.board__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
}
.board__price { font-weight: 800; color: var(--saffron); white-space: nowrap; }
.board__note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

.reserve {
  padding-top: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.reserve__intro { display: grid; gap: 1rem; color: var(--muted); }
.reserve__intro .section-title { color: var(--text); }
.reserve__phone { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.reserve__phone a { text-decoration: none; }
.reserve__phone a:hover { color: var(--saffron); }
.reserve__card { padding: clamp(1.25rem, 3vw, 2rem); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row--three { grid-template-columns: 1.4fr 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field__label { font-size: .88rem; font-weight: 700; }
.field__optional { font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem .95rem;
  border: 1px solid var(--glass-border);
  border-radius: .8rem;
  background: rgba(255, 246, 232, .06);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field__input::placeholder { color: #8f8578; }
.field__input--area { min-height: 6rem; resize: vertical; }
.field__input:focus-visible { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: transparent; }
.field__input[aria-invalid='true'] { border-color: var(--tomato); box-shadow: inset 0 0 0 1px var(--tomato); }
select.field__input option { background: var(--bg-raised); color: var(--text); }
.form__error { color: #ff8a66; font-weight: 700; font-size: .95rem; }
.form__hint { font-size: .85rem; color: var(--muted); }
.form__done { display: grid; gap: .75rem; }
.form__done h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.form__done-note { color: var(--muted); }
.form__done .btn { justify-self: start; margin-top: .25rem; }

.visit {
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.visit__where { display: grid; gap: 1.1rem; align-content: start; justify-items: start; color: var(--muted); }
.visit__where .section-title { color: var(--text); }
.visit__hours { padding: clamp(1.25rem, 3vw, 2rem); }
.hours { width: 100%; border-collapse: collapse; margin-top: .75rem; font-variant-numeric: tabular-nums; }
.hours th,
.hours td { padding: .8rem 0; border-bottom: 1px solid var(--glass-border); text-align: left; vertical-align: top; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--saffron); font-weight: 800; }
.hours tr.is-today th::after { content: ' · heute'; font-weight: 600; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--glass-border); background: radial-gradient(ellipse at 15% 0%, rgba(255, 107, 61, .14), transparent 55%), #0b0a08; }
.aegis { padding: var(--section-space) 0 clamp(3rem, 7vw, 5rem); display: grid; gap: 1.2rem; }
.aegis__title { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.aegis__text { max-width: 40rem; color: var(--muted); }
.aegis__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.aegis__site a { font-weight: 700; color: var(--saffron); text-underline-offset: 4px; }
.aegis__subtitle { margin-top: clamp(2rem, 5vw, 3rem); }

.steps,
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps { padding: 0; list-style: none; margin: 0; }
.steps__item,
.package { padding: 1.4rem 1.5rem; display: grid; gap: .45rem; align-content: start; }
.steps__item { grid-template-columns: auto 1fr; grid-template-areas: 'num title' 'num text'; column-gap: 1rem; }
.steps__num {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-weight: 800;
}
.steps__title { grid-area: title; margin: .3rem 0 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.steps__text { grid-area: text; }
.steps__text,
.package__desc { color: var(--muted); font-size: .98rem; }
.package__name { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.package__price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.package--featured {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--accent-gradient) border-box;
}
/* Badge sits on the card's top edge so all three prices line up. */
.package__tag {
  position: absolute;
  top: -.8rem;
  left: 1.5rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-size: .78rem;
  font-weight: 800;
}
.aegis__note { max-width: 46rem; font-size: .9rem; color: var(--muted); }
.aegis__contact { color: var(--muted); }
.aegis__contact a { color: var(--text); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.footer__legal {
  width: var(--content);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- mobile action bar + toast ---------- */
.actionbar { display: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--actionbar-h) + 1rem);
  z-index: 50;
  transform: translateX(-50%);
  width: min(26rem, calc(100% - 2rem));
  padding: .95rem 1.15rem;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: rgba(29, 25, 20, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: .95rem;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --actionbar-h: calc(4.25rem + env(safe-area-inset-bottom)); }
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
  .story,
  .story__sticky { height: calc(100svh - var(--actionbar-h) - var(--strip-h)); min-height: 30rem; }
  .story-on .story { height: 260vh; }
  .chapter__actions .btn--accent { display: none; }
  .actionbar {
    position: fixed;
    left: .6rem;
    right: .6rem;
    bottom: calc(.5rem + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: .35rem;
    height: 3.5rem;
    padding: .35rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(24, 20, 16, .78);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .offer-in-view .actionbar { transform: translateY(150%); opacity: 0; visibility: hidden; }
  .actionbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
  }
  .actionbar__btn--main { background: var(--accent-gradient); color: var(--on-accent); }
  .reserve,
  .visit { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps,
  .packages { grid-template-columns: 1fr; }
  .packages { row-gap: 1.6rem; }
}

@media (max-width: 640px) {
  .sample-strip__long { display: none; }
  .sample-strip__short { display: block; }
  .facts { grid-template-columns: 1fr; gap: .75rem; }
  .facts__item { padding: 1.1rem 1.25rem; }
  .form__row,
  .form__row--three { grid-template-columns: 1fr; }
  .chapter__actions .btn { flex: 1 1 auto; }
  .bento__item--wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .nav,
  .actionbar,
  .bento__item img { transition: none; }
  .story__hint::after { animation: none; }
}
