/* Dicta.no – one stylesheet. Brand: Dicta merkevareguide v1.0 (petrol/natt base, cyan + coral accents, Figtree).
   Dark only. No inline styles anywhere (strict CSP). Nothing moves without user action. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --petrol: #032f3e;
  --natt: #011d27;
  --cyan: #0aeef7;
  --koral: #ff6b5e;
  --hvit: #ffffff;
  --is: #eaf5f7;
  --dempet: #9fcfd8;
  --deep: #06394a;
  --line: rgba(159, 207, 216, 0.18);
  --line-strong: rgba(159, 207, 216, 0.32);
  --surface: rgba(1, 29, 39, 0.62);
  --pill: rgba(1, 29, 39, 0.85);
  --r-chip: 8px;
  --r-card: 16px;
  --r-win: 20px;
  --r-win-lg: 28px;
  --r-pill: 999px;
  --gutter: 16px;
  --sec: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --sec: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--petrol);
  color: var(--hvit);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2.5px; } }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong.key { color: var(--cyan); font-weight: inherit; }
.meta, .count, .pill, .tier b, time { font-variant-numeric: tabular-nums; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-s { width: 18px; height: 18px; flex: none; }
.ico.flip { transform: rotate(180deg); }
.ico-s.down { transform: rotate(90deg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 760px; }
.sec { padding: var(--sec) 0 0; position: relative; }
.sec.on-natt { background: var(--natt); padding-block: var(--sec); margin-top: var(--sec); border-block: 1px solid var(--line); }
.sec.on-natt + .band { margin-top: 0; border-top: 0; }
.muted { color: var(--dempet); }
.small { font-size: 14px; line-height: 1.45; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ type */
.display { font-size: clamp(44px, 5.2vw + 22px, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: clamp(34px, 3.6vw + 20px, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 1.8vw + 21px, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.block .h2, .prose h2 { font-size: clamp(24px, 1.2vw + 19px, 32px); font-weight: 720; letter-spacing: -0.015em; line-height: 1.15; }
.h3 { font-size: clamp(19px, 0.6vw + 16px, 23px); line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(18px, 0.5vw + 16px, 21px); line-height: 1.5; font-weight: 500; color: var(--dempet); max-width: 36ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.eyebrow.coral { color: var(--koral); }
/* the brand title-card rules (coral – CAPS – coral) only where the kit uses them */
.eyebrow.sym::before, .eyebrow.sym::after { content: ""; width: 24px; height: 2px; background: var(--koral); border-radius: 2px; }

/* ------------------------------------------------------------ draft view (owner review) */
.draft-ribbon {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 4px var(--gutter);
  background: repeating-linear-gradient(135deg, var(--natt) 0 14px, #08303d 14px 28px); border-bottom: 1px solid var(--koral);
  color: var(--hvit); font-size: 13px; font-weight: 600;
}
.draft-ribbon b { color: var(--koral); }
.draft-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--koral); border-radius: var(--r-pill); background: transparent; color: var(--hvit); font: 600 13px var(--font); text-decoration: none; cursor: pointer; }
.draft-toggle[aria-pressed="true"] { background: rgba(255, 107, 94, 0.15); }
.is-draft:has(#utkast:target) .needs-review, .is-draft.show-review .needs-review { outline: 1.5px dashed rgba(255, 107, 94, 0.7); outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------------------ header */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--cyan); color: var(--natt); font-weight: 700; padding: 10px 16px; border-radius: var(--r-chip); text-decoration: none; }
.skip:focus { top: 12px; }
.site-header { background: var(--natt); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
@media (min-width: 1024px) { .site-header .wrap { min-height: 76px; } }
.logo-link { display: block; padding: 6px 8px; margin-left: -8px; border-radius: 8px; }
.logo-link img { width: 112px; height: auto; }
@media (min-width: 1024px) { .logo-link img { width: 128px; } }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--hvit); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: var(--r-pill); }
.main-nav a[aria-current] { color: var(--cyan); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .main-nav { display: block; } .header-tools { margin-left: 8px; } .header-tools .menu-btn { display: none !important; } }
.help-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--koral); color: var(--koral); border-radius: var(--r-pill); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lang-link { display: none; align-items: center; min-height: 44px; padding: 0 12px; color: var(--dempet); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: var(--r-pill); }
@media (min-width: 600px) { .lang-link { display: inline-flex; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; background: transparent; color: var(--hvit); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font: 600 15px var(--font); cursor: pointer; text-decoration: none; }
.menu-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--natt); color: var(--hvit); overflow-y: auto; overscroll-behavior: contain; }
.menu-dialog::backdrop { background: rgba(1, 29, 39, 0.8); }
html:has(.menu-dialog[open]) { overflow: hidden; }
.menu-dialog .wrap { min-height: 100%; display: flex; flex-direction: column; padding-top: 12px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-list { list-style: none; margin: 24px 0; }
.menu-list a { display: flex; align-items: center; min-height: 48px; color: var(--hvit); text-decoration: none; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.menu-list a[aria-current] { color: var(--cyan); }
.menu-safety { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }

/* ------------------------------------------------------------ buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-pill); font: 700 17px/1.1 var(--font); text-decoration: none; cursor: pointer; border: 0; text-align: center; transition: filter 0.18s var(--ease), transform 0.12s var(--ease), border-color 0.18s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--koral); color: var(--natt); }
.btn-ghost { background: transparent; color: var(--hvit); border: 1.5px solid var(--dempet); }
@media (hover: hover) { .btn-primary:hover { filter: brightness(1.06); } .btn-ghost:hover { border-color: var(--hvit); } }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.text-link .ico-s { transition: transform 0.18s var(--ease); }
@media (hover: hover) { .text-link:hover .ico-s { transform: translateX(3px); } }
.round-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--natt); color: var(--hvit); cursor: pointer; }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* ------------------------------------------------------------ pills & badges */
.ai-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ai-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; background: var(--pill); border: 1px solid rgba(159, 207, 216, 0.25); border-radius: var(--r-pill); color: var(--hvit); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ai-pill .ico { width: 16px; height: 16px; }
.ai-badge.s .ai-pill { font-size: 11px; padding: 5px 9px 5px 6px; }
.ai-badge.s .ai-pill .ico { width: 13px; height: 13px; }
.ai-label { font-size: 12px; font-weight: 500; color: var(--dempet); }
.ai-badge.has-label { gap: 3px; background: var(--pill); border: 1px solid rgba(159, 207, 216, 0.25); border-radius: 12px; padding: 6px 10px 7px 8px; }
.ai-badge.has-label .ai-pill { background: none; border: 0; padding: 0; }
.ai-badge.has-label .ai-label { padding-left: 19px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1.1; background: var(--pill); color: var(--hvit); white-space: nowrap; }
.pill.outline { background: var(--pill); border: 1px solid var(--dempet); color: var(--hvit); }
.pill.new { background: var(--pill); border: 1px solid var(--cyan); color: var(--cyan); }
.review-stamp { display: inline-flex; align-items: center; gap: 8px; color: var(--dempet); font-size: 14px; font-weight: 500; }
.review-stamp .ico-s { color: var(--cyan); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; font-size: 15px; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .ico-s { color: var(--cyan); }

/* ------------------------------------------------------------ decorative cells (static, aria-hidden) */
.cells { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cells i { position: absolute; border-radius: 50%; display: block; background: radial-gradient(circle, rgba(159, 207, 216, 0.16) 0 16%, rgba(159, 207, 216, 0.05) 17% 54%, rgba(159, 207, 216, 0.22) 57% 59%, rgba(159, 207, 216, 0.04) 62% 70%, transparent 71%); }
.cells .far { width: 440px; height: 440px; filter: blur(6px); opacity: 0.5; }
.cells .mid { width: 200px; height: 200px; filter: blur(2px); opacity: 0.7; }
.cells .near { width: 90px; height: 90px; opacity: 0.7; }
.cells .tr { top: -140px; right: -160px; }
.cells .tr2 { top: 120px; right: -40px; }
.cells .bl { bottom: -180px; left: -200px; }
.cells .bl2 { bottom: 40px; left: -30px; }
.cells .br { bottom: -60px; right: 6%; }
.has-cells { position: relative; isolation: isolate; }
.has-cells > :not(.cells) { position: relative; z-index: 1; }
.page-head .cells, .hero .cells { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* ------------------------------------------------------------ film window / cards */
.film-window { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-win); overflow: hidden; background: var(--natt); box-shadow: inset 0 0 0 1px rgba(159, 207, 216, 0.16), 0 30px 90px rgba(1, 29, 39, 0.65); color: var(--hvit); text-decoration: none; }
.film-window img, .scene figure img { background: radial-gradient(120% 80% at 50% 40%, var(--deep), var(--natt)); }
.film-window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-window picture { position: absolute; inset: 0; }
.film-window .scrim { position: absolute; inset: 0; background: linear-gradient(to top, #011d27 0%, rgba(1, 29, 39, 0.94) 24%, rgba(1, 29, 39, 0.86) 32%, rgba(1, 29, 39, 0.6) 42%, rgba(1, 29, 39, 0.28) 52%, rgba(1, 29, 39, 0.08) 60%, transparent 66%); }
.film-window .scrim.soft { background: linear-gradient(to bottom, rgba(1, 29, 39, 0.55), transparent 22%), linear-gradient(to top, rgba(1, 29, 39, 0.9), transparent 34%); }
.film-window .top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.film-window .bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.film-window .q { font-size: 22px; line-height: 1.15; font-weight: 800; margin-top: 6px; text-wrap: balance; letter-spacing: -0.01em; }
.film-window .meta { margin-top: 10px; }
.film-window .eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.16em; }
.film-window .inside { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.film-window:hover .inside, a.film-window:focus-visible .inside { opacity: 1; transform: scale(1.04); }
  .film-card a.film-window:hover { box-shadow: inset 0 0 0 1.5px rgba(10, 238, 247, 0.45); }
}
@media (hover: none) { .film-window .inside { display: none; } }
a.film-window { transition: transform 0.12s var(--ease); }
a.film-window:active { transform: scale(0.985); }
.film-card { display: flex; flex-direction: column; }
.film-card .film-window { box-shadow: inset 0 0 0 1px rgba(159, 207, 216, 0.16); }
.film-card .q { font-size: 19px; }
/* title card for films on their way: no image, no AI pill, no link */
.film-window.tc { background: radial-gradient(130% 90% at 50% 0%, color-mix(in srgb, var(--petrol), var(--cyan) 10%) 0%, var(--petrol) 50%, var(--natt) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.ph-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; text-align: center; z-index: 1; }
.film-window .ph-title .ph-icon { position: static; inset: auto; width: 36px; height: 36px; background: none; }
.ph-title .q { font-size: clamp(18px, 1vw + 12px, 24px); line-height: 1.14; margin: 0; }
.ph-title .eyebrow { justify-content: center; }
@media (max-width: 599px) { .grid .review-stamp .d, .rail .review-stamp .d { display: none; } }
.review-stamp .d { white-space: nowrap; }
.film-window .review-stamp { font-size: 13px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(60vw, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 8px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; padding: 8px 0 0; margin: 0; } }
.see-all-card { display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: var(--r-win); border: 1px solid var(--line-strong); color: var(--hvit); font-weight: 700; text-decoration: none; text-align: center; padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.grid.two { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; }
.grid .film-window .q { font-size: 17px; }
@media (min-width: 600px) { .grid .film-window .q { font-size: 19px; } }
@media (max-width: 399px) { .grid .film-window .top { flex-direction: column; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head p { margin: 6px 0 0; }

/* ------------------------------------------------------------ hero */
.hero { padding: 36px 0 8px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 22px; }
.hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hero .btn { padding: 0 16px; }
@media (max-width: 359px) { .hero .btns { grid-template-columns: 1fr; } }
@media (min-width: 600px) { .hero .btns { display: flex; } .hero .btn { padding: 0 24px; } }
.hero .film-window { width: min(72vw, 300px); margin: 0 auto; }
.hero-film { display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 1024px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(48px, 7vw, 112px); align-items: center; }
  .hero .film-window { width: clamp(320px, calc((100svh - 240px) * 9 / 16), 400px); border-radius: var(--r-win-lg); }
  .hero .film-window .q { font-size: 28px; }
  .hero .lead { max-width: 30ch; }
}

/* ------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--hvit); background: var(--surface); text-decoration: none; font: 500 16px var(--font); white-space: nowrap; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--cyan); color: var(--cyan); background: rgba(10, 238, 247, 0.06); }
.filters { margin: 24px 0 0; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }

/* ------------------------------------------------------------ recipe + trust (one natt band) */
.recipe { list-style: none; display: grid; gap: 0; counter-reset: step; padding: 0; margin-top: 28px; }
.recipe li { position: relative; padding: 0 0 26px 56px; }
.recipe li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); border: 1.5px solid var(--cyan); color: var(--cyan); font-weight: 800; }
.recipe li::after { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; width: 1px; background: linear-gradient(var(--cyan), rgba(10, 238, 247, 0.1)); }
.recipe li:last-child::after { display: none; }
.recipe li.alert::before { border-color: var(--koral); color: var(--koral); }
.recipe h3 { font-size: 19px; margin-bottom: 4px; }
.recipe p { color: var(--dempet); margin: 0; }
@media (min-width: 1024px) {
  .recipe { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .recipe li { padding: 64px 0 0; }
  .recipe li::before { top: 0; }
  .recipe li::after { left: 48px; right: -24px; top: 20px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(10, 238, 247, 0.15)); }
  .recipe p { font-size: 16px; max-width: 22ch; }
}
.trust-h { margin-top: 56px; font-size: clamp(22px, 1vw + 18px, 30px); font-weight: 800; letter-spacing: -0.015em; }
.trust-grid { list-style: none; display: grid; gap: 14px; margin: 22px 0 18px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust-grid li { display: flex; gap: 16px; padding: 20px; background: var(--petrol); border: 1px solid var(--line); border-radius: var(--r-card); }
.trust-grid .ico { color: var(--cyan); width: 26px; height: 26px; }
.trust-grid p { margin: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; }

/* ------------------------------------------------------------ topics + planned list */
.topic-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
@media (min-width: 1024px) { .topic-tiles { grid-template-columns: repeat(4, 1fr); } }
.topic-tile { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--hvit); text-decoration: none; }
.topic-tile b { display: block; font-weight: 700; line-height: 1.25; }
.icon-circle { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--deep) 0%, var(--petrol) 70%); box-shadow: inset 0 0 0 1px var(--line); }
.icon-circle img { width: 32px; height: 32px; }
.next-list { margin-top: 40px; }
.next-list .h3 { margin-bottom: 4px; }
.bubbles { list-style: none; display: grid; gap: 0; margin-top: 12px; }
@media (min-width: 768px) { .bubbles { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.bubbles li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--dempet); }
.bubbles li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 207, 216, 0.16) 0 16%, rgba(159, 207, 216, 0.05) 17% 54%, rgba(159, 207, 216, 0.4) 57% 62%, transparent 66%); }

/* ------------------------------------------------------------ safety band / care tiers */
.band { background: var(--natt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; margin-top: var(--sec); }
.tiers { list-style: none; display: grid; gap: 10px; margin: 20px 0 8px; }
.tiers li { display: flex; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border-radius: var(--r-card); background: rgba(3, 47, 62, 0.7); border: 1px solid var(--line); color: var(--hvit); text-decoration: none; }
.tier .ico { color: var(--cyan); }
.tier-text { display: flex; flex-direction: column; }
.tier b { display: block; font-size: 18px; font-weight: 700; color: var(--hvit); }
.tier-text > span { color: var(--dempet); font-size: 15px; line-height: 1.4; }
.tier.t113 { border-left: 4px solid var(--koral); }
.tier.t113 b { font-size: 22px; }
.tier.t113 b .key { color: var(--koral); font-weight: 800; }
.tier.t113 .ico { color: var(--koral); }
.tiers.lg { grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 900px) { .tiers.lg { grid-template-columns: 1fr 1fr; } }
.tiers.lg .tier { min-height: 76px; padding: 18px 20px; }
.tiers.lg b { font-size: 24px; }
.tiers.lg .t113 b { font-size: 28px; }

/* ------------------------------------------------------------ follow */
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--hvit); text-decoration: none; font-weight: 600; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--natt); border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: var(--sec); color: var(--dempet); font-size: 15px; }
main:has(> .band:last-child) + .site-footer, main:has(> .end-card:last-child) + .site-footer { margin-top: 0; }
.site-footer img.logo { width: 144px; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; display: grid; gap: 0; }
.site-footer li a, .crumbs a, .scene .simp-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--hvit); }
.site-footer .slogan { color: var(--hvit); font-weight: 600; margin-bottom: 12px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 4px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: grid; gap: 6px; font-size: 14px; }
.footer-legal p { margin: 0; }

