/* Mr Sauber, the door ("Angebot"): the owner's clip held in a body of water (js/bubble.js) beside the words - the kicker
   with its gold line, the headline with its navy bars, one sentence, the soap button, the links, the hours. Narrow: the
   bubble full width above the words. The bubble is a WebGL canvas laid over its frame, larger than it (its edge
   wobbles out, its shadow falls to the lower right); without WebGL2, or with reduced motion, the frame itself is shown:
   a still rounded frame with the poster and the clip. Linked after landing.css (whose shared pieces - .lp-lede,
   .lp-act, .kicker's sizes - it uses) and before wet.css (the wet page's copy, which has nothing of the bubble). */
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- the section: two columns, the bubble and the words, both in the middle of the screen's height. --door-tw:
   the words' column, as wide as the headline's longer line needs (its bars included) and no wider than 42 %;
   --door-avail: the height there is for the bubble. ---------- */
.lp-door { --lp-h2: clamp(42px, min(5vw, 9.4svh), calc(96px + 96 * var(--lp-k))); --lp-pitch2: calc(var(--lp-h2) * 1.04);
  --door-top: calc(var(--lp-head) + 16px); --door-bot: var(--pad);
  --door-tw: min(42%, max(480px, calc(var(--lp-h2) * 6.9))); --door-gap: clamp(36px, 5vw, 100px);
  --door-avail: calc(100svh - var(--door-top) - var(--door-bot));
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--door-tw); column-gap: var(--door-gap); align-items: center;
  min-height: 100vh; min-height: 100svh; padding: var(--door-top) var(--pad) var(--door-bot); background: var(--bg); }
.lp-door__kick { display: none; }   /* the kicker above the bubble, narrow only (the wide one is in the words' column) */
.lp-door__text { position: relative; z-index: 1; min-width: 0; }
.lp-door__text > :not(.lp-h2) { zoom: var(--lp-z, 1); }
.lp-door .kicker { margin: 0 0 clamp(18px, 3.4svh, 32px); }
.lp-h2 { position: relative; z-index: 2; margin: 0; max-width: 100%; font: 400 var(--lp-h2)/1.04 var(--display); letter-spacing: -.03em; white-space: nowrap; }   /* its lines are the <br>'s */
.lp-door .tfx--live { z-index: 3; }
.lp-door .lp-lede { margin-top: clamp(20px, 3.4svh, 34px); max-width: 26em; }
.lp-door .lp-lede + .lp-act { margin-top: clamp(18px, 3svh, 32px); }
.lp-hours { margin: clamp(20px, 3svh, 30px) 0 0; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(13, 59, 102, .78); }

/* ---------- the bubble. Its frame: about the size of a photo card like the hero's, 5 : 4 - wide enough that the clip's
   mop stays mostly in it as it sweeps -, as large as the column and the screen's height allow. --bb-r: the resting
   outline's corners (bubble.js sets it from the frame's size: a drop's round corners, larger than a card's);
   --bb-reach: how far its edge can wobble or be drawn out beyond the frame (the seal covers that far) ---------- */
.bb { position: relative; min-width: 0; --bb-r: calc(var(--lp-r) * 1.6); --bb-reach: 0px; }
.bb-frame { position: relative; width: min(100%, calc(var(--door-avail) * 1.25)); aspect-ratio: 5 / 4; margin: 0; overflow: hidden; border-radius: var(--bb-r);
  background: #E4E7EA; box-shadow: var(--lp-shade); isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.bb-poster { position: absolute; inset: 0; display: block; }
.bb-poster img, .bb-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; -webkit-user-drag: none; }
.bb-video { background: transparent; }
.bb-video::-webkit-media-controls { display: none !important; }
/* the water drawn (bubble.js: .is-gl): the canvas is the bubble - the frame only holds its place, the poster and the
   clip are its pictures (the clip plays on under the canvas, unseen: its frames go to the canvas) */
