:root {
    --bg: #F5EFE3;
    --bg-card: #FDFAF5;
    --bg-card-hover: #F0F7EE;
    --bg-input: #E8F2E5;
    --border: #C4D9BF;
    --text: #1A2E1A;
    --text-dim: #4A6B47;
    --text-muted: #7A9E76;
    --accent: #3A7D44;
    --accent-dim: rgba(58,125,68,0.10);
    --accent-glow: rgba(58,125,68,0.25);
    --orange: #5FAD41;
    --orange-dim: rgba(95,173,65,0.12);
    --red: #C03030;
    --radius: 14px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }

/* ── Background effects ─────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(58,125,68,0.06), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(95,173,65,0.07), transparent);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Nav ─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(245,239,227,0.82);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
}

.nav-logo span { color: var(--text); }

.nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.25s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--accent-dim);
}

.nav-links a.active { color: var(--accent); }

.nav-badge {
    background: var(--accent);
    color: #F0FAF0;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.nav-user {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-user:hover { box-shadow: 0 0 12px var(--accent-glow); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1002;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,46,26,0.35);
    z-index: 999;
}

.nav-overlay.active { display: block; }

/* ── Pages ───────────────────────────────────── */
.page {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 64px;
}

.page.active { display: block; }

/* ── Hero ────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    max-width: 900px;
    letter-spacing: -0.03em;
    animation: fadeUp 0.6s ease 0.1s both;
}

h1 .highlight { position: relative; white-space: nowrap; }

h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 0.2em;
    background: linear-gradient(90deg, var(--accent), var(--orange));
    opacity: 0.25;
    border-radius: 4px;
    z-index: -1;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 520px;
    margin-top: 1.5rem;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeUp 0.6s ease 0.2s both;
}

/* ── Hero butiks-grid (lige under hero-sub) ─── */
.hero-stores {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 700px;
    margin-top: 2.5rem;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-store-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-store-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.hero-store-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-top: 0.3rem;
}

.hero-store-label { font-size: 0.65rem; color: var(--text-muted); }
.hero-store-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }

.hero-stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: #F0FAF0;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    animation: fadeUp 0.6s ease 0.5s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.ticker-wrap {
    overflow: hidden;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: auto;
    width: 100%;
}

.ticker {
    display: flex;
    gap: 3rem;
    animation: tickerScroll 25s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Section headers ─────────────────────────── */
.section-header {
    padding: 4rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* ── Stats grid (forsiden bund) ──────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.25s;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.stat-card .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-card .store { font-weight: 600; font-size: 0.95rem; margin-top: 0.4rem; }

/* ── Search ──────────────────────────────────── */
.search-container, .recipe-search-container { max-width: 700px; margin: 0 auto; padding: 2rem; position: relative; }

.search-wrap { position: relative; }

.search-wrap::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.4;
}

.search-input {
    width: 100%;
    padding: 1rem 1.4rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.25s;
}

.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-input::placeholder { color: var(--text-muted); }

/* ── Deal results ────────────────────────────── */
.deal-results { max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem; }

.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.deal-kort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
}

.deal-kort:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(196,89,58,0.1); }

.deal-kort-img {
    width: 100%; aspect-ratio: 1/1;
    overflow: hidden; background: var(--bg-input);
    display: flex; align-items: center; justify-content: center;
}

.deal-kort-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-kort-placeholder { font-size: 2.5rem; }
.deal-kort-body { padding: 0.75rem; }

.deal-kort-badge {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 99px;
    margin-bottom: 0.4rem;
}

.deal-kort-navn {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text); line-height: 1.3;
    margin-bottom: 0.5rem;
}

.deal-kort-bund {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 4px;
}

.deal-kort-pris {
    font-size: 1rem; font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.deal-kort-dato { font-size: 0.7rem; color: var(--text-muted); }

.deal-kort-btns { display: flex; gap: 4px; }

.deal-kort-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-card);
    cursor: pointer; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.deal-kort-btn:hover { background: var(--accent-dim); border-color: var(--accent); }

.sp-toast {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    background: var(--text); color: white;
    padding: 10px 18px; border-radius: 99px;
    font-size: 0.85rem; z-index: 9999;
    pointer-events: none; white-space: nowrap;
    animation: fadeUp 0.3s ease;
}

.deal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.deal-row:hover { background: var(--bg-card); border-radius: var(--radius-sm); }
.deal-name { font-weight: 500; }
.deal-meta { display: flex; align-items: center; gap: 1rem; }

.deal-store {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.deal-price { font-weight: 800; color: var(--accent); font-size: 1.1rem; }

/* ── Suggestions dropdown ────────────────────── */
.suggestions {
    position: absolute;
    left: 0; right: 0;
    top: calc(100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 50;
    display: none;
    box-shadow: 0 16px 48px rgba(26,46,26,0.12);
}

.suggestions.active { display: block; animation: fadeUp 0.15s ease; }

.suggestion-item {
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.suggestion-item:last-child { border: none; }
.suggestion-item:hover, .suggestion-item.active { background: var(--accent-dim); }
.suggestion-title { font-weight: 600; }
.suggestion-desc { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* ── Recipe card ─────────────────────────────── */
.recipe-result { max-width: 780px; margin: 0 auto; padding: 0 2rem 6rem; }

.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.4s ease;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--orange));
}

.recipe-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; }
.recipe-desc { color: var(--text-dim); margin-top: 0.5rem; line-height: 1.6; }

.recipe-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }

