body {
  background-color: rgb(50,50,50);
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
  color: white;

}

body::-webkit-scrollbar {
  height: 5px;
  width: 6px;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 2px;
}

body::-webkit-scrollbar-thumb {
  background: rgb(213, 0, 7, 0.8);
  border-radius: 2px;
}

header {
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: -25px;
  font-family: Copperplate,Copperplate Gothic Light,fantasy; 
  font-size: 25px;
  border-bottom: 1px solid black;
  width: 400px;
  height: 80px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.611);
}

nav {
  display: flex;
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

nav h2 {
  margin-left: 20px;
  margin-right: 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.611);
}

nav a:link {
  color: white;
  text-decoration: none;
  transition-duration: 0.25s;
}

nav a:visited {
  color: white;
  text-decoration: none;
}

nav a:hover {
  color: white;
  text-decoration: none;
  background-color: rgb(90, 90, 90);
  transition-duration: 0.25s;
}

nav a:active {
  color: white;
  text-decoration: none;
}

section {
  width: 60%;
  margin: auto;
}

section img {
  height: 350px;
  width: auto;
}

#active {
  color: rgb(213, 0, 7);
}

footer {
  position: relative;
  bottom: 0px;
  width: 100%;
  height: 100px;
  border-top: 1px solid black;
  color: white;
  text-align: center;
  margin-top: 10px;
}

footer p {
  height: 7px;
}

/* Alex's del */

#aktuel_film {
  display: flex;
  width: 70vw;
  max-height: 500px;
  position: relative;
  border-radius: 8px;
  display: flex;
  background-color: rgb(60, 60, 60);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

#avatar_plakat {
  height: auto;
  width: 22vw;
  margin: 10px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.547);
  border-radius: 14px;
}

#avatar_info {
  text-align: center;
  margin: 10px;
  width: 65%;
}

#avatar_info h1{
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.547);
}

#avatar_info p {
  margin-top: 20px;
  color: rgb(172, 172, 172);
  text-align: left;
}

#avatar_info button {
  color: rgb(255, 255, 255);
  background-color: rgb(213, 0, 7);
  border-style: none;
  border-radius: 4px;
  height: 60px;
  width: 150px;
  position: relative;
  right: -120px;
  bottom: 110px;
  font-size: 20px;
  font-weight: bold;
  transition-duration: 0.2s;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.585);
}

#avatar_info button:hover {
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.484);
  bottom: 115px;
  transition-duration: 0.2s;
}

#avatar_info button:focus {
  outline: 3px solid rgba(216,81,81,0.18);
  outline-offset: 2px;
  border-radius: 6px;
}

#avatar_rating {
  height: 200px;
  width: auto;
  position: relative;
  bottom: 20px;
  left: -150px;
}

#række_2 {
  display: flex;
  width: 70%;
  margin: auto;
  height: 500px;
  margin-top: 40px;
  margin-bottom: 30px;
}

#nyhed {
  width: 65%;
  background-color: gray;
  height: 100%;
  margin-right: 5px;
  border-radius: 7px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

#nyhed img {
  object-fit: cover;
  object-position: right;
  height: 100%;
  width: 100%;
  filter: brightness(80%);
  z-index: -1;
  position: static;
  border-radius: 5px;
}

#nyhed h1 {
  position: absolute;
  width: 35%;
  z-index: 1;
  text-shadow: 3px 3px 10px rgb(0, 0, 0);
  font-size: 40px;
  text-align: center;
  outline: 2px solid rgba(213, 0, 7, 0.6);
  margin-left: 65px;
  margin-right: 65px;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.547);
  background-color: black;
}

#nyhed h2 {
  position: absolute;
  width: 655px;
  object-fit: cover;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  top: 1178px;
  z-index: 1;
  text-shadow: 2px 2px 7px rgb(0, 0, 0);
  text-align: center;
  font-size: 20px;
}

#app_tilbud {
  height: 100%;
  width: 35%;
  display: grid;
  margin-left: 5px;
}

