:root {
  --bg: #f3f5f7;
  --bg-deep: #e8ecf0;
  --surface: #ffffff;
  --ink: #14181c;
  --muted: #5a6570;
  --line: #d5dce0;
  --accent: #e23a2b;
  --accent-hover: #c92f22;
  --ok: #1a8f6a;
  --ok-bg: #e6f6f0;
  --warn: #b45309;
  --warn-bg: #fff4e8;
  --full: #8a3a3a;
  --full-bg: #f8ecec;
  --shadow: 0 18px 50px rgba(20, 24, 28, 0.08);
  --radius: 4px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(226, 58, 43, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(26, 143, 106, 0.06), transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, var(--bg) 40%, var(--bg-deep) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 220, 224, 0.7);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.15) 0%, rgba(12, 16, 20, 0.55) 55%, rgba(12, 16, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 16, 20, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 7vw, 4.5rem);
  max-width: 42rem;
  animation: riseIn 0.9s var(--ease) both;
}

.brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 18ch;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* About */
.about {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.about-inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  animation: riseIn 0.8s var(--ease) both;
}

.about h2,
.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  font-weight: 400;
}

.about p,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
}

/* Holds */
.holds {
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 0.5rem;
}

.hold-block {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hold-block {
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .hold-block--flip .hold-copy {
    order: 2;
  }

  .hold-block--flip .hold-visual {
    order: 1;
  }
}

.hold-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1;
}

.hold-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 36ch;
}

.hold-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.hold-copy li {
  position: relative;
  padding-left: 0.9rem;
}

.hold-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.hold-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.hold-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hold-block:hover .hold-visual img {
  transform: scale(1.04);
}

/* Tilmelding */
.tilmelding {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.booking-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 52rem;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost-dark:hover {
  border-color: #aeb7bf;
  background: #fff;
}

.week-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.75rem 0 1.25rem;
}

.week-tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.week-tab:hover {
  color: var(--ink);
  border-color: #b8c0c8;
}

.week-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.schedule {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}

.session {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
  animation: riseIn 0.5s var(--ease) both;
}

.session:hover {
  border-color: var(--line);
  background: #fff;
}

.session.is-full {
  opacity: 0.72;
}

.session-main {
  display: grid;
  gap: 0.2rem;
}

.session-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.session-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.session-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.spots {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.spots--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.spots--low {
  background: var(--warn-bg);
  color: var(--warn);
}

.spots--full {
  background: var(--full-bg);
  color: var(--full);
}

.btn-tilmeld {
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-tilmeld:hover:not(:disabled) {
  background: var(--accent);
}

.btn-tilmeld.is-enrolled {
  background: var(--ok);
}

.btn-tilmeld.is-enrolled:hover:not(:disabled) {
  background: #157a5a;
}

.tilmelding-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.site-footer p {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.footer-meta {
  margin-top: 0.85rem !important;
  font-size: 0.8rem !important;
  opacity: 0.75;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
  max-width: min(90vw, 28rem);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-content,
  .about-inner,
  .session,
  .hold-visual img {
    animation: none !important;
    transition: none !important;
  }
}