.tag { padding: 0.35rem 0.8rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.tag.green { background: var(--accent-dim); color: var(--accent); }
.tag.orange { background: var(--orange-dim); color: #2D6B35; }

.recipe-section-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 2rem 0 0.8rem;
}

.ingredients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.ingredient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.ingredient .deal-badge {
    font-size: 0.68rem;
    background: var(--orange);
    color: #F0FAF0;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    font-weight: 700;
    margin-left: 0.4rem;
}

.ingredient .price { font-weight: 700; white-space: nowrap; }
.ingredient .price.deal { color: var(--accent); }
.ingredient .price.estimate { color: var(--text-muted); font-weight: 400; font-style: italic; }

.steps { list-style: none; }

.step {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child { border: none; }

.step-num {
    width: 26px; height: 26px; min-width: 26px;
    background: var(--accent);
    color: #F0FAF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 2px;
}

.step-text { line-height: 1.6; font-weight: 300; }

.recipe-tip {
    background: var(--accent-dim);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.deals-used {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.deals-used-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

a.deal-chip { text-decoration: none; transition: border-color 0.15s; }
a.deal-chip:hover { border-color: var(--accent); }

.deal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.76rem;
    margin: 0.2rem;
}

.deal-chip .chip-store { font-weight: 700; color: var(--accent); }

/* ── Loading ─────────────────────────────────── */
.loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 5rem 2rem; }

.loading-ring {
    width: 44px; height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-dim); font-size: 0.95rem; }
.loading-sub { color: var(--text-muted); font-size: 0.82rem; }

/* ── Cookie Consent ──────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 2000;
    animation: slideFromBottom 0.4s ease;
    backdrop-filter: blur(16px);
}

.cookie-banner.hidden { display: none; }
.cookie-text { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; flex: 1; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.6rem; flex-shrink: 0; }

.cookie-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.cookie-btn.accept { background: var(--accent); color: #F0FAF0; border-color: var(--accent); }
.cookie-btn.accept:hover { box-shadow: 0 4px 16px var(--accent-glow); }
.cookie-btn.reject { background: transparent; color: var(--text-dim); }
.cookie-btn.reject:hover { border-color: var(--text-dim); }

@keyframes slideFromBottom { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Login Modal ─────────────────────────────── */
.login-modal {
    position: fixed; inset: 0;
    background: rgba(26,46,26,0.55);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.2s ease;
}

.login-modal.hidden { display: none; }

.login-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.login-close:hover { color: var(--text); }
.login-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-sub { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 1.5rem; line-height: 1.5; }

.login-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: var(--text-muted); }
.login-input.code { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.4em; text-align: center; }

.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: #F0FAF0;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.login-btn:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.login-error { color: var(--red); font-size: 0.82rem; margin-top: 0.5rem; }
.login-gdpr { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5; }
.login-gdpr a { color: var(--accent); }
.hidden { display: none !important; }

/* ── Profile ─────────────────────────────────── */
.profile-container { max-width: 700px; margin: 0 auto; padding: 0 2rem 4rem; }

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1rem; }
.profile-email { color: var(--accent); font-weight: 600; font-size: 1.1rem; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }

.profile-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.profile-field select,
.profile-field input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.profile-field select:focus,
.profile-field input:focus { border-color: var(--accent); outline: none; }

.chip-select { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }

.chip-toggle {
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}