#app {
  height: 245px;
  max-height: 245px;
  width: 100%;
  background: linear-gradient(222deg,rgba(213, 0, 7,0.8) 0%, rgb(172, 5, 5,0.8) 100%);
  margin-bottom: 5px;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

#app_cover {
  height: 140px;
  width: auto;
  border-radius: 15px;
  position: relative;
  right: -200px;
  top: -60px;
  rotate: 4deg;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

#app h1 {
  position: relative;
  text-align: center;
  margin: 5px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
}

#app h2 {
  position: relative;
  text-align: left;
  margin: 5px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
  font-size: 18px;
  top: 10px;
}

#tilbud {
  height: 245px;
  max-height: 245px;
  width: 100%;
  margin-top: 5px;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

#popcorn {
  position: relative;
  height: 170px;
  width: auto;
  right: -115px;
  bottom: 173px;
  filter: drop-shadow(1px 1px 10px rgb(135, 135, 135, 0.5));
}

#tilbud h1 {
  position: relative;
  text-align: left;
  top: -430px;
  margin: 5px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
}

#tilbud h2 {
  position: relative;
  text-align: left;
  top: -430px;
  margin: 5px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
}

#tilbud h3 {
  position: relative;
  text-align: left;
  top: -430px;
  margin: 5px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
}

#tilbud_baggrund {
  object-fit: cover;
  height: 100%;
  width: 100%;
  z-index: -1;
  position: static;
  filter: blur(1.5px);
  border-radius: 5px;
}

#række_3 {
  display: grid;
  width: 70%;
  margin: auto;
  height: 500px;
  margin-top: 40px;
  margin-bottom: 25px;
  background-color: rgb(60,60,60);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
  justify-self: center;
  border-radius: 8px;
}

#række_3 h1 {
  width: 100%;
  height: 50px;
  text-align: center;
  background-color: rgb(0,0,0,0);
  margin-bottom: 20px;
}

#række_3 img {
  height: 300px;
  width: auto;
  margin-left: 10px;
  margin-right: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

#bedste_film {
  width: 100%;
  display: flex;
  margin-top: -40px;
  overflow: auto;
}

#bedste_film::-webkit-scrollbar {
  height: 10px;
}

#bedste_film::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

#bedste_film::-webkit-scrollbar-thumb {
  background: rgb(213, 0, 7, 0.8);
  border-radius: 10px;
}

#film_1, #film_2, #film_3, #film_4, #film_5, #film_6 {
  width: 100%;
  text-align: center;
}

#film_1 h2, #film_2 h2, #film_3 h2, #film_4 h2, #film_5 h2, #film_6 h2 {
  margin-top: 0px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.611);
}

/* Kommende film del */

#kommendefilm {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 70.5%;
  position: relative;
  margin-top: 25px;
}

#kommendefilmtitel {
  text-align: center;
  width: 68%;
  margin: auto;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.785);
  font-size: 70px;
  background-color: rgb(60,60,60);
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
}

.kommendefilmbox {
  background-color: rgb(213,0,7);
  width: 200px;
  height: 340px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
  margin: 27px;
}

.kommendefilmbox img {
  width: auto;
  height: 300px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.kommendefilmbox h1 {
  font-size: 23px;
  text-align: center;
  position: relative;
  bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.611);
}

/* Gavekort del */

#gavekort_section {
  width: 65%;
  height: 600px;
  margin: auto;
  display: flex;
  margin-top: 10px;
  margin-bottom: 30px;
  background-color: rgb(60,60,60);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.547);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

#gavekort_img {
  height: 450px;
  width: auto;
  margin-top: 20px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.747));
}

#gavekort_textsection {
  height: 550px;
  position: relative;
  margin-top: 40px;
}

#gavekort_textsection h1 {
  font-size: 53px;
  margin-top: 30px;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.585);
}

#gavekort_textsection h2 {
  font-size: 23px;
  margin-top: -30px;
  color: rgb(137, 137, 137)
}

#input_section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

#input_section input {
  height: 50px;
  width: 400px;
  border-radius: 6px;
  border: none;
  padding: 10px;
  font-size: 16px;
}

#input_section ::placeholder {
  text-align: center;
}

