/* casinoupgrade.com - burgundy baize, cream cards and brass: blackjack explained */
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders-display-vf.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f7efe0; --ink: #26141a; --daempet: #5f4b4f; --link: #7a1e2b; --accent: #c9a24a; --fokus: #c9a24a;
  --flade: #efe2c9; --linje: #dccaa8; --bord: #5a1620; --bord-dyb: #3e0e16; --messing: #c9a24a;
  --display: "Big Shoulders", "Arial Narrow", sans-serif; --tekst: "Source Serif 4", Georgia, serif; --mono: "Big Shoulders", sans-serif;
  --knap: #5a1620; --knap-tekst: #f7efe0; --rund: 4px; --bredde: 66rem; --fs: 1.1rem;
  --fod-bg: #2b0a10; --fod-tekst: #eadccb; --fod-linje: #4c1e26; --resultat-bg: #fbf6ec; --felt-bg: #fffaf0;
}

/* ---- Grundlag (fælles struktur; farver og skrifter står i :root ovenfor) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--tekst); font-size: var(--fs, 1.0625rem); line-height: 1.62; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 2px; }
.ramme { width: min(100% - 2rem, var(--bredde, 70rem)); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; }
.spring:focus { top: 0.75rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; }
h1 { margin: 0 0 0.9rem; }
h2 { margin: 2.4em 0 0.6em; }
h3 { margin: 1.7em 0 0.45em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
.indledning { font-size: clamp(1.1rem, 2.1vw, 1.28rem); line-height: 1.5; max-width: 44ch; }
.daempet { color: var(--daempet); }
.tal { font-family: var(--mono, inherit); font-variant-numeric: tabular-nums; }

/* Top */
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.6rem; padding-block: 0.95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: inherit; line-height: 1; }
.ordmaerke span span { opacity: 0.6; }
.ikon { width: 1.75rem; height: 1.75rem; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; }
.menu a { text-decoration: none; font-weight: 600; font-size: 0.96rem; padding-block: 0.3rem; color: inherit; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: currentColor; }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sektioner */
.sektion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sektion > .ramme > h2:first-child, .sektion h2.forst { margin-top: 0; }
.to-spalter { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 52rem) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.genveje { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.genvej { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem 1.3rem 1.35rem; text-decoration: none; color: inherit; background: var(--flade); border-radius: var(--rund, 6px); }
.genvej:hover .genvej-titel { text-decoration: underline; text-underline-offset: 0.2em; }
.genvej-titel { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; padding: 0.75rem 1.2rem; background: var(--knap, var(--ink)); color: var(--knap-tekst, var(--bg)); text-decoration: none; font-weight: 700; border-radius: var(--rund, 6px); border: 2px solid var(--knap, var(--ink)); line-height: 1.2; }
.knap:hover { filter: brightness(1.12); }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 48rem; margin-bottom: 2.2rem; }
.artikel { max-width: var(--maal, 68ch); }
.artikel > h2:first-child { margin-top: 0; }
.fakta { background: var(--flade); padding: 1.15rem 1.35rem; border-radius: var(--rund, 6px); margin: 1.6rem 0; }
.fakta > :last-child { margin-bottom: 0; }
.fakta-titel { font-weight: 700; margin-bottom: 0.35rem; }
.tabel-wrap { overflow-x: auto; margin: 1.3rem 0 1.6rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--linje); white-space: nowrap; vertical-align: top; }
th { font-weight: 700; }
td.h, th.h { text-align: right; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
dl.ord dt { font-weight: 700; margin-top: 1rem; }
dl.ord dd { margin: 0.2rem 0 0; }

/* Værktøjer */
.vaerktoj { background: var(--flade); border-radius: var(--rund, 6px); padding: clamp(1.1rem, 3vw, 1.8rem); margin: 1.5rem 0 2rem; }
.felter { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1.2rem; }
.felt label, .felt .etiket { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.felt small { display: block; color: var(--daempet); font-size: 0.85rem; margin-top: 0.3rem; }
input[type="number"], input[type="text"], select { width: 100%; font: inherit; font-size: 1rem; padding: 0.6rem 0.7rem; border: 1.5px solid var(--felt-kant, var(--linje)); border-radius: calc(var(--rund, 6px) * 0.7); background: var(--felt-bg, #fff); color: var(--ink); }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.resultat { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 0.4rem; }
.resultat > div { background: var(--resultat-bg, var(--bg)); padding: 0.85rem 1rem; border-radius: calc(var(--rund, 6px) * 0.8); }
.resultat dt, .resultat .r-etiket { font-size: 0.85rem; color: var(--daempet); margin: 0; }
.resultat dd, .resultat .r-tal { margin: 0.2rem 0 0; font-size: 1.45rem; font-weight: 700; font-family: var(--mono, inherit); font-variant-numeric: tabular-nums; line-height: 1.2; }
.forklaring { margin-top: 1rem; font-size: 0.97rem; }

/* Fod */
.bund { background: var(--fod-bg); color: var(--fod-tekst); padding-block: 2.2rem 2.6rem; font-size: 0.95rem; }
.bund a { color: inherit; }
.hjalp { max-width: 62ch; margin: 0 0 1.6rem; }
.bund-linje { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-top: 1.2rem; border-top: 1px solid var(--fod-linje); }
.bund-navn { margin: 0; font-weight: 700; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }

@media (max-width: 30rem) {
  .menu { gap: 0.1rem 0.9rem; }
  .menu a { font-size: 0.92rem; }
  th, td { padding: 0.5rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- Tema ---- */
h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: 0.92; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1; }
h3 { font-size: 1.5rem; font-weight: 700; }
.top { background: var(--bord-dyb); color: #f7efe0; }
.ordmaerke { font-family: var(--display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.ordmaerke .ikon { color: var(--messing); }
.menu a { font-family: var(--display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #efdfc9; }
.menu a[aria-current="page"] { color: var(--messing); border-bottom-color: var(--messing); }
.helt { background: radial-gradient(120% 90% at 70% 40%, #73202d 0%, var(--bord) 45%, var(--bord-dyb) 100%); color: #f7efe0; padding-block: clamp(2.8rem, 7vw, 5rem); }
.helt-ind { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 54rem) { .helt-ind { grid-template-columns: 1.2fr 1fr; } }
.helt .indledning { color: #ecd9c3; }
.helt .knap { background: var(--messing); border-color: var(--messing); color: #2b0a10; }
.helt .knap-lys { background: transparent; color: #f7efe0; border-color: #b78a8f; }
.hand { display: flex; justify-content: center; padding: 1rem 0; }
.hand .kort { margin-left: -1.6rem; transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.hand .kort:first-child { margin-left: 0; }
.kort { display: inline-flex; flex-direction: column; justify-content: space-between; width: 7.5rem; aspect-ratio: 5 / 7; background: #fbf6ec; border-radius: 0.6rem; padding: 0.55rem 0.65rem; color: #1d1d1d; border: 1px solid #d9c9aa; }
.kort.k-h, .kort.k-d { color: #b0232f; }
.kort-v { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.kort-k { width: 3rem; height: 3rem; align-self: flex-end; fill: currentColor; }
.lille .kort { width: 3.6rem; padding: 0.3rem 0.35rem; border-radius: 0.35rem; }
.lille .kort-v { font-size: 1.15rem; }
.lille .kort-k { width: 1.4rem; height: 1.4rem; }
.lille { display: inline-flex; gap: 0.35rem; vertical-align: middle; flex-wrap: wrap; }
.trin { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.trin li { background: var(--flade); padding: 1.1rem 1.2rem; border-radius: var(--rund); margin: 0; }
.trin b { display: block; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.25rem; color: var(--bord); }
.genvej { background: var(--bord); color: #f7efe0; }
.genvej-titel { font-weight: 800; text-transform: uppercase; font-size: 1.55rem; color: var(--messing); }
.genvej:hover { background: #6a1b27; }
.tabel-wrap th { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
.taeller-knapper { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 1.1rem; }
.taeller-knapper button { min-width: 3rem; padding: 0.55rem 0.7rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; background: #fbf6ec; color: var(--ink); border: 1.5px solid var(--linje); border-radius: var(--rund); }
.taeller-knapper button:hover { border-color: var(--bord); }
.taeller-knapper .handling { background: var(--bord); color: #f7efe0; border-color: var(--bord); font-size: 1.05rem; text-transform: uppercase; }
.taeller-hand { min-height: 5.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.status { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: var(--bord); margin: 0 0 0.6rem; }
.bund .hjalp strong { color: var(--messing); }
@media (max-width: 30rem) { .kort { width: 5.6rem; } .kort-v { font-size: 1.7rem; } .kort-k { width: 2.2rem; height: 2.2rem; } .hand .kort { margin-left: -1.2rem; } }
.hand .kort:first-child { --r: -7deg; } .hand .kort:nth-child(2) { --r: 7deg; margin-top: 1.2rem; }
.utan-topp { padding-top: 0; }
.vaerktoj h2.forst, .vaerktoj > h2:first-child { margin-top: 0; }
