/* Restaurant Intermezzo – inoffizielle Vorschau. Idee: die Pause dazwischen. */
@font-face {
  font-family: "Intermezzo Serif";
  src: url("assets/fonts/roboto-serif-latin-wdth-normal.woff2") format("woff2-variations"),
       url("assets/fonts/roboto-serif-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Intermezzo Sans";
  src: url("assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ox: #3e0a16;
  --ox-2: #5a1222;
  --ox-3: #26050d;
  --parch: #efe3c8;
  --parch-2: #e2d0aa;
  --verm: #ff5b37;
  --line: rgba(239, 227, 200, .2);
  --serif: "Intermezzo Serif", serif;
  --sans: "Intermezzo Sans", sans-serif;
  --pad: clamp(20px, 4.4vw, 72px);
  --bar-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ox);
  color: var(--parch);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--verm); color: var(--ox-3); }
:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; bottom: -80px; z-index: 50;
  background: var(--verm); color: var(--ox-3); padding: 12px 16px; font-weight: 700;
  min-height: 44px;
}
/* Fokussiert unten links einblenden, damit die Marke oben frei klickbar bleibt */
.skip:focus { bottom: 12px; }

/* Vorschau-Hinweis */
.preview {
  background: var(--parch);
  color: var(--ox);
  font-size: 13px;
  line-height: 1.35;
  padding: 8px var(--pad);
  text-align: center;
}
.preview strong { font-weight: 800; letter-spacing: .02em; margin-right: .4em; }

