/* Hero-Film v9 (15.11.) im Stil eines Apple-Feature-Films. Alle Maße in cqw (Breite des Films).
   Zustände als Klassen an .film: treffer, hover, web, sheet, bereit, fertig, inhaber, push, zeiger, ende. */
.film { margin: 52px auto 0; max-width: 1120px; }
.film__fenster { position: relative; border-radius: 24px; overflow: hidden; background: #fbfaf7; box-shadow: 0 50px 120px -50px rgba(0,0,0,.85); transform: translateZ(0); }
.film__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }

/* Pause / nochmal */
.fe-pause { position: absolute; right: 14px; bottom: 14px; z-index: 20; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(20,20,19,.55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s; }
.fe-pause:hover { background: rgba(20,20,19,.8); }
.fe-pause { opacity: 0; transition: opacity .3s ease, background-color .2s; }
.film:hover .fe-pause, .fe-pause:focus-visible, .film.pausiert .fe-pause, .film.ende .fe-pause { opacity: 1; }
@media (hover: none) { .fe-pause { opacity: .85; } }
.fe-pause svg { width: 11px; height: 11px; }
.fe-pause .play, .fe-pause .nochmal { display: none; }
.film.pausiert .fe-pause .play { display: block; }
.film.pausiert .fe-pause .halt { display: none; }
.fe-pause .nochmal { width: 14px; height: 14px; }
.film.ende .fe-pause .halt, .film.ende .fe-pause .play { display: none; }
.film.ende .fe-pause .nochmal { display: block; }
.film.pausiert *, .film.pausiert *::before, .film.pausiert *::after { animation-play-state: paused !important; }

/* Bühne */
.a9 { --ink: #1e211d; --grau: #6b6f68; --linie: #e6e3dc; --akz: #b4542f; --ok: #3f8f55; --weich: cubic-bezier(.2,.8,.2,1);
  position: absolute; inset: 0; background: #fbfaf7; font-family: "Hanken", system-ui, sans-serif; color: var(--ink); overflow: hidden; }
.a9 p { margin: 0; }

/* 1 Suchleiste: erst groß in der Mitte, dann oben */
.a9-suche { position: absolute; left: 50%; top: 24.6cqw; width: 60cqw; height: 7cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 1.6cqw; padding: 0 2.6cqw; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 .6cqw 2.4cqw -.6cqw rgba(30,33,29,.16); font-size: 2.5cqw; letter-spacing: -.01em; z-index: 2;
  transition: top .9s var(--weich), width .9s var(--weich), height .9s var(--weich), font-size .9s var(--weich), padding .9s var(--weich), opacity .6s ease; }
.a9-lupe { flex: none; width: 1.1em; height: 1em; position: relative; }
.a9-lupe::before { content: ""; position: absolute; left: 0; top: 0; width: .72em; height: .72em; border: .12em solid #8a8d86; border-radius: 50%; box-sizing: border-box; }
.a9-lupe::after { content: ""; position: absolute; left: .6em; top: .72em; width: .36em; height: .12em; background: #8a8d86; transform: rotate(45deg); border-radius: 1px; }
.a9-caret { width: .07em; height: 1.15em; background: var(--ink); margin-left: -.5em; animation: a9blink 1s steps(1) infinite; }
@keyframes a9blink { 50% { opacity: 0; } }
.film.treffer .a9-suche { top: 3.2cqw; width: 52cqw; height: 4.6cqw; font-size: 1.6cqw; padding: 0 1.8cqw; }
.film.treffer .a9-caret { display: none; }

/* 2 Treffer */
.a9-treffer { position: absolute; left: 50%; top: 11cqw; width: 52cqw; transform: translate(-50%, 2cqw); opacity: 0; transition: opacity .6s ease .55s, transform .9s var(--weich) .5s; z-index: 1; }
.film.treffer .a9-treffer { opacity: 1; transform: translate(-50%, 0); }
.a9-top { padding: 1.8cqw 2cqw; border-radius: 1.4cqw; background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 1cqw 3cqw -1.4cqw rgba(30,33,29,.18); transition: box-shadow .3s ease, transform .3s var(--weich); }
.film.hover .a9-top { box-shadow: 0 0 0 .14cqw var(--akz), 0 1.4cqw 3.4cqw -1.4cqw rgba(30,33,29,.25); transform: translateY(-.2cqw); }
.a9-quelle { display: flex; align-items: center; gap: .9cqw; font-size: 1.05cqw; color: var(--grau); }
.a9-quelle b { display: block; color: var(--ink); font-weight: 600; }
.a9-fav, .a9-app { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--akz); color: #fff; font-style: normal; font-weight: 700; font-size: 1.1cqw; display: grid; place-items: center; }
.a9-titel { margin-top: .9cqw !important; font-size: 1.9cqw; color: #1a0dab; letter-spacing: -.015em; }
.a9-meta { margin-top: .5cqw !important; font-size: 1.1cqw; color: var(--grau); }
.a9-meta em { font-style: normal; color: #e7a21b; letter-spacing: .05em; }
.a9-note { color: var(--ink); }
.a9-offen { color: var(--ok); font-weight: 600; }
.a9-snip { margin-top: .5cqw !important; font-size: 1.15cqw; color: #4a4e47; }
.a9-grau { margin-top: 1.6cqw; padding: 0 2cqw; display: grid; gap: .7cqw; }
.a9-grau i { display: block; height: .9cqw; border-radius: 99px; background: #eceae4; }
.a9-grau i:nth-child(1) { width: 34%; } .a9-grau i:nth-child(2) { width: 72%; } .a9-grau i:nth-child(3) { width: 58%; }

/* 3 + 4 die Website: wächst aus dem Treffer (Transform per JS), dann Kamerafahrt (--y) */
.a9-web { position: absolute; left: 5cqw; right: 5cqw; top: 2.6cqw; bottom: -2cqw; border-radius: 1.4cqw; overflow: hidden; background: #fff; z-index: 3; opacity: 0; transform-origin: 0 0; box-shadow: 0 0 0 1px var(--linie), 0 2cqw 5cqw -2cqw rgba(30,33,29,.3); display: flex; flex-direction: column; will-change: transform; }
.film.web .a9-web { opacity: 1; }
.a9-leiste { flex: none; height: 2.6cqw; display: flex; align-items: center; gap: .5cqw; padding: 0 1.2cqw; background: #f3f2ee; border-bottom: 1px solid var(--linie); }
.a9-leiste i { width: .75cqw; height: .75cqw; border-radius: 50%; background: #d9d6cf; }
.a9-leiste span { margin: 0 auto; font: 500 .95cqw "Plex Mono", monospace; color: #7a7d76; background: #fff; padding: .2cqw 2cqw; border-radius: .5cqw; }
.a9-seite { flex: 1; position: relative; overflow: hidden; }
.a9-shot { display: block; width: 100%; height: auto; transform: translateY(var(--y, 0px)); will-change: transform; }
.a9-shot--handy { display: none; }

/* 5 Reservierung */
.a9-schleier { position: absolute; inset: 0; z-index: 4; background: rgba(251,250,247,.28); backdrop-filter: blur(.5cqw); -webkit-backdrop-filter: blur(.5cqw); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.film.sheet .a9-schleier { opacity: 1; }
.a9-sheet { position: absolute; left: 50%; top: 50%; width: 34cqw; z-index: 5; padding: 2.4cqw 2.6cqw 2.6cqw; border-radius: 1.8cqw; background: #fff; box-shadow: 0 0 0 1px rgba(30,33,29,.05), 0 3cqw 7cqw -2cqw rgba(30,33,29,.35); transform: translate(-50%, -42%) scale(.97); opacity: 0; transition: opacity .5s ease, transform .8s var(--weich); }
.film.sheet .a9-sheet { opacity: 1; transform: translate(-50%, -50%); }
.a9-klein { font-size: 1.05cqw; color: var(--grau); }
.a9-gross { font-size: 2.3cqw; font-weight: 600; letter-spacing: -.03em; margin-top: .2cqw !important; }
.a9-label { margin: 1.5cqw 0 .6cqw !important; font-size: .95cqw; color: var(--grau); }
.a9-chips { display: flex; gap: .6cqw; }
.a9-chips span { flex: 1; text-align: center; padding: .7cqw 0; border-radius: .8cqw; box-shadow: inset 0 0 0 1px var(--linie); font-size: 1.15cqw; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease; }
.a9-chips span.voll { color: #b9bab4; text-decoration: line-through; }
.a9-chips span.an { background: var(--ink); color: #fff; box-shadow: none; }
.a9-chips span.druck, .a9-btn.druck { transform: scale(.95); }
.a9-btn { display: block; margin-top: 2cqw; padding: 1.1cqw 0; border-radius: .9cqw; background: var(--akz); color: #fff; font-size: 1.25cqw; font-weight: 600; text-align: center; opacity: .45; transition: opacity .3s ease, transform .15s ease; }
.film.bereit .a9-btn { opacity: 1; }
.a9-form { transition: opacity .35s ease; }
.a9-fertig { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4cqw; opacity: 0; transition: opacity .4s ease .15s; }
.film.fertig .a9-form { opacity: 0; }
.film.fertig .a9-fertig { opacity: 1; }
.a9-fertig svg { width: 5.2cqw; height: 5.2cqw; margin-bottom: 1cqw; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a9-fertig circle { stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset .7s var(--weich) .2s; }
.a9-fertig path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .45s var(--weich) .75s; }
.film.fertig .a9-fertig circle, .film.fertig .a9-fertig path { stroke-dashoffset: 0; }

/* 6 beim Inhaber */
.a9-inhaber { position: absolute; inset: 0; z-index: 8; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6cqw; padding: 0 12cqw 0 10cqw; background: radial-gradient(90% 120% at 80% 30%, #eef0e8 0%, #f6f3ec 55%, #fbfaf7 100%); opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.film.inhaber .a9-inhaber { opacity: 1; }
.a9-satz { font-size: 4.2cqw; line-height: 1.12; font-weight: 500; letter-spacing: -.035em; color: var(--ink); opacity: 0; transform: translateY(1.4cqw); transition: opacity .7s ease .5s, transform 1s var(--weich) .5s; }
.film.inhaber .a9-satz { opacity: 1; transform: none; }
.a9-phone { width: 27cqw; height: 56cqw; border-radius: 4.2cqw; padding: .8cqw; background: #141413; box-shadow: 0 3cqw 6cqw -2.4cqw rgba(30,33,29,.45); transform: translateY(12cqw); transition: transform 1.1s var(--weich) .1s; }
.film.inhaber .a9-phone { transform: translateY(9cqw); }
.a9-lock { height: 100%; border-radius: 3.5cqw; overflow: hidden; padding: 3.6cqw 1.4cqw 0; text-align: center; color: #fff; background: radial-gradient(120% 70% at 30% 0%, #c97a55 0%, #8e5a43 40%, #3d4a3f 100%); }
.a9-datum { font-size: 1.3cqw; font-weight: 500; opacity: .9; }
.a9-uhr { font-size: 7.4cqw; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.a9-push { margin-top: 3cqw; display: flex; gap: 1cqw; align-items: flex-start; text-align: left; padding: 1.2cqw 1.3cqw; border-radius: 1.9cqw; background: rgba(250,248,244,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1cqw 2.4cqw -1cqw rgba(0,0,0,.35); opacity: 0; transform: translateY(-2cqw) scale(.96); transition: opacity .45s ease, transform .7s cubic-bezier(.2,1.2,.3,1); }
.film.push .a9-push { opacity: 1; transform: none; }
.a9-app { border-radius: .8cqw; width: 3cqw; height: 3cqw; }
.a9-push > div { flex: 1; min-width: 0; }
.a9-push b { display: flex; justify-content: space-between; gap: .6cqw; font-size: 1.25cqw; font-weight: 600; }
.a9-push b em { font-style: normal; font-weight: 400; color: #8a8d86; font-size: 1.05cqw; }
.a9-push span { display: block; margin-top: .25cqw; font-size: 1.18cqw; line-height: 1.35; color: #3e423c; }

/* Wenn der Inhaber dran ist, tritt alles andere zurück */
.film.inhaber :is(.a9-suche, .a9-treffer, .a9-web, .a9-sheet, .a9-schleier) { opacity: 0; transition: opacity .6s ease; }

/* Mauszeiger (der Gast) */
.a9-zeiger { position: absolute; left: 0; top: 0; z-index: 9; width: 1.9cqw; height: 1.9cqw; opacity: 0; pointer-events: none; transform: translate(60cqw, 40cqw); transition: transform var(--d, .7s) cubic-bezier(.45,0,.2,1), opacity .3s; }
.a9-zeiger svg { width: 100%; height: 100%; filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.25)); transition: transform .12s; }
.a9-zeiger.klick svg { transform: scale(.82); }
.film.zeiger .a9-zeiger { opacity: 1; }
.film.inhaber .a9-zeiger { opacity: 0; }

/* Fortschritt unter dem Film: 5 dünne Linien wie bei Apple/Storys, Text nur für Screenreader */
.film__schritte { display: flex; gap: 6px; margin: 18px auto 0; padding: 0; list-style: none; border: 0; max-width: 360px; }
.film__schritte li { flex: 1; height: 3px; border-radius: 99px; background: #34332f; overflow: hidden; padding: 0; border: 0; display: block; }
.film__schritte li::before { content: none; }
.film__schritte li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.film__schritte li i { display: block; height: 100%; width: 0; background: var(--tinte); border-radius: inherit; }
.film__schritte li.an i { width: 100%; }
.film__schritte li.jetzt i { width: 0; animation: a9fuell var(--ms, 3000ms) linear forwards; }
@keyframes a9fuell { to { width: 100%; } }
.film.ende .film__schritte li i { width: 100%; animation: none; }

/* Handy: hochkant 3:4, alles größer, Reservierung als Blatt von unten */
@media (max-width: 640px) {
  .film { margin-top: 36px; }
  .film__fenster { border-radius: 16px; }
  .film__screen { aspect-ratio: 3 / 4; }
  .fe-pause { right: 10px; bottom: 10px; width: 30px; height: 30px; }
  .a9-suche { top: 58cqw; width: 88cqw; height: 13cqw; font-size: 4.4cqw; padding: 0 4.4cqw; gap: 2.6cqw; }
  .film.treffer .a9-suche { top: 5cqw; width: 90cqw; height: 10cqw; font-size: 3.6cqw; padding: 0 3.6cqw; }
  .a9-treffer { top: 20cqw; width: 90cqw; }
  .a9-top { padding: 4cqw; border-radius: 3cqw; }
  .a9-quelle { font-size: 2.8cqw; gap: 2cqw; }
  .a9-fav, .a9-app { width: 6cqw; height: 6cqw; font-size: 2.8cqw; }
  .a9-titel { font-size: 4.4cqw; margin-top: 2cqw !important; }
  .a9-meta, .a9-snip { font-size: 2.9cqw; margin-top: 1.2cqw !important; }
  .a9-grau { margin-top: 4cqw; padding: 0 4cqw; gap: 1.8cqw; }
  .a9-grau i { height: 2.2cqw; }
  .a9-web { left: 4cqw; right: 4cqw; top: 4cqw; bottom: -3cqw; border-radius: 3cqw; }
  .a9-leiste { height: 6.4cqw; gap: 1.2cqw; padding: 0 2.6cqw; }
  .a9-leiste i { width: 1.8cqw; height: 1.8cqw; }
  .a9-leiste span { font-size: 2.4cqw; padding: .4cqw 4cqw; border-radius: 1.2cqw; }
  .a9-shot--desk { display: none; }
  .a9-shot--handy { display: block; }
  .a9-sheet { top: auto; bottom: 14cqw; left: 4cqw; width: auto; right: 4cqw; padding: 5cqw 5cqw 5.4cqw; border-radius: 4.4cqw; transform: translateY(110%); }
  .film.sheet .a9-sheet { transform: none; }
  .a9-klein { font-size: 2.8cqw; }
  .a9-gross { font-size: 5.6cqw; }
  .a9-label { margin: 3.2cqw 0 1.4cqw !important; font-size: 2.6cqw; }
  .a9-chips { gap: 1.6cqw; }
  .a9-chips span { padding: 2cqw 0; border-radius: 2cqw; font-size: 3cqw; }
  .a9-btn { margin-top: 4.4cqw; padding: 3cqw 0; border-radius: 2.4cqw; font-size: 3.4cqw; }
  .a9-fertig svg { width: 13cqw; height: 13cqw; margin-bottom: 2cqw; }
  .a9-inhaber { grid-template-columns: 1fr; justify-items: center; align-content: start; gap: 6cqw; padding: 12cqw 6cqw 0; text-align: center; }
  .a9-satz { font-size: 6.6cqw; }
  .a9-phone { width: 52cqw; height: 104cqw; border-radius: 8cqw; padding: 1.6cqw; transform: translateY(30cqw); }
  .film.inhaber .a9-phone { transform: translateY(0); }
  .a9-lock { border-radius: 6.6cqw; padding: 8cqw 2.8cqw 0; }
  .a9-datum { font-size: 2.6cqw; }
  .a9-uhr { font-size: 14cqw; }
  .a9-push { margin-top: 6cqw; gap: 2cqw; padding: 2.4cqw; border-radius: 3.6cqw; }
  .a9-push b { font-size: 2.6cqw; }
  .a9-push b em { font-size: 2.2cqw; }
  .a9-push span { font-size: 2.4cqw; }
  .a9-zeiger { width: 4.4cqw; height: 4.4cqw; }
  .film__schritte { max-width: 240px; margin-top: 14px; }
}
.film.ruhig .a9-zeiger { display: none; }
.a9-app--mail { background: linear-gradient(180deg, #3f9bf7, #1a6fe0); } .a9-app--mail svg { width: 70%; height: 70%; }

/* 16.11. nachts: Startbild ohne Übergänge setzen (js/film.js) */
.film.sofort *, .film.sofort *::before, .film.sofort *::after { transition: none !important; }