#input_section input:focus {
  outline: 1.5px solid rgba(207,0,13,1);
  
}

#input_section button {
  height: 50px;
  width: 45%;
  background-color: rgb(213,0,7);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 6px 14px rgba(147, 41, 41, 0.18);
  transition-duration: 0.2s;
  position: absolute;
  right: 13px;
}

#input_section button:hover {
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.484);
  transition-duration: 0.2s;
}

#input_section select {
  position: absolute;
  height: 50px;
  width: 45%;
  border-radius: 6px;
  border: none;
  padding: 10px;
  font-size: 16px;
  left: -35px;
  top: -50px;
  text-align: center;
}

#input_section select:focus {
  outline: 1.5px solid rgba(207,0,13,1);
}

#beløb_og_køb {
  position: absolute;
  top: 340px;
  width: 430px;
  height: 200px;
  display: flex;
}

/* Miles' del */

/* --- farve-tema variabler --- */
/* Definerer CSS variabler for farver, spacing and sizes */
:root{
  /* --bg: page background color */
  --bg: rgb(50, 50, 50);
  /* --panel: background color for events bokse */
  --panel: rgb(43, 43, 43);
  /* --muted: muted/sekundær tekst farve */
  --muted: #cbd6df;
  /* --accent: primær accent farve (red) brugt til buttons og highlights */
  --accent: rgb(213, 0, 7);
  /* --gap: default gap mellem columns og bokse */
  --gap: 20px;
  /* --radius: default border radius til afrundede hjørner */
  --radius: 8px;
  /* --max-width: maximum page width til centered content */
  --max-width: 70%;
  /* --hero-img: path brugt som background-image til hero media */
  --hero-img: url("events_grafik/børneføds_i_bio.jpg");
}

/* Reset box model så padding og borders inkluderes i width/height udregninger */
* { box-sizing: border-box; }
/* Sørger for html og body tager full viewport height, dvs. 100% af den synlige browser */
html, body { height: 100%; }



/* Button hover effekt */
#button_events:hover { box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.484); bottom: 23px; transition-duration: 0.2s; }

/* Active nav item color using accent variable */
#active { color: var(--accent); }

/* Focks outline ifm. accessibility af links og buttons */
#button_events:focus {
  /* semi-transparent rød outline */
  outline: 3px solid rgba(216,81,81,0.18);
  /* separat outline fra kanten */
  outline-offset: 2px;
  /* afrunder outline corners */
  border-radius: 6px;
}

/* Main container: two-column layout med gap og centreret max width */
.container{
  /* begrænser container width */
  max-width: var(--max-width);
  /* Tager full available width i max-width */
  width: 100%;
  /* centrerer container horisontalt */
  margin: 0 auto 30px;
  /* bruger flexbox til at lave columns */
  display: flex;
  /* horisontalt gap mellem columns */
  gap: var(--gap);
  /* strækker children så columns matcher height */
  align-items: stretch;
}

/* Hero card (venstre stort eventboks) setup */
.hero-card {
  /* tager dobbelt space af sidebar */
  flex: 2;
  /* tillader internal stacking af media og caption */
  display: flex;
  flex-direction: column;
  /* position relative så absolute caption sidder over media */
  position: relative;
  /* visuelt udtryk */
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.38);
  /* forhindrer unexpected overflow pga. flex */
  min-width: 0;
}

/* Hero media: image area som definerer hero height */
.hero-card .media {
  /* optager resterende space inden i hero card */
  flex: 1;
  /* minimum height */
  min-height: 460px;
  /* bruger variable image som baggrund */
  background-image: var(--hero-img);
  /* gør at baggrunden dækker hele boksen */
  background-size: cover;
  /* sørger for centrering */
  background-position: center;
  background-repeat: no-repeat;
  /* holder caption positioneret relativt til denne container */
  position: relative;
  overflow: hidden;
}
/* 'fallback rule' "https://www.joshvickerson.com/posts/native-fallback-values-in-css-with-sass/" for <img> i media */
.hero-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption overlay oven over hero image */
.caption{
  /* position absolutely inden i hero media */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* space mellem title og button */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  /* mørk til transparent gradient for at give teksten kontrast */
  background: linear-gradient(0deg, rgba(8,10,12,.72), transparent);
  color: #fff;
}
/* Title og subtitle styles inden i caption */
.title { font-size: 26px; margin: 0; font-weight: 800; }
.subtitle { margin: 0; color: #dfeaf2; font-size: 14px; }

/* Sidebar: container for de two stacked small cards */
.sidebar{
  /* optager resterende space (sidebar vs hero) */
  flex: 1;
  /* stack children vertikalt */
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* minimum width */
  min-width: 300px;
  /* sikrer korrekt flex */
  min-height: 0;
}

/* Generisk card baseline visual styles */
.card{
  display: flex;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.38);
  min-width: 0;
}

