/* Nordur — pop-up'en med rabat for tilmelding til nyhedsbrevet (js/tilbud.js laegger arket ind)
   og formularen paa nyhedsbrev.html. Farverne staar her selv, som i css/assistent.css.
   Tekst er hvid; guld er kun kanter, knappen og ikoner (farvereglen i CLAUDE.md). */

.ntb-bag { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ntb-ind 0.25s ease-out; }
.ntb-bag[hidden] { display: none; }
@keyframes ntb-ind { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ntb-bag { animation: none; } }

.ntb { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 34px 26px 24px; background: #0d0d0d; color: #f4f2ec; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 22px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 0.95rem; line-height: 1.55; text-align: left; }
.ntb *, .ntb *::before, .ntb *::after { box-sizing: border-box; }
.ntb__luk { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #f4f2ec; cursor: pointer; }
.ntb__luk svg { width: 18px; height: 18px; }
.ntb__luk:hover { background: rgba(255, 255, 255, 0.12); }
.ntb__eyebrow { margin: 0 0 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #a8a49c; }
.ntb__titel { margin: 0 0 10px; font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: #f4f2ec; }
.ntb__tekst { margin: 0 0 18px; color: #c9c5bc; }

.ntb__form { display: flex; flex-direction: column; gap: 12px; }
.ntb__felt { display: flex; flex-direction: column; gap: 5px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a8a49c; }
.ntb__felt input { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 12px; background: #151515; color: #f4f2ec; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; }
.ntb__felt input:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
.ntb__honning { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ntb__knap { height: 52px; margin-top: 4px; border: 0; border-radius: 999px; background: #d4af37; color: #0b0b0b; font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.ntb__knap:hover { background: #e2c25a; }
.ntb__knap:disabled { opacity: 0.6; cursor: default; }
.ntb__luk:focus-visible, .ntb__knap:focus-visible, .ntb a:focus-visible { outline: 2px solid #f4f2ec; outline-offset: 3px; }
.ntb__status { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: #f4f2ec; }
.ntb__status:empty { min-height: 0; }
.ntb__smaat { margin: 0; font-size: 0.76rem; line-height: 1.5; color: #8f8a80; }
.ntb a, .nbside a { color: #f4f2ec; text-decoration: underline; text-underline-offset: 3px; }
.ntb__kreds { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; color: #c9c5bc; }
.ntb__tak h3 { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.6rem; color: #f4f2ec; }
.ntb__tak p { margin: 0 0 10px; color: #c9c5bc; }
.ntb__tak:focus { outline: none; }

/* Den lille boks nederst til venstre (chatten sidder til hoejre). Et tryk folder formularen ud over den. */
.ntb-hjoerne { position: fixed; left: 18px; bottom: 18px; z-index: 8900; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; animation: ntb-op 0.35s ease-out; }
.ntb-hjoerne[hidden] { display: none; }
.ntb-hjoerne *, .ntb-hjoerne *::before, .ntb-hjoerne *::after { box-sizing: border-box; }
@keyframes ntb-op { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ntb-hjoerne { animation: none; } }
.ntb-hjoerne__lille { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 4px; background: #0d0d0d; border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.ntb-hjoerne.is-aaben { z-index: 9100; }
/* Boksen kan traekkes hen et andet sted (js/tilbud.js): greb-markoer paa mus, og ingen rulning under fingeren */
.ntb-hjoerne__lille { touch-action: none; -webkit-user-select: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .ntb-hjoerne__lille, .ntb-hjoerne__knap { cursor: grab; } }
.ntb-hjoerne.is-flyttes .ntb-hjoerne__lille { cursor: grabbing; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65); }
.ntb-hjoerne.is-aaben .ntb-hjoerne__lille { display: none; }
.ntb-hjoerne__knap { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 4px; border: 0; background: none; color: #f4f2ec; font: inherit; text-align: left; cursor: pointer; }
.ntb-hjoerne__ikon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #d4af37; color: #0b0b0b; }
.ntb-hjoerne__ikon svg { width: 20px; height: 20px; }
.ntb-hjoerne__tekst { display: flex; flex-direction: column; line-height: 1.2; }
.ntb-hjoerne__tekst strong { font-size: 0.9rem; font-weight: 600; color: #f4f2ec; }
.ntb-hjoerne__tekst small { font-size: 0.72rem; color: #a8a49c; }
.ntb-hjoerne__knap:hover .ntb-hjoerne__tekst small { color: #f4f2ec; }
.ntb-hjoerne__x { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-right: 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #a8a49c; cursor: pointer; }
.ntb-hjoerne__x svg { width: 14px; height: 14px; }
.ntb-hjoerne__x:hover { background: rgba(255, 255, 255, 0.12); color: #f4f2ec; }
.ntb-hjoerne__knap:focus-visible, .ntb-hjoerne__x:focus-visible { outline: 2px solid #f4f2ec; outline-offset: 3px; border-radius: 999px; }
.ntb--hjoerne { width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); padding: 28px 22px 20px; animation: ntb-op 0.25s ease-out; }
.ntb--hjoerne .ntb__titel { font-size: 1.75rem; padding-right: 36px; }
.ntb--hjoerne .ntb__tekst { font-size: 0.88rem; margin-bottom: 14px; }
.ntb--hjoerne[hidden] { display: none; }
@media (max-width: 600px) {
  .ntb-hjoerne { left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .ntb-hjoerne.is-aaben { left: 10px; right: 10px; }
  .ntb--hjoerne { width: 100%; max-height: calc(100vh - 40px); max-height: calc(100dvh - max(14px, env(safe-area-inset-bottom)) - 12px); }
  .ntb-hjoerne__tekst small { display: none; }
}
@media (max-width: 1023px) {
  .ntb-hjoerne--hoej { bottom: 76px; }
  .ntb-hjoerne--hoej .ntb--hjoerne { max-height: calc(100vh - 100px); max-height: calc(100dvh - 88px); }
}

/* Siden nyhedsbrev.html */
.nbside { max-width: 480px; margin: 0 auto; padding: 28px 22px; background: #0d0d0d; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 22px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: #f4f2ec; position: relative; }
.nbside *, .nbside *::before, .nbside *::after { box-sizing: border-box; }
