/* Jr. Rollemodeller landing – page-jr-rollemodeller.php
   Designfokus: proportioner, spacing, typografi, rytme */

.h5g-jr-rm-page .site-main.h5g-jr-rm {
  padding-bottom: 0;
}

.h5g-jr-rm .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Stage: hero-billede + grid (tekst + formular) */
.h5g-jr-rm__stage {
  position: relative;
  padding-bottom: calc(var(--spacing-base) * 3);
}

.h5g-jr-rm-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Kampagne-højde – bærer første viewport */
  height: clamp(560px, 78vh, 880px);
  z-index: 0;
  overflow: hidden;
}

.h5g-jr-rm-hero__photo,
.h5g-jr-rm-hero__photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Motivet: Jr. RM til venstre – ikke de yngre piger til højre */
  object-position: 28% 38%;
}

.h5g-jr-rm-hero__photo-placeholder {
  background: linear-gradient(135deg, #f3b8d4 0%, #f8d9e8 45%, #ffffff 100%);
}

.h5g-jr-rm__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-base) * 4);
  padding-top: calc(var(--spacing-base) * 5);
  padding-bottom: calc(var(--spacing-base) * 2);
}

.h5g-jr-rm__main {
  min-width: 0;
}

.h5g-jr-rm__aside {
  position: relative;
  z-index: 5;
  width: 100%;
}

/* Hero-tekst – nederst venstre, understøtter motivet */
.h5g-jr-rm-hero {
  position: relative;
  min-height: clamp(420px, 68vh, 760px);
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--spacing-base) * 5);
}

.h5g-jr-rm-hero__copy {
  max-width: 32rem;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.h5g-jr-rm-hero__eyebrow {
  margin: 0 0 calc(var(--spacing-base) * 2);
  font-size: 13px;
  font-weight: var(--font-weight-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-pink-light);
}

.h5g-jr-rm-hero__title {
  margin: 0 0 calc(var(--spacing-base) * 2.5);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: var(--font-weight-black);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white); /* override global h1 { color: black } */
}

.h5g-jr-rm-hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--color-white);
}

/* Én understregning – kun hero-fokusordet */
.h5g-jr-rm-title-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 14px;
  pointer-events: none;
}

.h5g-jr-rm-hero__lead {
  margin: 0 0 calc(var(--spacing-base) * 4);
  max-width: 30rem;
  font-size: 16px; /* site body er 15px – lead lidt større, ikke 18px */
  line-height: var(--line-height-body-alt);
  font-weight: var(--font-weight-medium);
  color: var(--color-white); /* override global p { color: black } */
}

.h5g-jr-rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-base) * 1.5);
}

.h5g-jr-rm-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--border-radius-standard);
  font-size: 14px;
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.h5g-jr-rm-hero__cta--primary {
  box-shadow: var(--shadow-standard);
}

.h5g-jr-rm-hero__cta--secondary {
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

.h5g-jr-rm-hero__cta--secondary:hover,
.h5g-jr-rm-hero__cta--secondary:focus {
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
}

.h5g-jr-rm-icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
}

/* Feature cards: ~40px (passer til 4-på-række) */
.h5g-jr-rm-card__icon .h5g-jr-rm-icon {
  width: 40px;
  height: 40px;
}

/* Proces / kontakt / FAQ / CTA: 24–28px */
.h5g-jr-rm-process__icon .h5g-jr-rm-icon,
.h5g-jr-rm-form-card__help-link .h5g-jr-rm-icon,
.h5g-jr-rm-faq__toggle .h5g-jr-rm-icon,
.h5g-jr-rm-values__icon .h5g-jr-rm-icon,
.h5g-jr-rm-hero__cta .h5g-jr-rm-icon,
.h5g-jr-rm-more__cta .h5g-jr-rm-icon,
.h5g-jr-rm-form__button .h5g-jr-rm-icon,
.h5g-jr-rm-upload .h5g-jr-rm-icon {
  width: 26px;
  height: 26px;
}

/* Indhold – kapitler med luft */
.h5g-jr-rm__content {
  background: var(--color-white);
  border-radius: calc(var(--border-radius-standard) + 4px) calc(var(--border-radius-standard) + 4px) 0 0;
  margin-top: calc(var(--spacing-base) * 3);
  padding-top: calc(var(--spacing-base) * 2);
}

.h5g-jr-rm-section {
  padding: calc(var(--spacing-base) * 4) 0;
}

.h5g-jr-rm-section + .h5g-jr-rm-section {
  border-top: none;
}

