/* pp-hovedmenu.css — fælles hovedmenu på alle sider (2026-10-09).
   Markup fra hovedmenu() i _byg/side-faelles.js. Alt er afgrænset til .pp-hm, så menuen ser ens ud,
   uanset hvilken CSS siden ellers har. Under 1180 px samles linkene bag Menu-knappen (pp-hovedmenu.js). */
.pp-hm {
  position: sticky; top: 0; z-index: 400;
  display: flex; align-items: center; gap: 6px;
  height: 62px; margin: 0; padding: 0 clamp(14px, 3vw, 40px);
  overflow: visible; box-sizing: border-box;
  background: rgba(13, 32, 56, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, .6);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2; text-align: left;
}
.pp-hm * { box-sizing: border-box; }
.pp-hm__logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 850; letter-spacing: -.02em; font-size: 1.06rem; white-space: nowrap;
  color: #fff; text-decoration: none; background: none; padding: 0;
}
.pp-hm__logo::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, #12c4a8, #5b8cff); box-shadow: 0 6px 16px -6px rgba(18, 196, 168, .8);
}
.pp-hm__navn span { color: #93c5fd; }
.pp-hm__links { display: flex; align-items: center; gap: 2px; margin: 0; }
.pp-hm__link {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .8); background: none; text-decoration: none;
  font-size: .86rem; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s;
}
.pp-hm__link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pp-hm__link[aria-current] { color: #fff; background: rgba(18, 196, 168, .16); box-shadow: inset 0 0 0 1px rgba(18, 196, 168, .45); }
.pp-hm__link.kun-i-menu, .pp-hm__skel { display: none; }
.pp-hm__knap {
  display: none; align-items: center; gap: 9px; min-height: 42px; margin: 0; padding: 8px 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer;
}
.pp-hm__knap:hover { background: rgba(255, 255, 255, .12); }
.pp-hm__ikon { position: relative; width: 16px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: transform .2s, box-shadow .2s; }
.pp-hm.er-aaben .pp-hm__ikon { transform: rotate(45deg); box-shadow: none; }
.pp-hm.er-aaben .pp-hm__ikon::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: currentColor; transform: rotate(-90deg); }
.pp-hm__cta {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 0 4px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #34d8bf, #0e9d87); color: #04221e; text-decoration: none;
  font-size: .86rem; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(18, 196, 168, .9);
}
.pp-hm__cta:hover { filter: brightness(1.06); }
.pp-hm a:focus-visible, .pp-hm button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

