/* ═══════════════════════════════════════════════
   Zevix Roleplay – stylesheet
   Farverne er taget direkte fra logoet.
   ═══════════════════════════════════════════════ */

:root {
  /* Brand (samme i lys og mørk) */
  --blue: #0057B8;         /* logoets blå fyld */
  --blue-bright: #1A78F2;  /* hover og fokus */
  --blue-deep: #003A80;    /* logoets skygge */
  --navy: #001A40;         /* topbar, footer, hero */
  --night: #000F2B;
  --outline: #000;         /* logoets sorte kontur */
  --sticker-bg: #FFFFFF;
  --sticker-ink: #031B44;
  --sticker-muted: #3A4E70;

  /* Tema – lys */
  --bg: #E9F1FF;
  --surface: #FFFFFF;
  --surface-2: #D9E7FF;
  --text: #031B44;
  --text-muted: #3D5276;
  --line-soft: rgba(3, 27, 68, 0.14);
  --shadow: #000;
  --link: #0050AD;
  --ok: #0F7A43;
  --ok-bg: #CFF3DE;
  --bad: #B42318;
  --bad-bg: #FFDCD7;
  --wait: #8A5300;
  --wait-bg: #FFE9C2;

  --font-display: 'Kanit', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Kanit', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;

  --max: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --topbar-h: 68px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #00112E;
    --surface: #052557;
    --surface-2: #08316F;
    --text: #EAF2FF;
    --text-muted: #A8BEE0;
    --line-soft: rgba(234, 242, 255, 0.14);
    --shadow: #000;
    --link: #8CBDFF;
    --ok: #5BE39A;
    --ok-bg: #0B3D27;
    --bad: #FF8A80;
    --bad-bg: #4A1414;
    --wait: #FFC45C;
    --wait-bg: #47320A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #00112E;
  --surface: #052557;
  --surface-2: #08316F;
  --text: #EAF2FF;
  --text-muted: #A8BEE0;
  --line-soft: rgba(234, 242, 255, 0.14);
  --shadow: #000;
  --link: #8CBDFF;
  --ok: #5BE39A;
  --ok-bg: #0B3D27;
  --bad: #FF8A80;
  --bad-bg: #4A1414;
  --wait: #FFC45C;
  --wait-bg: #47320A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dækker telefonens statusbar med topbarens farve */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--navy);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sticker-bg); color: var(--sticker-ink);
  border: 3px solid var(--outline); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ───────── Typografi ───────── */

.h1, .h2, .cta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 0.45em; }
.h3 { font: italic 800 1.35rem/1.15 var(--font-display); text-transform: uppercase; }

.h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 12px;
  margin-top: 18px;
  background: var(--blue);
  border: 3px solid var(--outline);
  transform: skewX(-24deg);
  transform-origin: left;
}

/* ───────── Knapper ───────── */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-hover: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.6em 1.35em;
  font: 700 1.02rem/1 var(--font-display);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 3px solid var(--outline);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--outline);
  transform: skewX(-8deg);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: skewX(-8deg) translate(3px, 3px); box-shadow: 1px 1px 0 var(--outline); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: 0.55; box-shadow: 2px 2px 0 var(--outline);
}
.btn[disabled]:active { transform: skewX(-8deg); }
.btn-lg { min-height: 56px; font-size: 1.15rem; padding: 0.7em 1.7em; }
.btn-sm { min-height: 38px; font-size: 0.92rem; padding: 0.45em 1em; box-shadow: 3px 3px 0 var(--outline); }

