/* Orlogs-modeller — boksen med rabat for tilmelding til nyhedsbrevet (js/tilbud.js laegger den ind)
   og formularen paa nyhedsbrev.html. Butikkens udtryk: marine og messing, hvid/sand, systemskriften,
   knapper som piller uden versaler. Farverne staar her selv (samme vaerdier som --o-* i css/tema.css). */

.ntb-bag { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(255, 255, 255, 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: #ffffff; color: #18232e; border: 1px solid rgba(201, 162, 74, 0.35); border-radius: 22px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, 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: #18232e; 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.82rem; font-weight: 600; letter-spacing: 0; color: #7d5f18; }
.ntb__titel { margin: 0 0 10px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; color: #1d1d1f; }
.ntb__tekst { margin: 0 0 18px; color: #6e6e73; }

.ntb__form { display: flex; flex-direction: column; gap: 12px; }
.ntb__felt { display: flex; flex-direction: column; gap: 5px; font-size: 0.88rem; font-weight: 500; letter-spacing: 0; color: #1d1d1f; }
.ntb__felt input { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(13, 33, 49, 0.2); border-radius: 12px; background: #ffffff; color: #1d1d1f; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; }
.ntb__felt input:focus { outline: none; border-color: #0d2131; box-shadow: 0 0 0 3px rgba(13, 33, 49, 0.14); }
.ntb__honning { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ntb__knap { min-height: 50px; margin-top: 4px; padding: 0 22px; border: 1px solid #0d2131; border-radius: 999px; background: #0d2131; color: #ffffff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease; }
.ntb__knap:hover { background: #16324a; border-color: #16324a; }
@media (prefers-reduced-motion: reduce) { .ntb__knap { transition: none; } }
.ntb__knap:disabled { opacity: 0.6; cursor: default; }
.ntb__luk:focus-visible, .ntb__knap:focus-visible, .ntb a:focus-visible, .nbside a:focus-visible, .nbside .ntb__knap:focus-visible { outline: 2px solid #0d2131; outline-offset: 3px; }
.ntb__status { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: #18232e; }
.ntb__status:empty { min-height: 0; }
.ntb__smaat { margin: 0; font-size: 0.76rem; line-height: 1.5; color: #6a7480; }
.ntb a, .nbside a { color: #0d2131; text-decoration: underline; text-underline-offset: 3px; }
.ntb__tak h3 { margin: 0 0 8px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; color: #1d1d1f; }
.ntb__tak p { margin: 0 0 10px; color: #6e6e73; }
.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: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, 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: #ffffff; border: 1px solid rgba(201, 162, 74, 0.45); border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); }
.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.26); }
.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: #18232e; 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: #c9a24a; color: #18232e; }
.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: #18232e; }
.ntb-hjoerne__tekst small { font-size: 0.72rem; color: #e3c27a; }
.ntb-hjoerne__knap:hover .ntb-hjoerne__tekst small { color: #18232e; }
.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: #e3c27a; cursor: pointer; }
.ntb-hjoerne__x svg { width: 14px; height: 14px; }
.ntb-hjoerne__x:hover { background: rgba(255, 255, 255, 0.12); color: #18232e; }
.ntb-hjoerne__knap:focus-visible, .ntb-hjoerne__x:focus-visible { outline: 2px solid #d9d1c1; 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.5rem; 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: #ffffff; border: 1px solid rgba(13, 33, 49, 0.12); border-radius: 22px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; color: #1d1d1f; position: relative; }
.nbside *, .nbside *::before, .nbside *::after { box-sizing: border-box; }

/* ===== Marine som Lodsen — den lille boks og arket, ikke siden nyhedsbrev.html ===== */
.ntb-hjoerne__lille { background: #0d2131; border-color: rgba(201, 162, 74, 0.55); box-shadow: 0 10px 30px rgba(13, 33, 49, 0.28); }
.ntb-hjoerne__knap { color: #fff; }
.ntb-hjoerne__ikon { background: radial-gradient(circle at 50% 40%, #1b3a52, #0d2131 70%); color: #e3c27a; box-shadow: inset 0 0 0 1px rgba(227, 194, 122, 0.4); }
.ntb-hjoerne__tekst strong { color: #fff; }
.ntb-hjoerne__tekst small { color: rgba(255, 255, 255, 0.7); }
.ntb-hjoerne__knap:hover .ntb-hjoerne__tekst small { color: #e3c27a; }
.ntb-hjoerne__x { background: rgba(255, 255, 255, 0.08); color: #e3c27a; }
.ntb-hjoerne__x:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ntb-hjoerne__knap:focus-visible, .ntb-hjoerne__x:focus-visible, .ntb .ntb__luk:focus-visible, .ntb .ntb__knap:focus-visible { outline-color: #e3c27a; }

.ntb { background: #0d2131; color: #fff; border-color: rgba(201, 162, 74, 0.5); box-shadow: 0 24px 64px rgba(13, 33, 49, 0.35); }
.ntb .ntb__luk { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ntb .ntb__luk:hover { background: rgba(255, 255, 255, 0.16); }
.ntb .ntb__eyebrow { color: #e3c27a; }
.ntb .ntb__titel, .ntb .ntb__tak h3 { color: #fff; }
.ntb .ntb__tekst, .ntb .ntb__tak p { color: rgba(255, 255, 255, 0.82); }
.ntb .ntb__felt { color: rgba(255, 255, 255, 0.82); }
.ntb .ntb__felt input { background: #fff; color: #1d1d1f; border-color: transparent; }
.ntb .ntb__felt input:focus { border-color: #b38a3a; box-shadow: 0 0 0 3px rgba(179, 138, 58, 0.35); }
/* Paa den marine flade er knappen en hvid pille med marine tekst. */
.ntb .ntb__knap { background: #ffffff; border-color: #ffffff; color: #0d2131; }
.ntb .ntb__knap:hover { background: #f5f1ea; border-color: #f5f1ea; }
.ntb .ntb__status { color: #fff; }
.ntb .ntb__smaat { color: rgba(255, 255, 255, 0.6); }
.ntb a { color: #e3c27a; }
.ntb-bag { background: rgba(13, 33, 49, 0.45); }
