/* "En uge med Phoebe": eleven cards from Sunday evening to Friday, built from docs/design/foresense-design-v2/karrusel.html
   (zip of 8 October 2026, 19:43). An endless loop without JavaScript: the cards are in the track twice and the track
   slides half its width with a CSS animation. It pauses on hover and focus, and with the pause button (a hidden
   checkbox, read with :has()). The copies are aria-hidden and cannot be tabbed to. With prefers-reduced-motion it is an
   ordinary scrollable row. The phones are decorative (aria-hidden); the time, label, heading and "Du slipper for" line
   on each card are what screen readers hear. */
.uge { font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif; color: #18202A; background: #EDF0F4; padding: 96px 0; }
.uge-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.uge-intro { display: flex; flex-direction: column; gap: 14px; }
.uge h2 { margin: 0; font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.uge-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #4F5B69; max-width: 36rem; }

/* The pause button: a label for a visually hidden checkbox (still reachable by keyboard). */
.uge-pause { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.uge-knap { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1px #D5DBE2; font-size: 14px; font-weight: 500; color: #18202A; }
.uge-tekst-afspil { display: none; }
.uge:has(.uge-pause:checked) .uge-tekst-pause { display: none; }
.uge:has(.uge-pause:checked) .uge-tekst-afspil { display: inline; }
.uge:has(.uge-pause:focus-visible) .uge-knap { outline: 2px solid #18202A; outline-offset: 3px; }

/* The window with soft edges and the track that slides: half its width is exactly one set of cards and one gap. */
.uge-vindue {
  margin-top: 40px; overflow: hidden; padding: 8px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  scrollbar-width: thin; scrollbar-color: #B8C2CE transparent;
}
.uge-vindue:focus-visible { outline: 2px solid #18202A; outline-offset: 6px; }
.uge-spor { display: flex; gap: 20px; width: max-content; padding-left: 20px; animation: ugeloeb 120s linear infinite; }
@keyframes ugeloeb { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.uge-vindue:hover .uge-spor, .uge-vindue:focus-within .uge-spor { animation-play-state: paused; }
.uge:has(.uge-pause:checked) .uge-spor { animation-play-state: paused; }
/* The pause button also stops the steps inside the phones (WCAG 2.2.2: everything that moves can be paused). */
.uge:has(.uge-pause:checked) .uge-skaerm > * { animation-play-state: paused; }

.uge-kort { flex: 0 0 272px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.uge-kort-slut { flex-basis: 300px; }
.uge-titel { display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.uge-titel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uge-tid { font-family: 'Bodoni Moda', 'Didot', Georgia, serif; font-size: 24px; color: #8E1B4B; }
.uge-chip { font-size: 12px; font-weight: 500; color: #4F5B69; padding: 4px 10px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1px #D5DBE2; white-space: nowrap; }
.uge-kort h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.uge-slipper { margin: 0; font-size: 14px; line-height: 1.5; color: #4F5B69; }
.uge-slipper strong { font-weight: 600; color: #18202A; }

.uge-tlf { height: 452px; border-radius: 36px; padding: 10px; background: #0B0708; box-shadow: 0 30px 60px -20px rgba(24,32,42,0.45), 0 0 0 1px rgba(24,32,42,0.08); }
.uge-skaerm {
  height: 100%; box-sizing: border-box; border-radius: 28px; overflow: hidden; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 12px; font-family: 'Jost', sans-serif;
  background: radial-gradient(ellipse 80% 50% at 10% 0%, #3A1E28 0%, rgba(58,30,40,0) 70%), linear-gradient(180deg, #1C1115 0%, #110A0C 100%);
}
.uge-skaerm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.uge-navn { font-family: 'Bodoni Moda', 'Didot', Georgia, serif; font-size: 19px; color: #F3E9E4; }
.uge-prik { width: 7px; height: 7px; border-radius: 999px; background: #E8A1BF; }

.uge-besked { align-self: flex-start; max-width: 92%; background: #EEF1F5; color: #18202A; border-radius: 16px 16px 16px 4px; padding: 12px 14px; }
.uge-fra { font-size: 12px; color: #4F5B69; }
.uge-tekst { font-size: 15px; margin-top: 3px; }
.uge-handling {
  align-self: flex-end; max-width: 94%; padding: 10px 14px; border-radius: 999px; color: #FFFFFF; font-size: 13px;
  background: radial-gradient(130% 90% at 50% 125%, rgba(214,70,140,0.75) 0%, rgba(142,27,75,0.45) 32%, rgba(142,27,75,0) 62%), linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.10) 46%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #2B1A21 0%, #0B0708 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 0 0 1px rgba(255,255,255,0.08);
}
.uge-tryk { align-self: stretch; padding: 12px 14px; border-radius: 14px; background: #F3D9E4; color: #4A0F28; font-size: 13.5px; font-weight: 500; box-shadow: 0 0 0 1px rgba(232,161,191,0.6); }
.uge-resultat { margin-top: auto; background: rgba(243,233,228,0.08); border: 1px solid rgba(243,233,228,0.18); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.uge-resultat-main { font-size: 14px; color: #F3E9E4; }
.uge-resultat-note { font-size: 12.5px; color: #BFA8AE; }

/* The last card: the week summed up, with "Skriv til os". */
.uge-fyraften {
  min-height: 452px; box-sizing: border-box; border-radius: 28px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,226,236,0.06) 20%, rgba(255,255,255,0) 34%), radial-gradient(ellipse 70% 55% at 15% 0%, #3A1E28 0%, rgba(58,30,40,0) 65%), linear-gradient(180deg, #1C1115 0%, #110A0C 100%);
  color: #F3E9E4; font-family: 'Jost', sans-serif; box-shadow: 0 30px 60px -20px rgba(24,32,42,0.45);
}
.uge-fyraften-titel { font-family: 'Bodoni Moda', 'Didot', Georgia, serif; font-size: 22px; line-height: 1.2; }
.uge-fyraften ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.uge-fyraften li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.uge-fyraften li svg { flex-shrink: 0; margin-top: 3px; }
.uge-fyraften a { margin-top: auto; text-align: center; padding: 12px 18px; border-radius: 10px; background: #F3E9E4; color: #18202A; text-decoration: none; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 500; }
.uge-fyraften a:focus-visible { outline: 2px solid #E8A1BF; outline-offset: 3px; }

/* The three steps on each phone appear one after the other; the phones start at different points (the design's delays,
   the same for a card and its copy: 11n+k). */
@keyframes uk1 { 0%, 8% { opacity: 0; transform: translateY(10px); } 12%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes uk2 { 0%, 28% { opacity: 0; transform: translateY(10px); } 32%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes uk3 { 0%, 50% { opacity: 0; transform: translateY(10px); } 54%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.uge-trin1 { animation: uk1 10s infinite both; }
.uge-trin2 { animation: uk2 10s infinite both; }
.uge-trin3 { animation: uk3 10s infinite both; }
.uge-kort:nth-child(11n+2) .uge-skaerm > * { animation-delay: -1.25s; }
.uge-kort:nth-child(11n+3) .uge-skaerm > *, .uge-kort:nth-child(11n+4) .uge-skaerm > * { animation-delay: -2.5s; }
.uge-kort:nth-child(11n+5) .uge-skaerm > * { animation-delay: -3.75s; }
.uge-kort:nth-child(11n+6) .uge-skaerm > *, .uge-kort:nth-child(11n+7) .uge-skaerm > * { animation-delay: -5s; }
.uge-kort:nth-child(11n+8) .uge-skaerm > * { animation-delay: -6.25s; }
.uge-kort:nth-child(11n+9) .uge-skaerm > * { animation-delay: -8.75s; }
.uge-kort:nth-child(11n+10) .uge-skaerm > * { animation-delay: -7.5s; }

/* Reduced motion: no sliding, no copies, no pause button; an ordinary scrollable row, and every phone stands still on
   the finished picture. */
@media (prefers-reduced-motion: reduce) {
  .uge-spor { animation: none !important; }
  .uge-kopi { display: none !important; }
  .uge-vindue { overflow-x: auto !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .uge-knap { display: none !important; }
  .uge-tlf * { animation: none !important; opacity: 1 !important; transform: none !important; }
}
