@font-face { font-family: 'Lobster'; font-weight: 400; font-display: swap; src: url(fonts/lobster-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 900; font-display: swap; src: url(fonts/lato-latin-900-normal.woff2) format('woff2'); }

:root {
  --pink: #F2329C;
  --gold: #AD722B;
  --ink: #1D1E20;
  --cream: #fffaf4;
  --muted: #4a4a4e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #0d0d0f; color: var(--ink); font-family: Lato, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; }
#css, #gl { position: absolute; inset: 0; }
#css { z-index: 1; pointer-events: none; }
#css * { pointer-events: none; }
#gl { z-index: 2; pointer-events: none; }
#fx { position: fixed; inset: 0; z-index: 3; background: #fdf8f0; opacity: 0; pointer-events: none; }
#scroller { width: 1px; }

.dom-src { position: absolute; left: -99999px; top: 0; }

/* ---------- Webseite im Monitor (Nachbau beiltro.com, 1440 × 900) ---------- */
#site { width: 1440px; height: 900px; overflow: hidden; background: #fff; color: #1D1E20; font-family: Lato, sans-serif; }
#site .site-inner { position: relative; will-change: transform; }
.s-head { height: 140px; display: flex; align-items: center; justify-content: space-between; padding: 0 150px 0 112px; background: #fff; }
.s-logo { width: 350px; display: block; }
.s-head nav { display: flex; gap: 31px; font-family: Lobster, cursive; font-size: 17px; color: #1a1a1a; }
.s-head nav .on { border-bottom: 1.5px solid #1a1a1a; padding-bottom: 3px; }
.s-hero { height: 286px; background: #fbf7ee url(img/beiltro-hero.jpg) center / cover no-repeat; text-align: center; padding-top: 70px; padding-right: 120px; }
.s-hero h2 { margin: 0; font-family: Lobster, cursive; font-weight: 400; font-size: 25px; color: #1a1a1a; }
.s-hero p { margin: 12px 0 0; font-size: 20px; line-height: 1.45; color: #1D1E20; }
.s-btns { display: flex; justify-content: center; gap: 18px; margin-top: 34px; }
.s-btns span { display: inline-block; background: var(--pink); color: #fff; font-family: Lobster, cursive; font-size: 15px; padding: 11px 26px; border-radius: 40px; min-width: 150px; box-shadow: 0 6px 14px rgba(242,50,156,.25); }
.s-intro { width: 1000px; margin: 0 auto; padding: 14px 0 34px; font-size: 15px; line-height: 1.5; }
.s-intro h3 { font-family: Lobster, cursive; font-weight: 400; font-size: 24px; text-align: center; margin: 0 0 4px; }
.s-intro p { margin: 0 0 12px; }
.s-lh { margin-top: 18px !important; }
#site ul { margin: 0; padding-left: 38px; }
#site li { margin: 0 0 6px; text-decoration: underline; text-underline-offset: 2px; }
#site li.pk { color: var(--pink); }
#site li.gd { color: var(--gold); }
.s-team { height: 640px; background: var(--pink); display: flex; align-items: center; justify-content: center; gap: 96px; color: #fff; }
.s-team-text { width: 520px; }
.s-kick { font-weight: 900; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.s-team h3 { font-family: Lobster, cursive; font-weight: 400; font-size: 54px; line-height: 1.12; margin: 12px 0 18px; }
.s-team p { font-size: 22px; line-height: 1.5; margin: 0 0 30px; }
.s-btn { display: inline-block; background: #fff; color: var(--pink); font-family: Lobster, cursive; font-size: 19px; padding: 12px 30px; border-radius: 40px; }
.s-team-video { width: 316px; height: 562px; border-radius: 30px; overflow: hidden; border: 6px solid #fff; background: #000; box-shadow: 0 30px 60px rgba(80,0,40,.35); transform: rotate(2deg); }
.s-team-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-why { width: 1000px; margin: 0 auto; padding: 30px 0 60px; font-size: 15px; line-height: 1.5; }
.s-why li { text-decoration: none !important; }

/* Handy-Layout der Website im hochkant gestellten Monitor (560 × 896) */
.s-burger { display: none; }
#site.m { width: 560px; height: 896px; }
#site.m .s-head { height: 100px; padding: 0 28px; }
#site.m .s-logo { width: 260px; }
#site.m .s-head nav { display: none; }
#site.m .s-burger { display: flex; flex-direction: column; gap: 6px; }
#site.m .s-burger i { display: block; width: 30px; height: 3px; border-radius: 2px; background: #1a1a1a; }
#site.m .s-hero { height: 460px; padding: 58px 32px 0; background-position: 82% center; }
#site.m .s-hero h2 { font-size: 31px; line-height: 1.2; }
#site.m .s-hero p { font-size: 20px; margin-top: 14px; }
#site.m .s-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
#site.m .s-btns span { min-width: 0; font-size: 17px; padding: 13px 8px; }
#site.m .s-intro { width: auto; padding: 24px 32px 30px; font-size: 17px; }
#site.m .s-intro h3 { font-size: 25px; line-height: 1.25; margin-bottom: 10px; }
#site.m .s-intro br, #site.m .s-team p br { display: none; }
#site.m ul { padding-left: 22px; }
#site.m .s-team { height: auto; flex-direction: column; gap: 26px; padding: 40px 30px 46px; text-align: center; }
#site.m .s-team-text { width: auto; }
#site.m .s-team h3 { font-size: 38px; margin: 8px 0 12px; }
#site.m .s-team p { font-size: 18px; margin: 0 0 18px; }
#site.m .s-btn { font-size: 18px; padding: 10px 26px; }
#site.m .s-team-video { width: 250px; height: 444px; }
#site.m .s-why { width: auto; padding: 26px 32px 50px; font-size: 17px; }

#sst-panel { width: 360px; height: 640px; border-radius: 30.6px; overflow: hidden; background: #000; }
#sst-panel video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Oberfläche ---------- */
.brand { position: fixed; top: 16px; left: 16px; z-index: 12; display: block; background: rgba(255,255,255,.9); border-radius: 14px; padding: 8px 14px; box-shadow: 0 6px 22px rgba(30,20,10,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.brand img { height: 34px; display: block; }
#barwrap { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 13; background: rgba(255,255,255,.35); }
#bar { height: 100%; background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); }
.steps { position: fixed; top: 18px; right: 16px; z-index: 12; display: flex; gap: 6px; }
.steps button { font: 700 13px Lato, sans-serif; color: var(--ink); border: 0; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 7px 13px 7px 7px; border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: 0 4px 16px rgba(30,20,10,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.steps button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f1e9e1; font-size: 12px; }
.steps button.on { background: var(--pink); color: #fff; }
.steps button.on b { background: rgba(255,255,255,.25); }
.steps button:focus-visible, #sound:focus-visible, .btn:focus-visible { outline: 3px solid #1D1E20; outline-offset: 2px; }

#cap { position: fixed; left: 24px; bottom: 28px; z-index: 12; max-width: 430px; padding: 18px 22px 20px; border-radius: 18px; background: rgba(255,251,246,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 44px rgba(40,20,10,.2); opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
#cap.show { opacity: 1; transform: none; }
#cap .k { font-weight: 900; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
#cap .t { display: block; font-family: Lobster, cursive; font-weight: 400; font-size: 31px; line-height: 1.15; margin: 6px 0 8px; }
#cap .p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

#hint { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 900 12px Lato, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); pointer-events: none; }
#hint i { width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; position: relative; box-shadow: 0 1px 8px rgba(0,0,0,.3); }
#hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

#sound { position: fixed; right: 24px; bottom: 28px; z-index: 12; display: flex; align-items: center; gap: 8px; font: 700 14px Lato, sans-serif; color: #fff; background: var(--pink); border: 0; border-radius: 30px; padding: 11px 18px 11px 14px; cursor: pointer; box-shadow: 0 8px 24px rgba(242,50,156,.35); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .35s; }
#sound.show { opacity: 1; transform: none; pointer-events: auto; }
#sound svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; stroke-width: 0; }
#sound .w { fill: none; stroke-width: 2; stroke-linecap: round; display: none; }
#sound.on .w { display: inline; }
#sound:not(.on) svg { opacity: .9; }

#final { position: fixed; inset: 0; z-index: 14; display: flex; align-items: center; padding: 0 6vw; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
#final.show { opacity: 1; }
#final.show .card { pointer-events: auto; transform: none; }
#final .card { max-width: 470px; padding: 30px 32px 24px; border-radius: 22px; background: rgba(255,251,246,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(40,20,10,.18); transform: translateY(16px); transition: transform .6s ease; }
#final img { height: 52px; display: block; margin-bottom: 14px; }
#final h2 { font-family: Lobster, cursive; font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 10px; }
#final p { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; text-decoration: none; background: var(--pink); color: #fff; font-family: Lobster, cursive; font-size: 19px; padding: 12px 24px; border-radius: 40px; border: 2px solid var(--pink); box-shadow: 0 8px 22px rgba(242,50,156,.25); transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: #fff; color: var(--pink); box-shadow: none; }
#again { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--ink); }
#final footer { margin-top: 18px; font-size: 13px; color: var(--muted); }
#final footer a { color: var(--muted); }

#loader { position: fixed; inset: 0; z-index: 50; background: #fbf6ef; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .7s ease; }
#loader img { width: min(320px, 70vw); }
#loader i { width: 140px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--pink), transparent) 0 0 / 200% 100%; animation: load 1.2s linear infinite; }
@keyframes load { to { background-position: -200% 0; } }
#loader.done { opacity: 0; pointer-events: none; }

.nowebgl { display: none; position: fixed; inset: 0; z-index: 60; background: #fbf6ef; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; font-size: 18px; }
.nowebgl img { width: min(300px, 70vw); }
body.no-webgl .nowebgl { display: flex; }

@media (max-width: 760px) {
  .brand { top: calc(10px + env(safe-area-inset-top)); left: 10px; padding: 5px 9px; border-radius: 12px; }
  .brand img { height: 24px; }
  .steps { top: calc(12px + env(safe-area-inset-top)); right: 8px; gap: 4px; }
  .steps button { padding: 4px; }
  .steps button b { width: 24px; height: 24px; }
  .steps button span { display: none; }
  #cap { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; padding: 11px 14px 13px; border-radius: 15px; }
  #cap .k { font-size: 10.5px; }
  #cap .t { font-size: 22px; margin: 3px 0 4px; }
  #cap .p { font-size: 14px; line-height: 1.4; }
  #hint { display: none; }
  #sound { bottom: auto; top: calc(56px + env(safe-area-inset-top)); right: 10px; padding: 8px 14px 8px 11px; font-size: 13px; }
  #sound svg { width: 17px; height: 17px; }
  #final { align-items: flex-end; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  #final .card { width: 100%; max-width: none; padding: 18px 18px 14px; border-radius: 18px; }
  #final img { height: 36px; margin-bottom: 8px; }
  #final h2 { font-size: 27px; margin-bottom: 6px; }
  #final p { font-size: 15px; margin-bottom: 14px; }
  .cta { gap: 8px; }
  .btn { font-size: 16px; padding: 9px 16px; }
  #again { margin-top: 12px; font-size: 13px; }
  #final footer { margin-top: 10px; font-size: 12px; }
}
/* Handy quer: wenig Höhe */
@media (max-height: 500px) and (orientation: landscape) {
  .steps button span { display: none; }
  #cap { max-width: 330px; padding: 10px 14px 12px; bottom: 10px; left: 10px; }
  #cap .t { font-size: 20px; margin: 2px 0 3px; }
  #cap .p { font-size: 13px; }
  #hint { display: none; }
  #final { padding: 0 3vw; }
  #final .card { max-width: 360px; padding: 14px 18px 12px; }
  #final img { height: 30px; margin-bottom: 6px; }
  #final h2 { font-size: 24px; }
  #final p { font-size: 14px; margin-bottom: 10px; }
  .btn { font-size: 15px; padding: 8px 14px; }
  #again, #final footer { margin-top: 8px; font-size: 12px; }
}