/* ------------------------------------------------------------ films page */
.page-head { padding: 36px 0 8px; }
@media (min-width: 1024px) { .page-head { padding-top: 64px; } }
.page-head .lead { max-width: 52ch; margin-top: 12px; }
.film-list { margin-top: 32px; }
.topic-group { margin-top: 48px; }
.topic-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.topic-head .count { color: var(--dempet); font-size: 15px; }
@media (max-width: 599px) {
  .film-list:not(.is-filtered) .topic-group .grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 12px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .film-list:not(.is-filtered) .topic-group .grid > * { scroll-snap-align: start; }
}
.on-the-way { border-top: 1px solid var(--line); margin-top: var(--sec); padding-top: 48px; }
.on-the-way > .h3 { margin: 24px 0 14px; }
.on-the-way .needs-review > .h3 { margin: 36px 0 0; }
.later { margin-top: 20px; }

/* ------------------------------------------------------------ film page: top */
.crumbs { padding-top: 12px; font-size: 14px; color: var(--dempet); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--dempet); }
@media (max-width: 599px) {
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: inline-flex; }
  .crumbs li:nth-last-child(2)::before { content: "‹"; margin-right: 6px; }
}
.film-top { display: grid; grid-template-areas: "title" "player" "lede"; gap: 24px; padding-top: 8px; }
.film-title { grid-area: title; }
.player-col { grid-area: player; }
.film-lede { grid-area: lede; }
.film-title .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; color: var(--dempet); font-size: 14px; font-weight: 500; }
.film-title time { display: inline-flex; align-items: center; gap: 6px; }
.film-title time .ico-s { color: var(--cyan); }
@media (min-width: 1024px) {
  .film-top { grid-template-columns: 400px minmax(0, 1fr); grid-template-areas: "player title" "player lede"; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 24px; padding-top: 16px; align-items: start; }
  .film-title { padding-top: 24px; }
}
.player { width: min(100%, calc((100svh - 340px) * 9 / 16)); min-width: 240px; margin: 0 auto; }
@media (min-width: 1024px) { .player { width: 400px; } }
.player .film-window { border-radius: var(--r-win); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--natt, #011D27); }
.play-btn { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; }
.play-disc { width: 76px; height: 76px; border-radius: 50%; background: var(--koral); color: var(--natt); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(1, 29, 39, 0.6); transition: transform 0.18s var(--ease); }
.play-disc .ico { width: 32px; height: 32px; margin-left: 4px; }
@media (hover: hover) { .play-btn:hover .play-disc { transform: scale(1.05); } }
.play-btn:focus-visible { outline: none; }
.play-btn:focus-visible .play-disc { outline: 3px solid var(--cyan); outline-offset: 4px; }
.player.loading .play-disc { background: transparent; border: 2px solid var(--cyan); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.player.loading .play-disc .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon-box { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; min-height: 44px; border-radius: var(--r-card); background: rgba(1, 29, 39, 0.88); border: 1px solid var(--line); color: var(--hvit); text-decoration: none; font-weight: 700; }
.soon-cta { display: inline-flex; align-items: center; gap: 6px; }
.soon-box .ico-s { color: var(--cyan); }
.player-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--hvit); }
.player-caption .ico { width: 16px; height: 16px; }
.player-caption span { color: var(--dempet); font-weight: 500; }
.yt-notice { display: flex; gap: 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--dempet); }
.yt-notice .ico-s { margin-top: 2px; }
.yt-link { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--hvit); font: 600 15px var(--font); text-decoration: none; cursor: pointer; }
.key-box { padding: 20px 22px; background: var(--natt); border-left: 4px solid var(--cyan); border-radius: 0 var(--r-card) var(--r-card) 0; }
.key-box h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.key-box p { margin: 0; font-size: clamp(19px, 0.6vw + 16px, 22px); font-weight: 700; line-height: 1.35; }
.quick { margin-top: 24px; }
.quick h2 { font-size: 19px; margin-bottom: 12px; }
.quick ul { list-style: none; display: grid; gap: 10px; }
.quick li { position: relative; padding-left: 22px; font-size: 18px; line-height: 1.45; }
.quick li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ------------------------------------------------------------ film page: body + chapter bar / table of contents */
.film-body { margin-top: 40px; }
.chapter-bar { position: sticky; top: 0; z-index: 20; background: rgba(1, 29, 39, 0.94); border-block: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .chapter-bar { backdrop-filter: blur(8px); } }
.chapter-bar ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.chapter-bar ul::-webkit-scrollbar { display: none; }
.chapter-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--dempet); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chapter-bar a[aria-current] { color: var(--natt); background: var(--cyan); }
.ch-doctor a { color: var(--koral); box-shadow: inset 0 0 0 1.5px var(--koral); }
.ch-doctor a[aria-current] { background: var(--cyan); color: var(--natt); box-shadow: none; }
@media (max-width: 1023px) {
  .film-body > .chapter-bar { margin: 0 calc(-1 * var(--gutter)); }
  .film-body > .chapter-bar ul { padding: 8px var(--gutter); }
  .ch-doctor { position: sticky; right: 0; padding-left: 20px; background: linear-gradient(90deg, transparent, var(--natt) 20px); }
}
@media (min-width: 1024px) {
  .film-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 18vw, 250px); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .film-main { grid-column: 1; grid-row: 1; max-width: 820px; }
  .chapter-bar.toc, .film-body > .chapter-bar { grid-column: 2; grid-row: 1; position: sticky; top: 32px; margin-top: 64px; background: none; border: 0; backdrop-filter: none; }
  .chapter-bar.toc ul, .film-body > .chapter-bar ul { flex-direction: column; gap: 2px; overflow: visible; padding: 0 0 0 16px; border-left: 1px solid var(--line); }
  .chapter-bar.toc a, .film-body > .chapter-bar a { min-height: 40px; padding: 0 12px; border-radius: var(--r-chip); white-space: normal; }
  .chapter-bar.toc a[aria-current], .film-body > .chapter-bar a[aria-current] { background: rgba(10, 238, 247, 0.08); color: var(--cyan); box-shadow: inset 2px 0 0 var(--cyan); }
  .film-body > .chapter-bar .ch-doctor a:not([aria-current]) { box-shadow: none; }
  html { scroll-padding-top: 24px; }
}

