:root {
  --hero-brand: #115e67;
  --primary: var(--hero-brand);
  --cta-green-start: #22c55e;
  --cta-green-end: #4ade80;
  --cta-green-text: #052e16;
  --bg: #f5f7f8;
  --card: #ffffff;
  --text: #111111;             /* sort som accent */
  --muted: #6b7280;
  --border-subtle: #e2e4e7;
  --shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17,94,103,0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.season-start-section {
  padding-top: 2.2rem;
  padding-bottom: 0.2rem;
}

.home-social-section {
  padding-top: 1.1rem;
}

.season-start-card .section-lead {
  max-width: none;
}

.season-start-layout {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.season-start-media {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.season-start-media img {
  width: 100%;
  max-width: 290px;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (min-width: 900px) {
  .season-start-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 1.4rem;
  }
}

@media (min-width: 900px) {
  section { padding: 5rem 0; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(17,94,103,0.18);
  background: #ffffff;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.6rem 0 0.5rem;
}

.section-lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(17,94,103,0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.18rem 0.1rem;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: clamp(54px, 5.175vw, 77px);
  max-width: min(56vw, 630px);
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 1.2rem;
  font-size: 0.96rem;
}

.nav-links a {
  color: var(--muted);
  padding: 0.2rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary);
  transition: transform 0.18s ease-out;
}

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

.nav-links a.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1b929f);
  color: #000000;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.4);
}

.nav-cta.btn-primary,
.mobile-cta.btn-primary {
  background: linear-gradient(135deg, var(--cta-green-start), var(--cta-green-end));
  color: var(--cta-green-text);
  box-shadow: none;
}

.nav-cta.btn-primary:hover,
.mobile-cta.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text);
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: var(--primary);
}

.nav-toggle {
  border: none;
  background: transparent;
  width: 54px;
  height: 54px;
  position: relative;
  padding: 0;
  margin-left: 0.45rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: #6b7280;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle.is-open span:nth-child(3) {
  opacity: 0;
}

.nav-menu-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.2rem;
  border-top: 1px solid rgba(17,94,103,0.12);
  background: #ffffff;
}

.nav-menu-mobile a {
  font-size: 1rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.nav-menu-mobile a:hover {
  color: var(--text);
}

.nav-menu-mobile a.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-menu-mobile .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.85rem;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-menu-mobile { display: none !important; }
}

/* Hero */

.hero {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  background: #115e67;
  color: #ffffff;
}

.hero-home {
  padding-top: 2rem;
  padding-bottom: 3.1rem;
}

.hero:not(.hero-home) {
  padding-top: 2rem;
  padding-bottom: 3.1rem;
}

.hero .wrapper {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    align-items: start;
    gap: 3rem;
  }

  .hero-card > img:not(.hero-side-brand-overlay) {
    aspect-ratio: 4 / 3;
    object-position: center top;
    object-fit: cover;
  }
}

.hero .pill {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

.hero .lead-compact strong {
  color: var(--text);
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 1.1rem;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-heading-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
}

.hero-heading-brand {
  width: min(100%, 680px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1) !important;
  opacity: 0.97;
  margin: 0 0 0.1rem;
  flex: 0 0 auto;
}

.hero-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
  color: #ffffff;
  max-width: 34rem;
}

.hero-media-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-side-brand-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(75%, 430px);
  height: auto;
  max-width: calc(100% - 3.2rem);
  object-fit: contain;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1) !important;
  opacity: 0.8;
  pointer-events: none;
}

.hero-highlight {
  background: linear-gradient(120deg, #ffffff, #ecfeff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  color: rgba(255,255,255,0.9);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
  align-items: center;
}

.hero-actions .btn-primary {
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cta-green-start), var(--cta-green-end));
  color: var(--cta-green-text);
  box-shadow: none;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.hero-actions .btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
  background: transparent;
}

.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}

.hero-meta-item strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

.hero .hero-card {
  position: relative;
}

.hero-card > img:not(.hero-side-brand-overlay) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero .hero-card .hero-side-brand-overlay {
  width: min(75%, 430px) !important;
  max-width: calc(100% - 3.2rem);
  border-radius: 0;
}

.hero-home .hero-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.hero-home .hero-card > img:not(.hero-side-brand-overlay) {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: scale(1.04);
  transform-origin: center;
}