.bb.is-gl .bb-frame { overflow: visible; background: none; box-shadow: none; isolation: auto; }
/* its soft shadow on the page (bubble.js sets it from the frame's size): cast by a box inside all the edge can draw in,
   grown back by as much - where the edge is drawn in, the shadow lies under it too (the canvas draws only the contact
   shade along the edge: it follows the edge exactly) */
.bb.is-gl .bb-frame::before { content: ""; position: absolute; inset: var(--bb-reach); border-radius: max(0px, calc(var(--bb-r) - var(--bb-reach))); box-shadow: var(--bb-shadow, none); pointer-events: none; }
.bb.is-gl :is(.bb-poster, .bb-video) { opacity: 0; }
.bb-gl { position: absolute; display: block; pointer-events: none; }
.bb:not(.is-gl) .bb-gl { display: none; }
/* (all its edge can reach: water runs off it - wetpage.js's map of surfaces reads its box and corners) */
.bb-seal { position: absolute; inset: calc(-1 * var(--bb-reach)); border-radius: calc(var(--bb-r) + var(--bb-reach)); pointer-events: none; }
/* until the pour has formed it (bubble.show(false)): nothing of it */
.bb.is-held .bb-frame { visibility: hidden; }

/* ---------- its one control: stop and go on - a small light pebble inside the bubble's lower right (sealed) ---------- */
.bb-btn { position: absolute; z-index: 3; right: calc(var(--bb-r) * .42 + 6px); bottom: calc(var(--bb-r) * .42 + 6px); display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(247, 249, 251, .9); color: var(--navy); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(1, 11, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(13, 59, 102, .08); transition: background-color .3s var(--out), opacity .4s var(--out), transform .3s var(--out); }
.bb-btn:hover { background: #fff; }
.bb-btn:active { transform: scale(.94); }
.bb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bb-btn .bb-i-play { fill: currentColor; stroke: none; }
.bb-btn .bb-i-play, .bb-btn[data-state="stopped"] .bb-i-pause { display: none; }
.bb-btn[data-state="stopped"] .bb-i-play { display: block; }
.bb-btn:focus-visible { outline-offset: 3px; }
.bb.is-painted .bb-btn { opacity: 0; visibility: hidden; }   /* (paint, not yet water: bubble.reveal below 1) */

/* ---------- narrow: a phone held upright, a tablet, a small window (landing.css's question): the kicker, the bubble full
   width, the headline's first bar over its foot, the sentence, the call ---------- */
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  .lp-door { --lp-h2: clamp(40px, 11.6vw, 80px); display: block; min-height: 0; padding: clamp(56px, 10svh, 110px) var(--pad) clamp(52px, 9svh, 96px); }
  .lp-door__kick { display: flex; }
  .lp-door__text > .kicker { display: none; }
  .bb-frame { width: 100%; aspect-ratio: 6 / 5; max-height: 62svh; }
  .lp-door .lp-h2 { margin-top: calc(var(--lp-pitch2) * -.5); }
  .bb-btn { top: calc(var(--bb-r) * .36); right: calc(var(--bb-r) * .36); bottom: auto; width: 40px; height: 40px; }
  .bb-btn svg { width: 16px; height: 16px; }
  .lp-door .lp-lede { margin-top: clamp(18px, 3svh, 28px); }
}
/* ---------- low: a phone held sideways, any low wide window - the two columns again, everything smaller ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  .lp-door { --lp-h2: clamp(28px, min(4.6vw, 10.4svh), 54px); --door-top: calc(var(--lp-head) + 4px); --door-bot: 16px; --door-tw: min(47%, 520px); --door-gap: clamp(20px, 3.4vw, 44px); }
  .lp-door .kicker { margin-bottom: 10px; }
  .bb-btn { width: 36px; height: 36px; }
  .bb-btn svg { width: 15px; height: 15px; }
  .lp-door .lp-lede { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-btn { transition: none; }
}