/* Small cards i sidebar: fordeler sidebar height mellem dem */
.card.small {
  /* hvert small card bliver ens størrelse for at fylde sidebar height */
  flex: 1;
  /* tillader internt content til at forstørres/-mindskes korrekt */
  min-height: 0;
  align-items: stretch;
}

/* Small card media (venstre side image i small card) */
.small .media {
  /* gør det 45% af small card width */
  width: 45%;
  /* fylder card height */
  height: 100%;
  /* forhindrer formindskning under førnævnte width */
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.small .media img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Small card text og button area */
.small .body {
  /* resterende 55% af card width */
  width: 55%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Button styles for både large og small card 'actions' */
.btn, .ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px; 
  background: var(--accent);
  color: #fff;
  border: none; 
  padding: 10px 16px; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  box-shadow: 0 6px 14px rgba(147, 41, 41, 0.18);
}
/* Ticket ikon button specifik størrelse */
.ticket {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
}

/* Small card title og subtitle typografi */
.card-title { font-size: 18px; margin: 0; font-weight: 800; color: #fff; }
.card-sub { margin: 0; font-size: 13px; color: var(--muted); opacity: .95; }

/* Hover effect for main CTA (call-to-action) button */
#button:hover { box-shadow: 0 0 7px rgba(0,0,0,0.48); transform: translateY(-3px); transition: 0.18s; }

/* custom scrollbar */
.sidebar::-webkit-scrollbar {
  height: 10px;
}
 
.sidebar::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}
 
.sidebar::-webkit-scrollbar-thumb {
  background: rgb(213, 0, 7, 0.8);
  border-radius: 10px;
}

/* Responsive regelement for smallere viewports */
@media (max-width: 900px) {
  /* lille reducering af outer padding */
  body { padding: 20px; }
  /* stack columns vertikalt */
  .container { flex-direction: column; gap: 12px; }
  /* reducerer hero height på tablet */
  .hero-card .media { min-height: 360px; }
  /* gør sidebar horisontalt scrollable og giver cards forudbestemt width */
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .card { min-width: 300px; flex: 0 0 300px; }
}
@media (max-width: 520px) {
  /* yderligere reduktion af hero height på mobil */
  .hero-card .media { min-height: 260px; }
  /* mindre hero title */
  .title { font-size: 20px; }
  .card { min-width: 260px; }
}


/* Program page specifikke styles */
#program_nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

#program_list{
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

select {
  margin: 50px;
  width: 150px;
  padding: 5px 35px 5px 5px;
  font-size: 16px;
  border: 1px solid #CCC;
  height: 34px;
  -webkit-appearance: none;
  appearance: none;
  background: url() 96% / 15% no-repeat #EEE;
}

/* Program page specifikke styles */
/* ---------- layout til de 3 select-bokse ---------- */
#program_nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}


.custom-select {
  /* size & spacing */
  width: 220px;
  padding: 8px 40px 8px 12px; /* room for the custom arrow on the right */
  font-size: 15px;
  line-height: 1.25;
  box-sizing: border-box;

  /* udseende */
  border-radius: 8px;
  border: 1px solid #999;
  background-color: #eee;
  color: #111;               /* makes selected text visible */
  cursor: pointer;

  /* fjerner default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* custom arrow (small SVG indsat som data URI) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* sikrer at teksten kan læses */
.custom-select option {
  color: #111;
  background: #fff;
}

/* giver en outline rundt om for at fordre Attention fra AIDA */
.custom-select:focus {
  outline: 2px solid rgba(100, 150, 250, 0.6);
  outline-offset: 2px;
}

#program_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  align-items: center;
}

/* Layout */
.wrapper {
  padding:28px;
  box-sizing:border-box; /* løser problemer med padding og bredde ift. str. af div-element (https://www.w3schools.com/Css/css3_box-sizing.asp) */
  justify-content: center;
  margin: auto;
}

/* Spilletider grid:
   - Koloner placeres horisontalt
   - Hver dag har en forudbestemt width m.m.
*/
.schedule {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns: 170px; /* width af kolonne for hver dag */
  column-gap: 0.1px;
  overflow-x:auto;
  padding-bottom:8px;
}

/* enkelt dag kolonne */
.day {
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height: 400px;
}

/* sticky dato header ved toppen af hver kolonne */
.day .date {
  position:sticky;
  top:0;
  z-index:2; /* sørger for at dato headeren ligger over kort */
  background:linear-gradient(180deg,#0f1720 0%, rgba(15,23,32,0.85) 100%);
  padding:10px 12px;
  border-radius:8px;
  color:#f5f7fa;
  font-weight:700;
  font-size:0.9rem;
  text-align:center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.6) inset;
}

/* område til at stacke spilletider */
.card-list {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:6px;
}

/* hver vist spilletid */
.cardprogram {
  background: linear-gradient(180deg,#1db057 0%, #16a047 100%); /* lysegrøn farve pr. automatik */
  border-radius:10px;
  padding:8px 10px;
  box-shadow: 0 8px 18px rgba(2,6,8,0.6), 0 1px 0 rgba(0,0,0,0.25) inset;
  color:white;
  min-height:68px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:6px;
  column-gap:6px;
  transition:transform .12s ease, box-shadow .12s ease;
}

/* Lille top-label med hvilken sal filmen spilles i */
.cardprogram .screen {
  font-size:0.82rem;
  font-weight:800;
  letter-spacing:0.02em;
}

/* tidspunkt */
.cardprogram .time {
  font-weight:900;
  font-size:1.35rem;
  line-height:1;
}

/* detaljer som bl.a. version, sprog m.m. */
.cardprogram .meta {
  font-size:0.72rem;
  opacity:0.95;
  font-weight:600;
}

/* hover/focus effekt */
.cardprogram:hover,
.cardprogram:focus-within {
  transform:translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.55);
  cursor:pointer;
}

/* Lille tom spilletid for at gøre op for ullige antal spilletider ift. forskellige dage */
.cardprogram.empty {
  background:transparent;
  box-shadow:none;
  transform:none;
  pointer-events:none;
}

.cardprogram.soldout {
  background: linear-gradient(180deg,#ff7b7b 0%, #e74c3c 100%); /* rød farve hvis udsolgt */
}

/* Legende over antal optagne pladser */
.legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 18px;    /* tom plads over og under */
  flex-wrap: wrap;       /* til smallere skærme */
}

/* hvert label + swatch */
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e6eef6;        /* lys tekst står i kontrast til mørk baggrund */
  line-height: 1;
  user-select: none;
}

/* farvet firkant */
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.35) inset, 0 1px 2px rgba(0,0,0,0.25);
  flex: 0 0 12px;
}

/* farvevarianter */
.swatch-green  { background: linear-gradient(180deg, #3ad06a 0%, #16a047 100%); }
.swatch-yellow { background: linear-gradient(180deg, #ffd54a 0%, #f1c40f 100%); }
.swatch-orange { background: linear-gradient(180deg, #ffb86b 0%, #e67e22 100%); }
.swatch-red    { background: linear-gradient(180deg, #ff7b7b 0%, #e74c3c 100%); }


/* responsivitet */
@media (max-width: 520px) {
  .legend { gap: 12px; margin-bottom: 12px; }
  .legend-item { font-size: 12px; gap: 6px; }
  .legend-swatch { width: 10px; height: 10px; }
}