/* BobleBoble - farver og typografi følger docs/overdragelse-2026-11-06.md */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F3FAFB;
  --primary: #0B2545;
  --accent: #0A8F9C;
  --bead-teal: #12A5B5;
  --bead-blue: #3B7DD8;
  --sub: #33506F;
  --card: #FFFFFF;
  --line: rgba(11, 37, 69, .10);
  --glow-a: rgba(18, 165, 181, .16);
  --glow-b: rgba(59, 125, 216, .12);
  --band: #0B2545;
  --band-text: #F3FAFB;
  --band-sub: #B9D3E0;
  --band-accent: #4FD8E3;
  --btn-text: #F3FAFB;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B2545;
    --primary: #F3FAFB;
    --accent: #4FD8E3;
    --bead-teal: #4FD8E3;
    --bead-blue: #7FB2FF;
    --sub: #B9D3E0;
    --card: rgba(243, 250, 251, .06);
    --line: rgba(243, 250, 251, .14);
    --glow-a: rgba(79, 216, 227, .12);
    --glow-b: rgba(127, 178, 255, .10);
    --band: #123560;
    --btn-text: #0B2545;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--bead-blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* Top */

.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 42px; }
.wordmark { font-weight: 600; font-size: 1.6rem; letter-spacing: -.016em; line-height: 1; color: var(--primary); }
.wordmark span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.nav a:hover { color: var(--accent); }
.nav .lang { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }

/* Knapper */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--btn-text);
  border: 2px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--glow-a); }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn.light { background: var(--band-accent); border-color: var(--band-accent); color: #0B2545; }

/* Forside-top */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 82% 28%, var(--glow-a), transparent 70%),
    radial-gradient(460px 380px at 8% 92%, var(--glow-b), transparent 70%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px;
  padding-block: 84px 96px;
}
.hero h1 {
  margin: 0 0 22px;
  font-weight: 600; font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0 0 34px; max-width: 34em; font-size: 1.3rem; color: var(--sub); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.jelly { position: relative; justify-self: center; width: min(300px, 70vw); }
.jelly img { width: 100%; animation: drift 7s ease-in-out infinite; }
.bubble {
  position: absolute; right: 6%; top: 16%;
  width: 18px; height: 18px; border-radius: 50%;
  border: 6px solid var(--bead-teal);
  opacity: 0; animation: rise 6s ease-in infinite;
}
.bubble.b2 { border-color: var(--bead-blue); width: 14px; height: 14px; border-width: 5px; animation-delay: 2s; }
.bubble.b3 { border-color: var(--primary); width: 11px; height: 11px; border-width: 4px; animation-delay: 4s; }

@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(70px, -150px) scale(.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jelly img, .bubble { animation: none; }
  .btn { transition: none; }
}

/* Sektioner */

section { padding-block: 80px; }
.kicker { margin: 0 0 10px; font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0 0 14px; font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; }
.intro { margin: 0 0 44px; max-width: 40em; color: var(--sub); font-size: 1.2rem; }

.steps, .cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }

.step, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
}
.step h3, .card h3 { margin: 0 0 8px; font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.step p, .card p { margin: 0; color: var(--sub); }

.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  border: 7px solid var(--bead-teal);
  font-weight: 600; font-size: 1rem; color: var(--primary);
}
.step:nth-child(2) .num { border-color: var(--bead-blue); }
.step:nth-child(3) .num { border-color: var(--primary); }

.card { display: flex; flex-direction: column; }
.card .who { margin: 0 0 14px; font-weight: 500; font-size: .95rem; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.card .who::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 6px solid var(--bead-teal); flex: none; }
.card:nth-child(3n+2) .who::before { border-color: var(--bead-blue); }
.card:nth-child(3n) .who::before { border-color: var(--primary); }
.card p.text { flex: 1; margin-bottom: 20px; }
.card a { font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* Kontakt */

.band { background: var(--band); color: var(--band-text); border-radius: 32px; padding: 64px 48px; text-align: center; }
.band h2 { margin-bottom: 16px; }
.band p { margin: 0 auto 30px; max-width: 36em; color: var(--band-sub); font-size: 1.2rem; }
.band .mail { margin: 18px auto 0; font-size: 1rem; }
.band .mail a { color: var(--band-accent); }

/* Bund */

footer { padding-block: 34px 44px; color: var(--sub); font-size: .98rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--sub); }

/* 404 */

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost img { width: 120px; margin: 0 auto 24px; }
.lost .intro { margin-inline: auto; }
.lost .actions { justify-content: center; }

/* Små skærme */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 36px; }
  .jelly { order: -1; width: min(160px, 42vw); }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .nav { gap: 14px; }
  .nav .sec { display: none; }
  .steps, .cards { grid-template-columns: 1fr; }
  section { padding-block: 56px; }
  .band { padding: 44px 24px; border-radius: 24px; }
  .lead { font-size: 1.15rem; }
}