.block { padding-top: 64px; }
.block > .h2 { margin-bottom: 14px; }
.block > .eyebrow { margin-bottom: 10px; }
.color-box { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.color-box .h3 { font-size: 16px; }
.color-key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 6px; }
.color-key li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.color-box .small { margin: 0; }
.sw { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sw.warm { background: linear-gradient(135deg, #ff9a3d, #e8452f); }
.sw.gold { background: #f5c451; }
.sw.white { background: #eef6ff; }
.sw.teal { background: #18b6a8; }
.sw.blue { background: #2f86c7; }
.sw.aurora { background: linear-gradient(135deg, #59f2b0, #8a6cff); }

/* scenes: a swipeable story strip on phones, a storyboard on desktop */
.scene-strip { margin-top: 24px; }
.scenes { list-style: none; padding: 0; }
.scene { position: relative; }
.scene figure { position: relative; margin: 0 0 12px; }
.scene figure img { border-radius: var(--r-card); width: 100%; }
.scene figure .ai-badge { position: absolute; top: 10px; left: 10px; }
.scene .count { display: block; font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: 0.08em; margin-bottom: 6px; }
.scene .narr { font-size: 20px; line-height: 1.38; font-weight: 500; margin-bottom: 10px; }
.scene .narr strong.key { font-weight: 700; }
.scene .see { color: var(--dempet); font-size: 15px; margin: 0; }
.scene .see b { color: var(--hvit); font-weight: 600; }
.strip-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@media (max-width: 1023px) {
  .scene-strip { margin: 24px calc(-1 * var(--gutter)) 0; }
  .scenes { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 var(--gutter) 8px; }
  .scenes::-webkit-scrollbar { display: none; }
  .scene { scroll-snap-align: start; }
}
@media (min-width: 1024px) {
  .strip-nav { display: none !important; }
  .scene { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: 48px; margin-bottom: 56px; }
  .scene figure { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .scene .count { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 12px; }
  .scene .scene-text { grid-column: 2; grid-row: 2; }
  .scene .narr { font-size: 30px; line-height: 1.28; letter-spacing: -0.01em; margin-bottom: 14px; }
  .scene .see { font-size: 16px; max-width: 52ch; }
}

.myth { margin-top: 18px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.myth .part { padding: 18px 22px; background: var(--surface); }
.myth .part + .part { border-top: 1px solid var(--line); }
.myth .part.right { background: rgba(10, 238, 247, 0.05); }
.myth .lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--dempet); margin: 0; }
.myth .part.right .lbl { color: var(--cyan); }
.myth .part p:last-child { margin: 4px 0 0; }
.self-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.self-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); }
.self-list .ico { color: var(--cyan); }
.flags { list-style: none; display: grid; gap: 12px; margin: 16px 0 20px; }
.flags li { position: relative; padding-left: 24px; }
.flags li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--koral); }
#kontakt-lege .tiers { grid-template-columns: 1fr; }
.simp { margin-top: 16px; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.simp ul { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.simp li { padding-left: 18px; position: relative; }
.simp li::before { content: "–"; position: absolute; left: 0; color: var(--cyan); }
details.sources { border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px 20px; background: var(--surface); }
.stamp-card { display: grid; gap: 4px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.stamp-card p { margin: 0; }
.stamp-card .title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.stamp-card .title .ico-s { color: var(--cyan); }
.src-list { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 16px; }

.end-card { margin-top: var(--sec); background: var(--natt); padding: 64px 0; text-align: center; border-top: 1px solid var(--line); }
.end-card .end-icon { width: 48px; height: 48px; margin: 0 auto 20px; }
.end-card .l1 { font-size: clamp(26px, 2vw + 18px, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.end-card .l2 { font-size: clamp(21px, 1vw + 16px, 26px); font-weight: 700; margin: 4px 0 0; }
.end-card .tag { color: var(--dempet); margin: 18px 0 0; }
.end-card .slogan { color: var(--hvit); font-weight: 600; margin: 4px 0 0; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.related { margin-top: 48px; text-align: left; }
.related .h3 { text-align: center; margin-bottom: 18px; }

/* ------------------------------------------------------------ prose pages */
.page-body { margin-top: 8px; }
@media (min-width: 1024px) { .page-body.has-toc { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: space-between; gap: 64px; align-items: start; } }
@media (max-width: 1023px) { .page-body .toc { display: none; } }
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 12px; }
.prose h2 a { color: inherit; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.prose details { border-top: 1px solid var(--line); padding: 4px 0; }
.prose details p { color: var(--dempet); }
.notice { border-left: 4px solid var(--koral); background: var(--natt); padding: 18px 20px; border-radius: 0 var(--r-card) var(--r-card) 0; margin: 20px 0; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.page-updated { margin-top: 48px; color: var(--dempet); font-size: 14px; }

/* ------------------------------------------------------------ disclosure indicator for every <details> */
summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform 0.18s var(--ease); }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
summary h2 { margin: 0; }
.narr strong.key, .quick strong.key, .lead strong.key, .prose strong.key { font-weight: 700; }

/* ------------------------------------------------------------ touch feedback (hover only where there is a mouse) */
:is(.chip, .act, a.tier, .menu-btn, .help-pill, .chapter-bar a, .platforms a, .topic-tile, .draft-toggle, .round-btn) { -webkit-tap-highlight-color: transparent; transition: transform 0.12s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease); }
:is(.chip, .act, a.tier, .menu-btn, .help-pill, .platforms a, .topic-tile, .round-btn:not(:disabled)):active { transform: scale(0.97); background-color: rgba(159, 207, 216, 0.12); }
@media (hover: hover) {
  .chip:hover, .act:hover, a.tier:hover, .platforms a:hover, .topic-tile:hover { border-color: var(--dempet); }
  .help-pill:hover { background: rgba(255, 107, 94, 0.1); }
  .main-nav a:hover { background: rgba(159, 207, 216, 0.1); }
  .chapter-bar a:not([aria-current]):hover { color: var(--hvit); }
  .lang-link:hover { color: var(--hvit); }
}

/* ------------------------------------------------------------ page transitions (same-origin, CSS only) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 0.2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ print */
.print-logo { display: none; }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #032f3e; font-size: 12pt; }
  .site-header, .menu-dialog, .chapter-bar, .player, .actions, .draft-ribbon, .cells, .yt-notice, .end-card .end-icon, .end-actions, .related, .site-footer .logo, .site-footer nav, .strip-nav, .toc, .band { display: none !important; }
  .needs-review { outline: none !important; }
  a { color: #032f3e; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  strong.key, .eyebrow, .scene .count { color: #032f3e; }
  .crumbs, .crumbs a, .film-title .meta, .review-stamp, .key-box h2, .myth .lbl, .tier, .tier b, .tier-text > span, .scene .see b, .end-card .tag, .end-card .slogan, .site-footer, .site-footer a, .site-footer h2, .muted, .lead, .scene .see { color: #032f3e !important; }
  .key-box, .myth .part, .simp, details.sources, .self-list li, .end-card, .color-box { background: #eaf5f7; border-color: #9fcfd8; color: #032f3e; }
  .tier { background: none; border: 1px solid #9fcfd8; break-inside: avoid; }
  .site-footer { background: none; border-top: 1px solid #9fcfd8; }
  .print-logo { display: block !important; width: 160px; margin: 0 0 16px; }
  .film-top { display: block; }
  .scene-strip { margin: 0; }
  .scenes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6mm 8mm; overflow: visible; margin: 0; padding: 0; }
  .scene { display: block !important; break-inside: avoid; }
  .scene figure { max-width: 40mm; }
  .scene .narr { font-size: 13pt; }
  #kontakt-lege { break-inside: avoid; }
}
.tier b .key { white-space: nowrap; }
