/* ===== Smagninger (vært + deltager) ===== */
:root {
    --bz-vin: #7b1e3a;
    --bz-vin-moerk: #4a0e22;
    --bz-rose: #f8f3f5;
    --bz-rose-2: #f1e4e9;
    --bz-guld: #c9a227;
}

/* Nav-ikon «Smagninger»: to vinglas der skåler (16x16, fill white – samme stil som de øvrige nav-ikoner i NavMenu.razor.css) */
.bi-smagning-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath transform='translate(3.6 1.8) rotate(8 0 13)' d='M-2.6 0h5.2v2.6a2.6 2.6 0 0 1-2.1 2.55V12h1.6a.5.5 0 0 1 0 1h-4.2a.5.5 0 0 1 0-1h1.6V5.15a2.6 2.6 0 0 1-2.1-2.55z'/%3E%3Cpath transform='translate(12.4 1.8) rotate(-8 0 13)' d='M-2.6 0h5.2v2.6a2.6 2.6 0 0 1-2.1 2.55V12h1.6a.5.5 0 0 1 0 1h-4.2a.5.5 0 0 1 0-1h1.6V5.15a2.6 2.6 0 0 1-2.1-2.55z'/%3E%3C/svg%3E");
}

/* Point-farver (Wine Advocate-intervaller) */
.point-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .2rem .5rem;
    border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.point-top { background: #4a0e22; color: #fff; }
.point-hoej { background: #7b1e3a; color: #fff; }
.point-god { background: #c4677f; color: #fff; }
.point-middel { background: #e9c9d3; color: #4a0e22; }
.point-lav { background: #e6e6e6; color: #555; }
.point-ingen { background: #f1f1f1; color: #999; font-weight: 500; }

.smag-badge-demo { background: #fff3cd; color: #7a5b00; border: 1px solid #f0d27a; }

/* ----- Vært ----- */
.smag-kort { border: 1px solid #eadde2; border-radius: .75rem; transition: box-shadow .15s; }
.smag-kort:hover { box-shadow: 0 4px 16px rgba(74, 14, 34, .08); }
.smag-kort .card-title a { text-decoration: none; }
.smag-meta { color: #6c757d; font-size: .9rem; }
.smag-tabs .nav-link { color: var(--bz-vin); }
.smag-tabs .nav-link.active { font-weight: 600; border-bottom: 2px solid var(--bz-vin); }
.kode-stor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2.6rem; letter-spacing: .35rem;
    font-weight: 700; color: var(--bz-vin-moerk); line-height: 1; }
.qr-boks { background: #fff; border: 1px solid #eadde2; border-radius: .75rem; padding: .5rem; display: inline-block; }
.qr-boks svg { display: block; width: 100%; height: auto; }
.qr-lille { width: 180px; }
.status-trin { display: flex; gap: .25rem; flex-wrap: wrap; }
.status-trin .trin { padding: .25rem .7rem; border-radius: 999px; background: #f1f1f1; color: #888; font-size: .85rem; }
.status-trin .trin.aktiv { background: var(--bz-vin); color: #fff; font-weight: 600; }
.status-trin .trin.forbi { background: var(--bz-rose-2); color: var(--bz-vin); }
.vin-raekke { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-bottom: 1px solid #f0e8eb; }
.vin-raekke:last-child { border-bottom: 0; }
.vin-nr { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bz-rose-2); color: var(--bz-vin);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.vin-nr.afsloeret { background: var(--bz-vin); color: #fff; }
.live-prik { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #2fb35a; margin-right: .35rem;
    box-shadow: 0 0 0 0 rgba(47, 179, 90, .6); animation: live-puls 2s infinite; }
@keyframes live-puls { 0% { box-shadow: 0 0 0 0 rgba(47,179,90,.55); } 70% { box-shadow: 0 0 0 .5rem rgba(47,179,90,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,90,0); } }
.flash { animation: flash-bg 1.2s ease-out; }
@keyframes flash-bg { 0% { background: #fff3cd; } 100% { background: transparent; } }
.res-bar { height: .5rem; background: #f1e4e9; border-radius: 999px; overflow: hidden; }
.res-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #c4677f, #7b1e3a); border-radius: 999px; }
.note-tael { display: inline-block; background: var(--bz-rose); color: var(--bz-vin-moerk); border-radius: 999px; padding: .1rem .55rem;
    margin: 0 .25rem .25rem 0; font-size: .85rem; }
.note-tael b { font-weight: 700; margin-left: .2rem; }
.matrix th, .matrix td { text-align: center; white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.soeg-resultat { max-height: 22rem; overflow-y: auto; }
.placering { font-size: 1.4rem; font-weight: 800; color: var(--bz-vin); width: 2.4rem; text-align: center; }
.placering.p1 { color: var(--bz-guld); }

/* Storskærm (projektor) */
.skaerm { min-height: 100vh; background: radial-gradient(circle at 30% 20%, #7b1e3a 0%, #4a0e22 60%, #2b0a16 100%); color: #fff;
    display: flex; align-items: center; justify-content: center; padding: 2rem; }
.skaerm .kode-stor { color: #fff; font-size: clamp(3rem, 9vw, 7rem); }
.skaerm .qr-boks { padding: 1rem; }
.skaerm .qr-stor { width: min(60vh, 80vw); }

/* ----- Deltager (telefon først) ----- */
.dl-shell { min-height: 100vh; background: #faf6f7; }
.dl-top { position: sticky; top: 0; z-index: 20; background: linear-gradient(135deg, #4a0e22, #7b1e3a); color: #fff;
    padding: .65rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.dl-top a, .dl-top a:hover { color: #fff; text-decoration: none; }
.dl-main a:not(.btn) { color: var(--bz-vin); }
.dl-main a:not(.btn):hover { color: var(--bz-vin-moerk); }
.dl-main a.dl-vin-link, .dl-main a.dl-vin-link:hover { color: inherit; }
.dl-top .dl-brand { font-weight: 700; letter-spacing: .02em; }
.dl-top .dl-sub { font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-main { max-width: 640px; margin: 0 auto; padding: 1rem .9rem 7rem; }
.dl-kort { background: #fff; border-radius: 1rem; box-shadow: 0 1px 4px rgba(74,14,34,.08); padding: 1rem; margin-bottom: .9rem; }
.dl-h1 { font-size: 1.45rem; font-weight: 700; color: var(--bz-vin-moerk); margin: 0; }
.dl-vin-link { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 1rem; padding: .85rem 1rem; margin-bottom: .6rem;
    box-shadow: 0 1px 4px rgba(74,14,34,.08); color: inherit; text-decoration: none; min-height: 4.2rem; }
.dl-vin-link:active { transform: scale(.99); background: var(--bz-rose); }
.dl-vin-link .vin-nr { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
.dl-vin-link .titel { font-weight: 600; line-height: 1.2; }
.dl-vin-link .under { font-size: .85rem; color: #6c757d; }
.dl-progress { height: .45rem; border-radius: 999px; background: #eadde2; overflow: hidden; }
.dl-progress > span { display: block; height: 100%; background: var(--bz-vin); }
.dl-input { font-size: 1.15rem; padding: .8rem 1rem; border-radius: .75rem; }
.dl-kode-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.9rem; letter-spacing: .4rem;
    text-transform: uppercase; text-align: center; font-weight: 700; }
.btn-stor { font-size: 1.15rem; padding: .85rem 1rem; border-radius: .85rem; font-weight: 600; }

/* Score */
.score-vis { text-align: center; }
.score-tal { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--bz-vin-moerk); font-variant-numeric: tabular-nums; }
.score-tal.tom { color: #c9b6bd; }
.score-bet { font-size: .95rem; color: var(--bz-vin); min-height: 1.4rem; font-weight: 600; }
.score-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 2.6rem; background: transparent; touch-action: pan-y; }
.score-slider:focus { outline: none; }
.score-slider::-webkit-slider-runnable-track { height: .7rem; border-radius: 999px; background: linear-gradient(90deg, #e6e6e6 0%, #e9c9d3 40%, #c4677f 70%, #7b1e3a 90%, #4a0e22 100%); }
.score-slider::-moz-range-track { height: .7rem; border-radius: 999px; background: linear-gradient(90deg, #e6e6e6 0%, #e9c9d3 40%, #c4677f 70%, #7b1e3a 90%, #4a0e22 100%); }
.score-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 2.1rem; height: 2.1rem; margin-top: -.7rem; border-radius: 50%;
    background: #fff; border: .3rem solid var(--bz-vin); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.score-slider::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: .3rem solid var(--bz-vin);
    box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.score-slider.tom::-webkit-slider-thumb { border-color: #c9b6bd; }
.score-slider.lille { height: 2.2rem; }
.score-skala { display: flex; justify-content: space-between; font-size: .75rem; color: #9a8790; margin-top: -.3rem; }
.hurtig { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.hurtig button { padding: .55rem 0; border-radius: .6rem; font-weight: 700; border: 1px solid #e3cfd6; background: #fff; color: var(--bz-vin); }
.hurtig button.valgt { background: var(--bz-vin); color: #fff; border-color: var(--bz-vin); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.stepper button { width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; border: 1px solid #e3cfd6; background: #fff; color: var(--bz-vin); }
.delpoint-raekke { margin-bottom: .55rem; }
.delpoint-raekke .lbl { display: flex; justify-content: space-between; font-size: .9rem; }
.delpoint-raekke .lbl b { color: var(--bz-vin-moerk); font-variant-numeric: tabular-nums; }
.seg { display: flex; background: #f1e4e9; border-radius: .7rem; padding: .2rem; }
.seg button { flex: 1; border: 0; background: transparent; padding: .5rem .25rem; border-radius: .55rem; font-weight: 600; color: var(--bz-vin); }
.seg button.aktiv { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg .antal { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .3rem; border-radius: 999px; background: var(--bz-vin); color: #fff; font-size: .75rem; }

/* Chip-vælger */
.kat-pills { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kat-pills::-webkit-scrollbar { display: none; }
.kat-pills button { flex: 0 0 auto; border: 1px solid #e3cfd6; background: #fff; color: #6b4a56; border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; white-space: nowrap; }
.kat-pills button.aktiv { background: var(--bz-vin-moerk); color: #fff; border-color: var(--bz-vin-moerk); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid #e3cfd6; background: #fff; color: #4a3740; border-radius: 999px; padding: .45rem .8rem; font-size: .95rem; line-height: 1.1; }
.chip.valgt { background: var(--bz-vin); border-color: var(--bz-vin); color: #fff; }
.chip.valgt::before { content: "✓ "; }
.chip-kat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #9a8790; margin: .8rem 0 .35rem; font-weight: 700; }
.valgte-chips .chip { padding: .3rem .65rem; font-size: .85rem; }
.valgte-chips .chip.valgt::before { content: ""; }
.valgte-chips .chip.valgt::after { content: " ×"; opacity: .8; }

/* Sticky gem-bjælke */
.gem-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
    border-top: 1px solid #eadde2; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); }
.gem-bar .indre { max-width: 640px; margin: 0 auto; display: flex; gap: .5rem; align-items: center; }
.gem-bar .btn { border-radius: .8rem; padding: .75rem .9rem; font-weight: 600; }
.gem-status { font-size: .85rem; color: #2f7d4a; }
.gem-status.ugemt { color: #a0611b; }
.koeb-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.koeb-switch .form-check-input { width: 3.2rem; height: 1.7rem; cursor: pointer; }
.koeb-switch .form-check-input:checked { background-color: var(--bz-vin); border-color: var(--bz-vin); }

@media (max-width: 380px) {
    .hurtig { grid-template-columns: repeat(4, 1fr); }
    .score-tal { font-size: 3.6rem; }
}

/* ===== Arrangementstyper: stjerner, menu, spørgsmål, menukort ===== */
.stjerner { display: inline-flex; gap: .1rem; }
.stjerner button { background: none; border: 0; padding: .1rem .2rem; font-size: 2rem; line-height: 1; color: #d9c9cf; cursor: pointer; min-width: 2.4rem; min-height: 2.6rem; }
.stjerner.lille button { font-size: 1.45rem; min-width: 2rem; min-height: 2.2rem; }
.stjerner button.fuld { color: #c9971c; }
.stjerner button:disabled { cursor: default; opacity: .7; }
.stjerne-badge { display: inline-flex; align-items: center; gap: .15rem; padding: .15rem .55rem; border-radius: 999px; background: #fbf1d6; color: #7a5b00; font-weight: 700; white-space: nowrap; }
.dl-sektion { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bz-vin); font-weight: 700; margin: 1.1rem .25rem .45rem; }
.dl-servering-link .titel { font-weight: 700; }
.vi-etiket { max-width: 8rem; max-height: 10rem; border-radius: .4rem; margin-top: .4rem; display: block; }
.servering-ret { border-left: 4px solid var(--bz-vin); }
.ls-1 { letter-spacing: .08em; }
.spm-kort.afsloeret { background: #fdfaf2; }
.spm-kort .chip { font-size: .95rem; }
.fmt-tabel td, .fmt-tabel th { vertical-align: middle; white-space: nowrap; }
.fmt-tabel select { min-width: 7.5rem; }
.wiz-trin { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.wiz-trin span { padding: .25rem .7rem; border-radius: 999px; background: #f1e4e9; color: var(--bz-vin); font-size: .85rem; }
.wiz-trin span.aktiv { background: var(--bz-vin); color: #fff; font-weight: 600; }
.wiz-trin span.forbi { background: var(--bz-rose-2, #e9c9d3); }
.preset-kort { cursor: pointer; border: 2px solid #eadde2; border-radius: .75rem; padding: .7rem .9rem; height: 100%; background: #fff; text-align: left; width: 100%; }
.preset-kort.valgt { border-color: var(--bz-vin); box-shadow: 0 0 0 .15rem rgba(123, 30, 58, .15); }

.menukort { max-width: 640px; margin: 0 auto; padding: 1.6rem 1.1rem 3rem; font-family: Georgia, "Times New Roman", serif; color: #2b1a20; background: #fffdf9; min-height: 100vh; }
.mk-hoved { text-align: center; border-bottom: 1px solid #d9c3ca; padding-bottom: 1rem; margin-bottom: 1rem; }
.mk-arrangoer { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #7b1e3a; }
.mk-titel { font-size: 1.55rem; font-weight: 700; margin: .4rem 0; line-height: 1.25; }
.mk-tid, .mk-vinmager, .mk-vaerter { font-size: .95rem; color: #5a4148; }
.mk-intro { font-size: .92rem; color: #5a4148; margin-bottom: 1.2rem; }
.mk-servering { text-align: center; padding: .9rem 0; border-bottom: 1px dotted #d9c3ca; break-inside: avoid; }
.mk-nr { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #9a7a84; }
.mk-ret { font-size: 1.15rem; font-weight: 700; margin: .2rem 0; }
.mk-beskrivelse, .mk-allergener { font-size: .85rem; color: #6c5a60; }
.mk-vin { font-size: .95rem; margin-top: .25rem; font-style: italic; }
.mk-vinunder { display: block; font-size: .8rem; color: #8a7077; font-style: normal; }
.mk-priser { font-size: .82rem; font-style: normal; margin-top: .15rem; }
.mk-priser .pris-linje { justify-content: center; }
.mk-priser .pris-cl { min-width: 0; }
.mk-fod { text-align: center; margin-top: 1.4rem; }
.mk-knapper { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
@media print {
    .dl-shell, .menukort { background: #fff !important; min-height: 0; }
    .menukort { padding: 0; max-width: none; }
    .mk-servering { padding: .6rem 0; }
    @page { margin: 1.6cm; }
}

/* Arrangementspriser (listepris + evt. tilbud) */
.pris-linje { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.pris-cl { color: #6c757d; min-width: 3.2rem; }
.pris-liste { color: #8a7077; }
.pris-tilbud { color: #9b1c31; }
.pris-tilbud-badge { background: #f8e3e7; color: #9b1c31; font-weight: 600; font-size: .7rem; }
.pris-note { font-size: .85em; }
.pris-editor .pris-raekke + .pris-raekke { border-top: 1px dashed #dee2e6; padding-top: .4rem; margin-top: .4rem; }
