/* Osteria Matassa – Musterprojekt von Somers Design. Grundprinzip „die Fahrt“: Eine Kamerafahrt von der Straße bis auf den
   Teller, danach die Lasagne in Schichten, die Nudelsorten als Band und die Karte mit drehenden Tellern.
   Farben aus der Nudelschachtel: Nacht (Abend auf der Straße), Pastificio-Blau, Hartweizengelb, Weiß.
   Schrift: Bricolage Grotesque, schmal und kräftig für Anschläge, normal breit für Text. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --nacht: #0F1A3D;
  --blau: #2440B0;
  --semola: #F2CF63;
  --weiss: #FFFFFF;
  --nacht-2: #18275A;
  --rand: clamp(1rem, 4vw, 3.5rem);
  --kopf-h: 4.25rem;
  --schmal: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopf-h); }
body {
  margin: 0; background: var(--nacht); color: var(--weiss);
  font: 400 1.0625rem/1.55 var(--schmal); font-optical-sizing: auto; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: var(--rand); }
.sprung { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--semola); color: var(--nacht); padding: .6rem 1rem; }
.sprung:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--semola); outline-offset: 3px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: 99px; background: var(--semola); color: var(--nacht); font-weight: 650; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf.rand { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.knopf-klein { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .95rem; }

/* ---------- Kopf ---------- */
.kopf { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--weiss); transition: color .3s ease, background-color .3s ease; }
.bewegt .kopf { position: fixed; }
.kopf-in { display: flex; align-items: center; gap: 1.5rem; height: var(--kopf-h); }
.wortmarke { font-weight: 800; font-stretch: 75%; font-size: 1.7rem; letter-spacing: -.01em; text-decoration: none; line-height: 1; padding-block: .4rem; }
.kopf-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.kopf-nav a { text-decoration: none; font-weight: 550; padding-block: .5rem; }
.kopf-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.kopf[data-auf="hell"] { color: var(--nacht); }
.kopf[data-auf="hell"] .knopf { background: var(--nacht); color: var(--semola); }
@media (max-width: 760px) {
  .kopf-nav { gap: 1rem; }
  .kopf-nav a:nth-child(2) { display: none; }
  .kopf .knopf { display: none; }
}

/* ---------- Fahrt ---------- */
.fahrt { position: relative; background: var(--nacht); }
/* ohne Bewegung: Titelbild mit Wortmarke, darunter die Stationen als Abschnitte */
.fahrt-feld { position: relative; display: grid; grid-template-rows: minmax(34rem, 100svh) auto; }
.fahrt-still, .schleier, .auftakt { grid-area: 1 / 1; min-width: 0; }
.fahrt-still img { width: 100%; height: 100%; object-fit: cover; }
.fahrt canvas { display: none; }
.stationen { grid-row: 2; }
/* mit Bewegung: stehendes Bildfeld, alles darin übereinander */
.bewegt .fahrt { height: 760svh; }
.bewegt .fahrt-feld { display: block; position: sticky; top: 0; height: 100svh; min-height: 34rem; overflow: hidden; }
.bewegt .fahrt-still, .bewegt .schleier, .bewegt .fahrt canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bewegt .fahrt canvas { display: block; }
.bewegt .fahrt-still { visibility: hidden; }
/* Fahrt als Video: liegt an der Stelle der Leinwand (Safari braucht translateZ als feste Ebene) */
.fahrt-film { display: none; }
.bewegt .fahrt-film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); }
.bewegt .fahrt.mit-film canvas { display: none; }
.schleier { position: relative; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 26, 61, .82) 0%, rgba(15, 26, 61, .35) 32%, rgba(15, 26, 61, 0) 55%),
              linear-gradient(to bottom, rgba(15, 26, 61, .55) 0%, rgba(15, 26, 61, 0) 18%); }

.auftakt { position: relative; z-index: 2; align-self: end; padding-bottom: clamp(1.25rem, 4vh, 3rem); }
.bewegt .auftakt { position: absolute; inset: auto 0 0; }
.marke { transform-origin: 50% 60%; will-change: transform, opacity; }
.marke h1 { font-size: clamp(5.5rem, 32.5vw, 38rem); line-height: .78; letter-spacing: -.035em; margin-left: -.045em; white-space: nowrap; }
.marke .osteria { display: block; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.2; margin: 0 0 .6rem .2em; }
.auftakt-zeile { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: end; margin-top: clamp(.8rem, 2vh, 1.4rem); }
.auftakt-zeile p { max-width: 30rem; font-size: clamp(1rem, 1.4vw, 1.15rem); }

