/* ============================================================
   Boligvideo → "Portalen som app" (#app)
   Venstre: kort budskab, tre fordele, trin som faner (iPhone/Android), knapper.
   Højre: en telefon, der viser det, man får — beskeden på låseskærmen og tallet på app-ikonet.
   Bruger sidens egne farver (style.css / theme-bv.css). Skal kunne ses samlet på en bærbar (1280×620).
   ============================================================ */
.bv-app { border-top: 1px solid var(--border); overflow: hidden; }
.bv-app-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.bv-app-tekst h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, min(3.3vw, 5.2vh), 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 clamp(10px, 1.6vh, 14px); text-wrap: balance; max-width: 24ch; }
.bv-app-lead { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 50ch; }

/* tre fordele som små ikoner */
.bv-app-fordele { list-style: none; margin: clamp(16px, 2.6vh, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bv-app-fordele li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.bv-app-ik { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); }
.bv-app-fordele li > span:last-child { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.bv-app-fordele b { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* trinene som faner */
.bv-app-trin { margin-top: clamp(14px, 2.4vh, 22px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 4px 4px 10px; }
.bv-app-faner { display: inline-flex; gap: 4px; padding: 3px; margin: 6px 0 2px 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.bv-app-faner button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background var(--t), color var(--t); }
.bv-app-faner button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--border-2); }
.bv-app-faner button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bv-app-trinliste { list-style: none; counter-reset: trin; margin: 0; padding: 8px 8px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bv-app-trinliste[hidden] { display: none; }
.bv-app-trinliste li { counter-increment: trin; position: relative; display: grid; gap: 2px; align-content: start; padding: 10px 10px 10px 40px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); min-width: 0; }
.bv-app-trinliste li::before { content: counter(trin); position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11.5px; background: var(--text); color: var(--bg); }
.bv-app-trinliste b { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.bv-app-trinliste b svg { vertical-align: -2px; }
.bv-app-trinliste span { font-size: 12px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.bv-app-note { margin: 8px 12px 0; font-size: 12.5px; color: var(--text-3); }
.bv-app-knapper { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.4vh, 22px); }
.bv-app-knapper .btn[hidden] { display: none; }

/* ---------- telefonen ---------- */
.bv-app-tlf { position: relative; display: grid; place-items: center; }
.bv-app-tlf::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 168, 107, .22), transparent); filter: blur(10px); }
.bv-tlf { position: relative; width: min(300px, 78%, calc((100vh - 170px) * 0.5)); min-width: 220px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: #111214; box-shadow: 0 0 0 2px #2b2d31, 0 40px 80px -30px rgba(0, 0, 0, .55); }
.bv-tlf::after { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 14px; background: #111214; }
.bv-tlf-skaerm { position: relative; height: 100%; border-radius: 35px; overflow: hidden; padding: 56px 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, #3a4f63 0%, #6d7f88 38%, #c7b49a 72%, #e8d6bd 100%); color: #fff; font-family: var(--font-sans); }
.bv-tlf-tid { text-align: center; margin-bottom: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .2); }
.bv-tlf-tid b { display: block; font-size: clamp(38px, 4.4vw, 52px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.bv-tlf-tid small { font-size: 12px; opacity: .9; }
.bv-tlf-besked { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px 11px; border-radius: 18px; background: rgba(255, 255, 255, .72); color: #15171a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .35); }
.bv-tlf-besked p { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 1px; font-size: 11px; }
.bv-tlf-besked p small { color: #5a5f66; }
.bv-tlf-besked span { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.bv-tlf-besked em { display: block; font-style: normal; font-size: 11.5px; color: #3d4248; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-tlf-app { width: 30px; height: 30px; border-radius: 8px; background: #0a0a0a; display: grid; place-items: center; }
.bv-tlf-app span, .bv-tlf-dit span { color: #fff; font-family: var(--font-sans); font-weight: 700; font-style: normal; font-size: 14px; }
.bv-tlf-dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; border-radius: 24px; background: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bv-tlf-ikon { position: relative; aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; }
.bv-tlf-andet { background: rgba(255, 255, 255, .55); }
.bv-tlf-dit { background: #0a0a0a; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.bv-tlf-dit span { font-size: 18px; }
.bv-tlf-tal { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 11.5px; font-weight: 700; font-family: var(--font-sans); display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* beskederne kommer ind én ad gangen, og tallet popper — som på en rigtig telefon */
@media (prefers-reduced-motion: no-preference) {
  .bv-app.er-synlig .bv-b1 { animation: bvBesked 9s 0.6s infinite both; }
  .bv-app.er-synlig .bv-b2 { animation: bvBesked 9s 2.4s infinite both; }
  .bv-app.er-synlig .bv-tlf-tal { animation: bvTal 9s 0.9s infinite both; }
}
@keyframes bvBesked { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes bvTal { 0%, 3% { transform: scale(0); } 8% { transform: scale(1.25); } 12%, 84% { transform: scale(1); } 94%, 100% { transform: scale(0); } }

/* ---------- mindre skærme ---------- */
@media (max-width: 1100px) { .bv-app-fordele { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media (max-width: 900px) {
  .bv-app-grid { grid-template-columns: minmax(0, 1fr); }
  .bv-app-tlf { order: 0; margin-top: 4px; }
  .bv-tlf { width: min(230px, 62vw); min-width: 0; border-radius: 38px; }
  .bv-tlf-skaerm { border-radius: 30px; padding-top: 50px; }
}
@media (max-width: 620px) {
  .bv-app-trinliste { grid-template-columns: minmax(0, 1fr); }
  .bv-app-knapper .btn { flex: 1 1 auto; justify-content: center; }
}