.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-hover: var(--blue-bright); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--sticker-ink); --btn-hover: #DCE9FF; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-hover: var(--surface-2); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-hover: rgba(255, 255, 255, 0.12); }
.btn-discord { --btn-bg: #5865F2; --btn-fg: #fff; --btn-hover: #6D78F5; }

/* ───────── Topbar ───────── */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--outline);
}
.topbar-inner {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.brand img { width: 46px; height: auto; }
.brand-name {
  font: italic 900 1.35rem/1 var(--font-display);
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 6px;
}
.brand-script {
  font: 400 1.3rem/1 var(--font-script);
  text-transform: none;
  color: #6FB1FF;
}

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  color: #C9DBF7;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 5px; background: var(--blue-bright);
  transform: skewX(-24deg);
}

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #7A8AA6; border: 2px solid var(--outline);
  flex-shrink: 0;
}
.dot.is-online { background: #2BD46F; box-shadow: 0 0 0 4px rgba(43, 212, 111, 0.25); }
.dot.is-offline { background: #F04438; }
.dot-lg { width: 18px; height: 18px; border-width: 3px; }

.account { display: flex; align-items: center; }
.avatar-btn {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--outline); background: var(--blue); overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 10px;
  color: #fff; cursor: pointer; place-items: center;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ───────── Hero ───────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(86vh, 820px);
  display: grid;
  place-items: center;
  padding: 48px var(--pad) 140px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(26, 120, 242, 0.85), rgba(0, 87, 184, 0.55) 45%, transparent 75%),
    linear-gradient(180deg, var(--night) 0%, var(--navy) 35%, var(--blue-deep) 100%);
  color: #fff;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(111, 177, 255, 0.35), transparent 70%);
  z-index: -1;
}
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: clamp(140px, 22vw, 260px);
  z-index: -1;
}
.skyline-back { fill: #002B66; }
.skyline-front { fill: var(--night); }
.skyline .wheel { stroke: #002B66; fill: #002B66; }
.skyline .wheel circle[fill="none"] { fill: none; }

.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 760px;
}
.hero-logo {
  width: min(600px, 86vw);
  filter: drop-shadow(0 22px 36px rgba(0, 8, 30, 0.55));
}
.hero-lede {
  margin: 12px 0 28px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: #E3EEFF;
  text-shadow: 0 2px 12px rgba(0, 10, 40, 0.6);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

/* ───────── Statusbanneret (det skrå "ZEVIX"-skilt) ───────── */

.banner-wrap {
  position: relative; z-index: 3;
  margin-top: -78px;
  padding: 0 var(--pad);
}
.banner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr auto;
  background: var(--sticker-bg);
  color: var(--sticker-ink);
  border: 4px solid var(--outline);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--outline);
  transform: rotate(-2deg);
  overflow: hidden;
}
.banner-cell {
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 26px;
  border-right: 3px solid var(--outline);
  min-width: 0;
}
.banner-status { flex-direction: row; align-items: center; gap: 14px; }
.banner-status strong { display: block; font: italic 800 1.3rem/1.1 var(--font-display); text-transform: uppercase; }
.banner-num {
  font: italic 900 clamp(2rem, 3.6vw, 2.7rem)/1 var(--font-display);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.banner small { display: block; margin-top: 4px; color: var(--sticker-muted); font-size: 0.92rem; font-weight: 500; }
.banner-copy {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
  padding: 16px 26px;
  background: var(--blue); color: #fff;
  border: 0; cursor: pointer; text-align: left;
  transition: background-color 0.15s ease;
}
.banner-copy:hover { background: var(--blue-bright); }
.banner-copy-label { font: 700 1rem/1 var(--font-display); }
.banner-copy code {
  font: 500 0.85rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(0, 0, 0, 0.28); padding: 3px 7px; border-radius: 5px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.banner-copy:focus-visible { outline-offset: -6px; outline-color: #fff; }

/* ───────── Sektioner ───────── */

.section {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--pad) 0;
}
.section-lede { max-width: 56ch; color: var(--text-muted); font-size: 1.12rem; margin-bottom: 36px; }

.sticker {
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--shadow);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-text p { max-width: 58ch; font-size: 1.12rem; color: var(--text-muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.steps { padding: 28px 28px 12px; transform: rotate(1.2deg); }
.steps .h3 { margin-bottom: 20px; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps-list li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 62px;
  min-height: 44px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font: italic 900 1.4rem/1 var(--font-display);
  color: #fff; background: var(--blue);
  border: 3px solid var(--outline); border-radius: 10px;
  transform: skewX(-8deg);
}
.steps-list strong { display: block; font-weight: 700; font-size: 1.08rem; }
.steps-list span { color: var(--text-muted); }

.roles {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.role { padding: 24px 24px 18px; }
.role-icon {
  width: 56px; height: 56px; padding: 11px;
  margin-bottom: 18px;
  background: var(--blue);
  border: 3px solid var(--outline); border-radius: 14px;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(-5deg);
}
.role h3 { font: italic 800 1.4rem/1.1 var(--font-display); text-transform: uppercase; margin-bottom: 8px; }
.role p { color: var(--text-muted); margin: 0; }

.cta-band {
  margin-top: clamp(88px, 12vw, 140px);
  background:
    radial-gradient(ellipse 50% 90% at 85% 50%, rgba(111, 177, 255, 0.35), transparent 70%),
    var(--blue);
  border-top: 4px solid var(--outline);
  border-bottom: 4px solid var(--outline);
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
  color: #fff;
}
.cta-inner {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 92px var(--pad) 72px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); text-shadow: 4px 4px 0 var(--outline); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; }

/* ───────── Undersider ───────── */

.page {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) var(--pad) 0;
  min-height: 62vh;
}
.page-head { margin-bottom: 40px; }
.page-head p { max-width: 62ch; color: var(--text-muted); font-size: 1.12rem; margin-top: 22px; }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.notice p { margin: 0; max-width: 60ch; }
.notice strong { display: block; font-size: 1.1rem; }
.notice-info { background: var(--surface-2); }

.empty {
  padding: 40px 28px;
  text-align: center;
  color: var(--text-muted);
  border: 3px dashed var(--line-soft);
  border-radius: 14px;
}
.empty strong { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 4px; }

.loading {
  padding: 40px 0; color: var(--text-muted);
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px;
  border: 2px solid var(--outline); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; line-height: 1.4;
  background: var(--surface-2); color: var(--text);
  white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-wait { background: var(--wait-bg); color: var(--wait); }

/* Ansøgninger */
.app-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.app-type { display: flex; flex-direction: column; padding: 24px; }
.app-type-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.app-type h2 { font: italic 800 1.5rem/1.1 var(--font-display); text-transform: uppercase; }
.app-type p { color: var(--text-muted); flex-grow: 1; }
.app-type .hint { font-size: 0.92rem; margin: 0 0 14px; color: var(--text-muted); }
.app-type .btn { align-self: flex-start; }

.app-form-wrap { max-width: 760px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 20px; padding: 0;
  background: none; border: 0; color: var(--link); font-weight: 600; cursor: pointer;
}
.form { padding: clamp(22px, 4vw, 36px); }
.form h2 { font: italic 900 2rem/1 var(--font-display); text-transform: uppercase; margin-bottom: 8px; }
.form-intro { color: var(--text-muted); margin-bottom: 28px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.field .req { color: var(--blue-bright); }
.field-help { display: block; color: var(--text-muted); font-size: 0.95rem; margin: -2px 0 8px; }
.input {
  width: 100%;
  padding: 12px 14px;
  font: 400 1.02rem/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 3px solid var(--outline);
  border-radius: 10px;
}
.input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(26, 120, 242, 0.3); }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.counter { display: block; text-align: right; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.counter.is-short { color: var(--wait); }
.counter.is-over { color: var(--bad); }
.form-error {
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--bad-bg); color: var(--bad);
  border: 3px solid var(--outline); border-radius: 10px; font-weight: 600;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--text-muted); }

.success { padding: clamp(28px, 5vw, 44px); text-align: center; }
.success-mark {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--ok-bg); color: var(--ok);
  border: 3px solid var(--outline); border-radius: 50%;
}
.success-mark svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font: italic 900 2rem/1 var(--font-display); text-transform: uppercase; margin-bottom: 10px; }
.success p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 24px; }

