
.an-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.an-nav *, .an-palet *, .an-overlay * { box-sizing: border-box; }
.an-nav__ind {
    max-width: 80rem; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 640px) { .an-nav__ind { padding: 12px 24px; } }
@media (min-width: 1024px) { .an-nav__ind { padding: 12px 32px; } }

.an-logo {
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    color: #0f172a; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; flex-shrink: 0;
}
.an-logo img { height: 32px; width: auto; display: block; }

.an-nav__hoejre { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
@media (min-width: 640px) { .an-nav__hoejre { gap: 12px; } }

.an-ik { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.an-ik--20 { width: 20px; height: 20px; }


.an-soegeknap {
    display: flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 8px 0 13px; width: 280px; max-width: 32vw;
    border-radius: 999px; background: rgba(118, 118, 128, 0.12);
    color: rgba(60, 60, 67, 0.6); cursor: text;
    
    transition: background .15s, box-shadow .15s, opacity .18s ease .14s;
}
.an-soegeknap:hover { background: rgba(118, 118, 128, 0.18); }
.an-soegeknap:focus-within { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06); }
.an-soegeknap.an-skjult { opacity: 0; transition: opacity .08s ease; }
.an-soegeknap__input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: none; outline: none; background: none;
    font: inherit; font-size: .875rem; font-weight: 500; color: #1d1d1f; -webkit-appearance: none; appearance: none;
}
.an-soegeknap__input::placeholder { color: rgba(60, 60, 67, 0.6); opacity: 1; }
.an-soegeknap__input::-webkit-search-cancel-button { display: none; }
.an-soegeknap__lup {
    display: none; width: 100%; height: 100%; padding: 0; border: none; border-radius: inherit;
    background: none; color: inherit; align-items: center; justify-content: center; cursor: pointer;
}
.an-soegeknap__lup:focus-visible, .an-menuknap:focus-visible { outline: 2px solid #6C63FF; outline-offset: 2px; }
.an-kbd {
    font: inherit; font-size: .72rem; font-weight: 600; color: rgba(60, 60, 67, 0.55);
    border: 0.5px solid rgba(60, 60, 67, 0.2); background: rgba(255, 255, 255, 0.75); border-radius: 6px; padding: 1px 6px;
}
@media (max-width: 767px) {
    .an-soegeknap {
        width: 40px; height: 40px; padding: 0; max-width: none;
        border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; cursor: pointer;
    }
    .an-soegeknap:focus-within { box-shadow: none; }
    .an-soegeknap > .an-ik, .an-soegeknap__input, .an-soegeknap .an-kbd { display: none; }
    .an-soegeknap__lup { display: flex; }
}

.an-menuknap {
    display: flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 16px; border-radius: 999px;
    border: 1px solid #e2e8f0; background: #f8fafc; color: #0f172a;
    font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.an-menuknap:hover { background: #f1f5f9; }
@media (max-width: 767px) { .an-menuknap { height: 40px; } }


.an-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 280px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .2s cubic-bezier(0.16, 1, 0.3, 1), transform .2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 120; max-height: calc(100vh - 90px); overflow-y: auto;
}
.an-dropdown.an-aaben { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (max-width: 767px) { .an-dropdown { display: none; } }

.an-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.an-overlay.an-aaben { opacity: 1; pointer-events: auto; }
.an-ark {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
    background: #fff; border-radius: 24px 24px 0 0; padding: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}
.an-overlay.an-aaben .an-ark { transform: translateY(0); }
.an-ark__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.an-ark__titel { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-luk {
    width: 36px; height: 36px; border-radius: 999px; border: none; background: #f1f5f9; color: #64748b;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}

.an-menu-hoved { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; margin-bottom: 8px; }
.an-menu-hoved__navn { font-size: .875rem; font-weight: 700; color: #0f172a; }
.an-rolle {
    display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    background: #f1f5f9; color: #64748b;
}
.an-rolle--arr { background: #f0efff; color: #6C63FF; }
.an-menupunkt {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 16px; border-radius: 12px; border: none; background: none;
    color: #334155; font: inherit; font-size: .95rem; font-weight: 600; text-align: left;
    text-decoration: none; cursor: pointer; transition: background .15s;
}
.an-menupunkt:hover, .an-menupunkt:focus-visible { background: #f1f5f9; color: #0f172a; outline: none; }
.an-menupunkt .an-ik { color: #64748b; width: 20px; height: 20px; }
.an-menupunkt[aria-current="page"] { color: #6C63FF; background: #f5f4ff; }
.an-menupunkt[aria-current="page"] .an-ik { color: #6C63FF; }
.an-menupunkt--fare { color: #ef4444; }
.an-menupunkt--fare .an-ik { color: #ef4444; }
.an-menupunkt--fare:hover { background: #fef2f2; color: #dc2626; }
.an-menu-skille { height: 1px; background: #f1f5f9; margin: 8px 0; }
.an-menu-gruppe { padding: 8px 16px 4px; font-size: .7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }


.an-palet {
    --an-accent: #6C63FF;
    --an-tekst: #1d1d1f;
    --an-graa: rgba(60, 60, 67, 0.6);
    --an-hairline: rgba(60, 60, 67, 0.14);
    --an-fjeder: cubic-bezier(0.32, 0.72, 0, 1);
    position: fixed; inset: 0; z-index: 200; display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Outfit', system-ui, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--an-tekst);
}
.an-palet.an-synlig { display: block; }
.an-palet__baggrund {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .22s ease;
}
.an-palet.an-aaben .an-palet__baggrund { opacity: 1; }


.an-palet__boks {
    position: absolute; left: 50%; top: 13vh;
    width: min(680px, calc(100% - 32px)); max-height: 72vh;
    margin-left: calc(min(680px, calc(100% - 32px)) / -2);
    display: flex; flex-direction: column;
    background: rgba(250, 250, 252, 0.82);
    -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06), 0 30px 80px -10px rgba(0, 0, 0, 0.32);
    opacity: 0; transform-origin: 0 0; transform: var(--an-fra, translate(1.5%, -8px) scale(0.97));
    transition: opacity .16s ease .14s, transform .3s var(--an-fjeder);
}
.an-palet.an-aaben .an-palet__boks { opacity: 1; transform: none; transition: opacity .12s ease, transform .42s var(--an-fjeder); }

.an-palet__felt { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; flex-shrink: 0; }
.an-palet__felt > .an-ik { width: 22px; height: 22px; color: rgba(60, 60, 67, 0.5); stroke-width: 2.2; }
.an-palet__input {
    flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none;
    font: inherit; font-size: 1.375rem; font-weight: 400; letter-spacing: -0.012em; color: var(--an-tekst);
}
.an-palet__input::placeholder { color: rgba(60, 60, 67, 0.38); }
.an-palet__input::-webkit-search-cancel-button { display: none; }
.an-palet__luk {
    border: none; background: rgba(118, 118, 128, 0.12); color: var(--an-graa); border-radius: 7px;
    font: inherit; font-size: .75rem; font-weight: 600; padding: 4px 8px; cursor: pointer; flex-shrink: 0;
}
.an-palet__liste {
    position: relative; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 8px 8px; border-top: 0.5px solid var(--an-hairline);
}
.an-palet__liste:empty { display: none; }

.an-palet__gruppe {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 12px 5px; font-size: .75rem; font-weight: 600; color: var(--an-graa);
}
.an-antal {
    font-size: .68rem; font-weight: 700; color: var(--an-graa);
    background: rgba(118, 118, 128, 0.12); border-radius: 999px; padding: 1px 7px;
}
.an-gruppe-kort { position: relative; }


.an-markor {
    position: absolute; left: 8px; right: 8px; top: 0; height: 0;
    border-radius: 10px; background: rgba(60, 60, 67, 0.09); pointer-events: none; opacity: 0;
    transition: transform .2s var(--an-fjeder), height .2s var(--an-fjeder), opacity .12s;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.03);
}
.an-markor.an-uden-glid { transition: none; }

.an-resultat {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 12px; min-height: 50px;
    padding: 8px 10px; border-radius: 10px;
    cursor: default; color: var(--an-tekst); text-decoration: none;
    transition: color .12s;
}
.an-resultat__ikon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #8f89ff, #635af2); color: #fff;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.an-resultat__ikon .an-ik { width: 17px; height: 17px; }
.an-resultat--event .an-resultat__ikon { background: linear-gradient(180deg, #ffb143, #ff8a00); }
.an-resultat--hjaelp .an-resultat__ikon { background: linear-gradient(180deg, #a6a6ab, #86868b); }
.an-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 600; color: #fff; letter-spacing: .02em;
    background: linear-gradient(180deg, hsl(var(--an-h), 62%, 62%), hsl(var(--an-h), 58%, 48%));
}
.an-resultat__tekst { flex: 1; min-width: 0; }
.an-resultat__titel { font-size: .9375rem; font-weight: 500; letter-spacing: -0.006em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-resultat__under { font-size: .8125rem; color: var(--an-graa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; transition: color .12s; }
.an-resultat__hoejre { font-size: .75rem; color: var(--an-graa); flex-shrink: 0; display: flex; align-items: center; gap: 6px; transition: color .12s; }
.an-resultat__enter { display: none; }

.an-resultat[aria-selected="true"] .an-resultat__enter { display: inline-flex; }
.an-resultat[aria-selected="true"] .an-resultat__type { display: none; }

.an-handlinger { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.an-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
    background: rgba(118, 118, 128, 0.12); color: #3a3a3c;
    font: inherit; font-size: .72rem; font-weight: 500; text-decoration: none; cursor: pointer;
    transition: background .12s, box-shadow .12s;
}
.an-chip:hover { background: rgba(118, 118, 128, 0.2); }
.an-chip .an-ik { width: 12px; height: 12px; }
.an-chip--valgt, .an-chip--valgt:hover {
    background: #fff; color: var(--an-tekst); font-weight: 600;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.12);
}


.an-ind { animation: an-ind .26s var(--an-fjeder) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes an-ind { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }


.an-skelet { display: flex; align-items: center; gap: 12px; padding: 9px 10px; }
.an-skelet span { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(118,118,128,.10) 25%, rgba(118,118,128,.20) 50%, rgba(118,118,128,.10) 75%); background-size: 200% 100%; animation: an-glimt 1.3s linear infinite; }
.an-skelet span:first-child { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.an-skelet div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
@keyframes an-glimt { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.an-flere { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: .8125rem; color: var(--an-graa); }
.an-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(118, 118, 128, 0.25); border-top-color: var(--an-graa);
    animation: an-drej .7s linear infinite;
}
@keyframes an-drej { to { transform: rotate(360deg); } }

.an-palet__tom { padding: 36px 20px 40px; text-align: center; color: var(--an-graa); font-size: .9375rem; line-height: 1.5; }
.an-palet__tom strong { display: block; color: var(--an-tekst); font-weight: 600; font-size: 1.0625rem; margin-bottom: 4px; }
.an-palet__tom a { color: var(--an-accent); font-weight: 500; text-decoration: none; }

.an-resultat--oenske .an-resultat__ikon { background: linear-gradient(180deg, #34c759, #248a3d); }
.an-oenske {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 32px 24px 28px; max-width: 440px; margin: 0 auto;
    animation: an-oenske-ind .28s var(--an-fjeder) both;
}
.an-oenske__ikon {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #34c759, #248a3d); color: #fff;
}
.an-oenske__ikon .an-ik { width: 22px; height: 22px; }
.an-oenske__ikon--ok { border-radius: 50%; animation: an-oenske-ok .45s var(--an-fjeder) both; }
.an-oenske__ikon--ok .an-ik { stroke-width: 3; }
.an-oenske__titel { font-size: 1.0625rem; font-weight: 600; color: var(--an-tekst); }
.an-oenske__tekst {
    margin-top: 12px; padding: 10px 14px; border-radius: 12px; max-width: 100%;
    background: rgba(120, 120, 128, 0.08); color: var(--an-tekst);
    font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere;
}
.an-oenske__info { margin: 12px 0 0; color: var(--an-graa); font-size: .8125rem; line-height: 1.5; }
.an-oenske__fejl { margin: 12px 0 0; color: #d70015; font-size: .8125rem; font-weight: 500; }
.an-oenske__knapper { display: flex; gap: 8px; margin-top: 20px; width: 100%; justify-content: center; }
.an-oenske__knap {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 120px; height: 38px; padding: 0 16px; border-radius: 10px;
    font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
    border: 0.5px solid var(--an-hairline); background: #fff; color: var(--an-tekst);
    transition: background .15s, opacity .15s;
}
.an-oenske__knap:hover:not(:disabled) { background: rgba(120, 120, 128, 0.08); }
.an-oenske__knap--send { background: var(--an-accent); border-color: transparent; color: #fff; }
.an-oenske__knap--send:hover:not(:disabled) { background: #5a52e0; }
.an-oenske__knap--send .an-kbd { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .3); color: #fff; }
.an-oenske__knap:disabled { opacity: .6; cursor: default; }
.an-oenske__knap:focus-visible { outline: 2px solid var(--an-accent); outline-offset: 2px; }

.an-palet__boks:has(.an-oenske) .an-palet__fod { display: none; }
@keyframes an-oenske-ind { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes an-oenske-ok { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .an-oenske, .an-oenske__ikon--ok { animation: none; } }
@media (max-width: 639px) {
    .an-oenske { padding-top: 40px; }
    .an-oenske__knap { flex: 1; min-width: 0; height: 44px; }
    .an-oenske__knap .an-kbd { display: none; }
}

.an-palet__fod {
    display: flex; gap: 16px; align-items: center; padding: 9px 18px; flex-shrink: 0;
    border-top: 0.5px solid var(--an-hairline); font-size: .72rem; color: var(--an-graa);
}
.an-palet__fod .an-kbd { margin-right: 4px; background: rgba(255,255,255,.7); border-color: var(--an-hairline); }
.an-palet__fod span { display: inline-flex; align-items: center; gap: 2px; }


@media (max-width: 639px) {
    .an-palet__baggrund { background: rgba(0, 0, 0, 0.25); }
    .an-palet__boks {
        inset: 0; top: 0; left: 0; width: 100%; max-height: none; height: 100%;
        margin-left: 0; border-radius: 0; background: #f2f2f7; box-shadow: none;
        -webkit-backdrop-filter: none; backdrop-filter: none;
        transform: translateY(24px); transition: opacity .22s ease, transform .38s var(--an-fjeder);
    }
    .an-palet.an-aaben .an-palet__boks { transform: none; }
    .an-palet__felt { height: auto; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; gap: 10px; }
    .an-palet__felt > .an-ik { display: none; }
    .an-palet__soegefelt {
        flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 38px;
        padding: 0 10px; border-radius: 11px; background: rgba(118, 118, 128, 0.12);
    }
    .an-palet__soegefelt .an-ik { width: 17px; height: 17px; color: rgba(60, 60, 67, 0.6); }
    .an-palet__input { font-size: 17px; height: 38px; }
    .an-palet__luk { background: none; color: var(--an-accent); font-size: 17px; font-weight: 400; padding: 0 2px; }
    .an-palet__liste { border-top: none; padding: 0 16px 24px; flex: 1; }
    .an-palet__gruppe { padding: 18px 16px 6px; font-size: .8125rem; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
    .an-gruppe-kort { background: #fff; border-radius: 12px; overflow: hidden; }
    .an-gruppe-kort .an-resultat { border-radius: 0; padding: 10px 14px; min-height: 54px; }
    .an-gruppe-kort .an-resultat + .an-resultat::before {
        content: ''; position: absolute; top: 0; right: 0; left: 58px; height: 0.5px; background: var(--an-hairline);
    }
    .an-gruppe-kort .an-resultat:active { background: #e5e5ea; }
    .an-markor { display: none; }
    .an-resultat[aria-selected="true"] .an-resultat__enter { display: none; }
    
    .an-chip--valgt, .an-chip--valgt:hover { background: #1d1d1f; color: #fff; box-shadow: none; }
    .an-resultat[aria-selected="true"] .an-resultat__type { display: inline; }
    .an-palet__fod { display: none; }
    .an-palet__tom { padding-top: 60px; }
}
@media (min-width: 640px) {
    .an-palet__soegefelt { display: contents; }
    .an-palet__soegefelt > .an-ik { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .an-palet__boks, .an-palet.an-aaben .an-palet__boks, .an-palet__baggrund, .an-markor, .an-soegeknap { transition: none; }
    .an-ind, .an-skelet span, .an-spinner { animation: none; }
}


.an-plads { height: 65px; }