/* Tættere mellem proces og forløb */
.h5g-jr-rm-process {
  padding-bottom: calc(var(--spacing-base) * 2);
}

.h5g-jr-rm-timeline {
  padding-top: calc(var(--spacing-base) * 2);
}

.h5g-jr-rm-section__title {
  position: relative;
  display: block;
  margin: 0 0 calc(var(--spacing-base) * 2.5);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--font-weight-black);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.h5g-jr-rm-section__title--sm {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: calc(var(--spacing-base) * 3);
}

.h5g-jr-rm-section__lead {
  max-width: 38rem;
  margin: 0 0 calc(var(--spacing-base) * 5);
  font-size: 16px;
  line-height: var(--line-height-body-alt);
  font-weight: var(--font-weight-medium);
  color: #222;
}

/* Value cards – fire på en række (desktop), mockup-agtige kort */
.h5g-jr-rm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--spacing-base) * 2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.h5g-jr-rm-card {
  padding: calc(var(--spacing-base) * 2.5) calc(var(--spacing-base) * 2);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-standard);
  box-shadow: none;
}

.h5g-jr-rm-card__icon {
  display: inline-flex;
  margin-bottom: calc(var(--spacing-base) * 1.5);
  color: var(--color-pink-primary);
}

.h5g-jr-rm-card__title {
  margin: 0 0 calc(var(--spacing-base) * 1);
  font-size: 15px;
  font-weight: var(--font-weight-black);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.h5g-jr-rm-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* Process */
.h5g-jr-rm-process__list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-base) * 3) calc(var(--spacing-base) * 1.5);
  margin: calc(var(--spacing-base) * 4) 0 0;
  padding: 0;
  list-style: none;
}

.h5g-jr-rm-process__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 180px;
  text-align: center;
}

.h5g-jr-rm-process__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-bottom: calc(var(--spacing-base) * 1.5);
  color: var(--color-pink-primary);
  /* Solid baggrund, så den stiplede linje ikke ses inde i cirklen */
  background: #fce4ef;
  background: color-mix(in srgb, var(--color-pink-primary) 14%, #fff);
  border: none;
  border-radius: 50%;
}

.h5g-jr-rm-process__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: var(--font-weight-black);
  line-height: 1.3;
}

.h5g-jr-rm-process__text {
  display: block;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  color: #333;
}

/* Segment-connectors i markup skjules – én fælles linje på listen */
.h5g-jr-rm-process__connector {
  display: none !important;
}

/* Timeline – kalenderikon → tekst, pile mellem ikoner (som mockup) */
.h5g-jr-rm-timeline__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  margin: calc(var(--spacing-base) * 4) 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.h5g-jr-rm-timeline__item {
  position: relative;
  flex: 1 1 0;
  min-width: 148px;
  margin: 0;
  padding: 0 10px;
  text-align: center;
}

.h5g-jr-rm-timeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto calc(var(--spacing-base) * 1.5);
  color: var(--color-pink-primary);
}

.h5g-jr-rm-timeline__icon .h5g-jr-rm-icon {
  width: 28px;
  height: 28px;
}

.h5g-jr-rm-timeline__arrow {
  display: none;
  position: absolute;
  top: 2px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: #9a9a9a;
  pointer-events: none;
}

.h5g-jr-rm-timeline__period {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: var(--font-weight-black);
  line-height: 1.3;
  color: var(--color-black);
}

.h5g-jr-rm-timeline__title {
  margin: 0;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  color: #333;
}

.h5g-jr-rm-timeline__note {
  margin: calc(var(--spacing-base) * 4) 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* Moment-billede – åndehul */
.h5g-jr-rm-moment {
  margin: calc(var(--spacing-base) * 4) 0 calc(var(--spacing-base) * 6);
  padding: 0;
}

.h5g-jr-rm-moment__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(560px, 70vw);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--border-radius-standard);
}

/* Bottom: kontakt + FAQ – to kort side om side (som mockup) */
.h5g-jr-rm-bottom {
  padding-bottom: calc(var(--spacing-base) * 2);
}

.h5g-jr-rm-bottom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-base) * 3);
  align-items: stretch;
}

