/* 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);
  --glas-solid: rgba(255, 255, 255, .97); /* touch-fallback: glas-look uden backdrop-blur */
  --serif: "Inter Tight", -apple-system, sans-serif; /* display */
  --sans: "Inter Tight", -apple-system, sans-serif;
}

/* alle klikbare elementer viser klik-hånd ved hover (specifikke cursor:default-regler vinder pga. højere specificitet) */
button, a, label[for], summary, [role="button"], [tabindex]:not([tabindex="-1"]) { cursor: pointer; }
button:disabled, .disabled, [aria-disabled="true"] { cursor: not-allowed; }

/* 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);
  --glas-solid: rgba(30, 21, 10, .96);
  --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-slank { padding-bottom: 9px; } /* chippen viser allerede foto+navn - menuen viser kun e-mailen */
.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;
  background: var(--coral); border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.avatar-kamera svg { width: 14px; height: 14px; color: #fff; display: block; }
.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 { transition: border-color .18s, box-shadow .18s, background .18s, transform .18s; }
.login-field:focus { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px rgba(56,36,13,.08); transform: translateY(-1px); }
.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); }

/* mobil-filter-ark: glid op fra bunden (slår .cal-modal springIn via 2-klasse-specificitet) */
@keyframes sheetUp { from { transform: translateY(101%); } to { transform: translateY(0); } }
.cal-modal.filter-sheet { animation: sheetUp .44s cubic-bezier(.22,1,.36,1) both; }

/* mobil-filter-ark (indhold) */
.filter-sheet .fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.filter-sheet .fs-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.fs-gruppe { margin-top: 18px; }
.fs-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 9px; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { 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 15px; cursor: pointer;
  transition: background .14s, color .14s, border-color .14s, transform .12s; }
.fs-chip:active { transform: scale(.96); }
.fs-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fs-near { margin-top: 14px; width: 100%; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 12px; cursor: pointer; }
.fs-actions { display: flex; gap: 10px; margin-top: 22px; }
.fs-ryd { flex: none; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--hairline); border-radius: 14px; padding: 13px 18px; cursor: pointer; }
.fs-ryd[disabled] { opacity: .4; }
.fs-vis { flex: 1; font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: #fff;
  background: var(--coral); border: none; border-radius: 14px; padding: 13px; cursor: pointer; box-shadow: 0 8px 20px rgba(192,88,0,.28); }
.fs-vis:active { transform: scale(.99); }

.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: 55; 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; color: var(--ink);
  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; }