@media (max-width: 1180px) {
  .pp-hm__knap { display: inline-flex; }
  .pp-hm__links {
    display: none; position: absolute; top: calc(100% + 8px); right: clamp(14px, 3vw, 40px);
    min-width: 260px; max-height: calc(100vh - 90px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 16px;
    background: rgba(8, 18, 38, .98); border: 1px solid rgba(147, 197, 253, .2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
  .pp-hm.er-aaben .pp-hm__links { display: flex; }
  .pp-hm__links .pp-hm__link { display: flex; padding: 11px 14px; font-size: .95rem; }
  .pp-hm__skel { display: block; height: 1px; margin: 6px 8px; background: rgba(255, 255, 255, .12); }
}
@media (max-width: 520px) {
  .pp-hm { gap: 6px; padding: 0 12px; }
  .pp-hm__links { left: 12px; right: 12px; min-width: 0; }
  .pp-hm__logo { font-size: .98rem; gap: 8px; }
  .pp-hm__logo::before { width: 22px; height: 22px; }
  .pp-hm__knap { padding: 8px 12px; font-size: .8rem; min-height: 40px; }
  .pp-hm__cta { padding: 8px 12px; font-size: .8rem; }
}
@media (max-width: 360px) { .pp-hm__navn span { display: none; } }
@media (prefers-reduced-motion: reduce) { .pp-hm__ikon, .pp-hm__link { transition: none; } }
@media print { .pp-hm { display: none !important; } }

/* ── Søgning (pp-soeg.js, 2026-10-09) ── */
.pp-hm__soeg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 2px 0 6px; padding: 7px 10px 7px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.pp-hm__soeg:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pp-hm__soeg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pp-hm__soeg kbd { font: inherit; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
@media (max-width: 1180px), (hover: none) { .pp-hm__soeg kbd { display: none; } }
@media (max-width: 520px) { .pp-hm__soeg { padding: 8px 10px; margin-left: 0; } .pp-hm__soeg span { display: none; } }

html.pp-soeg-aaben { overflow: hidden; }
.pp-soeg {
  position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(12px, 9vh, 90px) 14px 14px; background: rgba(4, 10, 22, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.pp-soeg[hidden] { display: none; }
.pp-soeg * { box-sizing: border-box; }
.pp-soeg__panel {
  width: min(680px, 100%); max-height: min(78vh, 720px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: #fff; color: #0d2038; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.pp-soeg__felt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e3e9f2; }
.pp-soeg__felt svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #5a6b82; stroke-width: 2.4; stroke-linecap: round; }
.pp-soeg__felt input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: inherit; padding: 6px 0;
}
.pp-soeg__felt input::-webkit-search-cancel-button { display: none; }
.pp-soeg__luk { flex: none; border: 1px solid #d5deea; background: #f5f8fc; color: #4a5b74; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; }
.pp-soeg__status { margin: 0; padding: 10px 16px 4px; font-size: .78rem; font-weight: 650; color: #5a6b82; }
.pp-soeg__liste { list-style: none; margin: 0; padding: 4px 8px 8px; overflow: auto; }
.pp-soeg__res a { display: block; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.pp-soeg__res[aria-selected="true"] a { background: #eaf7f4; box-shadow: inset 0 0 0 1px #9ee3d5; }
.pp-soeg__top { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: .7rem; }
.pp-soeg__modul { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0e7d6c; }
.pp-soeg__forael { color: #6b7a90; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-soeg__titel { display: block; font-weight: 750; font-size: .98rem; line-height: 1.3; }
.pp-soeg__beskr { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.4; color: #4a5b74; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp-soeg__forslag { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 10px; }
.pp-soeg__forslag button { border: 1px solid #d5deea; background: #f5f8fc; color: #1f3864; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; min-height: 36px; }
.pp-soeg__forslag button:hover { border-color: #12c4a8; background: #eaf7f4; }
.pp-soeg__fod { margin: 0; padding: 8px 16px; border-top: 1px solid #e3e9f2; font-size: .72rem; color: #6b7a90; }
.pp-soeg__fod kbd { font: inherit; font-size: .68rem; font-weight: 700; padding: 1px 5px; margin: 0 2px; border-radius: 5px; border: 1px solid #d5deea; background: #f5f8fc; }
.pp-soeg a:focus-visible, .pp-soeg button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
@media (hover: none) { .pp-soeg__fod { display: none; } }
@media (max-width: 520px) { .pp-soeg { padding: 8px; } .pp-soeg__panel { max-height: calc(100vh - 16px); border-radius: 14px; } }
@media (prefers-color-scheme: dark) {
  .pp-soeg__panel { background: #0f1d33; color: #e6eefb; }
  .pp-soeg__felt, .pp-soeg__fod { border-color: #23395a; }
  .pp-soeg__felt svg { stroke: #9fb0c8; }
  .pp-soeg__luk, .pp-soeg__forslag button, .pp-soeg__fod kbd { background: #16294a; border-color: #2a4468; color: #cfe0f5; }
  .pp-soeg__status, .pp-soeg__forael, .pp-soeg__fod { color: #9fb0c8; }
  .pp-soeg__beskr { color: #b6c6dc; }
  .pp-soeg__modul { color: #5eead4; }
  .pp-soeg__res[aria-selected="true"] a { background: #12304a; box-shadow: inset 0 0 0 1px #2c6c66; }
}

/* ── Gem-knappen og Mine gemte (pp-gem.js, 2026-10-09) ── */
.pp-gem-raekke { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 10px 0 6px; }
.pp-gem-knap {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 15px 8px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit; font: inherit; font-size: .86rem; font-weight: 750; cursor: pointer; transition: background .2s, border-color .2s;
}
.pp-gem-knap:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.pp-gem-knap svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.pp-gem-knap.er-gemt { border-color: #12c4a8; background: rgba(18, 196, 168, .16); }
.pp-gem-knap.er-gemt svg { fill: #12c4a8; stroke: #12c4a8; }
.pp-gem-knap:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.pp-gem-knap[disabled] { opacity: .6; cursor: progress; }
.pp-gem-rude {
  position: absolute; z-index: 600; width: min(360px, calc(100vw - 32px));
  display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; text-align: left;
  background: #fff; color: #0d2038; border: 1px solid rgba(18, 196, 168, .45); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.pp-gem-rude b { font-size: 1rem; }
.pp-gem-rude p { margin: 0; font-size: .88rem; line-height: 1.5; color: #3d4f68; }
.pp-gem-rude small { font-size: .76rem; color: #5a6b82; }
.pp-gem-rude__knapper { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.pp-gem-rude__ja, .pp-gemte-tom .pp-gem-rude__ja {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #34d8bf, #0e9d87); color: #04221e; font-weight: 800; font-size: .9rem; text-decoration: none;
}
.pp-gem-rude__login { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; color: #0e7d6c; font-weight: 750; font-size: .88rem; }
.pp-gem-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: #0d2038; color: #fff;
  font: 650 .9rem/1.4 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s;
}
.pp-gem-toast.er-vist { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pp-gem-toast a { color: #5eead4; font-weight: 800; }
.pp-gemte-gruppe { margin: 0 0 22px; }
.pp-gemte-gruppe h2 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: #5a6b82; margin: 0 0 8px; }
.pp-gemte-gruppe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-gemte-gruppe li { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #fff; border: 1px solid #dfe6f0; }
.pp-gemte-gruppe li a { flex: 1; color: #0d2038; font-weight: 750; text-decoration: none; }
.pp-gemte-gruppe li a:hover { text-decoration: underline; }
.pp-gemte-fjern { min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid #d5deea; background: #f5f8fc; color: #4a5b74; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pp-gemte-tom { padding: 22px; border-radius: 16px; background: #fff; border: 1px dashed #b9c6d8; }
.pp-gemte-tom b { font-size: 1.05rem; }
.pp-gemte-tom p { color: #3d4f68; line-height: 1.55; }
@media (prefers-color-scheme: dark) {
  .pp-gem-rude { background: #0f1d33; color: #e6eefb; }
  .pp-gem-rude p { color: #c4d2e6; }
  .pp-gem-rude small { color: #9fb0c8; }
  .pp-gem-rude__login { color: #5eead4; }
  .pp-gemte-gruppe li, .pp-gemte-tom { background: #12233b; border-color: #24406a; }
  .pp-gemte-gruppe li a { color: #e6eefb; }
  .pp-gemte-tom p { color: #c4d2e6; }
  .pp-gemte-fjern { background: #16294a; border-color: #2a4468; color: #cfe0f5; }
}
@media print { .pp-gem-raekke, .pp-gem-toast { display: none !important; } }