.chip-toggle.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.profile-save {
    padding: 0.7rem 2rem;
    background: var(--accent);
    color: #F0FAF0;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.profile-save:hover { box-shadow: 0 4px 16px var(--accent-glow); }

.profile-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.profile-history-item:last-child { border: none; }

.profile-danger { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.profile-danger-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-danger-btn:hover { background: rgba(192,48,48,0.08); }

/* ── Privacy ─────────────────────────────────── */
.privacy-container { max-width: 700px; margin: 0 auto; padding: 0 2rem 4rem; }
.privacy-container h3 { font-family: 'Playfair Display', serif; margin-top: 2rem; margin-bottom: 0.5rem; }
.privacy-container p, .privacy-container li { color: var(--text-dim); line-height: 1.7; font-size: 0.92rem; }
.privacy-container ul { padding-left: 1.5rem; margin: 0.5rem 0; }

/* ── Footer ──────────────────────────────────── */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: Tablet (768px) ──────────────── */
@media (max-width: 768px) {
    .nav-hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.3rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .hero-stores { grid-template-columns: repeat(3, 1fr); }
    .hero-stats-row { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
    .section-header { padding: 3rem 1.5rem 1.5rem; }
    .section-header h2 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem 3rem; }
    .search-container, .recipe-search-container { padding: 1.5rem; }
    .deal-results { padding: 0 1.5rem 3rem; }
    .deal-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .recipe-result { padding: 0 1.5rem 4rem; }
    .recipe-card { padding: 1.5rem; }
    .ingredients-grid { grid-template-columns: 1fr; }
    .login-modal-box { margin: 1rem; padding: 2rem; }
    .profile-container { padding: 0 1.5rem 3rem; }
    .profile-grid { grid-template-columns: 1fr; }
    .privacy-container { padding: 0 1.5rem 3rem; }
}

/* ── Responsive: Telefon (480px) ─────────────── */
@media (max-width: 480px) {
    nav { padding: 0 0.8rem; }
    h1 { font-size: clamp(1.8rem, 9vw, 3rem); }
    .hero { padding: 3rem 1.2rem 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-stores { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .hero-store-num { font-size: 1.1rem; }
    .hero-store-name { font-size: 0.7rem; }
    .hero-cta { width: 100%; justify-content: center; }
    .hero-stat-num { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0 1rem 2rem; }
    .stat-card { padding: 1rem; }
    .stat-card .num { font-size: 1.5rem; }
    .search-input { font-size: 0.95rem; padding: 0.9rem 1.2rem 0.9rem 2.8rem; }
    .recipe-tags { gap: 0.4rem; }
    .tag { font-size: 0.72rem; }
    .cookie-banner { flex-direction: column; gap: 1rem; padding: 1rem 1.2rem; }
    .cookie-buttons { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .deal-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .deal-meta { width: 100%; justify-content: space-between; }
    .profile-card { padding: 1.2rem; }
}

/* ════════════════════════════════════════════════════════════════════
   SPAREPOSEN – Tilføj disse regler SIDST i style.css
   (deal-grid, deal-kort, sp-toast findes allerede – disse er NYE)
   ════════════════════════════════════════════════════════════════════ */


/* ── Butiks-chips (opskrift-filter) ──────────────────────────────── */
.store-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    justify-content: center;
}

.store-chip {
    padding: 7px 16px;
    border-radius: 99px;
    border: 1.5px solid rgba(196, 89, 58, 0.25);
    background: var(--card-bg, #FDFAF5);
    color: var(--text-muted, #7a6a5a);
    font-size: 0.83rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.store-chip:hover {
    border-color: var(--accent, #C4593A);
    color: var(--accent, #C4593A);
}

.store-chip.active {
    background: var(--accent, #C4593A);
    border-color: var(--accent, #C4593A);
    color: white;
    font-weight: 600;
}


/* ── Ingrediens-layout (venstre/højre kolonner) ───────────────────── */
.ingredient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ingredient-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.ingredient-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}


/* ── Pantry-ingredienser (salt, peber, olie osv.) ────────────────── */
.ingredient.pantry {
    opacity: 0.6;
}

.ingredient.pantry .ingredient-left {
    color: var(--text-muted, #7a6a5a);
    font-style: italic;
    font-size: 0.88em;
}

.ingredient-pantry-icon {
    font-size: 0.85em;
    flex-shrink: 0;
    opacity: 0.7;
}

.price.pantry-label {
    font-size: 0.72rem;
    color: var(--text-muted, #9a8a7a);
    font-weight: 400;
    font-style: italic;
    background: transparent;
    border: 1px dashed rgba(122, 106, 90, 0.35);
    border-radius: 99px;
    padding: 1px 8px;
}

.recipe-pantry-note {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted, #9a8a7a);
    margin-left: 0.6rem;
    font-style: italic;
    vertical-align: middle;
}


/* ── Kurv-knap på opskrift-ingredienser ──────────────────────────── */
.ingredient-cart-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 89, 58, 0.35);
    background: transparent;
    color: var(--accent, #C4593A);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}

.ingredient-cart-btn:hover {
    background: var(--accent, #C4593A);
    border-color: var(--accent, #C4593A);
    color: white;
    transform: scale(1.1);
}

.ingredient-cart-btn.tilfojet {
    background: #5a9e6a;
    border-color: #5a9e6a;
    color: white;
}


/* ── Mobil-tilpasninger ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .store-filter-chips {
        gap: 0.4rem;
        padding: 0 0.75rem;
    }
    .store-chip {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .ingredient-cart-btn {
        width: 26px;
        height: 26px;
    }
}
/* ════════════════════════════════════════════════════════════════════
   GLOBAL INDKØBSLISTE PANEL + NAV KURV-KNAP
   ════════════════════════════════════════════════════════════════════ */

/* ── Nav kurv-knap ───────────────────────────────────────────────── */
.nav-kurv-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-kurv-btn:hover { box-shadow: 0 0 12px var(--accent-glow); }

.nav-kurv-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Panel overlay ───────────────────────────────────────────────── */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 46, 26, 0.4);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.panel-overlay.vis {
    opacity: 1;
    pointer-events: all;
}

/* ── Slide-in panel ──────────────────────────────────────────────── */
.global-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100vw);
    background: var(--bg-card);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(26, 46, 26, 0.12);
}
.global-panel.vis {
    transform: translateX(0);
}

.global-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.global-panel-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.global-panel-luk {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: background 0.15s;
}
.global-panel-luk:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Tabs ────────────────────────────────────────────────────────── */
.global-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.global-panel-tab {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.global-panel-tab.aktiv {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Indhold ─────────────────────────────────────────────────────── */
.global-panel-indhold {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.panel-vare {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.panel-vare:last-child { border-bottom: none; }

.panel-vare-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-input);
    flex-shrink: 0;
}
.panel-vare-img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.panel-vare-info { flex: 1; min-width: 0; }
.panel-vare-navn {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.panel-vare-pris { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.panel-vare-slet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.panel-vare-slet:hover { background: rgba(200, 60, 60, 0.1); color: #c83c3c; }

.panel-tom {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.panel-tom-ikon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.panel-tom-titel { font-size: 0.95rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.4rem; }
.panel-tom-sub { font-size: 0.85rem; line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────────────── */
.global-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.panel-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.panel-total-pris {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}
.panel-ryd-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}
.panel-ryd-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Mobil ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .global-panel { width: 100vw; }
    .nav-kurv-btn span { display: none; }
}

/* ── Mobil: tydelig luk-bjælke på panel ─────────────────────────── */
@media (max-width: 600px) {
    .global-panel-header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .global-panel-luk {
        width: 44px;
        height: 44px;
        background: var(--accent-dim);
        border-color: var(--accent);
        color: var(--accent);
    }

    /* Synlig swipe-indikator øverst */
    .global-panel::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 99px;
        background: var(--border);
        margin: 10px auto 0;
        flex-shrink: 0;
    }
}
/* ── AI-køkken wrapper ───────────────────────────────────────────── */
.ai-kokken-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;  /* ← ændres til: */
    
}
 
/* ── Header ──────────────────────────────────────────────────────── */
.ai-kokken-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
 
.ai-kokken-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
 
.ai-kokken-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
 
/* ── Sub-tabs ────────────────────────────────────────────────────── */
.ai-kokken-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
 
.ai-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
 
.ai-tab:hover { border-color: var(--accent); color: var(--text); }
 
.ai-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #F0FAF0;
}
 
.ai-tab-snart {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
 
.ai-tab.active .ai-tab-snart {
    background: rgba(255,255,255,0.2);
    color: rgba(240,250,240,0.9);
}
 
/* ── Tab panels ──────────────────────────────────────────────────── */
.ai-tab-panel { display: none; }
.ai-tab-panel.active { display: block; }
 
/* ── Layout: input + resultat side om side på desktop ───────────── */
.koeleskab-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
 
@media (min-width: 720px) {
    .koeleskab-layout.med-resultat {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }
    .koeleskab-input-kort {
        max-width: 480px;
        margin: 0 auto;
    }
}
 
/* ── Input-kort ──────────────────────────────────────────────────── */
.koeleskab-input-kort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
 
.koeleskab-input-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
 
.koeleskab-ikon-wrap {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
 
.koeleskab-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}
 
.koeleskab-beskrivelse {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}
 
/* ── Tag-input ───────────────────────────────────────────────────── */
.ingrediens-tag-wrap {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    cursor: text;
    transition: border-color 0.2s;
    min-height: 52px;
}
 
.ingrediens-tag-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
 
.ingrediens-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent);
    color: #F0FAF0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem 0.25rem 0.75rem;
    border-radius: 99px;
    animation: tagPop 0.15s ease;
}
 
@keyframes tagPop {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
 
.ingrediens-tag-slet {
    background: rgba(255,255,255,0.25);
    border: none;
    color: inherit;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}
 
.ingrediens-tag-slet:hover { background: rgba(255,255,255,0.45); }
 
.ingrediens-tag-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    flex: 1;
    min-width: 140px;
}
 
.ingrediens-tag-input::placeholder { color: var(--text-muted); }
 
/* ── Hint-chips ──────────────────────────────────────────────────── */
.ingrediens-hints {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}
 
.ingrediens-hint-chip {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s;
}
 
.ingrediens-hint-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
 
/* ── Options ─────────────────────────────────────────────────────── */
.koeleskab-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
 
.option-gruppe { display: flex; flex-direction: column; gap: 0.5rem; }
 
.option-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
 
/* ── Person stepper ──────────────────────────────────────────────── */
.person-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
 
.stepper-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Outfit', sans-serif;
}
 
.stepper-btn:hover { background: var(--accent-dim); }
 
.stepper-val {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    line-height: 36px;
}
 
/* ── Butiks-chips ────────────────────────────────────────────────── */
.koeleskab-butik-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
 
.kb-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s;
}
 
.kb-chip:hover { border-color: var(--accent); color: var(--accent); }
 
.kb-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #F0FAF0;
}
 
/* ── CTA-knap ────────────────────────────────────────────────────── */
.koeleskab-cta {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: #F0FAF0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}
 
.koeleskab-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
 
.koeleskab-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
 
/* ── Loading ─────────────────────────────────────────────────────── */
.ai-loading {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
}
 
.ai-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-dim);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
 
@keyframes spin { to { transform: rotate(360deg); } }
 
.ai-loading-tekst {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
}
 
.ai-loading-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }
 
/* ── Resultat-kort ───────────────────────────────────────────────── */
.opskrift-resultat-kort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}
 
.resultat-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}
 
.resultat-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
 
.resultat-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-weight: 500;
}
 
.resultat-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
 
.resultat-beskrivelse {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}
 
/* ── Tilbuds-opsummering ─────────────────────────────────────────── */
.tilbud-opsummering {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-dim);
    border: 1px solid rgba(58,125,68,0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}
 
.tilbud-ops-stat { text-align: center; }
 
.tilbud-ops-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
}
 
.tilbud-ops-num.accent { color: var(--accent); }
 
.tilbud-ops-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
 
.tilbud-ops-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}
 
/* ── Sektioner ───────────────────────────────────────────────────── */
.resultat-sektion { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
 
.resultat-sektion-titel {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
 
/* ── Ingrediensliste ─────────────────────────────────────────────── */
.resultat-ingredienser { display: flex; flex-direction: column; gap: 0.4rem; }
 
.res-ing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: background 0.15s;
}
 
.res-ing:hover { background: var(--bg); }
 
.res-ing-status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
 
/* Har det = grøn */
.res-ing.har-det .res-ing-status {
    background: rgba(58,125,68,0.12);
    color: var(--accent);
}
 
/* Tilbud = grøn med pris */
.res-ing.tilbud .res-ing-status {
    background: var(--accent);
    color: #F0FAF0;
}
 
/* Mangler = rød/orange */
.res-ing.mangler .res-ing-status {
    background: rgba(192,48,48,0.1);
    color: var(--red);
}
 
/* Pantry = grå */
.res-ing.pantry .res-ing-status {
    background: var(--bg-input);
    color: var(--text-muted);
}
 
.res-ing-info { flex: 1; min-width: 0; }
 
.res-ing-navn {
    font-weight: 600;
    color: var(--text);
}
 
.res-ing.pantry .res-ing-navn { color: var(--text-muted); font-weight: 400; }
 
.res-ing-maengde {
    font-size: 0.78rem;
    color: var(--text-muted);
}
 
.res-ing-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
 
.badge-tilbud {
    background: var(--accent);
    color: #F0FAF0;
}
 
.badge-mangler {
    background: rgba(192,48,48,0.1);
    color: var(--red);
    border: 1px solid rgba(192,48,48,0.2);
}
 
.badge-har-det {
    background: var(--accent-dim);
    color: var(--accent);
}
 
.badge-pantry {
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}
 
.res-ing-butik {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
 
/* ── Fremgangsmåde ───────────────────────────────────────────────── */
.resultat-trin {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
    counter-reset: trin;
}
 
.resultat-trin li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    counter-increment: trin;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
 
.resultat-trin li:hover { background: var(--bg); }
 
.resultat-trin li::before {
    content: counter(trin);
    min-width: 24px;
    height: 24px;
    background: var(--accent);
    color: #F0FAF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
 
/* ── Spar-tip ────────────────────────────────────────────────────── */
.resultat-spar-tip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
    background: var(--accent-dim);
    border-bottom: 1px solid var(--border);
}
 
.spar-tip-ikon { font-size: 1rem; flex-shrink: 0; }
 
/* ── Ny opskrift-knap ────────────────────────────────────────────── */
.ny-opskrift-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
 
.ny-opskrift-btn:hover { color: var(--accent); background: var(--accent-dim); }
 
/* ── Snart-kort ──────────────────────────────────────────────────── */
.snart-kort {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
}
 
.snart-ikon { font-size: 3rem; margin-bottom: 1rem; }
 
.snart-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}
 
.snart-tekst {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
 
.snart-badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
 
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ── Del kurv-knap i panel ───────────────────────────────────────── */
.panel-del-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.panel-del-btn:hover {
    background: var(--accent);
    color: #F0FAF0;
}
.panel-del-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.hero-widget-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .75rem;
    margin-top: 2rem;
    text-align: left;
    width: 100%;
    max-width: 700px;
}
 
.hero-widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    width: 100%;
    max-width: 700px;
    animation: fadeUp 0.6s ease 0.35s both;
}
 
@media (max-width: 540px) {
    .hero-widget-grid {
        grid-template-columns: 1fr;
    }
}
/* ══════════════════════════════════════════════════════════════════
   MADPLAN — tilføj til bunden af style.css
   Bygger på eksisterende variabler:
     --accent, --bg, --text, --text-muted, --card-bg,
     --radius, --shadow, --red
   Og eksisterende klasser: .kb-sektion, .person-stepper,
   .stepper-btn, .kb-chip, .koeleskab-cta-btn, .koeleskab-spinner
   ══════════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────────────── */
.madplan-layout {
    display:       grid;
    grid-template-columns: 1fr;
    gap:           2rem;
}

@media (min-width: 900px) {
    .madplan-layout {
        grid-template-columns: 340px 1fr;
        align-items: start;
    }
}

/* ── Budget-stepper ───────────────────────────────────────────────── */
.budget-stepper {
    display:     flex;
    align-items: center;
    gap:         1rem;
    margin-top:  0.5rem;
}

.budget-display {
    display:     flex;
    align-items: baseline;
    gap:         0.3rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size:   2rem;
    font-weight: 700;
    color:       var(--text);
    min-width:   4ch;
    text-align:  center;
}

.budget-enhed {
    font-size:  1rem;
    font-weight: 400;
    color:      var(--text-muted);
    font-family: var(--font-body, 'Outfit', sans-serif);
}

.budget-per-dag {
    margin-top:  0.4rem;
    font-size:   0.85rem;
    color:       var(--text-muted);
}

/* ── Butik-advarsel ───────────────────────────────────────────────── */
.mp-butik-advarsel {
    margin-top:  0.5rem;
    font-size:   0.82rem;
    color:       var(--red, #c0392b);
    animation:   fadeIn 0.2s ease;
}

/* ── Resultat-wrapper ─────────────────────────────────────────────── */
.madplan-resultat-wrap {
    min-height: 200px;
}

/* ── Loading ──────────────────────────────────────────────────────── */
.madplan-loading {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            1rem;
    padding:        3rem 1rem;
    color:          var(--text-muted);
    font-size:      0.95rem;
}

/* ── Resultat-header ──────────────────────────────────────────────── */
.madplan-res-header {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: space-between;
    align-items:     flex-start;
    gap:             1rem;
    margin-bottom:   1.5rem;
}

/* ── Budget-overblik (3 stats) ────────────────────────────────────── */
.madplan-budget-overblik {
    display:    flex;
    gap:        1.25rem;
    flex-wrap:  wrap;
}

.bstat {
    display:        flex;
    flex-direction: column;
    gap:            0.15rem;
    background:     var(--card-bg, #fff);
    border:         1px solid rgba(0,0,0,.07);
    border-radius:  var(--radius, 12px);
    padding:        0.6rem 1rem;
    min-width:      100px;
}

.bstat-label {
    font-size:  0.72rem;
    color:      var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bstat-val {
    font-size:  1.15rem;
    font-weight: 700;
    color:      var(--text);
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.bstat--spar .bstat-val { color: var(--accent, #3A7D44); }
.bstat--over .bstat-val { color: var(--red, #c0392b); }

/* ── Dage-grid ────────────────────────────────────────────────────── */
.madplan-dage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .madplan-dage { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .madplan-dage { grid-template-columns: repeat(3, 1fr); }
}

/* ── Dag-kort ─────────────────────────────────────────────────────── */
.mp-dag-kort {
    background:    var(--card-bg, #fff);
    border:        1px solid rgba(0,0,0,.07);
    border-radius: var(--radius, 12px);
    padding:       1.1rem 1.1rem 0.9rem;
    box-shadow:    var(--shadow, 0 2px 8px rgba(0,0,0,.06));
    display:       flex;
    flex-direction: column;
    gap:           0.5rem;
    transition:    transform 0.15s ease, box-shadow 0.15s ease;
}

.mp-dag-kort:hover {
    transform:   translateY(-2px);
    box-shadow:  var(--shadow-hover, 0 6px 20px rgba(0,0,0,.1));
}

/* Header: dagsnavn + dagspris */
.mp-dag-header {
    display:         flex;
    justify-content: space-between;
    align-items:     baseline;
    gap:             0.5rem;
}

.mp-dag-navn {
    font-size:   0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color:       var(--accent, #3A7D44);
}

.mp-dag-pris {
    font-size:   0.85rem;
    font-weight: 600;
    color:       var(--text-muted);
    white-space: nowrap;
}

/* Ret-navn */
.mp-dag-ret {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size:   1.05rem;
    font-weight: 700;
    color:       var(--text);
    line-height: 1.3;
}

/* Beskrivelse */
.mp-dag-besk {
    font-size:   0.85rem;
    color:       var(--text-muted);
    line-height: 1.5;
    margin:      0;
}

/* Tilbuds-badges */
.mp-tilbud-wrap {
    display:    flex;
    flex-wrap:  wrap;
    gap:        0.4rem;
    margin-top: 0.2rem;
}

.mp-tilbud-badge {
    font-size:      0.72rem;
    background:     rgba(58, 125, 68, .1);
    color:          var(--accent, #3A7D44);
    border:         1px solid rgba(58, 125, 68, .25);
    border-radius:  20px;
    padding:        0.2rem 0.55rem;
    white-space:    nowrap;
}

/* Ingrediens-detaljer */
.mp-ing-details {
    margin-top: 0.4rem;
    font-size:  0.82rem;
}

.mp-ing-details summary {
    cursor:      pointer;
    color:       var(--text-muted);
    user-select: none;
    list-style:  none;
    padding:     0.25rem 0;
}

.mp-ing-details summary::-webkit-details-marker { display: none; }

.mp-ing-details[open] summary {
    color: var(--text);
    margin-bottom: 0.4rem;
}

.mp-ing-liste {
    margin:        0;
    padding-left:  1.2rem;
    color:         var(--text);
    line-height:   1.7;
}

.mp-ing-liste li {
    list-style-type: disc;
}

/* ── Fade-in animation (deles med resten af SPA'en) ──────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mp-dag-kort {
    animation: fadeIn 0.3s ease both;
}

/* Staggered animation for dag-kort */
.mp-dag-kort:nth-child(1) { animation-delay: 0.05s; }
.mp-dag-kort:nth-child(2) { animation-delay: 0.10s; }
.mp-dag-kort:nth-child(3) { animation-delay: 0.15s; }
.mp-dag-kort:nth-child(4) { animation-delay: 0.20s; }
.mp-dag-kort:nth-child(5) { animation-delay: 0.25s; }
.mp-dag-kort:nth-child(6) { animation-delay: 0.30s; }
.mp-dag-kort:nth-child(7) { animation-delay: 0.35s; }

/* ══════════════════════════════════════════════════════════════════
   MADPLAN — RETTEDE STYLES
   Tilføj i bunden af style.css (erstatter/override den tidligere
   madplan-blok der brugte forkerte variabelnavne)
   ══════════════════════════════════════════════════════════════════ */

/* ── Layout: matcher .koeleskab-layout / .med-resultat ───────────── */
.madplan-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .madplan-layout.med-resultat {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }
    #madplan-form-kol {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ── Budget-display: opfører sig som .stepper-val men bredere ─────── */
/* Override den tidligere fejlbehæftede version */
.budget-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 80px;
    height: 36px;
    padding: 0 0.6rem;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.budget-enhed {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
}

.budget-per-dag {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Butik-advarsel ───────────────────────────────────────────────── */
.mp-butik-advarsel {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 0.25rem;
}

/* ── Budget-overblik (3 stats øverst i resultat) ─────────────────── */
.madplan-res-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.madplan-budget-overblik {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bstat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    min-width: 90px;
}

.bstat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.bstat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.bstat--spar .bstat-val { color: var(--accent); }
.bstat--over .bstat-val { color: var(--red); }

/* ── Dag-grid ─────────────────────────────────────────────────────── */
.madplan-dage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .madplan-dage { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .madplan-dage { grid-template-columns: repeat(3, 1fr); }
}

/* ── Dag-kort ─────────────────────────────────────────────────────── */
.mp-dag-kort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: tagPop 0.25s ease both;  /* tagPop er allerede defineret */
}

.mp-dag-kort:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 125, 68, 0.12);
}

/* Staggered fade-in */
.mp-dag-kort:nth-child(1) { animation-delay: 0.04s; }
.mp-dag-kort:nth-child(2) { animation-delay: 0.08s; }
.mp-dag-kort:nth-child(3) { animation-delay: 0.12s; }
.mp-dag-kort:nth-child(4) { animation-delay: 0.16s; }
.mp-dag-kort:nth-child(5) { animation-delay: 0.20s; }
.mp-dag-kort:nth-child(6) { animation-delay: 0.24s; }
.mp-dag-kort:nth-child(7) { animation-delay: 0.28s; }

.mp-dag-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.mp-dag-navn {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.mp-dag-pris {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.mp-dag-ret {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.mp-dag-besk {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* ── Tilbuds-badges ───────────────────────────────────────────────── */
.mp-tilbud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.mp-tilbud-badge {
    font-size: 0.7rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}

/* ── Ingrediens-detaljer ──────────────────────────────────────────── */
.mp-ing-details {
    margin-top: 0.25rem;
}

.mp-ing-details summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-muted);
    user-select: none;
    list-style: none;
    padding: 0.2rem 0;
    transition: color 0.15s;
}

.mp-ing-details summary::-webkit-details-marker { display: none; }
.mp-ing-details[open] summary { color: var(--text-dim); }

.mp-ing-liste {
    margin: 0.4rem 0 0 1.1rem;
    padding: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.75;
}
/*
  ════════════════════════════════════════════════════
  Del med naboen – CSS-tilføjelse til style.css
  Tilføj nederst i din style.css
  ════════════════════════════════════════════════════
*/

/* ── Sektion-skift (bruges af alle faner i index) ─── */
.sp-sektion { display: none; }
.sp-sektion.aktiv { display: block; }

/* ── Del-hero ────────────────────────────────────── */
.del-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}
.del-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text);
    margin-bottom: 0.5rem;
}
.del-hero p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}
.del-hero-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-opret {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-opret:hover { background: var(--accent-hover, #2d6336); transform: translateY(-1px); }

/* ── Postnr-banner ──────────────────────────────── */
.postnr-banner {
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1rem auto;
    max-width: 700px;
    display: none;
}
.postnr-banner p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.postnr-banner-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.postnr-banner input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    width: 90px;
}
.postnr-banner input:last-of-type { width: 140px; }
.postnr-banner button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

/* ── Kategori-chips ─────────────────────────────── */
.del-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 1.25rem auto 0;
    padding: 0 1rem;
    justify-content: center;
}
.del-chip {
    padding: 6px 16px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}
.del-chip:hover { border-color: var(--accent); color: var(--accent); }
.del-chip.active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }

/* ── Feed ───────────────────────────────────────── */
.del-feed {
    max-width: 700px;
    margin: 1.25rem auto 3rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.del-loading { text-align: center; color: var(--text-muted); padding: 3rem; font-size: 0.9rem; }
.del-tom { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.del-tom-ikon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── Opslag-kort ────────────────────────────────── */
.del-kort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.del-kort:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,26,16,0.08); }
.del-kort-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.del-kat-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.kat-mad      { background: #FFF3E0; color: #E65100; }
.kat-giveaway { background: #E8F5E9; color: #2E7D32; }
.del-tid { font-size: 0.75rem; color: var(--text-muted); }
.del-kort-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.del-kort-beskrivelse {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.del-kort-bund {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.del-sted { display: flex; align-items: center; gap: 3px; }
.del-kommentar-count { font-weight: 500; }

/* ── Udvidet indhold ────────────────────────────── */
.del-udvidet { border-top: 1px solid var(--border); margin-top: 0.75rem; padding-top: 0.75rem; }
.del-udvidet.hidden { display: none; }
.del-fuld-beskrivelse {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 0.75rem;
}
.del-meta-linje {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.del-kort-slet {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.del-kort-slet:hover { border-color: #c83c3c; color: #c83c3c; background: rgba(200,60,60,0.08); }
.del-slet-btn {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}
.del-slet-btn:hover { border-color: #c83c3c; color: #c83c3c; }
.del-loading-lille { font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 0; }

/* ── Kommentarer ────────────────────────────────── */
.del-kommentarer { margin-bottom: 0.75rem; }
.del-ingen-kommentarer { font-size: 0.82rem; color: var(--text-muted); font-style: italic; padding: 0.5rem 0; }
.del-kommentar { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.del-kommentar:last-child { border-bottom: none; }
.del-kommentar.ny { animation: fadeInDel 0.3s ease; }
@keyframes fadeInDel { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.del-kom-bruger { font-weight: 600; font-size: 0.82rem; color: var(--accent); }
.del-kom-tid { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }
.del-kom-tekst { font-size: 0.88rem; color: var(--text); margin-top: 0.2rem; line-height: 1.5; }

.del-kommentar-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.del-kommentar-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    resize: none;
    box-sizing: border-box;
}
.del-kommentar-input:focus { outline: none; border-color: var(--accent); }
.del-kommentar-send {
    align-self: flex-end;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.del-kommentar-send:hover { background: var(--accent-hover, #2d6336); }
.del-kommentar-send:disabled { opacity: 0.6; cursor: not-allowed; }
.del-login-prompt {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1.5px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.del-login-prompt:hover { border-color: var(--accent); color: var(--accent); }

/* ── Opret opslag modal ─────────────────────────── */
.opret-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,46,26,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.opret-modal-overlay.vis { opacity: 1; pointer-events: all; }
.opret-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(26,46,16,0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.opret-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.opret-felt { margin-bottom: 1rem; }
.opret-felt label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.opret-felt input,
.opret-felt textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    box-sizing: border-box;
}
.opret-felt input:focus,
.opret-felt textarea:focus { outline: none; border-color: var(--accent); }
.opret-felt textarea { resize: vertical; min-height: 100px; }
.opret-kat-valg { display: flex; gap: 0.75rem; }
.opret-kat-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: all 0.15s;
}
.opret-kat-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}
.opret-kat-option input { display: none; }
.opret-postnr-row { display: flex; gap: 0.5rem; }
.opret-postnr-row input:first-child { width: 100px; flex-shrink: 0; }
.opret-fejl { display: none; color: #c83c3c; font-size: 0.82rem; margin-bottom: 0.75rem; }
.opret-modal-btns { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.opret-annuller {
    flex: 1;
    padding: 0.7rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
}
#delOpretSendBtn {
    flex: 2;
    padding: 0.7rem;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
#delOpretSendBtn:hover { background: var(--accent-hover, #2d6336); }
#delOpretSendBtn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
    .del-hero { padding: 2rem 1rem 1.5rem; }
    .opret-kat-valg { flex-direction: column; }
    .opret-postnr-row { flex-direction: column; }
    .opret-postnr-row input:first-child { width: 100%; }
}
/* ── Tips-banner ─────────────────────────────────── */
.tips-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.55rem 1rem;
    margin: 0.75rem auto 0;
    font-size: 0.88rem;
    color: var(--text-dim);
    max-width: 520px;
    line-height: 1.4;
}
.tips-ikon { font-size: 1rem; flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   sammenlign.css — Prissammenligner-tab
   Indsæt i din style.css eller link separat
   ════════════════════════════════════════════════════ */

/* ── Søgebar ────────────────────────────────────────── */
.sml-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}
.sml-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--border, #d6cfc4);
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color .2s;
}
.sml-search-wrap:focus-within {
    border-color: #3A7D44;
}
.sml-search-ikon { font-size: 16px; flex-shrink: 0; }
.sml-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text, #1A2E1A);
    padding: 12px 0;
}
.sml-search-input::placeholder { color: var(--text-muted, #7a7a6e); }
.sml-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #7a7a6e);
    font-size: 14px;
    padding: 4px;
    line-height: 1;
}
.sml-sort-select {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    border: 1.5px solid var(--border, #d6cfc4);
    border-radius: 10px;
    padding: 0 12px;
    background: var(--card-bg, #fff);
    color: var(--text, #1A2E1A);
    cursor: pointer;
    min-width: 140px;
}

/* ── Kategori-chips ──────────────────────────────────── */
.sml-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.sml-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    border: 1.5px solid var(--border, #d6cfc4);
    background: var(--card-bg, #fff);
    color: var(--text-muted, #7a7a6e);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.sml-chip:hover { background: var(--bg-secondary, #EDE8DF); }
.sml-chip.active {
    background: #3A7D44;
    color: #F5EFE3;
    border-color: #3A7D44;
}

/* ── Toggle-række ────────────────────────────────────── */
.sml-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.sml-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted, #7a7a6e);
    cursor: pointer;
    user-select: none;
}
.sml-toggle-check { display: none; }
.sml-toggle-slider {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--border, #d6cfc4);
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.sml-toggle-slider::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform .2s;
}
.sml-toggle-check:checked + .sml-toggle-slider { background: #3A7D44; }
.sml-toggle-check:checked + .sml-toggle-slider::after { transform: translateX(16px); }
.sml-antal-tekst {
    font-size: 12px;
    color: var(--text-muted, #7a7a6e);
    margin-left: auto;
}

/* ── Loading ─────────────────────────────────────────── */
.sml-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    justify-content: center;
    color: var(--text-muted, #7a7a6e);
    font-size: 14px;
}
.sml-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border, #d6cfc4);
    border-top-color: #3A7D44;
    border-radius: 50%;
    animation: sml-spin .7s linear infinite;
}
@keyframes sml-spin { to { transform: rotate(360deg); } }

/* ── Tom + start ─────────────────────────────────────── */
.sml-tom, .sml-start {
    text-align: center;
    padding: 3rem 1rem;
}
.sml-tom-ikon, .sml-start-ikon { font-size: 40px; margin-bottom: .75rem; }
.sml-tom-titel, .sml-start-titel {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text, #1A2E1A);
    margin-bottom: .5rem;
}
.sml-tom-tekst, .sml-start-tekst {
    font-size: 14px;
    color: var(--text-muted, #7a7a6e);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Produkt-kort ────────────────────────────────────── */
.sml-resultater { display: grid; gap: 10px; }

.sml-kort {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #d6cfc4);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: border-color .15s;
}
.sml-kort:hover { border-color: #3A7D44; }

.sml-kort-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .875rem;
    gap: 8px;
}
.sml-kort-navn {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1A2E1A);
    line-height: 1.3;
}
.sml-kort-meta {
    font-size: 12px;
    color: var(--text-muted, #7a7a6e);
    margin-top: 3px;
}
.sml-kort-meta strong { color: #3A7D44; }

.sml-kort-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.sml-badge-billigst {
    font-size: 10px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1.5px solid;
    white-space: nowrap;
    background: transparent;
}
.sml-badge-spar {
    font-size: 10px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 3px 8px;
    border-radius: 8px;
    background: #E8F5E9;
    color: #2E7D32;
    white-space: nowrap;
}

/* ── Butik-pills ─────────────────────────────────────── */
.sml-butikker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
}
.sml-butik-pill {
    background: var(--bg-secondary, #F5EFE3);
    border: 1px solid var(--border, #d6cfc4);
    border-radius: 10px;
    padding: 8px 10px;
}
.sml-butik-pill.sml-billigst {
    background: #EAF5E9;
    border-color: #A5D6A7;
}
.sml-butik-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.sml-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sml-butik-navn {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #7a7a6e);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sml-tilbud-prik {
    font-size: 9px;
    color: #E07000;
    font-weight: 600;
    white-space: nowrap;
}
.sml-butik-pris {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1A2E1A);
    font-family: 'Outfit', sans-serif;
}
.sml-butik-kg {
    font-size: 11px;
    color: var(--text-muted, #7a7a6e);
    margin-top: 1px;
}
.sml-butik-kg.sml-kg-billigst {
    color: #3A7D44;
    font-weight: 600;
}

/* ── Mobil ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .sml-search-row { flex-direction: column; }
    .sml-sort-select { min-width: unset; width: 100%; padding: 10px 12px; }
    .sml-butikker { grid-template-columns: repeat(2, 1fr); }
}
/* ── Lejligheds-assistent ─────────────────────────────────────── */
 
/* Hero */
.lej-hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}
.lej-hero-ikon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.lej-hero-titel {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text, #1A2E1A);
  margin-bottom: 0.5rem;
}
.lej-hero-sub {
  color: var(--text-muted, #6a7e6a);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}
 
/* Tema-grid */
.lej-tema-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.lej-tema-kort {
  background: var(--card-bg, white);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.65rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(58,125,68,0.07);
}
.lej-tema-kort:hover {
  border-color: var(--accent, #3A7D44);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(58,125,68,0.15);
}
.lej-tema-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}
.lej-tema-titel {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text, #1A2E1A);
  margin-bottom: 0.2rem;
}
.lej-tema-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #8a9e8a);
}
 
/* Divider */
.lej-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted, #a09080);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lej-divider::before,
.lej-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #d4c9b4);
}
 
/* Fritekst */
.lej-fritekst-wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.lej-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border, #d4c9b4);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  background: var(--card-bg, white);
  color: var(--text, #1A2E1A);
  outline: none;
  transition: border-color 0.2s;
}
.lej-input:focus { border-color: var(--accent, #3A7D44); }
.lej-input::placeholder { color: var(--text-muted, #9a8f7e); }
.lej-send-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
}
 
/* Loading */
.lej-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--text-muted, #7a8e7a);
}
.lej-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border, #d4e8d6);
  border-top-color: var(--accent, #3A7D44);
  border-radius: 50%;
  animation: lej-spin 0.8s linear infinite;
}
@keyframes lej-spin { to { transform: rotate(360deg); } }
 
/* Liste header */
.lej-liste-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.lej-liste-titel {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #1A2E1A);
  line-height: 1.2;
}
.lej-liste-meta {
  font-size: 0.8rem;
  color: var(--text-muted, #7a8e7a);
  margin-top: 0.2rem;
}
.lej-tilbage-btn {
  white-space: nowrap;
  border: 2px solid var(--border, #d4c9b4) !important;
  background: transparent !important;
  color: var(--text-muted, #5a6e5a) !important;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}
.lej-tilbage-btn:hover {
  border-color: var(--accent, #3A7D44) !important;
  color: var(--accent, #3A7D44) !important;
}
 
/* Kategori */
.lej-kat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #3A7D44);
  border-bottom: 1px solid var(--border, #e0d8c8);
  margin-bottom: 0.25rem;
}
.lej-kat-rest {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted, #8a9e8a);
}
 
/* Vare-række */
.lej-vare-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}
.lej-vare-row:last-child { border-bottom: none; }
.lej-vare-row:hover { background: rgba(58,125,68,0.04); }
.lej-vare-checked { opacity: 0.4; }

/* Øverste række: checkbox + navn */
.lej-vare-row > .lej-check { align-self: flex-start; margin-top: 2px; }
.lej-vare-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Checkbox */
.lej-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border, #c8bea8);
  background: var(--card-bg, white);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  transition: all 0.15s;
  margin-top: 2px;
}
.lej-check-on {
  background: var(--accent, #3A7D44);
  border-color: var(--accent, #3A7D44);
}

/* Vare info — fylder hele bredden minus checkbox */
.lej-vare-info {
  flex: 1;
  min-width: 0;
}
.lej-vare-navn {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1A2E1A);
}
.lej-vare-checked .lej-vare-navn { text-decoration: line-through; }
.lej-vare-note {
  font-size: 0.75rem;
  color: var(--text-muted, #9a8f7e);
  margin-top: 0.15rem;
  font-style: italic;
}

/* Tilbuds-kort — fuld bredde under navn */
.lej-vare-tilbud-wrap {
  width: 100%;
  margin-left: 30px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--card-bg, white);
  border: 1px solid var(--border, rgba(0,0,0,0.07));
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
.lej-vare-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.lej-vare-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg, #f5efe3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.lej-vare-tilbud {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lej-vare-tilbud-navn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text, #1A2E1A);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lej-vare-tilbud-beskrivelse {
  font-size: 0.7rem;
  color: var(--text-muted, #8a9e8a);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lej-vare-tilbud-bund {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  flex-wrap: nowrap;
}
.lej-vare-pris {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent, #3A7D44);
  white-space: nowrap;
}
.lej-rabat {
  font-size: 0.65rem;
  background: var(--accent, #3A7D44);
  color: white;
  padding: 1px 5px;
  border-radius: 20px;
  white-space: nowrap;
}
.lej-butik-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}
.lej-kurv-btn {
  padding: 4px 9px !important;
  font-size: 0.8rem !important;
  min-width: unset !important;
  margin-left: auto;
  flex-shrink: 0;
}
.lej-ingen-tilbud {
  margin-left: 30px;
  font-size: 0.72rem;
  color: var(--text-muted, #bbb);
  font-style: italic;
}
 
/* Footer */
.lej-footer {
  position: sticky;
  bottom: 0;
  background: rgba(245,239,227,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border, rgba(58,125,68,0.15));
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem -1rem -1rem;
}
.lej-footer-label {
  font-size: 0.75rem;
  color: var(--text-muted, #7a8e7a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lej-footer-pris {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, #3A7D44);
}
.lej-footer-right { text-align: right; }
.lej-footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted, #9a8f7e);
  margin-bottom: 0.3rem;
}
.lej-nulstil-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem !important;
  background: transparent !important;
  border: 1px solid var(--border, #d4c9b4) !important;
  color: var(--text-muted, #5a6e5a) !important;
}
 
/* Fejl */
.lej-fejl {
  background: #fef0ee;
  border: 1px solid #f5c4bb;
  border-radius: 10px;
  padding: 1rem;
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 1rem;
}
 
/* Mobil */
@media (max-width: 480px) {
  .lej-tema-grid { grid-template-columns: 1fr 1fr; }
  .lej-footer { margin: 1rem -0.75rem -0.75rem; }
}
#page-lejlighed .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}
 
.feature-kort {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
}
 
.feature-kort:hover {
    border-color: var(--accent, #3A7D44);
    background: var(--card-bg-hover, rgba(255,255,255,0.07));
    transform: translateX(4px);
}
 
.feature-kort--highlight {
    border-color: var(--accent, #3A7D44);
    background: var(--accent-subtle, rgba(58,125,68,0.08));
}
 
.feature-ikon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 2.4rem;
    text-align: center;
}
 
.feature-tekst {
    flex: 1;
    min-width: 0;
}
 
.feature-titel {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text, #f0f0f0);
    margin-bottom: 0.15rem;
}
 
.feature-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #8a9e8a);
    line-height: 1.4;
}
 
.feature-pil {
    font-size: 1rem;
    color: var(--accent, #3A7D44);
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.18s, transform 0.18s;
}
 
.feature-kort:hover .feature-pil {
    opacity: 1;
    transform: translateX(3px);
}
 
@media (max-width: 480px) {
    .feature-grid { padding: 0 0.75rem; }
    .feature-kort { padding: 0.85rem 0.9rem; }
    .feature-ikon { font-size: 1.4rem; width: 2rem; }
}
.lej-intro {
    background: var(--accent-subtle, rgba(58,125,68,0.08));
    border-left: 3px solid var(--accent, #3A7D44);
    border-radius: 0 10px 10px 0;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted, #6a7e6a);
    margin-bottom: 1rem;
    max-width: 600px;
}
.lej-footer-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted, #9a8f7e);
    margin-top: 0.1rem;
}