/* Kopfzeile */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: var(--bar-h);
  padding: 0 var(--pad);
  background: rgba(62, 10, 22, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-stretch: 150%; font-weight: 400;
  font-size: 23px; letter-spacing: -.01em; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.brand i {
  display: inline-block; width: 3px; height: .9em; margin: 0 .22em;
  background: var(--verm); transition: margin .4s var(--ease);
}
.brand:hover i { margin: 0 .5em; }
.bar nav { margin-left: auto; }
.bar ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bar nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--verm), var(--verm)) 12px calc(100% - 9px) / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.bar nav a:hover, .bar nav a:focus-visible { background-size: calc(100% - 24px) 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 24px;
  font: 600 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn--fill { background: var(--verm); color: var(--ox-3); }
.btn--fill:hover { background: var(--parch); }
.btn--line { border-color: currentColor; color: var(--parch); background: transparent; }
.btn--line:hover { background: var(--parch); color: var(--ox); border-color: var(--parch); }
.bar__mail { min-height: 44px; padding: 0 18px; font-size: 15px; }
.bar__toggle { display: none; }
.bar__mail { white-space: nowrap; }

/* Notenblatt-Raster: fünf Haarlinien */
.staff {
  position: absolute; left: 0; right: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  height: var(--staff-h, 120px);
  pointer-events: none;
}
.staff span { display: block; height: 1px; background: var(--line); transform-origin: left; }
.staff--ink span { background: rgba(62, 10, 22, .18); }
.js .staff span { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .staff.on span { transform: scaleX(1); }
.js .staff.on span:nth-child(2) { transition-delay: .08s; }
.js .staff.on span:nth-child(3) { transition-delay: .16s; }
.js .staff.on span:nth-child(4) { transition-delay: .24s; }
.js .staff.on span:nth-child(5) { transition-delay: .32s; }

/* Fotos */
.photo { position: relative; overflow: hidden; background: var(--ox-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  background: rgba(38, 5, 13, .82); color: var(--parch);
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px;
}

/* ---------- Hero ---------- */
.hero {
  --p: 0;
  position: relative;
  min-height: calc(100svh - var(--bar-h) - 36px);
  padding: clamp(24px, 4vh, 48px) var(--pad) clamp(28px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
  isolation: isolate;
  overflow-x: clip;
}
.staff--hero { --staff-h: clamp(90px, 15vh, 150px); }
.hero > .staff { top: 50%; transform: translateY(-50%); z-index: -1; }
.hero__name { display: contents; font-weight: inherit; }
.hero__name > span { font-family: var(--serif); line-height: .82; white-space: nowrap; }
.hero__kind {
  grid-column: 1 / 7; grid-row: 1;
  font-family: var(--serif) !important; font-stretch: 150%; font-weight: 400;
  font-size: clamp(17px, 1.6vw, 24px); line-height: 1 !important;
  align-self: end; padding-bottom: .9em;
}
.hero__inter, .hero__mezzo {
  position: relative;
  font-size: clamp(84px, 14vw, 250px);
  font-weight: 300;
  font-stretch: calc(150% - var(--p) * 38%);
  letter-spacing: -.035em;
}
/* Die Buchstaben stehen auf einem leeren Notenblatt: fünf Linien über die x-Höhe */
.hero__inter::before, .hero__mezzo::before {
  content: ""; position: absolute; z-index: -1;
  left: -100vw; right: -100vw; bottom: .08em; height: .5em;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 25% / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 75% / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
}
.hero__mezzo::before { left: -100vw; right: 0; }
.hero__inter {
  grid-column: 1 / 9; grid-row: 2; z-index: 2;
  transform: translateX(calc(var(--p) * -4vw));
}
.hero__mezzo {
  grid-column: 4 / 13; grid-row: 4; z-index: 2; justify-self: end;
  transform: translateX(calc(var(--p) * 4vw));
  padding-bottom: .06em;
}
.hero__rest {
  grid-column: 7; grid-row: 2 / 5; justify-self: center; align-self: stretch;
  width: 6px; background: var(--verm); z-index: 1;
  transform: scaleY(calc(.55 + var(--p) * .45)); transform-origin: top;
  margin-top: 2.2vw;
}
.hero__photo {
  grid-column: 8 / 13; grid-row: 1 / 5;
  align-self: start;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--bar-h) - 160px);
  width: 100%;
  margin-top: 0;
  z-index: 1;
  transform: translateY(calc(var(--p) * -3vh));
}
.hero__photo img { object-position: 30% 50%; }
.hero__copy {
  grid-column: 1 / 6; grid-row: 3; align-self: end;
  padding: clamp(24px, 4vh, 48px) 0 clamp(6px, 1.4vw, 22px);
  max-width: 30rem;
}
.hero__lede { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Willkommen (Pergament) ---------- */
.welcome {
  position: relative;
  background: var(--parch);
  color: var(--ox);
  padding: clamp(72px, 12vw, 180px) var(--pad) clamp(80px, 12vw, 180px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: clamp(40px, 6vw, 88px);
}
.welcome > .staff { --staff-h: clamp(120px, 14vw, 220px); top: clamp(48px, 9vw, 140px); }
.welcome__label {
  grid-column: 1 / 4; grid-row: 1;
  font: 700 15px/1.2 var(--sans); letter-spacing: .02em;
  border-top: 6px solid var(--verm); padding-top: 14px; align-self: start; width: max-content;
}
.manifest {
  grid-column: 4 / 13; grid-row: 1;
  font-family: var(--serif); font-stretch: 132%; font-weight: 340;
  font-size: clamp(30px, 4.2vw, 66px); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.manifest .w {
  background: linear-gradient(var(--verm), var(--verm)) no-repeat 0 92% / 0 .07em;
  transition: background-size .6s var(--ease);
}
.js .manifest .w.on { background-size: 100% .07em; }
.welcome__photo {
  grid-column: 1 / 8; grid-row: 2;
  aspect-ratio: 5 / 4;
  margin-left: calc(var(--pad) * -1);
}
.welcome__photo img { object-position: 40% 60%; }
.welcome__text {
  grid-column: 8 / 12; grid-row: 2; align-self: end;
  font-size: clamp(17px, 1.3vw, 20px);
  border-left: 6px solid var(--verm); padding-left: 22px;
}
.welcome__text p + p { margin-top: 1em; }

/* ---------- Horizontale Geschichte ---------- */
.story { position: relative; background: var(--ox); }
.story__pin { position: relative; }
.story__track {
  display: flex; align-items: stretch; gap: clamp(20px, 4vw, 72px);
  padding: clamp(64px, 9vw, 120px) var(--pad);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--verm) transparent;
}
.story__track > * { scroll-snap-align: start; }
.js-pin .story__track { overflow: visible; }
.story__intro {
  position: relative; flex: 0 0 auto;
  width: min(30vw, 460px);
  display: flex; flex-direction: column; justify-content: center;
}
.story__intro .staff { top: 50%; transform: translateY(-50%); }
.story__intro h2 {
  font-family: var(--serif); font-stretch: 150%; font-weight: 300;
  font-size: clamp(38px, 4vw, 64px); line-height: .98; letter-spacing: -.03em;
}
.story__hint { margin-top: 28px; font-size: 15px; color: var(--parch-2); }
.hint--touch { display: none; }
.panel { position: relative; flex: 0 0 auto; width: clamp(280px, 38vw, 560px); }
.panel--low { padding-top: clamp(40px, 9vh, 110px); }
.panel__photo { aspect-ratio: 4 / 5; }
.panel h3 {
  position: relative; z-index: 2;
  font-family: var(--serif); font-stretch: 150%; font-weight: 300;
  font-size: clamp(44px, 5.4vw, 92px); line-height: .9; letter-spacing: -.035em;
  margin: -0.55em 0 18px -0.06em;
  transition: font-stretch .6s var(--ease);
}
.panel:hover h3 { font-stretch: 112%; }
.panel p { max-width: 24rem; color: var(--parch-2); font-size: 17px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--verm); color: var(--ox-3); overflow: hidden; padding: clamp(14px, 2vw, 26px) 0; }
.marquee__run { display: flex; align-items: center; width: max-content; }
.marquee span {
  font-family: var(--serif); font-stretch: 150%; font-weight: 300;
  font-size: clamp(34px, 5.4vw, 88px); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
}
.marquee i { display: block; width: 5px; height: .8em; margin: 0 .55em; background: var(--ox-3); font-size: clamp(34px, 5.4vw, 88px); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__run { animation: run 38s linear infinite; }
}
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- Kontakt + Standort ---------- */
.contact {
  position: relative;
  background: var(--ox-3);
  padding: clamp(80px, 11vw, 170px) var(--pad) clamp(40px, 6vw, 90px);
}
.contact > .staff { top: clamp(60px, 8vw, 130px); --staff-h: clamp(110px, 13vw, 200px); }
.contact__head {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: end;
}
.contact__head h2 {
  grid-column: 1 / 8;
  font-family: var(--serif); font-stretch: 150%; font-weight: 300;
  font-size: clamp(52px, 8.6vw, 156px); line-height: .86; letter-spacing: -.04em;
}
.contact__head p { grid-column: 9 / 13; font-size: clamp(17px, 1.3vw, 20px); color: var(--parch-2); padding-bottom: .6em; }
.contact__mail {
  display: block; position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  padding: clamp(18px, 2vw, 30px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-stretch: 120%; font-weight: 300;
  font-size: clamp(26px, 5.6vw, 104px); line-height: 1; letter-spacing: -.035em;
  text-decoration: none; overflow-wrap: anywhere;
  transition: color .3s, font-stretch .6s var(--ease);
}
.contact__mail span:last-child { color: var(--verm); }
.contact__mail:hover { font-stretch: 100%; }
.contact__mail:hover span:first-child { color: var(--verm); }
.contact__mail:hover span:last-child { color: var(--parch); }

.where {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--parch); color: var(--ox);
  padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 28px;
}
.where__label {
  grid-column: 1 / -1;
  font: 700 15px/1.2 var(--sans); letter-spacing: .02em;
  border-top: 6px solid var(--verm); padding-top: 14px; width: max-content;
}
.where__addr {
  grid-column: 1 / 8; font-style: normal;
  display: flex; flex-direction: column;
  font-family: var(--serif); font-stretch: 150%; font-weight: 300; letter-spacing: -.03em;
}
.where__addr span:first-child { font-family: var(--sans); font-stretch: normal; font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.where__street, .where__town { font-size: clamp(36px, 5vw, 86px); line-height: .98; }
.where__town { color: var(--ox-2); }
.where__side { grid-column: 9 / 13; align-self: end; }
.where__side p { margin-bottom: 20px; font-size: 17px; }
.where .btn--fill { background: var(--ox); color: var(--parch); }
.where .btn--fill:hover { background: var(--verm); color: var(--ox-3); }
.copied { min-height: 1.5em; margin: 10px 0 0 !important; font-size: 15px !important; }

/* Footer */
.foot {
  background: var(--ox-3); color: var(--parch-2);
  padding: 36px var(--pad) 48px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.foot__name { font-family: var(--serif); font-stretch: 150%; font-size: 22px; color: var(--parch); margin-bottom: 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot__note { margin-top: 14px; max-width: 62rem; font-size: 13px; opacity: .85; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.on { opacity: 1; transform: none; }

/* ---------- Desktop: gepinnte horizontale Geschichte ---------- */
@media (min-width: 900px) {
  .js-pin .story__pin { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow: hidden; display: flex; align-items: center; }
  .js-pin .story__track { will-change: transform; padding-top: 0; padding-bottom: 0; }
  .js-pin .panel__photo { aspect-ratio: auto; height: min(52vh, 560px); }
  .js-pin .panel { width: min(40vw, 46vh + 120px); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .bar nav a { padding: 0 9px; }
  .hero__photo { grid-column: 7 / 13; }
  .hero__rest { grid-column: 6; }
  .hero__copy { grid-column: 1 / 6; }
  .welcome__text { grid-column: 8 / 13; }
  .contact__head p { grid-column: 8 / 13; }
  .where__addr { grid-column: 1 / 9; }
  .where__side { grid-column: 9 / 13; }
}

/* ---------- Telefon / schmales Tablet ---------- */
@media (max-width: 899px) {
  :root { --bar-h: 62px; }
  .bar { gap: 8px; }
  .bar__mail { padding: 0 14px; }
  .bar nav { display: none; }
  .bar__mail { margin-left: auto; }
  .js .bar__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 12px; margin-left: auto;
    font: 600 15px/1 var(--sans); color: var(--parch);
    background: transparent; border: 0; cursor: pointer;
  }
  .js .bar__toggle + nav + .bar__mail { margin-left: 0; }
  .bar__toggle:focus-visible { outline: 2px solid var(--verm); outline-offset: 2px; }
  .bar__toggle-lines { display: inline-flex; flex-direction: column; gap: 6px; width: 20px; }
  .bar__toggle-lines i { display: block; height: 2px; background: var(--verm); transition: transform .3s var(--ease); }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines i:first-child { transform: translateY(4px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .bar nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 8px var(--pad) 16px;
    background: var(--ox); border-bottom: 1px solid var(--line);
  }
  .bar nav.is-open ul { flex-direction: column; gap: 0; }
  .bar nav.is-open a { display: flex; min-height: 52px; padding: 0; font-size: 20px; border-bottom: 1px solid var(--line); background-position: 0 calc(100% - 12px); }
  .bar nav.is-open li:last-child a { border-bottom: 0; }
  .bar nav.is-open a:hover, .bar nav.is-open a:focus-visible { background-size: 2.5em 2px; }
  .brand { font-size: 21px; }
  .preview span { display: block; }

  .hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    min-height: 0;
    padding-top: 18px;
    column-gap: 10px;
  }
  .hero__kind { grid-column: 1 / -1; grid-row: 1; padding-bottom: .7em; }
  .hero__inter, .hero__mezzo { font-size: min(23.5vw, 150px); }
  .hero__inter { grid-column: 1 / -1; grid-row: 2; }
  .hero__photo {
    grid-column: 2 / 7; grid-row: 3;
    aspect-ratio: auto; height: min(42svh, 88vw); max-height: none;
    margin-top: -.12em; margin-right: calc(var(--pad) * -1); width: auto;
  }
  .hero__rest { grid-column: 1; grid-row: 3; justify-self: start; margin: 18% 0 0 6px; }
  .hero__mezzo { grid-column: 1 / -1; grid-row: 4; justify-self: end; margin-top: -.42em; }
  .hero__copy { grid-column: 1 / -1; grid-row: 5; padding: 26px 0 8px; }
  .staff--hero { --staff-h: 92px; }

  .welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome__label, .manifest, .welcome__photo, .welcome__text { grid-column: 1; grid-row: auto; }
  .welcome__photo { margin-left: calc(var(--pad) * -1); margin-right: 14%; aspect-ratio: 4 / 3.4; }

  .story__track {
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-left: var(--pad);
    gap: 18px;
  }
  .story__track::-webkit-scrollbar { display: none; }
  .story__intro { width: 74vw; scroll-snap-align: start; }
  .panel { width: 80vw; scroll-snap-align: start; }
  .panel--low { padding-top: 40px; }
  .hint--wide { display: none; }
  .hint--touch { display: inline; }

  .contact__head { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .contact__head h2, .contact__head p { grid-column: 1; }
  .contact__mail span { display: block; }
  .contact__mail { font-stretch: 92%; font-size: min(8.2vw, 58px); overflow-wrap: normal; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .where__street, .where__town { font-size: min(8.4vw, 60px); font-stretch: 100%; }
  .where__addr, .where__side { grid-column: 1; }
}
@media (max-width: 899px) and (min-width: 600px) {
  .hero__photo { grid-column: 3 / 7; height: min(48svh, 70vw); }
  .hero__copy { max-width: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { --p: 0 !important; }
  .js .reveal, .js .staff span, .js .manifest .w { opacity: 1; transform: none; transition: none; }
  .brand i, .panel h3, .contact__mail, .btn { transition: none; }
}