.stationen { position: relative; background: var(--nacht); }
.station { padding-block: 3.5rem; border-top: 1px solid var(--nacht-2); }
.station h2 { font-size: clamp(2.6rem, 6.5vw, 6.5rem); }
.station p { max-width: 34rem; margin-top: 1rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.station .preis { font-weight: 800; font-stretch: 75%; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; margin-top: .8rem; }
.station .aktion { margin-top: 1.4rem; }
.bewegt .stationen { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: none; }
.bewegt .station { position: absolute; left: 0; right: 0; bottom: 0; border: 0; padding-block: 0 clamp(2rem, 7vh, 4.5rem);
  visibility: hidden; opacity: 0; will-change: transform, opacity; }
.bewegt .station .aktion { pointer-events: auto; }

.fahrt-leiste { position: absolute; right: var(--rand); top: 50%; transform: translateY(-50%); z-index: 3; display: none; }
.bewegt .fahrt-leiste { display: block; }
.fahrt-leiste ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; justify-items: end; }
.fahrt-leiste a { display: flex; align-items: center; gap: .7rem; min-height: 2rem; text-decoration: none; font-size: .95rem; font-weight: 550; opacity: .75; transition: opacity .3s; }
.fahrt-leiste a::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; transition: background-color .3s, transform .3s; }
.fahrt-leiste a.an { opacity: 1; }
.fahrt-leiste a.an::after { background: var(--semola); box-shadow: none; transform: scale(1.35); }
@media (max-width: 760px) {
  .bewegt .fahrt { height: 620svh; }
  .fahrt-leiste { top: auto; bottom: auto; top: calc(var(--kopf-h) + .5rem); transform: none; }
  .fahrt-leiste ol { grid-auto-flow: column; gap: .2rem; }
  .fahrt-leiste a { gap: 0; min-width: 1.6rem; justify-content: center; }
  .fahrt-leiste a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .schleier { background: linear-gradient(to top, rgba(15, 26, 61, .9) 0%, rgba(15, 26, 61, .45) 38%, rgba(15, 26, 61, 0) 62%),
                          linear-gradient(to bottom, rgba(15, 26, 61, .6) 0%, rgba(15, 26, 61, 0) 20%); }
}

/* ---------- Band mit den Nudelsorten ---------- */
.formen { background: var(--semola); color: var(--blau); overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem); }
.band { display: flex; gap: .35em; white-space: nowrap; font-weight: 800; font-stretch: 75%; line-height: .95;
  font-size: clamp(3.5rem, 11vw, 11rem); letter-spacing: -.02em; will-change: transform; }
.band + .band { margin-top: .1em; color: var(--nacht); }
.band span::after { content: ""; display: inline-block; width: .18em; height: .18em; margin-left: .35em; border-radius: 50%; background: currentColor; vertical-align: .3em; }

