/* Runnin - editorial travel-tech. Varm hvid, navy, coral. */
/* Palette: varm hvid #F5F3EE · chokolade-blæk #38240D · caramel #C05800 (cream droppet 28/8) */
:root {
  --paper: #F5F3EE;
  --ink: #38240D;
  --muted: #7E6A50;
  --faint: #AE9C80;
  --coral: #C05800; /* accent (caramel) - variabelnavnet beholdes */
  --brun: #713600;
  --hairline: rgba(56, 36, 13, .13);
  --card-shadow: 0 12px 32px rgba(56, 36, 13, .16);
  --soft-shadow: 0 2px 10px rgba(56, 36, 13, .08);
  --card: #ffffff;
  --flade: #F3F0E9;
  --felt: #FBFAF7;
  --glas: rgba(255, 255, 255, .88);
  --glas2: rgba(255, 255, 255, .94);
  --serif: "Inter Tight", -apple-system, sans-serif; /* display */
  --sans: "Inter Tight", -apple-system, sans-serif;
}
/* mørk tilstand: alt med blæk-baggrund skal have papir-tekst, ikke hvid-på-cream */
html[data-tema="mørk"] .tab.active,
html[data-tema="mørk"] .pill.on,
html[data-tema="mørk"] .menu button.sel,
html[data-tema="mørk"] .close:hover,
html[data-tema="mørk"] .cal-cell.sel,
html[data-tema="mørk"] .login-btn:hover,
html[data-tema="mørk"] .pm-dash:hover,
html[data-tema="mørk"] .user-avatar,
html[data-tema="mørk"] .avatar-upload,
html[data-tema="mørk"] .save.saved { color: var(--paper) !important; }

/* mørk chokolade-tema */
html[data-tema="mørk"] {
  --paper: #191108;
  --ink: #F2EADC;
  --muted: #C0AE93;
  --faint: #8A785F;
  --coral: #E06A0A;
  --hairline: rgba(242, 234, 220, .15);
  --card: #241809;
  --flade: #2E2011;
  --felt: #2A1D0C;
  --glas: rgba(30, 21, 10, .86);
  --glas2: rgba(30, 21, 10, .93);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --soft-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100dvh; overflow: hidden; }
/* body låses fast: iOS Safari ignorerer ellers overflow:hidden og lader siden rubber-bande */
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  position: fixed; inset: 0; width: 100%; overscroll-behavior: none;
}

#map { position: fixed; inset: 0; height: 100dvh; }
#map canvas { cursor: default; }
.maplibregl-ctrl-attrib { font-size: 10px; background: var(--glas) !important; }

/* ---------- preloader + intro ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aande { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes preOut { to { opacity: 0; transform: scale(1.04); } }
#preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
#preloader img { width: 64px; height: 64px; animation: aande 1.5s ease-in-out infinite; }
#preloader .pre-navn { font-family: var(--serif); font-weight: 800; font-size: 15px; letter-spacing: .3em; color: var(--ink); opacity: .8; }
#preloader.væk { animation: preOut .55s cubic-bezier(.22,1,.36,1) both; pointer-events: none; }
/* UI'et afsløres først når kortet er klar (body.klar) */
.reveal, .reveal-2, .reveal-3 { opacity: 0; }
body.klar .reveal   { animation: rise .6s cubic-bezier(.22,1,.36,1) both .05s; }
body.klar .reveal-2 { animation: rise .6s cubic-bezier(.22,1,.36,1) both .2s; }
body.klar .reveal-3 { animation: rise .6s cubic-bezier(.22,1,.36,1) both .4s; }