/* Anmeldelser på detaljen */
.d-reviews { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.d-reviews:empty { display: none; }
.rv-hoved { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rv-titel { font-size: 13px; font-weight: 700; color: var(--ink); }
.rv-snit { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rv-snit b { color: var(--ink); }
.stj { color: rgba(126,106,80,.35); font-size: 14px; letter-spacing: -1px; }
.stj.fyldt { color: #E8A13A; }
.stj.lille { font-size: 12px; }
.rv-skriv { margin-top: 12px; background: var(--flade); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; }
.rv-label { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.rv-vaelg .stj { font-size: 26px; cursor: pointer; letter-spacing: 1px; transition: transform .1s; }
.rv-vaelg .stj:hover { transform: scale(1.15); }
.rv-tekst { width: 100%; margin-top: 10px; border: 1px solid var(--hairline); border-radius: 9px; padding: 9px 11px;
  font: inherit; font-size: 13px; color: var(--ink); background: var(--bg, #fff); resize: vertical; min-height: 54px; }
html[data-tema="mørk"] .rv-tekst { background: rgba(0,0,0,.18); }
.rv-tekst:focus { outline: none; border-color: var(--coral); }
.rv-send { margin-top: 10px; padding: 10px 16px; font-size: 13.5px; }
.rv-fejl { margin-top: 8px; font-size: 12px; color: #B3261E; }
.rv-tom { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.rv-login-link, .rv-tom .rv-login-link { background: none; border: none; color: var(--coral); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.rv-liste { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.rv-kort { border-left: 2px solid transparent; padding-left: 10px; }
.rv-kort.ven { border-left-color: var(--coral); }
.rv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rv-navn { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.rv-navn em { color: var(--muted); font-weight: 500; font-style: normal; }
.rv-dato { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rv-str { margin-top: 2px; }
.rv-txt { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.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: var(--soft-shadow); }
.search:focus-visible { outline: none; } /* ingen caramel-ring om søgefeltet - ren kant er nok */
.search::placeholder { color: var(--faint); }

/* filter-knap inde i søgebaren (kun mobil - desktop har de fritstående piller) */
.search-filter { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink); color: #fff; align-items: center; justify-content: center; transition: transform .12s, background .15s; }
.search-filter:active { transform: translateY(-50%) scale(.92); }
.search-filter::before { content: ""; width: 15px; height: 15px; background: currentColor;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18l-7 8.5V20l-4-2.2v-5.3z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: var(--m); mask: var(--m); }
.search-filter.on { background: var(--coral); }
.sf-prik { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 999px;
  background: var(--coral); border: 1.5px solid var(--card); }
.search-filter.on .sf-prik { background: #fff; border-color: var(--coral); }
.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,
.search-menu button.aktiv { background: var(--flade); }
.search-menu button.aktiv { box-shadow: inset 2px 0 0 var(--coral); }
.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; }
/* Tilføj-løb-knap i søgemenuen + to-kolonne-felter i modalen */
.tilfoej-knap { display: block; width: 100%; text-align: left; padding: 11px 14px; border: none; background: none;
  border-top: 1px solid var(--hairline); color: var(--coral); font-size: 13px; font-weight: 700; cursor: pointer; }
.tilfoej-knap:hover { background: var(--flade); }
.add-row { display: flex; gap: 10px; }
.add-row > div { flex: 1; min-width: 0; }
select.login-field { appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }
.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: 80; /* over fuldskærms-lagene (liste/dashboard = 70) */
  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, .dash-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; }
.live-under { font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 0 0 6px; }
.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;
}
@media (min-width: 1500px) {
  .dash-grid { max-width: 1500px; grid-template-columns: repeat(3, 1fr); }
  .dash-head { max-width: 1500px; }
}
.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;
  color: var(--ink); /* knapper arver ikke farve - uden denne er tallene sorte i mørk tilstand */
  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 auto 1fr; gap: 28px; 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); }
.counter-opd { color: var(--faint); }

/* ---------- 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(6px + 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; white-space: nowrap; }
  /* Liste ER kommende løb-visningen på mobil - side-panel-fanen skjules */
  .tab[data-tab="lob"] { display: none; }
  .hero { left: 16px; right: 16px; top: calc(64px + env(safe-area-inset-top)); }
  .hero h1 { font-size: 27px; }
  .search-wrap { margin-top: 12px; }
  /* mobil: filtrene bor i søgebarens højre side - hele pille-rækken forsvinder */
  .pills { display: none; }
  .search { padding-right: 50px; }
  .search-filter { display: inline-flex; }
  .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; }
  /* ⓘ-attribution væk fra hjemmeindikatoren: nederst-venstre, løftet over nav'en
     (OSM/OpenMapTiles kræver den tilgængelig - må ikke skjules helt) */
  .maplibregl-ctrl-bottom-right { left: 10px; right: auto; bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* 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 calc(20px + env(safe-area-inset-bottom));
  }
  .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; }
  /* dash + foto lægger header/luk-knap direkte i overlayet (ingen .liste-indre),
     så de skal selv rydde Dynamic Island/statuslinje - listen håndteres i .liste-indre */
  .foto-overlay:not(.liste-overlay) { padding-top: calc(20px + env(safe-area-inset-top)); }
  .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; }
}

/* ---------- bevægelses-etik + polish ---------- */
/* farver glider ved temaskift (klassen sidder kun på i ~450 ms) */
html.tema-glid, html.tema-glid *, html.tema-glid *::before, html.tema-glid *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}
/* gem-hjertet giver et lille spring når det tændes */
@keyframes gemPop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.d-actions button.on i, .save.saved { animation: gemPop .38s cubic-bezier(.22,1.4,.36,1); }
/* synligt tastatur-fokus - kun ved tastatur (:focus-visible), aldrig ved klik */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
/* respekter nedsat bevægelse: alt væsentligt indhold står stille */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* live-menu: dropdown fra live-pillen med de aktive løb */
.live-menu {
  position: fixed; z-index: 60; min-width: 280px; max-width: 360px; max-height: 340px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--card-shadow); padding: 8px;
  transform-origin: top left; animation: foldDown .32s cubic-bezier(.22,1.4,.36,1) both;
}
.live-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; border-radius: 10px;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  padding: 10px 10px; transition: background .13s;
}
.live-menu button:hover { background: var(--flade); }
.live-menu .lm-navn { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-menu .lm-sted { font-size: 11.5px; color: var(--muted); flex: none; }
/* årets mål: deltagelses-ring (gennemførte løb i år) */
.mål-flade { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.mål-ring .mål-tal { font: 700 15px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.mål-bue { transition: stroke-dashoffset .9s cubic-bezier(.22,1,.36,1); }
.mål-tekst { flex: 1; min-width: 0; }
.mål-tekst strong { display: block; font-size: 14px; }
.mål-tekst span { font-size: 12px; color: var(--muted); }
.mål-justering { display: flex; gap: 6px; margin-top: 8px; }
.mål-justering button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--hairline);
  background: var(--card); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer;
}
.mål-justering button:hover { border-color: var(--ink); }
.r-afholdt { color: var(--faint); font-weight: 600; line-height: 1.5; }
/* klynge-hover: liste over løbene i klyngen */
.hc-liste { margin-top: 8px; }
.hc-liste div { display: flex; align-items: center; gap: 7px; padding: 3.5px 0; font-size: 12px; }
.hc-liste i { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.hc-l-navn { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.hc-l-dato { color: var(--muted); font-size: 11px; flex: none; }
.dash-idag { font-size: 44px; letter-spacing: .02em; color: var(--coral); }
/* toast: rolig besked nederst - bruges til tilmeldings-påmindelser */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--card-shadow); padding: 14px 16px;
  animation: toastOp .45s cubic-bezier(.22,1.4,.36,1) both;
}
@keyframes toastOp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast-tekst { font-size: 13px; line-height: 1.5; }
.toast-knapper { margin-top: 8px; }
.toast-knapper:empty { display: none; }
.toast-cta {
  border: 0; background: none; color: var(--coral); font-family: var(--sans);
  font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.toast-cta:hover { text-decoration: underline; }
@media (max-width: 720px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.mål-justering { align-items: center; }
.mål-justering span { font-size: 11px; color: var(--faint); margin-right: 2px; }
/* brand er nu en knap - behold udseendet, tilføj kun affordance */
button.brand { border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink); }
button.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark { transition: transform .25s cubic-bezier(.22,1.4,.36,1); }
/* profilmenu: ensartede streg-ikoner i dæmpet blæk */
.pm-items svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-items button:hover svg { stroke: var(--ink); }
/* legend er et filter: klik toggler typen */
.legend button {
  border: 0; background: none; font-family: var(--sans); font-size: inherit; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 6px;
  border-radius: 8px; transition: background .15s, opacity .2s;
}
.legend button:hover { background: var(--flade); }
.legend button.on { background: var(--flade); font-weight: 700; }
.legend button.dæmpet { opacity: .38; }
/* din egen række i live-leaderboardet */
.live-row.live-dig { background: rgba(192,88,0,.07); border-radius: 10px; }
.live-row.live-dig .live-navn { color: var(--coral); font-weight: 700; }
/* login-fejl: rolig rød linje; .rolig = neutral info (fx bekræft e-mail) */
.login-fejl { font-size: 12.5px; color: #B3261E; background: rgba(179,38,30,.07); border-radius: 10px; padding: 9px 12px; margin-top: 12px; line-height: 1.5; }
.login-fejl.rolig { color: var(--ink); background: var(--flade); }
#opretKonto { width: 100%; margin-top: 10px; }
/* login-modal: skift mellem log ind/opret */
.login-skift { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.login-skift button { border: 0; background: none; color: var(--coral); font-family: var(--sans); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.login-skift button:hover { text-decoration: underline; }
.login-modal.skifter #navnWrap:not([hidden]) { animation: rise .35s cubic-bezier(.22,1,.36,1) both; }
#opretKonto { display: none; } /* udgået knap - beholdt som død regel-sanering */

/* login-modal: motion-lag */
.cta:active { transform: translateY(0) scale(.985); }
/* tilstands-skift: titel + felter hopper blødt på plads i kaskade */
.login-modal.skifter .login-title { animation: rise .3s cubic-bezier(.22,1.4,.36,1) both; }
.login-modal.skifter .login-label,
.login-modal.skifter .login-field { animation: rise .34s cubic-bezier(.22,1,.36,1) both; }
.login-modal.skifter .login-label:nth-of-type(2), .login-modal.skifter .login-field:nth-of-type(2) { animation-delay: .04s; }
.login-modal.skifter .login-label:nth-of-type(3), .login-modal.skifter .login-field:nth-of-type(3) { animation-delay: .08s; }
.login-modal.skifter .login-cta { animation: rise .34s cubic-bezier(.22,1,.36,1) both .12s; }
/* fejl: kommer ind med et lille, roligt ryst - info (.rolig) glider bare op */
@keyframes loginRyst { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 55% { transform: translateX(3px); } 80% { transform: translateX(-2px); } }
.login-fejl { animation: rise .25s cubic-bezier(.22,1,.36,1) both, loginRyst .4s ease .12s; }
.login-fejl.rolig { animation: rise .3s cubic-bezier(.22,1,.36,1) both; }
/* adgangskode-øjet */
.pw-felt { position: relative; }
.pw-felt .login-field { padding-right: 44px; width: 100%; }
.pw-øje {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer; padding: 8px; border-radius: 8px;
  display: flex; align-items: center; transition: background .15s;
}
.pw-øje:hover { background: var(--flade); }
.pw-øje svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.pw-øje:hover svg { stroke: var(--ink); }
/* succes-tilstand: rolig, tydelig, IKKE en fejl */
.login-succes { text-align: center; padding: 8px 0 4px; animation: rise .4s cubic-bezier(.22,1.4,.36,1) both; }
.succes-mærke {
  width: 54px; height: 54px; margin: 6px auto 14px; border-radius: 999px;
  background: #10B981; color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  animation: gemPop .5s cubic-bezier(.22,1.4,.36,1) both .15s;
}
.login-succes h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.login-succes p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.login-succes strong { color: var(--ink); }
/* ---------- fuldskærms-listevisning ---------- */
.liste-overlay { overflow-y: auto; }
.liste-indre { max-width: 1280px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) clamp(16px, 3vw, 48px) calc(90px + env(safe-area-inset-bottom)); }
.liste-indre .dash-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin-bottom: 4px; }
.liste-styr { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.liste-scope { flex-wrap: wrap; }
.liste-scope .tema-chip { flex: none; }
.liste-styr-højre { display: flex; align-items: center; gap: 12px; }
.liste-antal { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-gruppe {
  position: sticky; top: 0; z-index: 2;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral);
  background: var(--paper); padding: 12px 4px 6px; margin-bottom: 8px; border-bottom: 1px solid var(--hairline);
}
.l-række {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--hairline); background: var(--card);
  transition: transform .18s cubic-bezier(.22,1.4,.36,1), box-shadow .18s, border-color .15s;
}
.l-række:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); border-color: rgba(56,36,13,.28); }
.l-main { flex: 1; min-width: 0; }
.l-navn { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-side { display: flex; align-items: center; gap: 8px; flex: none; }
.l-pris { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .liste-indre { padding-top: calc(10px + env(safe-area-inset-top)); }
  .l-pris { display: none; }
}
/* tab-hover-dropdowns */
.tab-menu { min-width: 300px; }
.tm-række {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; border-radius: 10px;
  font-family: var(--sans); font-size: 13px; color: var(--ink); padding: 9px 10px; transition: background .13s;
}
.tm-række:hover { background: var(--flade); }
.tm-række i { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.tm-stats { display: flex; gap: 8px; padding: 4px 4px 10px; }
.tm-stats div { flex: 1; background: var(--flade); border-radius: 10px; text-align: center; padding: 10px 4px; }
.tm-stats strong { display: block; font-size: 17px; }
.tm-stats span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tm-sek { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--coral); padding: 8px 10px 4px; }
.tm-næste { font-size: 12px; color: var(--muted); background: var(--flade); border-radius: 10px; padding: 9px 12px; margin: 2px 2px 8px; }
.tm-tom { font-size: 12.5px; color: var(--muted); padding: 10px; line-height: 1.5; }
.tm-cta {
  display: block; width: 100%; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--coral);
  text-align: center; padding: 10px 0 6px; border-top: 1px solid var(--hairline); margin-top: 6px;
}
.tm-cta:hover { text-decoration: underline; }
/* listevisningens type-vælger + sektioner */
.l-typer { display: flex; gap: 8px; margin: 4px 0 10px; overflow-x: auto; scrollbar-width: none; }
.l-typer::-webkit-scrollbar { display: none; }
.l-type {
  flex: none; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; cursor: pointer;
  font-family: var(--sans); color: var(--ink); padding: 8px 14px;
  transition: transform .18s cubic-bezier(.22,1.4,.36,1), border-color .15s, background .15s;
}
.l-type:hover { transform: translateY(-2px); border-color: var(--ink); }
.l-type.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.l-type i { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.l-type strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.l-type span { font-size: 11px; font-weight: 600; color: var(--muted); }
.l-type.on span { color: var(--paper); opacity: .75; }
.l-sek { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin: 10px 4px 6px; display: flex; align-items: center; gap: 7px; }
.l-hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.l-hscroll::-webkit-scrollbar { display: none; }
.l-minikort {
  flex: none; width: 178px; text-align: left; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--card); border-radius: 12px; padding: 9px 12px;
  font-family: var(--sans); color: var(--ink);
  transition: transform .18s cubic-bezier(.22,1.4,.36,1), box-shadow .18s;
}
.l-minikort:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.l-minikort strong { display: block; font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-minikort span { font-size: 11px; color: var(--muted); }
.l-gruppe-antal { color: var(--faint); font-weight: 600; letter-spacing: 0; text-transform: none; }
@media (max-width: 720px) { .l-typer { flex-wrap: wrap; overflow: visible; } }
.cal-hover { z-index: 90; } /* over kalender-modalen (80) */
/* højdeprofil + depoter (officielle ruter) */
.profil { width: 100%; height: 58px; display: block; margin: 2px 0 6px; }
.profil-flade { fill: rgba(192,88,0,.14); }
.profil-linje { fill: none; stroke: var(--coral); stroke-width: .7; vector-effect: non-scaling-stroke; }
.profil-station { fill: #fff; stroke: var(--coral); stroke-width: .6; }
.depot-liste { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.depot { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.depot i { width: 7px; height: 7px; border-radius: 99px; background: #fff; border: 2px solid var(--coral); }
.depot b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* toplister */
.liste-smal { max-width: 880px; }
.top-søg { max-width: 220px; margin: 0; padding: 10px 14px; font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 16px; align-items: start; }
.podium-kort {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  text-align: center; padding: 16px 10px 14px; position: relative;
  transition: transform .2s cubic-bezier(.22,1.4,.36,1);
}
.podium-kort:hover { transform: translateY(-2px); }
/* sejrsskammel: 1. øverst, 2. et trin nede, 3. nederst */
.podium-1 { order: 2; border-color: rgba(192,88,0,.45); box-shadow: 0 6px 22px rgba(192,88,0,.14); transform: scale(1.04); }
.podium-1:hover { transform: scale(1.04) translateY(-2px); }
.podium-2 { order: 1; margin-top: 12px; } .podium-3 { order: 3; margin-top: 22px; }
.podium-medalje { font-size: 22px; }
.podium-tid { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.podium-1 .podium-tid { font-size: 26px; color: var(--coral); }
.podium-navn { font-size: 13px; font-weight: 700; margin-top: 3px; }
.podium-løb { font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-liste { display: flex; flex-direction: column; }
.top-række {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--hairline); border-radius: 12px;
  transition: background .13s;
}
.top-række:hover { background: var(--card); }
.top-plac { width: 26px; text-align: right; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.top-flag { flex: none; font-size: 15px; }
.top-main { flex: 1; min-width: 0; }
.top-linje1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.top-linje1 strong { font-size: 14px; white-space: nowrap; }
.top-by { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-løb { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-højre { flex: none; text-align: right; }
.top-tid { font-variant-numeric: tabular-nums; font-size: 15px; display: block; }
.top-pace { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.top-match { background: rgba(192,88,0,.12) !important; border-radius: 10px; }
@media (max-width: 720px) {
  .podium { gap: 7px; }
  .podium-tid { font-size: 17px; } .podium-1 .podium-tid { font-size: 20px; }
  .top-søg { max-width: 100%; width: 100%; }
  .tab { padding: 12px 2px; font-size: 11.5px; }
}
.top-dæmpet { opacity: .28; }
.d-rute { color: var(--coral); font-weight: 650; }

.podium-pace { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.podium-by { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-regioner { display: flex; gap: 8px; margin: 4px 0 10px; }
/* aktive-filtre-chips (nederst, over legend) */
.aktive-filtre {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 92vw;
  animation: rise .3s cubic-bezier(.22,1.4,.36,1) both;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: 7px 14px;
  box-shadow: var(--soft-shadow); transition: transform .15s;
}
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip span { opacity: .6; font-size: 11px; }
.filter-chip:hover span { opacity: 1; }
.filter-ryd-alle { background: var(--card); color: var(--muted); border: 1px solid var(--hairline); }
@media (max-width: 720px) { .aktive-filtre { bottom: calc(150px + env(safe-area-inset-bottom)); } }
/* usynlig bro mellem fane og dropdown, så musen ikke "falder ud" i mellemrummet */
.tab-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.counter-guides { color: var(--muted); text-decoration: none; }
.counter-guides:hover { color: var(--coral); }
/* Facebook-login i login-modalen */
.fb-login { width: 100%; border: 0; border-radius: 14px; padding: 13px; margin-top: 4px;
  background: #1877F2; color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: filter .15s; }
.fb-login:hover { filter: brightness(1.07); }
.fb-logo { width: 17px; height: 17px; }
/* Google-login: hvid m. hårlinje, tekst i blæk */
.google-login { width: 100%; border: 1px solid var(--hairline); border-radius: 14px; padding: 12px; margin-top: 8px;
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: background .15s; }
.google-login:hover { background: #f7f5f0; }
.g-logo { width: 17px; height: 17px; }
.d-venner { color: var(--coral); font-weight: 600; font-size: 14px; }
/* "tilbage til kloden"-kontrol - stables OVER zoom-kontrollen, kun synlig når zoomet ind */
.globe-ctrl { order: -1; display: none !important; }
.globe-ctrl.vis { display: block !important; animation: globeIn .22s ease; }
.globe-ctrl button { color: var(--ink); }
.globe-ctrl button:hover { color: var(--coral) !important; }
@keyframes globeIn { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }
/* zoom-kontrollen matcher globe-knappen: samme afrundede kort-look, ikke default grå */
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { border-radius: 11px !important; background: var(--card) !important;
  border: 1px solid var(--hairline) !important; box-shadow: var(--card-shadow) !important; overflow: hidden !important; margin-right: 10px; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button { width: 40px !important; height: 40px !important;
  background: transparent !important; border-radius: 0 !important; border: 0 !important; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button + button { border-top: 1px solid var(--hairline) !important; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:hover { background: rgba(56, 36, 13, .05) !important; }
.del-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-top: 4px; }
.del-toggle input { width: 20px; height: 20px; accent-color: var(--coral); margin-top: 1px; flex: 0 0 auto; }
.del-toggle span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.del-toggle small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* klima-graf på løbsdetaljen (12 måneder, løbsmåneden fremhævet) */
.klima { margin-top: 2px; }
.klima-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }
.klima-h span:first-child { font-size: 14px; font-weight: 700; color: var(--ink); }
.klima-note { font-size: 11px; color: var(--muted); font-weight: 600; }
.klima-strip { display: flex; gap: 4px; align-items: flex-end; height: 78px; }
.kmo { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.kmo em { height: 13px; line-height: 13px; font-size: 10px; font-weight: 800; font-style: normal; color: var(--coral); }
.kmo i { width: 100%; border-radius: 4px; background: #EFE2D2; min-height: 4px; display: block; }
.kmo b { font-size: 8.5px; color: var(--muted); font-weight: 600; font-style: normal; letter-spacing: -.2px; }
.kmo.on i { background: linear-gradient(180deg, #E79A55, var(--coral)); }
.kmo.on b { color: var(--coral); font-weight: 800; }
.klima-legend { display: flex; gap: 16px; margin-top: 11px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.klima-legend b { color: var(--ink); font-weight: 700; }
.login-deler { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; color: var(--muted); font-size: 12px; }
.login-deler::before, .login-deler::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ---------- touch-enheder: pinch/pan skal være lige så smooth som desktop ---------- */
/* backdrop-blur over det animerende kort-canvas koster en re-komposition PR. FRAME
   under pinch/pan på mobil-GPU'er. Den permanent synlige chrome dropper blur på touch -
   glas-farverne er næsten opake, så udtrykket holder. Modaler beholder blur (kortet
   står stille bag dem). */
@media (pointer: coarse) {
  .tabs, .login-btn, .user-chip, .live-pill, .legend, .counter {
    backdrop-filter: none;
    background: var(--glas-solid);
  }
}
/* dræb dobbelt-tap-zoom + tap-forsinkelse på al chrome (kortets canvas styrer selv
   sine gestures via MapLibre og røres ikke af denne regel) */
body, button, a, .tabs, .pill, .legend, .counter, .live-pill { touch-action: manipulation; }