.h5g-jr-rm-card-heading {
  position: relative;
  display: inline-block;
  margin: 0 0 calc(var(--spacing-base) * 2.5);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: var(--font-weight-black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.h5g-jr-rm-more,
.h5g-jr-rm-faq {
  min-width: 0;
  height: 100%;
}

.h5g-jr-rm-more__card {
  display: grid;
  grid-template-columns: minmax(160px, 48%) minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  background: var(--color-pink-light, #f3b8d4);
  border-radius: var(--border-radius-standard);
}

.h5g-jr-rm-more__media {
  min-height: 100%;
}

.h5g-jr-rm-more__photo,
.h5g-jr-rm-more__photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 0;
}

.h5g-jr-rm-more__photo-placeholder {
  background: var(--color-pink-light-15);
}

.h5g-jr-rm-more__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--spacing-base) * 3.5) calc(var(--spacing-base) * 3);
}

.h5g-jr-rm-more__text {
  margin: 0 0 calc(var(--spacing-base) * 3);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body-alt);
  color: var(--color-black);
}

.h5g-jr-rm-more__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
}

/* FAQ */
.h5g-jr-rm-faq__card {
  height: 100%;
  padding: calc(var(--spacing-base) * 3.5) calc(var(--spacing-base) * 3.5) calc(var(--spacing-base) * 2);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-standard);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.h5g-jr-rm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: none;
}

.h5g-jr-rm-faq__item {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

/* Kun streger mellem spørgsmål – ingen under det sidste */
.h5g-jr-rm-faq__item + .h5g-jr-rm-faq__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.h5g-jr-rm-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  list-style: none;
}

.h5g-jr-rm-faq__question::-webkit-details-marker {
  display: none;
}

.h5g-jr-rm-faq__toggle {
  position: relative;
  display: inline-flex;
  color: var(--color-pink-primary);
  flex-shrink: 0;
}

.h5g-jr-rm-faq__toggle-minus {
  display: none;
}

.h5g-jr-rm-faq__item[open] .h5g-jr-rm-faq__toggle-plus {
  display: none;
}

.h5g-jr-rm-faq__item[open] .h5g-jr-rm-faq__toggle-minus {
  display: inline-flex;
}

.h5g-jr-rm-faq__answer {
  padding: 0 0 18px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body-alt);
}

.h5g-jr-rm-faq__answer p {
  margin: 0;
}

/* Values bar – mockup-layout (ikon + tekst side om side), hvid baggrund */
.h5g-jr-rm-values {
  padding: calc(var(--spacing-base) * 2) 0 calc(var(--spacing-base) * 5);
}

.h5g-jr-rm-values__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 4);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 960px;
}

.h5g-jr-rm-values__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.h5g-jr-rm-values__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--color-pink-primary);
}

.h5g-jr-rm-values__icon .h5g-jr-rm-icon {
  width: 28px;
  height: 28px;
}

.h5g-jr-rm-values__label {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  white-space: pre-line;
}

/* Form – bredere, mere kompakt */
.h5g-jr-rm-form-card {
  background: var(--color-white);
  border-radius: calc(var(--border-radius-standard) + 2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.h5g-jr-rm-form-card__panel {
  padding: calc(var(--spacing-base) * 3) calc(var(--spacing-base) * 3.5);
}

.h5g-jr-rm-form-card__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: var(--font-weight-black);
  color: var(--color-pink-primary);
}

.h5g-jr-rm-form-card__intro {
  margin: 0 0 calc(var(--spacing-base) * 2);
  font-size: 14px;
  line-height: 1.4;
}

.h5g-jr-rm-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.h5g-jr-rm-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.h5g-jr-rm-form__field {
  margin: 0 0 12px;
}

.h5g-jr-rm-form label,
.h5g-jr-rm-form__upload-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.h5g-jr-rm-form .required {
  color: var(--color-pink-primary);
}

.h5g-jr-rm-input,
.h5g-jr-rm-textarea,
.h5g-jr-rm-select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-family-primary);
  font-size: 14px;
  color: var(--color-black);
  background: var(--color-pink-light);
  border: 2px solid transparent;
  border-radius: var(--border-radius-standard);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.h5g-jr-rm-textarea {
  min-height: 72px;
  resize: vertical;
}

.h5g-jr-rm-select-wrap {
  position: relative;
  display: block;
}

.h5g-jr-rm-select-wrap .h5g-jr-rm-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.h5g-jr-rm-select-wrap__icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--color-pink-primary);
  pointer-events: none;
}

.h5g-jr-rm-select-wrap__icon .h5g-jr-rm-icon {
  width: 20px;
  height: 20px;
}

.h5g-jr-rm-input:hover,
.h5g-jr-rm-textarea:hover,
.h5g-jr-rm-select:hover {
  border-color: var(--color-pink-primary);
}

.h5g-jr-rm-input:focus,
.h5g-jr-rm-textarea:focus,
.h5g-jr-rm-select:focus {
  outline: none;
  border-color: var(--color-pink-primary);
  box-shadow: 0 0 0 2px var(--color-pink-light-30);
}