/* ---------- Schichten (Lasagne) ---------- */
.schichten { position: relative; background: var(--blau); color: var(--weiss); }
.schichten-feld { position: relative; min-height: 100svh; padding-block: calc(var(--kopf-h) + 2rem) 3rem; }
.bewegt .schichten { height: 400svh; }
.bewegt .schichten-feld { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: 0; }
.schichten-kopf { position: relative; z-index: 2; }
.bewegt .schichten-kopf { position: absolute; left: 0; top: 50%; width: calc(34vw + var(--rand)); max-width: none; margin: 0; transform: translateY(-50%); will-change: transform; }
.schichten-kopf h2 { font-size: clamp(3rem, 8.5vw, 8.5rem); max-width: 7em; }
.schichten-kopf h2 span { display: block; }
.schichten-kopf p { max-width: 24rem; margin-top: .9rem; }
.schichten-kopf .preis { font-weight: 800; font-stretch: 75%; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; color: var(--semola); }
.schichten-still { width: min(100%, 44rem); margin: 2rem auto; }
.bewegt .schichten-still { display: none; }
.schichten canvas { display: none; }
.bewegt .schichten canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.linien { display: none; }
.namen { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.namen b { display: block; font-weight: 750; font-stretch: 85%; font-size: 1.25rem; line-height: 1.15; }
.namen span { display: block; font-size: .95rem; line-height: 1.4; margin-top: .15rem; }
@media (min-width: 900px) {
  .bewegt .linien { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .bewegt .linien line { stroke: var(--semola); stroke-width: 1.5; }
  .bewegt .linien circle { fill: var(--semola); }
  .bewegt .namen { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
  .bewegt .namen li { position: absolute; left: 0; top: 0; width: max-content; max-width: 15rem; opacity: 0; }
  .bewegt .namen li[data-seite="l"] { text-align: right; }
}
@media (max-width: 899px) {
  .bewegt .schichten-kopf { top: calc(var(--kopf-h) + .5rem); width: 100%; transform: none; }
  .bewegt .schichten-kopf h2 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .bewegt .schichten-kopf h2 span { display: inline; }
  .bewegt .schichten-kopf p:not(.preis) { display: none; }
  .bewegt .namen { position: absolute; left: var(--rand); right: var(--rand); bottom: 1.25rem; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
  .bewegt .namen li { opacity: 0; }
  .bewegt .namen b { font-size: 1.05rem; }
  .bewegt .namen span { font-size: .85rem; }
}

/* ---------- Karte ---------- */
.karte { background: var(--semola); color: var(--nacht); padding-block: clamp(4rem, 10vw, 9rem); }
.karte-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.karte-buehne { position: sticky; top: calc(var(--kopf-h) + 4vh); overflow: hidden; padding-block: 1rem 3rem; }
.teller-feld { position: relative; aspect-ratio: 1; width: min(100%, 72vh); margin-inline: auto; }
.teller-feld::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -4%; height: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 26, 61, .22), rgba(15, 26, 61, 0)); }
.teller-rad { position: absolute; inset: 0; z-index: 1; will-change: transform; }
.teller-rad + .teller-rad { visibility: hidden; }
.bewegt .teller-rad + .teller-rad { visibility: visible; }
.teller-rad img { width: 100%; height: 100%; }
.karte h2 { font-size: clamp(3.4rem, 9vw, 9rem); }
.gruppe { margin-top: clamp(2.5rem, 5vw, 4rem); }
.gruppe h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--blau); }
.gruppe > p { margin-top: .5rem; }
.gruppe ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.gericht { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.5rem; align-items: baseline; padding-block: 1.3rem; border-top: 2px solid var(--nacht); }
.gericht:last-child { border-bottom: 2px solid var(--nacht); }
.gericht h4 { font-size: clamp(2rem, 3.8vw, 3.6rem); transition: color .3s; }
.gericht p { grid-column: 1; font-size: 1rem; }
.gericht .preis { grid-row: 1; grid-column: 2; font-weight: 750; font-stretch: 85%; font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.gericht.an h4 { color: var(--blau); }
.teller-klein { display: none; }
@media (max-width: 899px) {
  .karte-raster { grid-template-columns: 1fr; }
  .karte-buehne { display: none; }
  .gericht { grid-template-columns: 5.5rem minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
  .teller-klein { display: block; grid-row: 1 / span 2; width: 5.5rem; height: 5.5rem; rotate: calc(var(--dreh, 0) * 1deg); }
  .gericht h4 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .gericht p { grid-column: 2 / span 2; }
  .gericht .preis { grid-column: 3; }
}

/* ---------- Reservieren ---------- */
.reservieren { background: var(--nacht); padding-block: clamp(4rem, 10vw, 9rem); }
.res-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.reservieren h2 { font-size: clamp(3.2rem, 8vw, 8rem); }
.res-text > p { max-width: 30rem; margin-top: 1.2rem; }
.res-tel { display: inline-block; margin-top: 1.6rem; font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1; color: var(--semola); text-decoration: none; padding-block: .3rem; }
.res-tel:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.res-text .aktion { margin-top: 1.2rem; }
.res-daten { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; }
.res-daten dt { font-weight: 700; color: var(--semola); }
.res-daten dd { margin: .3rem 0 0; }
.zeiten { list-style: none; margin: 0; padding: 0; }
.zeiten span { display: block; }
.res-bild { margin: 0; }
.res-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (max-width: 899px) { .res-raster { grid-template-columns: 1fr; } .res-bild img { aspect-ratio: 16 / 10; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--nacht); border-top: 2px solid var(--blau); padding-block: 3rem 2rem; font-size: .95rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.fuss h2 { font-size: 1.05rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; color: var(--semola); margin-bottom: .5rem; }
.fuss .wortmarke { font-size: 2.6rem; }
.fuss-zeile { margin-top: .4rem; }
.fuss-unten { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--nacht-2); }
.fuss-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.fuss-raster a, .recht p a { display: inline-block; padding-block: .2rem; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } }

/* ---------- Rechtliches, 404 ---------- */
.recht { padding-block: calc(var(--kopf-h) + 3rem) 5rem; max-width: 48rem; }
.recht h1 { font-size: clamp(3rem, 8vw, 6rem); }
.recht h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.recht p { margin-top: .8rem; }
.recht .hinweis { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--semola); color: var(--nacht); font-weight: 550; }
.recht .knopf { margin-top: 1.5rem; }

/* ---------- Reel-Modus ---------- */
.reel, .reel * { cursor: none !important; }
html.reel { scrollbar-width: none; }
html.reel::-webkit-scrollbar { display: none; }