/* Regler */
.search { display: block; margin-top: 28px; max-width: 480px; }
.search input { padding-left: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237a8aa6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 14px 50%; }
.rules { display: grid; gap: 28px; }
.rule-group { padding: 8px 0 0; overflow: hidden; }
.rule-group h2 {
  font: italic 800 1.45rem/1.1 var(--font-display); text-transform: uppercase;
  padding: 16px 24px 14px;
}
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
  padding: 14px 24px;
  border-top: 2px solid var(--line-soft);
}
.rule-no { font: italic 800 1rem/1.6 var(--font-display); color: var(--blue-bright); font-variant-numeric: tabular-nums; }
.rule p { margin: 0; max-width: 72ch; }
mark { background: #FFE07A; color: #031B44; border-radius: 3px; padding: 0 2px; }

/* FAQ */
.faq { display: grid; gap: 16px; max-width: 860px; }
.faq details { padding: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 600; font-size: 1.1rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E") no-repeat center;
  border: 2px solid var(--outline); border-radius: 8px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text-muted); max-width: 68ch; }
.faq .faq-a p:last-child { margin: 0; }

/* Holdet */
.team { display: grid; gap: 44px; }
.team-role-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.team-role-head h2 { font: italic 800 1.6rem/1 var(--font-display); text-transform: uppercase; }
.team-swatch { width: 18px; height: 18px; border: 3px solid var(--outline); border-radius: 5px; transform: rotate(-8deg); background: var(--blue); }
.team-role-head .chip { margin-left: 4px; }
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}
.member { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; box-shadow: 4px 4px 0 var(--shadow); }
.member-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%; border: 3px solid var(--outline);
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font: italic 800 1.2rem/1 var(--font-display);
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feeds */
.feed { display: grid; gap: 24px; max-width: 860px; }
.post { padding: 22px 24px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-head .member-avatar { width: 40px; height: 40px; font-size: 1rem; }
.post-head strong { display: block; line-height: 1.2; }
.post-head time { font-size: 0.9rem; color: var(--text-muted); }
.post-body { overflow-wrap: anywhere; }
.post-body h3, .post-body h4 { font: italic 800 1.25rem/1.2 var(--font-display); text-transform: uppercase; margin: 0.6em 0 0.35em; }
.post-body ul { margin: 0.2em 0 0.8em; padding-left: 1.3em; }
.post-body code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
.post-body p:last-child { margin-bottom: 0; }
.post-embed { margin-top: 14px; padding: 12px 16px; border-left: 5px solid var(--blue); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.post-embed strong { display: block; margin-bottom: 4px; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.post-images img { border: 3px solid var(--outline); border-radius: 10px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Profil */
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; margin-bottom: 36px; }
.profile-card .member-avatar { width: 76px; height: 76px; font-size: 1.6rem; }
.profile-card h2 { font: italic 900 1.8rem/1 var(--font-display); text-transform: uppercase; }
.profile-card p { margin: 6px 0 0; color: var(--text-muted); }
.profile-card .btn { margin-left: auto; }
.profile-apps { display: grid; gap: 14px; }
.profile-app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px 22px; border-radius: 12px; box-shadow: 4px 4px 0 var(--shadow); }
.profile-app h3 { font: italic 800 1.2rem/1.2 var(--font-display); text-transform: uppercase; }
.profile-app small { color: var(--text-muted); }
.profile-app .reason { grid-column: 1 / -1; margin: 6px 0 0; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; }

/* ───────── Footer ───────── */

.footer {
  margin-top: clamp(88px, 12vw, 140px);
  background: var(--navy);
  color: #A8BEE0;
  border-top: 4px solid var(--outline);
}
body[data-route="forside"] .footer { margin-top: 0; border-top: 0; }
.footer-inner {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 56px var(--pad) 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; max-width: 460px; }
.footer-brand img { width: 84px; flex-shrink: 0; }
.footer-brand p { margin: 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto; padding: 0 var(--pad) 32px;
  font-size: 0.9rem;
}

/* ───────── Toast ───────── */

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px;
  background: var(--sticker-bg); color: var(--sticker-ink);
  border: 3px solid var(--outline); border-radius: 12px;
  box-shadow: 5px 5px 0 var(--outline);
  font-weight: 600;
}
.toast.is-error { background: #FFDCD7; color: #8A1C12; }

/* ───────── Intro-animation (kun ved første indlæsning) ───────── */

.intro .hero-logo { animation: logo-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.intro .hero-lede, .intro .hero-cta { animation: fade-in 0.5s ease 0.35s both; }
.intro .banner { animation: banner-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.45s both; }

@keyframes logo-in {
  from { opacity: 0; transform: translateY(-28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes banner-in {
  from { opacity: 0; transform: rotate(-7deg) translateY(36px); }
  to { opacity: 1; transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Responsiv ───────── */

@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 18px;
    background: var(--navy);
    border-bottom: 3px solid var(--outline);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 40px; bottom: 6px; height: 4px; }
  .topbar-actions { margin-left: auto; }
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .steps { transform: none; }
  .banner { grid-template-columns: 1fr 1fr; transform: rotate(-1.5deg); }
  .banner-cell { border-bottom: 3px solid var(--outline); }
  .banner-status { grid-column: 1 / -1; border-right: 0; }
  .banner-cell:nth-child(3) { border-right: 0; }
  .banner-copy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  @keyframes banner-in {
    from { opacity: 0; transform: rotate(-6deg) translateY(36px); }
    to { opacity: 1; transform: rotate(-1.5deg); }
  }
}

@media (max-width: 560px) {
  :root { --topbar-h: 60px; }
  .brand-name { display: none; }
  .pill { padding: 5px 10px; font-size: 0.85rem; }
  .hero { padding-bottom: 120px; min-height: 0; padding-top: 32px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .banner-wrap { margin-top: -64px; }
  .banner-cell { padding: 16px 18px; }
  .cta-inner { padding-top: 76px; }
  .rule { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 18px; }
  .rule-group h2 { padding: 14px 18px 12px; }
  .profile-card .btn { margin-left: 0; }
  .profile-app { grid-template-columns: 1fr; }
}

/* ───────── Små tilføjelser ───────── */
.banner-num .of { font-size: 0.5em; color: var(--sticker-muted); font-weight: 800; margin-left: 2px; }
.member-avatar { position: relative; }
.member-avatar img { position: absolute; inset: 0; }
.empty p { margin: 6px auto 0; max-width: 48ch; }
.empty .btn { margin-top: 18px; }