.h5g-jr-rm-input.is-invalid,
.h5g-jr-rm-textarea.is-invalid,
.h5g-jr-rm-select.is-invalid {
  border-color: #b32d2e;
}

.h5g-jr-rm-form__error {
  display: block;
  min-height: 0;
  margin-top: 2px;
  font-size: 12px;
  color: #b32d2e;
}

.h5g-jr-rm-form__error:empty {
  display: none;
}

.h5g-jr-rm-form__global-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-standard);
  background: #fde8e8;
  color: #8a1f1f;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.h5g-jr-rm-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  color: var(--color-pink-primary);
  background: var(--color-pink-light-15);
  border: 1.5px dashed var(--color-pink-primary);
  border-radius: var(--border-radius-standard);
  cursor: pointer;
  text-align: center;
}

.h5g-jr-rm-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.h5g-jr-rm-upload__text {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.h5g-jr-rm-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.h5g-jr-rm-consent__input {
  flex-shrink: 0;
  margin-top: 2px;
}

.h5g-jr-rm-consent__text {
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--font-weight-medium);
}

.h5g-jr-rm-consent__text a {
  color: var(--color-pink-primary);
  font-weight: var(--font-weight-bold);
}

.h5g-jr-rm-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
}

.h5g-jr-rm-form__submit {
  margin: 4px 0 0;
}

.h5g-jr-rm-form-card__help {
  margin-top: calc(var(--spacing-base) * 2);
  padding-top: calc(var(--spacing-base) * 2);
  border-top: 1px solid var(--color-pink-light-30);
}

.h5g-jr-rm-form-card__help-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: var(--font-weight-black);
}

.h5g-jr-rm-form-card__help-text {
  margin: 0 0 8px;
  font-size: 13px;
}

.h5g-jr-rm-form-card__help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-pink-primary);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

/* Success */
.h5g-jr-rm-success {
  text-align: center;
  padding: calc(var(--spacing-base) * 4) calc(var(--spacing-base) * 2);
}

.h5g-jr-rm-success__icon {
  display: inline-flex;
  margin-bottom: calc(var(--spacing-base) * 2);
  color: var(--color-pink-primary);
}

.h5g-jr-rm-success__title {
  margin: 0 0 calc(var(--spacing-base) * 1.5);
  font-size: 24px;
  font-weight: var(--font-weight-black);
}

.h5g-jr-rm-success__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* Desktop: bredere formular + højere hero + tydeligt overlap */
@media (min-width: 1100px) {
  .h5g-jr-rm-hero__media {
    height: clamp(640px, 85vh, 960px);
  }

  .h5g-jr-rm__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 36px;
    align-items: start;
    padding-top: calc(var(--spacing-base) * 6);
  }

  .h5g-jr-rm__aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
    /*
      Start formularen nær bunden af heroen, så kun en lille del
      (ca. 72px) stikker op i billedet.
    */
    margin-top: calc(clamp(640px, 85vh, 960px) - 72px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
  }

  .h5g-jr-rm__main {
    grid-column: 1;
  }

  .h5g-jr-rm-hero {
    min-height: clamp(560px, 78vh, 880px);
    padding-bottom: calc(var(--spacing-base) * 8);
  }

  .h5g-jr-rm-hero__copy {
    max-width: 28rem;
  }

  .h5g-jr-rm__content {
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    padding-top: calc(var(--spacing-base) * 4);
  }

  .h5g-jr-rm-section {
    padding: calc(var(--spacing-base) * 5) 0;
  }

  .h5g-jr-rm-process {
    padding-bottom: calc(var(--spacing-base) * 2.5);
  }

  .h5g-jr-rm-timeline {
    padding-top: calc(var(--spacing-base) * 2.5);
  }

  .h5g-jr-rm-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .h5g-jr-rm-bottom__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: calc(var(--spacing-base) * 3);
  }

  .h5g-jr-rm-process {
    /* Samme venstrekant som overskriften; ekstra bredde kun til højre */
    margin-left: 0;
    width: calc(100% + 44px);
  }

  .h5g-jr-rm-process__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  /* Én lige stiplet linje gennem midten af alle ikon-cirkler */
  .h5g-jr-rm-process__list::before {
    content: '';
    position: absolute;
    top: 28px; /* midten af 56px-cirkel */
    /* Fra midten af første (venstrestillede) ikon til midten af sidste (centrerede) */
    left: 28px;
    right: calc((100% - 90px) / 12);
    height: 0;
    border-top: 2px dotted var(--color-pink-primary);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
  }

  .h5g-jr-rm-process__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0;
  }

  /* Første punkt: ikon flugter med overskriftens venstre kant */
  .h5g-jr-rm-process__item:first-child {
    align-items: flex-start;
    text-align: left;
  }

  .h5g-jr-rm-timeline {
    /* Samme venstrekant som overskriften; ekstra bredde kun til højre */
    margin-left: 0;
    width: calc(100% + 44px);
  }

  .h5g-jr-rm-timeline__list {
    overflow: visible;
    justify-content: flex-start;
    gap: 0 8px;
  }

  .h5g-jr-rm-timeline__item {
    min-width: 0;
    padding: 0 10px 0 0;
  }

  /* Første punkt: ikon flugter med overskriftens venstre kant */
  .h5g-jr-rm-timeline__item:first-child {
    text-align: left;
  }

  .h5g-jr-rm-timeline__item:first-child .h5g-jr-rm-timeline__icon {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .h5g-jr-rm-timeline__item:first-child .h5g-jr-rm-timeline__arrow {
    left: 28px;
    width: calc(100% - 28px);
  }

  .h5g-jr-rm-timeline__arrow {
    display: flex;
  }

  .h5g-jr-rm-moment {
    margin: calc(var(--spacing-base) * 2) 0 calc(var(--spacing-base) * 4);
  }
}