/* blød papir-scrim bag hero/nav: usynlig på rolig baggrund, redder læsbarhed over travle områder */
:root { --scrim-rgb: 245, 243, 238; }
html[data-tema="mørk"] { --scrim-rgb: 25, 17, 8; }
.hero-scrim {
  position: fixed; top: 0; left: 0; z-index: 19; pointer-events: none;
  width: min(720px, 88vw); height: 480px;
  background: radial-gradient(ellipse 110% 100% at 8% 0%,
    rgba(var(--scrim-rgb), .94) 0%,
    rgba(var(--scrim-rgb), .72) 42%,
    rgba(var(--scrim-rgb), .32) 62%,
    rgba(var(--scrim-rgb), 0) 78%);
}
.tema-valg { display: flex; gap: 8px; }
.tema-chip {
  flex: 1; border: 1px solid var(--hairline); background: var(--card); border-radius: 11px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 11px 18px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.tema-chip:hover { color: var(--ink); border-color: var(--ink); }
.tema-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 46; /* over paneler, under modaler */
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 32px 20px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand {
  font-family: var(--serif); font-weight: 800; font-size: 20px;
  letter-spacing: .18em;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark { height: 24px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 10px; position: relative; }
@keyframes foldDown {
  0% { opacity: 0; transform: translateY(-8px) scale(.95); }
  60% { opacity: 1; transform: translateY(2px) scale(1.005); }
  100% { opacity: 1; transform: none; }
}
.profile-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; min-width: 250px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--card-shadow); padding: 16px 16px 10px;
  transform-origin: top right; animation: foldDown .34s cubic-bezier(.22,1.4,.36,1) both;
}
.pm-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.pm-navn { font-weight: 700; font-size: 14.5px; }
.pm-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pm-next {
  margin: 10px 0 2px; font-size: 12px; color: var(--muted);
  background: var(--flade); border-radius: 10px; padding: 9px 12px;
}
.pm-next .countdown { color: var(--coral); font-weight: 700; }
.pm-items { display: flex; flex-direction: column; padding-top: 8px; }
.pm-items button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink);
  padding: 10px 10px; border-radius: 10px; transition: background .13s;
  animation: rise .3s cubic-bezier(.22,1,.36,1) both;
}
.pm-items button:nth-child(1) { animation-delay: .04s; }
.pm-items button:nth-child(2) { animation-delay: .08s; }
.pm-items button:nth-child(3) { animation-delay: .12s; }
.pm-items button:nth-child(4) { animation-delay: .16s; }
.pm-items button:nth-child(5) { animation-delay: .2s; }
.pm-items button:nth-child(6) { animation-delay: .24s; }
.pm-items button:nth-child(7) { animation-delay: .28s; }
.pm-items button:nth-child(8) { animation-delay: .32s; }
.pm-items button:hover { background: var(--flade); }
.pm-tal { margin-left: auto; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.pm-logud { color: var(--muted) !important; }
.pm-logud:hover { color: var(--ink) !important; }
.tabs { display: flex; gap: 4px; background: var(--glas); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px; box-shadow: var(--soft-shadow); }
.tab {
  border: 0; background: transparent; font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: color .18s, background .18s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; font-weight: 600; }
.fav-count {
  display: inline-block; min-width: 17px; text-align: center; margin-left: 4px;
  background: var(--coral); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 1px 5px;
}
.tab.active .fav-count { background: var(--coral); }

/* ---------- login ---------- */
@keyframes springIn {
  0% { opacity: 0; transform: translateY(16px) scale(.96); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes chipPop {
  0% { opacity: 0; transform: scale(.4); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes backdropIn { from { background: rgba(56,36,13,0); backdrop-filter: blur(0); } to { background: rgba(56,36,13,.42); backdrop-filter: blur(5px); } }
.login-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--glas); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 12px 20px; cursor: pointer;
  box-shadow: var(--soft-shadow); transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .15s, color .15s;
}
.login-btn:hover { transform: translateY(-1px) scale(1.03); background: var(--ink); color: #fff; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--glas); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 16px 5px 5px; cursor: pointer;
  box-shadow: var(--soft-shadow); animation: chipPop .5s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.user-chip:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 18px rgba(56,36,13,.12); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.login-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: backdropIn .32s ease both;
  background: rgba(56,36,13,.42); backdrop-filter: blur(5px);
}
.login-modal {
  position: relative; background: var(--card); border-radius: 22px; width: min(400px, 100%);
  padding: 30px 32px 24px; box-shadow: 0 28px 72px rgba(56,36,13,.3);
  animation: springIn .45s cubic-bezier(.22,1.4,.36,1) both;
}
.login-title { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 16px; }
.avatar-rad { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.avatar-upload {
  position: relative; width: 72px; height: 72px; border-radius: 999px; border: 0; padding: 0;
  background: var(--ink); color: #fff; cursor: pointer; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: .04em;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.avatar-upload:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(56,36,13,.25); }
.avatar-upload img, .user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }
#avatarPreview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.avatar-kamera {
  position: absolute; right: -1px; bottom: -1px; width: 26px; height: 26px; font-size: 12px;
  background: var(--coral); border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.avatar-hjælp { font-size: 12px; color: var(--muted); line-height: 1.5; }
.avatar-hjælp small { color: var(--faint); }
.data-slet:hover { color: #B3261E !important; border-color: #B3261E !important; }
.login-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.login-field {
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--felt); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 15px; width: 100%; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-field:focus { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px rgba(56,36,13,.08); }
.login-cta { margin-top: 20px; width: 100%; border: 0; font-family: var(--sans); font-size: 14px; cursor: pointer; }
.mine-hilsen {
  margin: 4px 12px 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--flade); border: 1px solid var(--hairline);
  animation: springIn .4s cubic-bezier(.22,1.4,.36,1) both;
}
.mine-hilsen strong { font-family: var(--serif); font-size: 17px; letter-spacing: -.01em; display: block; }
.mine-hilsen span { font-size: 12.5px; color: var(--muted); }
.mine-hilsen .countdown { color: var(--coral); font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: fixed; top: calc(86px + env(safe-area-inset-top)); left: 32px; z-index: 20; max-width: 520px; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; }
.hero .sub { color: var(--muted); font-weight: 500; font-size: 15px; margin-top: 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill-wrap { position: relative; }
.pill {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; box-shadow: var(--soft-shadow);
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(56,36,13,.10); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill .caret { color: var(--faint); margin-left: 4px; font-size: 11px; }
.pill.on .caret { color: rgba(255,255,255,.6); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 190px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--card-shadow); padding: 6px; display: none;
  max-height: 320px; overflow: auto;
}
.menu.open { display: block; animation: rise .18s ease both; }
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  padding: 9px 12px; border-radius: 9px; transition: background .12s;
}
.menu button:hover { background: var(--flade); }
.menu button.sel { background: var(--ink); color: #fff; }

/* ---------- hover card ---------- */
.hover-card {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--card); border-radius: 12px; padding: 12px 15px; min-width: 200px;
  box-shadow: var(--card-shadow); border: 1px solid var(--hairline);
  animation: rise .18s ease both;
}
.hover-card .hc-name { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.hover-card .hc-meta { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.hover-card .hc-hint { color: var(--coral); font-weight: 600; font-size: 11.5px; margin-top: 7px; }

/* ---------- detaljepanel ---------- */
.detail {
  position: fixed; z-index: 45; right: 24px; top: calc(96px + env(safe-area-inset-top)); width: 320px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--card-shadow); padding: 24px;
  animation: rise .28s cubic-bezier(.22,1,.36,1) both;
}
.d-type { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.detail h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.15; margin-top: 6px; }
.d-meta { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 10px; }
.d-note {
  margin-top: 12px; font-size: 12px; color: var(--ink);
  background: var(--flade); border: 1px solid #EADFC8; border-radius: 9px; padding: 8px 11px;
}
.cta {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; border: 0; cursor: pointer;
  margin-top: 18px; background: var(--coral); color: #fff; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 14px; border-radius: 11px; padding: 13px 0;
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(192,88,0,.35); }
.cta span { transition: transform .15s; }
.cta:hover span { transform: translateX(3px); }
.save {
  display: block; width: 100%; margin-top: 10px; background: none; border: 1px solid var(--hairline);
  border-radius: 11px; padding: 11px 0; font-family: var(--sans); font-size: 13px; color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.save:hover { color: var(--ink); border-color: var(--ink); }
.save.saved { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-entry.entered { background: rgba(192,88,0,.1); color: var(--coral); border-color: rgba(192,88,0,.4); font-weight: 700; }
.d-extra { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.d-extra:empty { display: none; }
.w-src { color: var(--faint); font-size: 10.5px; }
.radar-pill { border-color: rgba(192,88,0,.4); color: var(--coral); font-weight: 600; animation: rise .3s ease both; }
.radar-pill:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.feat-list { overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.feat-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--flade); border-radius: 12px; padding: 11px 14px; cursor: pointer;
  transition: transform .13s, box-shadow .13s;
  animation: rise .3s cubic-bezier(.22,1,.36,1) both;
}
.feat-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(56,36,13,.1); }
.feat-row > div { flex: 1; font-size: 13.5px; font-weight: 500; }
.feat-row small { color: var(--muted); font-weight: 400; }
.feat-row .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.feat-x {
  border: 1px solid var(--hairline); background: var(--card); border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; cursor: pointer; flex: none; transition: all .13s;
}
.feat-x:hover { color: var(--ink); border-color: var(--ink); }
.d-idag { color: #059669; font-weight: 700; }
.d-kilde { font-size: 10.5px; color: var(--faint); }
.d-actions { display: flex; gap: 8px; margin-top: 12px; }
.d-actions button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid var(--hairline); background: none; border-radius: 12px;
  font-family: var(--sans); padding: 9px 0 7px; cursor: pointer;
  transition: all .15s;
}
.d-actions button i { font-style: normal; font-size: 15px; line-height: 1; }
.d-actions button span { font-size: 10px; font-weight: 600; color: var(--muted); }
.d-actions button:hover { border-color: var(--ink); transform: translateY(-1px); }
.d-actions button.on { background: rgba(192,88,0,.1); border-color: rgba(192,88,0,.4); }
.d-actions button.on span { color: var(--coral); font-weight: 700; }
.search-wrap { position: relative; margin-top: 16px; max-width: 400px; }
.search {
  width: 100%; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 11px 18px; outline: none; box-shadow: var(--soft-shadow);
  transition: border-color .18s, box-shadow .18s;
}
.search:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(56,36,13,.08); }
.search::placeholder { color: var(--faint); }
.search-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--card-shadow); padding: 6px; animation: foldDown .25s cubic-bezier(.22,1.4,.36,1) both;
  max-height: 340px; overflow-y: auto;
}
.search-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; font-family: var(--sans);
  padding: 9px 11px; border-radius: 10px; transition: background .12s;
}
.search-menu button:hover { background: var(--flade); }
.search-menu .dot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.s-navn { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { margin-left: auto; font-size: 11px; color: var(--faint); flex: none; }
.search-tom { font-size: 12.5px; color: var(--muted); padding: 12px 14px; }
.strava-prik { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #FC4C02; }
.strava-btn { background: #FC4C02; }
.strava-btn:hover { box-shadow: 0 8px 20px rgba(252,76,2,.35); }
.strava-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; background: #FC4C02; color: #fff; padding: 3px 9px; border-radius: 999px; vertical-align: 3px; margin-left: 8px; }
.strava-intro { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.pb-væg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.pb-kort { background: var(--flade); border-radius: 12px; text-align: center; padding: 12px 4px; }
.pb-kort span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pb-kort strong { display: block; font-size: 16px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.form-linje { font-size: 13px; margin-top: 12px; line-height: 1.55; }
.strava-punkter { list-style: none; padding: 0; margin: 12px 0 4px; }
.strava-punkter li { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.strava-punkter li:last-child { border-bottom: none; }
.uge-graf { display: flex; gap: 14px; align-items: end; height: 110px; margin-top: 16px; padding: 0 6px; }
.uge-søjle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 4px; }
.uge-søjle i { display: block; width: 100%; height: var(--h); background: var(--coral); border-radius: 7px 7px 3px 3px; opacity: .35; transform-origin: bottom; animation: søjleOp .55s cubic-bezier(.22,1.4,.36,1) both; }
.uge-søjle:last-child i { opacity: 1; }
.uge-søjle:nth-child(2) i { animation-delay: .06s; } .uge-søjle:nth-child(3) i { animation-delay: .12s; } .uge-søjle:nth-child(4) i { animation-delay: .18s; }
@keyframes søjleOp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.uge-km { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.uge-lbl { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mål-liste { margin-top: 8px; }
.mål-række { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.mål-række:last-child { border-bottom: none; }
.mål-række i { width: 9px; height: 9px; border-radius: 99px; flex: none; }
.mål-række div { flex: 1; min-width: 0; }
.mål-række strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mål-række span { font-size: 11px; color: var(--muted); }
.mål-række b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--coral); }
.aar-knapper { display: flex; gap: 10px; margin-top: 14px; }
.aar-knapper .cta { flex: 1; margin: 0; }
.aar-knapper .save, .aar-knapper a.cta { flex: 1; text-align: center; text-decoration: none; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.feed-valg { margin-top: 14px; }
.feed-hjælp { display: grid; gap: 8px; margin-top: 16px; }
.feed-hjælp div { font-size: 12px; color: var(--muted); background: var(--flade); border-radius: 10px; padding: 9px 12px; line-height: 1.5; }
.feed-hjælp strong { display: block; color: var(--ink); font-size: 12px; }
@keyframes nudge {
  0%, 100% { transform: none; box-shadow: none; }
  25% { transform: scale(1.03); box-shadow: 0 0 0 5px rgba(192,88,0,.18); }
  55% { transform: scale(1); }
  75% { transform: scale(1.03); box-shadow: 0 0 0 5px rgba(192,88,0,.18); }
}
.d-entry.nudge { animation: nudge 1.5s ease; }
.r-entry {
  font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--coral);
  background: rgba(192,88,0,.1); border-radius: 999px; padding: 2px 8px; margin-left: 5px;
  vertical-align: 1px;
}

.close {
  position: absolute; top: 14px; right: 14px; border: 0; background: var(--flade); color: var(--muted);
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer; font-size: 12px;
  transition: background .15s, color .15s;
}
.close:hover { background: var(--ink); color: #fff; }

/* ---------- liste-panel ---------- */
.panel {
  position: fixed; z-index: 44; right: 24px; top: calc(96px + env(safe-area-inset-top)); bottom: 76px; width: 380px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--card-shadow); display: flex; flex-direction: column;
  animation: rise .28s cubic-bezier(.22,1,.36,1) both;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; }
.panel-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.panel-head .close { position: static; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: 1px solid var(--hairline); background: var(--card); color: var(--muted);
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.month-head {
  position: sticky; top: 0; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); background: var(--card);
  padding: 14px 12px 6px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px;
}
.panel-body { overflow-y: auto; padding: 0 12px 16px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer;
  transition: background .13s;
}
.row:hover { background: var(--flade); }
.row .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-meta { color: var(--muted); font-size: 12px; margin-top: 1px; }
.row .r-side { text-align: right; flex: none; }
.row .r-price { font-size: 12.5px; font-weight: 600; }
.row .r-when { color: var(--faint); font-size: 11.5px; }
.empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 40px 24px; line-height: 1.7; }
.empty em { font-family: var(--serif); }

/* ---------- kalender-modal ---------- */
.cal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(17, 24, 39, .42); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: backdropIn .32s ease both;
}
.cal-modal {
  background: var(--card); border-radius: 20px; box-shadow: 0 24px 64px rgba(56,36,13,.28);
  width: min(680px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  padding: 24px 28px; animation: springIn .45s cubic-bezier(.22,1.4,.36,1) both;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-head .close, .live-head .close, .foto-head .close { position: static; flex: none; }
.cal-nav { display: flex; align-items: center; gap: 14px; margin: 0 auto; padding-left: 34px; }
.cal-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; text-align: center; min-width: 190px; }
.cal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.cal-chip {
  border: 1px solid var(--hairline); background: var(--card); border-radius: 999px;
  font-family: var(--sans); font-size: 12px; color: var(--muted); padding: 6px 12px; cursor: pointer;
  transition: all .13s;
}
.cal-chip:hover { color: var(--ink); border-color: var(--ink); }
.cal-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; flex: none;
}
.cal-dow { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 4px 0; }
.cal-cell {
  position: relative; border-radius: 10px; min-height: 46px; padding: 5px 7px;
  border: 1px solid transparent; color: var(--faint); font-size: 12px;
}
.cal-cell.has { color: var(--ink); background: var(--flade); cursor: pointer; border-color: var(--hairline); transition: all .13s; }
.cal-cell.has:hover { border-color: var(--ink); transform: translateY(-1px); }
.cal-cell.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-daynum { font-weight: 600; }
.cal-dots { position: absolute; left: 7px; bottom: 6px; display: flex; gap: 3px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.cal-cell.sel .cal-dots i { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.cal-more { position: absolute; right: 6px; bottom: 4px; font-size: 9px; color: inherit; opacity: .7; }
.cal-list { overflow-y: auto; margin-top: 12px; border-top: 1px solid var(--hairline); padding-top: 4px; }

/* ---------- LIVE ---------- */
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: #10B981; animation: livePulse 1.4s ease-in-out infinite;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: var(--glas2); backdrop-filter: blur(8px);
  border: 1px solid rgba(16,185,129,.4); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  box-shadow: 0 2px 12px rgba(16,185,129,.18);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  animation: springIn .5s cubic-bezier(.22,1.4,.36,1) both .7s;
}
.live-pill:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 20px rgba(16,185,129,.3); }
.live-pill .live-cta { color: #059669; font-weight: 700; margin-left: 2px; }
.d-live { background: #10B981; margin-bottom: 10px; }
.d-live:hover { box-shadow: 0 8px 20px rgba(16,185,129,.35); }
.d-live .live-dot { background: var(--card); }
.row-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #059669;
  background: rgba(16,185,129,.1); border-radius: 999px; padding: 4px 10px;
}
.live-panel { padding: 22px 24px; overflow-y: auto; display: block; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head h2 { font-family: var(--serif); font-size: 19px; font-weight: 700; flex: 1; line-height: 1.2; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #fff;
  background: #10B981; border-radius: 999px; padding: 5px 11px;
}
.live-badge i { width: 6px; height: 6px; border-radius: 999px; background: var(--card); animation: livePulse 1.4s infinite; }
.live-stats { display: flex; gap: 8px; margin: 16px 0 4px; }
.live-stats > div {
  flex: 1; text-align: center; background: var(--flade); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 10px 4px;
}
.live-stats strong { font-size: 17px; display: block; letter-spacing: -.01em; }
.live-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.live-sec { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.lb-list { position: relative; height: 270px; } /* 5 × 54px - rækkerne glider via transform */
.live-row {
  display: flex; align-items: center; gap: 10px;
  position: absolute; left: 0; right: 0; height: 54px; box-sizing: border-box; padding: 6px 0;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .35s ease;
  will-change: transform;
}
.live-pos { width: 20px; font-size: 12px; font-weight: 800; color: var(--faint); text-align: center; flex: none; }
.live-main { flex: 1; min-width: 0; }
.live-navn { font-size: 13px; font-weight: 600; }
.live-bib { color: var(--faint); font-weight: 500; font-size: 11.5px; }
.live-bar { height: 4px; background: rgba(56,36,13,.08); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.live-bar i { display: block; height: 100%; background: #10B981; border-radius: 4px; transition: width .8s linear; }
.live-km { font-size: 12px; font-weight: 700; flex: none; }
.live-feed { display: flex; flex-direction: column; gap: 4px; }
.feed-item {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  background: var(--flade); border-radius: 10px; padding: 8px 12px;
  animation: rise .35s cubic-bezier(.22,1,.36,1) both;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feed-item:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(56,36,13,.12); border-color: var(--hairline); }
.feed-item > div { flex: 1; }
.feed-tid { font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-caret { color: var(--faint); font-size: 10px; transition: transform .2s; }
.feed-item.open .feed-caret { transform: rotate(180deg); }
.feed-tom { font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.feed-detail {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px; margin-top: -2px; animation: springIn .35s cubic-bezier(.22,1.4,.36,1) both;
}
.fd-stats { display: flex; gap: 6px; }
.fd-stats > div { flex: 1; text-align: center; background: var(--flade); border-radius: 9px; padding: 7px 2px; }
.fd-stats strong { display: block; font-size: 14px; }
.fd-stats span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fd-splits { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.split {
  font-size: 10.5px; font-variant-numeric: tabular-nums; background: var(--flade);
  border-radius: 999px; padding: 4px 9px; font-weight: 600;
}
.split em { font-style: normal; color: var(--faint); margin-right: 5px; font-weight: 500; }
.fd-fotos {
  width: 100%; border: 1px solid var(--hairline); background: none; border-radius: 9px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 9px 0; cursor: pointer; transition: color .15s, border-color .15s;
}
.fd-fotos:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Runnin Fotos ---------- */
.photos-link { margin-top: 8px; }
.foto-overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  overflow-y: auto; padding: calc(28px + env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 40px;
}
.foto-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.foto-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.foto-head h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.bib-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.bib-input {
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 16px; width: 190px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.bib-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(56,36,13,.08); }
.bib-btn {
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: #fff;
  background: var(--coral); border: 0; border-radius: 12px; padding: 13px 20px; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.bib-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(192,88,0,.35); }
.bib-status { font-size: 13px; color: var(--muted); }
.route-strip { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; }
.route-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.route-line { position: relative; flex: 1; height: 2px; background: rgba(56,36,13,.14); border-radius: 2px; }
.route-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 11px; height: 11px; border-radius: 999px; background: var(--coral);
  border: 2px solid var(--paper); box-shadow: 0 0 0 1px rgba(56,36,13,.15); cursor: pointer; padding: 0;
  transition: transform .15s;
}
.route-dot:hover { transform: translate(-50%, -50%) scale(1.5); }
.foto-grid { columns: 4 260px; column-gap: 14px; margin-top: 18px; }
.foto-card {
  break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden;
  cursor: pointer; animation: rise .5s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 2px 10px rgba(56,36,13,.08);
}
.foto-card img { display: block; width: 100%; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.foto-card:hover img { transform: scale(1.04); }
.foto-card figcaption {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; align-items: baseline;
  background: var(--glas2); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 12px; font-size: 11px; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.foto-card figcaption span { color: var(--muted); }
.foto-card:hover figcaption { opacity: 1; transform: none; }
.foto-note { margin-top: 8px; font-size: 11.5px; color: var(--faint); }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(12, 14, 20, .93);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  animation: rise .2s ease both;
}
.lightbox figure { max-width: min(1100px, 88vw); margin: 0; }
.lightbox img { max-width: 100%; max-height: 72vh; border-radius: 10px; display: block; }
.lightbox figcaption { color: rgba(255,255,255,.75); font-size: 13px; text-align: center; margin-top: 12px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px;
  width: 44px; height: 44px; font-size: 22px; cursor: pointer; transition: background .15s;
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-actions { display: flex; gap: 10px; }
.lb-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 700; text-decoration: none;
  background: var(--coral); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer;
}
.lb-btn.ghost { background: rgba(255,255,255,.12); }

/* ---------- dashboard ---------- */
.pm-dash { font-weight: 700 !important; background: var(--flade) !important; }
.pm-dash:hover { background: var(--ink) !important; color: #fff !important; }
@keyframes dashIn {
  0% { opacity: 0; transform: translateY(18px) scale(.98); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.002); }
  100% { opacity: 1; transform: none; }
}
.dash-in { animation: dashIn .55s cubic-bezier(.22,1.2,.36,1) both; animation-delay: calc(var(--i) * 70ms); }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; max-width: 1060px; margin: 0 auto; }
.dash-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.dash-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 1060px; margin: 22px auto 0;
}
.dash-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--soft-shadow);
}
.dash-bred { grid-column: 1 / -1; }
.dash-hero { cursor: default; }
.dash-tal { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.dash-tal span { font-family: var(--serif); font-size: 64px; font-weight: 800; letter-spacing: -.03em; color: var(--coral); line-height: 1; font-variant-numeric: tabular-nums; }
.dash-tal small { font-size: 15px; font-weight: 600; color: var(--muted); }
.dash-næste { font-size: 19px; font-weight: 700; margin-top: 8px; }
.dash-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.dash-stats button {
  border: 1px solid var(--hairline); background: var(--flade); border-radius: 12px;
  font-family: var(--sans); padding: 13px 6px; cursor: pointer; text-align: center;
  transition: all .15s;
}
.dash-stats button:hover { border-color: var(--ink); transform: translateY(-1px); }
.dash-stats strong { display: block; font-size: 22px; letter-spacing: -.01em; }
.dash-stats span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dash-cal-head { display: flex; align-items: center; justify-content: space-between; }
.dash-cal-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dash-cal { margin-top: 10px; }
@keyframes calSlideL { 0% { opacity: 0; transform: translateX(26px); } 65% { opacity: 1; transform: translateX(-3px); } 100% { opacity: 1; transform: none; } }
@keyframes calSlideR { 0% { opacity: 0; transform: translateX(-26px); } 65% { opacity: 1; transform: translateX(3px); } 100% { opacity: 1; transform: none; } }
@keyframes calOutL { to { opacity: 0; transform: translateX(-16px); } }
@keyframes calOutR { to { opacity: 0; transform: translateX(16px); } }
.dash-cal.slide-l { animation: calSlideL .38s cubic-bezier(.22,1,.36,1) both; }
.dash-cal.slide-r { animation: calSlideR .38s cubic-bezier(.22,1,.36,1) both; }
.dash-cal.out-l { animation: calOutL .15s ease-in both; }
.dash-cal.out-r { animation: calOutR .15s ease-in both; }
.dash-cal-nav strong { transition: opacity .15s, transform .15s; display: inline-block; min-width: 128px; text-align: center; }
.dash-cal-nav strong.titel-skift { opacity: 0; transform: translateY(-3px); }
.dash-cal .cal-cell { min-height: 34px; font-size: 11px; padding: 3px 5px; }
.dash-cal .cal-cell.idag { border-color: var(--coral); border-width: 2px; }
.dash-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.dash-form > div { background: var(--flade); border-radius: 12px; text-align: center; padding: 12px 4px; }
.dash-form strong { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.dash-form span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dash-liste { margin-top: 6px; }
.dash-genveje { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dash-genveje button {
  border: 1px solid var(--hairline); background: var(--card); border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 10px 18px; cursor: pointer; transition: all .15s;
}
.dash-genveje button:hover { border-color: var(--ink); transform: translateY(-1px); }
.dash-settings { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.dash-profil-felter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.dash-profil-felter .login-label { margin-top: 0; }
.dash-profil-felter .cta { padding: 12px 24px; margin: 0; white-space: nowrap; }
.dash-settings-rk { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; margin-top: 4px; }
@media (max-width: 720px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-tal span { font-size: 52px; }
  .dash-profil-felter { grid-template-columns: 1fr; align-items: stretch; }
  .dash-settings-rk { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- footbar ---------- */
.footbar {
  position: fixed; z-index: 20; left: 32px; right: 32px; bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.footbar > * { pointer-events: auto; }
.legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--glas2); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 18px;
  font-size: 11.5px; color: var(--muted); box-shadow: var(--soft-shadow);
}
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; }
.counter {
  background: var(--glas2); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 18px;
  font-size: 11.5px; color: var(--muted); box-shadow: var(--soft-shadow); white-space: nowrap;
}
.counter strong { color: var(--ink); }

/* ---------- mobil ---------- */
@media (max-width: 720px) {
  /* transform-animation på headeren gør den til containing block for fixed
     børn (bottom nav) - ren fade i stedet på mobil */
  .nav { padding: calc(12px + env(safe-area-inset-top)) 14px 12px; gap: 8px; }
}
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  body.klar .nav { animation: navFade .5s ease both; }
  .nav-right { gap: 6px; }
  .login-btn { padding: 9px 14px; font-size: 12px; }
  .user-chip .user-name { display: none; } /* kun avatar på mobil */
  .user-chip { padding: 4px; }
  /* bottom nav: tabs flytter ned som app-bjælke */
  .tabs {
    position: fixed; left: 12px; right: 12px; top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 45; padding: 6px;
    background: var(--glas2);
    box-shadow: 0 8px 28px rgba(56,36,13,.18);
    animation: springIn .5s cubic-bezier(.22,1.4,.36,1) both .3s;
  }
  .tab { flex: 1; text-align: center; padding: 12px 4px; font-size: 12.5px; }
  .hero { left: 16px; right: 16px; top: calc(64px + env(safe-area-inset-top)); }
  .hero h1 { font-size: 27px; }
  .search-wrap { margin-top: 12px; }
  /* filtre som én vandret swipe-række i stedet for at stable */
  .pills {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-top: 10px;
    margin-right: -16px; padding-right: 16px;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; white-space: nowrap; padding: 8px 13px; font-size: 12.5px; }
  .live-pill { margin-top: 8px; padding: 8px 13px; font-size: 12.5px; }
  .detail, .panel { left: 16px; right: 16px; width: auto; }
  /* detaljepanel som bottom-sheet på mobil - væk fra hero'en */
  .detail { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); max-height: 64vh; overflow-y: auto; }
  .panel, .live-panel { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); max-height: 56vh; }
  .search-wrap { max-width: none; }
  .footbar {
    left: 16px; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom));
    justify-content: flex-end;
  }
  .legend { display: none; } /* farvekoderne læses via prikkerne selv på mobil */
  /* pinch-zoom er naturligt på mobil - skjul zoom-knapperne */
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; }
  /* 16px inputs: ellers auto-zoomer iOS ved fokus */
  .search, .login-field, .bib-input { font-size: 16px; }
  /* modaler: fuld bredde, bundforankret sheet-følelse */
  .cal-overlay, .login-overlay { padding: 0; align-items: flex-end; }
  .cal-modal, .login-modal {
    width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 20px 18px;
  }
  .cal-nav { padding-left: 0; gap: 8px; }
  .cal-head h2 { font-size: 18px; min-width: 0; }
  .cal-cell { min-height: 38px; padding: 4px 5px; font-size: 11px; }
  .cal-chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .cal-chip { white-space: nowrap; }
  .foto-overlay { padding: 20px 16px 32px; }
  .foto-grid { columns: 2 140px; column-gap: 10px; }
  .bib-input { width: 100%; }
  .bib-row { gap: 8px; }
  .lb-nav { width: 36px; height: 36px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .live-panel { bottom: 70px; max-height: 62vh; }
}
/* respektér reduceret bevægelse */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