.hero-home .hero-card .hero-side-brand-overlay {
  width: min(86%, 560px) !important;
  max-width: calc(100% - 1.4rem);
}

/* Cards / layout */

.training-layout {
  display: grid;
  gap: 2rem;
}

.training-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.training-sidebar > .card + .card {
  margin-top: 0;
}

.training-level-card {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.training-level-card .rule-list {
  gap: 0.45rem;
}

@media (min-width: 880px) {
  .training-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card + .card { margin-top: 1rem; }

.spacer-md {
  margin-top: 2rem;
}

.spacer-lg {
  margin-top: 1.6rem;
}

.card-title {
  margin-top: 0;
  font-size: 1rem;
}

.card-title-sm {
  margin-bottom: 0.4rem;
}

.card-title-md {
  margin-bottom: 0.5rem;
}

.card-title-lg {
  margin-bottom: 0.6rem;
}

.routes-category-title {
  margin-top: 2.4rem;
  font-size: 1.18rem;
}

.routes-category-title-first {
  margin-top: 0.8rem;
}

.lead-compact {
  margin-top: 0;
  font-size: 0.9rem;
}

.text-muted-sm {
  font-size: 0.85rem;
  color: var(--muted);
}

.text-muted-xs {
  font-size: 0.82rem;
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.mt-xs {
  margin-top: 0.1rem;
}

.mt-sm {
  margin-top: 0.4rem;
}

.link-primary {
  color: var(--primary);
}

.training-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.training-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  align-items: baseline;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.7rem;
}

.training-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.training-day {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}

.training-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.training-meta strong {
  color: var(--text);
}

.training-note {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.rule-list {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.rule-list li::marker {
  color: var(--primary);
}

.home-cta-row {
  margin-top: 1rem;
}

.home-contact-quick {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.step .home-contact-quick {
  grid-column: 2 / -1;
  margin-top: 0.25rem;
}

.step .contact-links-row {
  grid-column: 2 / -1;
  margin-top: 0.25rem;
  width: 100%;
}

.home-contact-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.home-contact-label {
  font-weight: 600;
  color: var(--text);
}

.home-contact-value {
  color: var(--muted);
  user-select: all;
}

.home-contact-mail-link:hover {
  text-decoration: underline;
}

.home-contact-link {
  color: var(--primary);
  font-weight: 600;
}

.home-contact-link:hover {
  text-decoration: underline;
}

.home-contact-quick .contact-copy-btn {
  margin-left: 0.2rem;
}

.home-subtitle {
  margin-top: 1rem;
}

.home-training-grid {
  margin-top: 0.7rem;
  grid-template-columns: minmax(0, 1fr) !important;
}

.home-location-training-grid {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.home-location-card {
  max-width: 440px;
}

.home-location-card .map-embed {
  height: 220px;
}

.join-right-stack {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.join-right-stack .home-location-card {
  max-width: none;
}

@media (min-width: 980px) {
  .join-right-stack {
    gap: 1.5rem;
  }
}

@media (min-width: 980px) {
  .home-location-training-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
  }

  .home-training-col .home-training-grid {
    margin-top: 0.5rem;
  }
}

.home-proof-lead {
  margin-top: 0.1rem;
  margin-bottom: 0.8rem;
}

.home-quotes-grid {
  margin-top: 0.6rem;
}

.quote-card {
  justify-content: center;
  min-height: 104px;
}

/* Ruter */

.routes-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

@media (min-width: 720px) {
  .routes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.route-card {
  background: var(--card);
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-soft);
}

.route-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.route-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

#routes .route-name,
#routes .route-meta {
  display: none;
}

.route-link {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--primary);
}

.route-link:hover {
  text-decoration: underline;
}

.route-tag {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.route-embed {
  padding: 0.6rem;
  overflow: hidden;
}

.interval-intro {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.interval-legend {
  margin: -0.45rem 0 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.interval-legend strong {
  color: var(--text);
}

.interval-grid {
  margin-top: 0.8rem;
}

.interval-card {
  gap: 0.45rem;
}

.interval-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  background: #eef8f9;
  border: 1px solid rgba(17, 94, 103, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.interval-detail {
  font-size: 0.8rem;
  color: var(--text);
}

.interval-note {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.strava-box {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed rgba(17,94,103,0.4);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.strava-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
}

/* SoMe / galleri */

.social-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.3rem;
  align-items: stretch;
}

@media (max-width: 859px) {
  .social-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-grid > .stack-col {
    width: 100%;
  }

  .home-social-section .social-grid > .stack-col:first-child {
    order: 2;
  }

  .home-social-section .social-grid > .stack-col:last-child {
    order: 1;
  }
}

@media (min-width: 860px) {
  .social-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.social-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.social-pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.social-pill:hover {
  border-color: var(--primary);
}

.social-links-card {
  min-height: 0;
  height: 100%;
  display: flex;
}

.social-grid > div,
.social-grid > aside {
  display: flex;
}

.social-grid > div:not(.stack-col) > .card,
.social-grid > aside.card {
  width: 100%;
  height: 100%;
}

.stack-col {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.stack-col > .card {
  width: 100%;
  height: auto;
}

.strava-latest-card {
  padding: 0.6rem;
  overflow: hidden;
}

.strava-latest-embed {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
  height: 460px;
  border-radius: 10px;
}

.strava-summary-embed {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
  height: 160px;
  border-radius: 10px;
}

.strava-summary-card {
  padding: 0.6rem;
  overflow: hidden;
  line-height: 0;
}

.ig-card {
  padding: 0.6rem;
  overflow: hidden;
  line-height: 0;
}

#ig-embed-slot[data-height-mode="active"] {
  min-height: 0 !important;
  height: auto !important;
}

#ig-embed-slot[data-height-mode="active"] .ig-stage {
  transition: none;
}

#ig-embed-slot[data-height-mode="active"] .ig-stage:not(.is-active) {
  display: none;
  position: static;
  inset: auto;
}

@media (max-width: 860px) {
  .strava-latest-embed {
    height: 560px;
  }
}

.social-links-card .social-pill-row {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links-card .social-pill {
  flex: 0 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 120px;
  align-items: center;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  gap: 0.65rem;
}

.social-links-card .social-pill-label {
  line-height: 1.2;
}

.social-links-card .social-pill-qr {
  width: 100%;
  max-width: 112px;
  height: auto;
  border-radius: 8px;
  justify-self: end;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.social-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
}

.social-icon svg {
  width: 72px;
  height: 72px;
  display: block;
}

.social-icon img {
  width: 72px;
  height: 72px;
  display: block;
}

.social-pill-instagram .social-icon {
  color: #d62976;
}

.social-pill-facebook .social-icon {
  color: #1877f2;
}

.social-pill-zwift .social-icon {
  color: #fc5200;
}

.social-pill-zwift .social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-rotator {
  width: 100%;
}

#ig-embed-slot {
  min-height: 620px;
  position: relative;
  overflow: hidden;
}

.ig-stage {
  opacity: 0;
  transition: opacity 280ms ease;
}

.ig-stage:not(.is-active) {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ig-stage.is-active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.ig-rotator .instagram-media {
  margin: 0 auto !important;
  max-width: 540px !important;
  width: 100% !important;
}

@media (max-width: 860px) {
  .social-links-card .social-pill {
    grid-template-columns: 56px minmax(0, 1fr);
    row-gap: 0.55rem;
    font-size: 0.98rem;
  }

  .social-links-card .social-pill .social-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .social-links-card .social-pill .social-icon svg,
  .social-links-card .social-pill .social-icon img {
    width: 56px;
    height: 56px;
  }

  .social-links-card .social-pill-qr {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 126px;
  }
}

/* Bliv medlem / FAQ */

.join-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.join-grid > .card + .card {
  margin-top: 0;
}

@media (min-width: 860px) {
  .join-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  #join > .wrapper > .join-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.86rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: baseline;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 600;
}

.step-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.join-fit-card {
  display: flex;
  flex-direction: column;
}

.join-fit-card .steps {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0.35rem;
}

.join-fit-card .step {
  flex: 1;
  align-items: center;
  padding: 0.25rem 0;
}

.join-fit-card .step-title {
  font-weight: 400;
}

.step-text {
  grid-column: 2 / -1;
  font-size: 0.84rem;
  color: var(--muted);
}

.faq-list {
  margin: 0.5rem 0 0;
  list-style: none;
  padding: 0;
  font-size: 0.84rem;
  display: grid;
  gap: 0.6rem;
}

.faq-q {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.faq-a {
  color: var(--muted);
}

.faq-a .rule-list {
  margin-top: 0.18rem !important;
}

.clubwear-viewer-span {
  grid-column: 1 / -1;
}

.clubwear-viewer-card {
  padding: 0;
  overflow: hidden;
}

.clubwear-viewer {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 0;
  background: #eef2f3;
  overflow: hidden;
  line-height: 0;
}

.clubwear-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 320ms ease;
}

.clubwear-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.clubwear-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.clubwear-static-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.clubwear-viewer-full {
  min-height: 0;
  aspect-ratio: auto;
}

.clubwear-viewer-full .clubwear-static-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.clubwear-viewer-dots {
  position: absolute !important;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
  z-index: 5;
  pointer-events: none;
}

.clubwear-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.clubwear-dot.is-active {
  background: #ffffff;
}

@media (max-width: 680px) {
  .clubwear-viewer {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
}

.member-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

@media (min-width: 760px) {
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.member-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.25rem 1.05rem;
}

.member-grid > .card + .card {
  margin-top: 0;
}

.member-photo-ring {
  width: 118px;
  height: 118px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(17,94,103,0.24), rgba(17,94,103,0.08));
}

.member-photo {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}

.member-name {
  margin: 0;
  font-size: 1rem;
}

.member-role {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.member-blurb {
  margin: 0.55rem 0 0;
}

/* Kontakt/footer */

.contact-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 1rem;
  font-size: 0.86rem;
}

.contact-grid > .card + .card {
  margin-top: 0;
}

.contact-links-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.contact-links-row .social-pill {
  width: 100%;
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.45rem;
}

#contact .contact-links-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

#contact .contact-links-row .social-pill {
  min-height: 74px;
  padding: 0.75rem 0.85rem;
}

.step .contact-links-row .social-pill-mail {
  grid-column: 1 / -1;
}

.contact-links-row .social-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.contact-links-row .social-icon svg {
  width: 24px;
  height: 24px;
}

.contact-links-row .social-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-links-row .contact-icon-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.contact-links-row .contact-icon-mail-link svg {
  width: 22px;
  height: 22px;
}

.contact-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.contact-pill-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.08rem;
  word-break: break-all;
}

.contact-pill-meta-select {
  user-select: all;
}

.contact-copy-btn {
  margin-left: auto;
  flex: 0 0 68px;
  width: 68px;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  background: #eef8f9;
  border: 1px solid rgba(17, 94, 103, 0.24);
  border-radius: 999px;
  padding: 0.18rem 0.4rem;
  white-space: nowrap;
}

.contact-copy-btn:hover {
  border-color: var(--primary);
}

.social-pill-mail .social-icon {
  color: var(--primary);
}

.social-pill-phone .social-icon {
  color: var(--primary);
}

@media (max-width: 420px) {
  .contact-links-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.contact-list span {
  color: var(--muted);
}

.map-embed {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0 1.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: #ffffff;
}

.footer-cta {
  background: linear-gradient(135deg, #f8fbfc, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.footer-cta-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.footer-cta-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-cta-actions {
  margin-top: 0.7rem;
}

.footer-cta-actions .btn-primary {
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cta-green-start), var(--cta-green-end));
  color: var(--cta-green-text);
  box-shadow: none;
}

.footer-cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand-mark {
  width: auto;
  height: 18px;
  object-fit: contain;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 680px) {
  .nav-toggle {
    width: 54px;
    height: 54px;
  }

  .step .contact-links-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .step .contact-links-row .social-pill-mail {
    grid-column: auto;
  }

  .hero-grid > :first-child {
    order: 2;
  }

  .hero-grid > :last-child {
    order: 1;
  }

  .hero-home {
    padding-top: 2.1rem;
    padding-bottom: 3.2rem;
  }

  .hero:not(.hero-home) {
    padding-top: 2.1rem;
    padding-bottom: 3.2rem;
  }

  .hero-side-brand-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(78%, 320px) !important;
    height: auto;
    max-width: calc(100% - 2.8rem);
  }

  .hero-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero-heading-brand {
    width: min(100%, 420px);
    height: auto;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1) !important;
    margin: 0;
  }

  .brand-wordmark {
    height: 54px;
    max-width: 495px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
  }
}