@media (max-width: 1099px) {
  .h5g-jr-rm__grid {
    display: flex;
    flex-direction: column;
  }

  .h5g-jr-rm__aside {
    order: 2;
    /* Kun lidt overlap op i hero */
    margin-top: calc(var(--spacing-base) * -8);
  }

  .h5g-jr-rm__main {
    order: 1;
    display: contents;
  }

  .h5g-jr-rm-hero {
    order: 1;
  }

  .h5g-jr-rm__content {
    order: 3;
  }
}

@media (max-width: 767px) {
  .h5g-jr-rm-hero__media {
    height: clamp(480px, 72vh, 640px);
  }

  .h5g-jr-rm-hero {
    min-height: clamp(380px, 62vh, 520px);
    padding-bottom: calc(var(--spacing-base) * 6);
  }

  .h5g-jr-rm-hero__photo {
    /* Venstre = Jr. RM i fokus (ikke de små piger) */
    object-position: 22% 35%;
  }

  .h5g-jr-rm-hero__copy {
    max-width: none;
  }

  .h5g-jr-rm-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .h5g-jr-rm-hero__cta {
    justify-content: center;
  }

  .h5g-jr-rm__aside {
    margin-top: calc(var(--spacing-base) * -6);
  }

  .h5g-jr-rm-section {
    padding: calc(var(--spacing-base) * 4) 0;
  }

  .h5g-jr-rm-cards {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-base) * 2);
  }

  /* Forløbet: én vertikal kolonne – ikoner flugter */
  .h5g-jr-rm-process,
  .h5g-jr-rm-timeline {
    margin-left: 0;
    width: 100%;
  }

  .h5g-jr-rm-timeline__list {
    flex-direction: column;
    align-items: stretch;
    gap: calc(var(--spacing-base) * 3);
  }

  .h5g-jr-rm-timeline__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    min-width: 0;
    text-align: left;
    padding: 0;
  }

  .h5g-jr-rm-timeline__item:first-child {
    text-align: left;
  }

  .h5g-jr-rm-timeline__icon,
  .h5g-jr-rm-timeline__item:first-child .h5g-jr-rm-timeline__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-content: flex-start;
    width: 28px;
    margin: 2px 0 0;
  }

  .h5g-jr-rm-timeline__period {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .h5g-jr-rm-timeline__title {
    grid-column: 2;
    grid-row: 2;
  }

  .h5g-jr-rm-timeline__arrow {
    display: none;
  }

  /* Values: én ren liste – undgå 2+2+1-wrap */
  .h5g-jr-rm-values__list {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    gap: calc(var(--spacing-base) * 2.5);
    max-width: none;
  }

  .h5g-jr-rm-values__item {
    width: 100%;
    max-width: none;
  }

  .h5g-jr-rm-form__row--split {
    grid-template-columns: 1fr;
  }

  .h5g-jr-rm-more__card {
    grid-template-columns: 1fr;
  }

  .h5g-jr-rm-more__photo,
  .h5g-jr-rm-more__photo-placeholder {
    min-height: 220px;
    max-height: 280px;
  }

  .h5g-jr-rm-moment__photo {
    max-height: 420px;
  }
}
