/* ==========================================================================
   Movinglife – design (Vitus_Web12_251026, updated to Vitus_Web14_281026)
   Every measure is taken from the design PDF, which is 595 pt wide.
   1 pt in the design = var(--u) on screen: the page scales with the window (capped at 1440px).
   Text uses var(--t): the same as --u on desktop, never smaller than 1.75px.

   Divi setup: sections, rows and modules get the classes below (Advanced → Attributes → class).
   Spacing per element comes from custom properties in the element's style attribute (all in design pt):
     --mt  space above the element          --pt / --pb  padding top / bottom of a section
     --x --y --w  position + width inside a collage (.ml-collage), --ih image height, --h collage height
   ========================================================================== */

@property --mt { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --pt { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --pb { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --x  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --y  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --w  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --h  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --ih { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --z  { syntax: '<integer>'; inherits: false; initial-value: 1; }

:root {
  --u: calc(min(100vw, 1440px) / 595);
  --t: max(var(--u), 1.75px);
  --ml-page: calc(595 * var(--u));
  --ml-content: calc(469.8 * var(--u));   /* 63.8 → 533.6 pt */
  --ml-colgap: calc(12.7 * var(--u));
  --ml-dash: max(2px, calc(1 * var(--u)));

  --ml-ink: #000;
  --ml-red: #9e1510;
  --ml-blue: #00489a;
  --ml-purple: #811d7c;
  --ml-navy: #25378d;
  --ml-green: #007642;
  --ml-orange: #e74310;

  --ml-cream: #fff7df;
  --ml-beige: #f1ede2;
  --ml-mint: #e3f0e6;
  --ml-sky: #dff2fd;

  --ml-mono: "config-mono-vf", monospace;
  --ml-serif: adobe-garamond-pro, serif;
}

/* ---------- Sections, rows, columns ---------- */
.et_pb_section.ml-sec {
  display: block !important;
  row-gap: 0 !important;
  padding: calc(var(--pt) * var(--u)) 0 calc(var(--pb) * var(--u)) !important;
  background-color: transparent;
}
.et_pb_section.ml-sec--cream { background-color: var(--ml-cream) !important; }
.et_pb_section.ml-sec--beige { background-color: var(--ml-beige) !important; }
.et_pb_section.ml-sec--mint  { background-color: var(--ml-mint) !important; }
.et_pb_section.ml-sec--sky   { background-color: var(--ml-sky) !important; }

.ml-sec > .et_pb_row,
.ml-sec > .et_pb_row.ml-row,
.et_pb_row.ml-row {
  width: var(--ml-content) !important;
  max-width: none !important;
  margin: calc(var(--mt) * var(--u)) auto 0 !important;
  padding: 0 !important;
  column-gap: var(--ml-colgap) !important;
  row-gap: 0 !important;
  align-items: flex-start;
}
.ml-sec > .et_pb_row > .et_pb_column {
  row-gap: 0 !important;
  margin: 0 !important;
}
.ml-sec > .et_pb_row:not(.ml-collage) > .et_pb_column {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
}
.ml-sec .et_pb_module {
  margin: calc(var(--mt) * var(--u)) 0 0 !important;
  padding: 0 !important;
}
/* narrower centred rows */
.ml-sec > .et_pb_row.ml-row--narrow { width: calc(430 * var(--u)) !important; }

/* ---------- Typography ---------- */
/* centred blocks (overrides the module's own text alignment) */
.ml-head, .ml-head .et_pb_text_inner, .ml-head h1, .ml-head p,
.ml-block, .ml-block .et_pb_text_inner, .ml-block h2, .ml-block h3, .ml-block p, .ml-block ul,
.ml-card, .ml-card .et_pb_text_inner, .ml-card p,
.ml-testimonials, .ml-testimonials .et_pb_text_inner, .ml-testimonials h2, .ml-testimonials p,
.ml-subhead .et_pb_text_inner { text-align: center !important; }
.ml-body .et_pb_text_inner, .ml-body11 .et_pb_text_inner, .ml-quote .et_pb_text_inner,
.ml-body p, .ml-body11 p, .ml-quote p { text-align: left !important; }
.ml-sec .et_pb_text_inner > *:last-child { padding-bottom: 0; margin-bottom: 0; }
.ml-sec .et_pb_text p { padding-bottom: 0; }

/* Page intro: title, dash, lead (below the hero) */
.ml-head { text-align: center; }
.ml-head h1 {
  margin: 0;
  padding: 0;
  font-family: var(--ml-serif);
  font-size: calc(20 * var(--t));
  line-height: calc(27.5 * var(--t)) !important;
  font-weight: 600;
  color: inherit;
}
.ml-head h1 .ml-light { display: block; font-weight: 400; }
.ml-head h1::after,
.ml-dash::after {
  content: "";
  display: block;
  width: calc(20 * var(--t));
  height: var(--ml-dash);
  margin: calc(15.5 * var(--t)) auto 0;
  background: currentColor;
}
.ml-head--small h1 { font-size: calc(18 * var(--t)); }
.ml-head .ml-lead-h {
  margin: calc(20 * var(--t)) 0 0;
  padding: 0;
  font-size: calc(16 * var(--t));
  line-height: calc(22 * var(--t));
  font-style: italic;
  font-weight: 600;
}
.ml-head--front .ml-lead-h { margin-top: calc(23.7 * var(--t)); }
.ml-head--front .ml-lead { margin-top: calc(3.7 * var(--t)); line-height: calc(20 * var(--t)); }
.ml-head .ml-lead {
  margin: 0 auto;
  padding: 0;
  font-size: calc(14 * var(--t));
  line-height: calc(22 * var(--t));
  font-style: italic;
}

/* Body text, 9 pt (two columns) */
.ml-body,
.ml-body p,
.ml-body li {
  font-size: calc(9 * var(--t));
  line-height: calc(14 * var(--t));
}
.ml-body p + p { margin-top: calc(14 * var(--t)); }
.ml-body, .ml-body11 { hyphens: auto; -webkit-hyphens: auto; }
.ml-body strong { font-weight: 700; }
/* flowing text in two columns (one text module) */
.ml-flow .et_pb_text_inner {
  column-count: 2;
  column-gap: var(--ml-colgap);
}
.ml-flow p { break-inside: auto; orphans: 2; widows: 2; }

/* Body text, 11 pt (closing two columns on Embodied Leadership Journey) */
.ml-body11,
.ml-body11 p {
  font-size: calc(11 * var(--t));
  line-height: calc(16 * var(--t));
}
.ml-body11 p + p { margin-top: calc(16 * var(--t)); }
.ml-body11 strong { font-weight: 600; }
.ml-body11 h2 {
  margin: 0;
  padding: 0;
  font-size: calc(14 * var(--t));
  line-height: calc(18 * var(--t));
  font-weight: 600;
}
.ml-body11 h2::after {
  content: "";
  display: block;
  width: calc(11 * var(--t));
  height: max(1.5px, calc(0.8 * var(--t)));
  margin: calc(7.7 * var(--t)) 0 calc(6.1 * var(--t));
  background: currentColor;
}
.ml-body11 * + h2 { margin-top: calc(30 * var(--t)); }

/* Centred heading in the middle of the page (e.g. "Find din måde at bevæge livet på") */
.ml-subhead,
.ml-subhead p {
  text-align: center;
  font-size: calc(16 * var(--t));
  line-height: calc(22 * var(--t));
  font-style: italic;
  font-weight: 600;
}
.ml-subhead.ml-rule p::after {
  content: "";
  display: block;
  width: calc(78 * var(--u));
  height: var(--ml-dash);              /* same thickness as the dash under the page heading */
  margin: calc(26 * var(--u)) auto 0;
  background: #575756;
}

/* ®: Adobe Garamond's ® is already small and raised, so it is shown at full size on the baseline
   (the browser's own <sup> shrinks and raises it a second time) */
.ml-sec sup {
  position: static;
  font-size: 1em;
  line-height: inherit;
  vertical-align: baseline;
}

/* ---------- Colours ---------- */
.ml-c-red, .ml-c-red * { color: var(--ml-red) !important; }
.ml-c-blue, .ml-c-blue * { color: var(--ml-blue) !important; }
.ml-c-purple, .ml-c-purple * { color: var(--ml-purple) !important; }
.ml-c-navy, .ml-c-navy * { color: var(--ml-navy) !important; }
.ml-c-green, .ml-c-green * { color: var(--ml-green) !important; }
.ml-c-orange, .ml-c-orange * { color: var(--ml-orange) !important; }

/* ---------- Coloured sections: centred blocks ---------- */
.ml-block { text-align: center; }
.ml-block h2,
.ml-block h3 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-style: italic;
  color: inherit;
}
.ml-block h2 { font-size: calc(14 * var(--t)); line-height: calc(17.5 * var(--t)); }
.ml-block h3 { font-size: calc(12 * var(--t)); line-height: calc(18.5 * var(--t)); margin-bottom: calc(1.6 * var(--t)); }
.ml-block p {
  margin: 0;
  font-size: calc(11 * var(--t));
  line-height: calc(15 * var(--t));
}
.ml-block p + p { margin-top: calc(15 * var(--t)); }
.ml-block h3 + p,
.ml-block h2 + p { margin-top: 0; }
.ml-block p + h3 { margin-top: calc(16.25 * var(--t)); }
.ml-block h2.ml-gap { margin-bottom: calc(4.6 * var(--t)); }
.ml-block .ml-italic p,
.ml-block p.ml-italic,
.ml-block--intro p { font-style: italic; }
.ml-block--loose p { line-height: calc(18 * var(--t)); }
.ml-block--loose p + h3 { margin-top: calc(23.75 * var(--t)); }
/* the icon above an item */
.ml-block img.ml-icon,
.ml-block .ml-icon {
  display: block;
  zoom: 1;
  width: calc(var(--iw, 30) * var(--u));
  height: auto;
  margin: 0 auto calc(12 * var(--u));
}
.ml-block p:has(> img.ml-icon) { padding: 0; margin: 0; line-height: 0; }
.ml-block p:has(> img.ml-icon) + h3,
.ml-block p:has(> img.ml-icon) + h2 { margin-top: 0 !important; }

/* Section heading with dash (Stå friere i dit eget liv, Baggrund & erfaring) */
.ml-block h2.ml-big {
  font-size: calc(20 * var(--t));
  line-height: calc(27 * var(--t));
  font-style: normal;
}
.ml-block h2.ml-mid {
  font-size: calc(16 * var(--t));
  line-height: calc(22 * var(--t));
  font-style: normal;
}
.ml-block h2.ml-big::after,
.ml-block h2.ml-mid::after {
  content: "";
  display: block;
  width: calc(20 * var(--t));
  height: var(--ml-dash);
  margin: calc(18 * var(--t)) auto calc(27.5 * var(--t));
  background: currentColor;
}
.ml-block h2.ml-mid::after { margin: calc(16.2 * var(--t)) auto calc(19.75 * var(--t)); }
.ml-block .ml-list {
  margin: calc(4.3 * var(--t)) 0 0;
  padding: 0;
  list-style: none;
}
.ml-block .ml-list li {
  padding: 0;
  font-size: calc(12 * var(--t));
  line-height: calc(24 * var(--t));
}
.ml-block .ml-list li::before { content: "• "; }
.ml-block .ml-list + p { margin-top: calc(15 * var(--t)); }
.ml-block p.ml-p12 { font-size: calc(12 * var(--t)); line-height: calc(18 * var(--t)); }
.ml-block p.ml-lead16 {
  margin-top: calc(18 * var(--t));
  font-size: calc(16 * var(--t));
  line-height: calc(22 * var(--t));
  font-style: italic;
}

/* ---------- Quotes (mono) ---------- */
.ml-quote,
.ml-quote p {
  font-family: var(--ml-mono) !important;
  font-weight: 400 !important;              /* Regular (design: ExtraLight – too thin on screen) */
  font-variation-settings: "wght" 400;
  font-size: calc(12 * var(--t));
  line-height: calc(18 * var(--t));
  letter-spacing: 0;
}
.ml-quote--l,
.ml-quote--l p {
  font-size: calc(16 * var(--t));
  line-height: calc(24 * var(--t));
}
.ml-quote .ml-by {
  margin-top: calc(5.8 * var(--t));
  font-size: calc(10 * var(--t));
  line-height: calc(18 * var(--t));
}
.ml-quote .et_pb_text_inner { max-width: var(--ch, none); font-family: var(--ml-mono); }
.ml-quote p { hyphens: manual; }

/* Testimonials (Deltagererfaringer) */
.ml-testimonials { text-align: center; }
.ml-testimonials h2 {
  margin: 0;
  padding: 0;
  font-size: calc(14 * var(--t));
  line-height: calc(20 * var(--t));
  font-style: italic;
  font-weight: 600;
}
.ml-testimonials blockquote {
  margin: calc(36 * var(--t)) 0 0;   /* one extra line between the testimonials */
  padding: 0;
  border: 0;
}
.ml-testimonials h2 + blockquote { margin-top: calc(17.6 * var(--t)); }
.ml-testimonials blockquote p {
  font-size: calc(11 * var(--t));
  line-height: calc(18 * var(--t));
}
.ml-testimonials blockquote cite {
  display: block;
  margin-top: calc(6 * var(--t));
  font-size: calc(11 * var(--t));
  line-height: calc(18 * var(--t));
  font-style: italic;
}

/* Videos above a testimonial (old setup: class "ml-has-video" on the blockquote, the video in <figure class="ml-video">) */
.ml-testimonials blockquote.ml-has-video,
.ml-testimonials blockquote.ml-has-video + blockquote { margin-top: calc(64 * var(--t)); }
.ml-testimonials .ml-video { margin: 0 0 calc(34 * var(--t)); padding: 0; }
.ml-testimonials .ml-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }

/* Testimonials, one module each (Vitus_Web14) – easy to add/duplicate in Divi:
   - Text module with the class "ml-testimonial": the quote in <p>, the name in <p><em>…</em></p> (or <cite>)
   - optional Divi Video module with the class "ml-testimonial-video" right above it
   A short dash follows every testimonial; 2 lines (36 pt) between dash and the next testimonial/video */
.et_pb_column:has(> .ml-testimonial) { row-gap: 0 !important; gap: 0 !important; }
.ml-sec .et_pb_module.ml-testimonial {
  margin: calc(18 * var(--t)) 0 0 !important;
  text-align: center;
}
.ml-sec .ml-testimonials + .et_pb_module.ml-testimonial,
.ml-sec .ml-testimonials + .ml-sec .et_pb_module.ml-testimonial-video { margin-top: calc(18 * var(--t)) !important; }
.ml-testimonial .et_pb_text_inner { text-align: center !important; }
.ml-testimonial p {
  margin: 0;
  padding: 0;
  font-size: calc(11 * var(--t));
  line-height: calc(18 * var(--t));
  text-align: center !important;
}
.ml-testimonial p + p { margin-top: calc(6 * var(--t)); }
.ml-testimonial em, .ml-testimonial cite { font-style: italic; }
.ml-testimonial cite { display: block; margin-top: calc(6 * var(--t)); }
.ml-testimonial .et_pb_text_inner::after {
  content: "—";
  display: block;
  margin-top: calc(18 * var(--t));
  font-size: calc(11 * var(--t));
  line-height: calc(18 * var(--t));
  font-style: normal;
}
.ml-sec .et_pb_module.ml-testimonial-video {
  width: calc(283.5 * var(--u)) !important;
  max-width: 100% !important;
  margin: calc(18 * var(--t)) auto 0 !important;
}
.ml-sec .ml-testimonial-video + .et_pb_module.ml-testimonial { margin-top: calc(18 * var(--t)) !important; }
.ml-testimonial-video .et_pb_video_box,
.ml-testimonial-video video {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 283.5 / 159.3;
  background: #000;
  object-fit: cover;
}
.ml-testimonial-video .et_pb_video_overlay { display: none !important; }

/* ---------- Collages: images and quotes placed as in the design ---------- */
.ml-sec > .et_pb_row.ml-collage,
.et_pb_row.ml-collage {
  position: relative;
  width: var(--ml-page) !important;
  height: calc(var(--h) * var(--u));
  display: block !important;
}
.ml-collage > .et_pb_column {
  position: static !important;
  display: block !important;
  width: auto !important;
}
.ml-collage .et_pb_module {
  position: absolute !important;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)) !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: var(--z);
}
.ml-collage .et_pb_image { height: calc(var(--ih) * var(--u)); }
.ml-collage .et_pb_image .et_pb_image_wrap { display: block; width: 100%; height: 100%; }
.ml-collage .et_pb_image img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: var(--op, 50% 50%);
}
.ml-collage .ml-quote { z-index: 5; }
/* Quote that hangs over the top edge of an image (Constellations): add the class "ml-quote--over" and set
   --yb = the image's --y. The image's top edge then runs through the middle of the quote's last line
   (half of a 24 pt line = 12 pt; change with --ov) at every screen width, even when the text unit
   (--t, min 1.75px) makes the quote taller than in the design */
.ml-collage .ml-quote--over {
  top: calc(var(--yb) * var(--u) + var(--ov, 12) * var(--t));
  translate: 0 -100%;
}

/* Front page cards (text half of a card) */
.ml-card {
  text-align: center;
  font-size: calc(11 * var(--t));
  line-height: calc(16 * var(--t));
}
.ml-card p { font-size: inherit; line-height: inherit; }
.ml-card .ml-card__title { font-weight: 600; }
.ml-card .ml-card__title::after {
  content: "";
  display: block;
  width: calc(11 * var(--t));
  height: max(1.5px, calc(0.8 * var(--t)));
  margin: calc(7.5 * var(--t)) auto calc(7.5 * var(--t));
  background: currentColor;
}
.ml-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(120.9 * var(--u));
  min-height: max(calc(65.9 * var(--u)), calc(62 * var(--t)));   /* Vitus_Web14: all three buttons the same height (room for 3 lines) */
  margin: calc(23 * var(--t)) auto 0;
  padding: calc(6 * var(--t)) calc(6 * var(--t));
  background: currentColor;
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
  transition: translate 0.6s cubic-bezier(0.625, 0.05, 0, 1), filter 0.4s ease;
}
.ml-btn span { color: #fff !important; }
@media (hover: hover) and (pointer: fine) {
  .ml-btn:hover { translate: 0 -0.2rem; filter: brightness(1.15); }
}

/* ---------- Footer (Theme Builder) – Vitus_Web14 ----------
   Five columns: text (class "ml-foot-about") | page links (class "ml-foot-nav") | Handelsbetingelser/Privatlivspolitik
   (class "ml-foot-legal", 50 % opacity) | email + phone | social icons.
   Line across the page, 23 pt above the text; columns start at 28.3 / 233.3 pt; email/phone and icons sit at the right,
   the icons ending exactly under the right edge of the burger lines (--ml-foot-right, from css/burger-menu.css) */
.et-l--footer .et_pb_section {
  --ml-foot-right: calc(var(--ml-burger-right, calc(28.3 * var(--u))) + (var(--ml-burger-size, 3rem) - var(--ml-burger-lines-width, calc(19 * var(--u)))) / 2);
  border-top: 1px solid #000;
  padding: calc(23 * var(--u)) 0 calc(40 * var(--u)) !important;
}
.et-l--footer .et_pb_row {
  width: calc(100% - 28.3 * var(--u) - var(--ml-foot-right)) !important;
  max-width: none !important;
  margin: 0 auto 0 calc(28.3 * var(--u)) !important;
  align-self: flex-start !important;
  padding: 0 !important;
  column-gap: 0 !important;
  align-items: flex-start;
}
.et-l--footer .et_pb_column { width: auto !important; margin: 0 !important; }
.et-l--footer .et_pb_column:nth-child(1) { flex: 0 0 calc(205 * var(--u)) !important; }   /* menu starts at 233.3 pt */
.et-l--footer .et_pb_column:nth-child(2) { flex: 0 0 auto !important; padding-right: calc(20 * var(--u)) !important; }   /* legal links 20 pt after the longest menu item */
.et-l--footer .et_pb_column:nth-child(3) { flex: 0 0 auto !important; }
.et-l--footer .et_pb_column:nth-child(4) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;                 /* email + phone pulled to the right, next to the icons */
  padding-right: calc(20 * var(--u)) !important;
}
.et-l--footer .et_pb_column:last-child { flex: 0 0 auto !important; }
.et-l--footer .et_pb_image { width: calc(79 * var(--u)) !important; max-width: none !important; }
.et-l--footer .et_pb_image img { width: 100%; height: auto; }
.et-l--footer .et_pb_text,
.et-l--footer .et_pb_text p {
  font-size: calc(8 * var(--t));
  line-height: calc(11 * var(--t));
  padding: 0;
  color: #000;
}
.et-l--footer .ml-foot-about,
.et-l--footer .ml-foot-about p { font-weight: 600; }
.et-l--footer .ml-foot-about .et_pb_text_inner { max-width: calc(160 * var(--u)); }
.et-l--footer .et_pb_text a { color: #000; text-decoration: none; transition: opacity 0.3s ease; }
.et-l--footer .et_pb_text a:hover { opacity: 0.55; }
.et-l--footer .ml-foot-nav p { margin: 0; }
.et-l--footer .ml-foot-legal p { margin: 0; }
.et-l--footer .ml-foot-legal a { opacity: 0.5; }
.et-l--footer .ml-foot-legal a:hover { opacity: 1; }
/* social icons: plain black glyphs (no circle), as tall as the two contact lines next to them:
   top of the letters in the email line (2.1 pt below the row top) to the bottom of the phone line (19 pt) – 17 pt.
   The icon font's glyphs fill exactly 1em, so font-size = line-height = box height = 17 pt */
.et-l--footer .et_pb_social_media_follow { gap: 0 !important; justify-content: flex-end; margin: calc(2.1 * var(--t)) 0 0 !important; padding: 0 !important; }
.et-l--footer .et_pb_social_media_follow li { margin-top: 0 !important; margin-bottom: 0 !important; }
.et-l--footer .et_pb_social_media_follow li,
.et-l--footer .et_pb_social_media_follow li a.icon { background: none !important; border-radius: 0 !important; }
.et-l--footer .et_pb_social_media_follow li a.icon,
.et-l--footer .et_pb_social_media_follow li a.icon::before {
  width: calc(17 * var(--t)) !important;
  height: calc(17 * var(--t)) !important;
  line-height: calc(17 * var(--t)) !important;
  color: #000 !important;
}
.et-l--footer .et_pb_social_media_follow li a.icon::before { font-size: calc(17 * var(--t)) !important; }
.et-l--footer .et_pb_social_media_follow li a.icon:hover::before { opacity: 0.55; }
.et-l--footer .et_pb_social_media_follow li + li { margin-left: calc(1 * var(--t)) !important; }
/* the last icon's glyph ends flush with the row (= under the burger lines) */
.et-l--footer .et_pb_social_media_follow li:last-child a.icon::before { text-align: right; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  :root {
    --ml-content: calc(100vw - 3rem);
  }
  .ml-sec > .et_pb_row.ml-row--narrow { width: var(--ml-content) !important; }
}

/* ---------- Footer, narrow desktop / tablet: the text gets its own line, the four other columns follow below ---------- */
@media (max-width: 1100px) {
  .et-l--footer .et_pb_row { flex-wrap: wrap !important; row-gap: calc(20 * var(--t)) !important; }
  .et-l--footer .et_pb_column:nth-child(1) { flex: 0 0 100% !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root {
    --t: 1.55px;
    --ml-content: calc(100vw - 2.5rem);
  }
  .ml-sec > .et_pb_row:not(.ml-collage) { flex-wrap: wrap !important; row-gap: calc(14 * var(--t)) !important; }
  .ml-sec > .et_pb_row:not(.ml-collage) > .et_pb_column { flex: 1 1 100% !important; }
  .ml-flow .et_pb_text_inner { column-count: 1; }
  .ml-body, .ml-body p { font-size: 16px; line-height: 1.55; }
  .ml-head .ml-lead br, .ml-block br, .ml-quote br, .ml-testimonials br, .ml-testimonial br, .ml-card p:not(:last-child) br, .ml-hy { display: none; }
  .ml-quote, .ml-quote p { font-size: 15px; line-height: 1.5; }
  .ml-quote--l, .ml-quote--l p { font-size: 19px; line-height: 1.45; }
  .ml-quote .ml-by { font-size: 13px; }
  .ml-quote .et_pb_text_inner { max-width: none; }

  /* collages stack: images alternate left/right and overlap a little */
  .ml-sec > .et_pb_row.ml-collage,
  .et_pb_row.ml-collage {
    width: var(--ml-content) !important;
    height: auto;
  }
  .ml-collage > .et_pb_column { display: flex !important; flex-direction: column; }
  .ml-collage .et_pb_module {
    position: relative !important;
    left: auto;
    top: auto;
    width: 78% !important;
  }
  .ml-collage .et_pb_image:nth-child(even) { align-self: flex-end; }
  .ml-collage .et_pb_image + .et_pb_image { margin-top: -12% !important; }
  .ml-collage .et_pb_image { height: auto; }
  .ml-collage .et_pb_image img { height: auto !important; aspect-ratio: var(--ar, 4 / 5); }
  .ml-collage .ml-quote { width: 100% !important; order: -1; margin-bottom: 2rem !important; }
  .ml-collage .ml-quote--over { top: auto; translate: none; }
  .ml-collage .ml-card { width: 100% !important; margin: 1.5rem 0 3rem !important; }
  .ml-collage .ml-card-img { width: 100% !important; }
  .ml-collage .ml-card-img + .ml-card { order: 0; }

  .et-l--footer .et_pb_row { width: var(--ml-content) !important; margin: 0 auto !important; flex-wrap: wrap !important; row-gap: 1.25rem !important; }
  .et-l--footer .et_pb_column:nth-child(n) { flex: 1 1 100% !important; }
  .et-l--footer .et_pb_social_media_follow { justify-content: flex-start; }
  .et-l--footer .et_pb_column:nth-child(4) { align-items: flex-start; padding-right: 0 !important; }
  .et-l--footer .et_pb_social_media_follow li:last-child a.icon::before { text-align: center; }
  .et-l--footer .et_pb_image { width: 120px !important; }
  .et-l--footer .et_pb_text, .et-l--footer .et_pb_text p { font-size: 14px; line-height: 1.4; }
  .et-l--footer .ml-foot-about .et_pb_text_inner { max-width: 22rem; }
  .et-l--footer .et_pb_social_media_follow { margin-top: 0 !important; }
  .et-l--footer .et_pb_social_media_follow li a.icon,
  .et-l--footer .et_pb_social_media_follow li a.icon::before { width: 2rem !important; height: 2rem !important; line-height: 2rem !important; }
  .et-l--footer .et_pb_social_media_follow li a.icon::before { font-size: 1.5rem !important; }
  .et-l--footer .et_pb_social_media_follow li + li { margin-left: 0.25rem !important; }
  .et-l--footer .et_pb_social_media_follow li:first-child a.icon { margin-left: -0.5rem; }
}

/* ---------- Phone (Web15 mobile pass) ---------- */
@media (max-width: 767px) {
  /* Icons above the items (subpages): sized with the text unit instead of the page unit,
     so they keep the design's size relative to the text (they were 15–30px) */
  .ml-icon { --u: var(--t); }
  /* ...and the space above each icon item follows the text too (it was 14–25px, so the items ran together) */
  .ml-sec .et_pb_module.ml-block:has(.ml-icon) { margin-top: calc(var(--mt) * var(--t) * 1.15) !important; }

  /* Front page: the buttons run edge to edge, like the images above them */
  .ml-btn {
    width: 100%;
    min-height: 0;
    margin-top: calc(18 * var(--t));
    padding: 1.15rem 1.25rem;
    font-size: 18px;
    line-height: 1.3;
  }
  .ml-btn br { display: none; }

  /* Body text 18px */
  .ml-body, .ml-body p, .ml-body li,
  .ml-body11, .ml-body11 p,
  .ml-block p, .ml-card, .ml-card p,
  .ml-testimonial p, .ml-testimonial .et_pb_text_inner::after { font-size: 18px; line-height: 1.55; }
  .ml-body p + p { margin-top: 1.55em; }
  .ml-body11 p + p, .ml-block p + p { margin-top: 1.2em; }

  /* Deltagererfaringer: the videos run the full width of the screen */
  .ml-sec .et_pb_module.ml-testimonial-video {
    width: 100vw !important;
    max-width: none !important;
    margin: calc(18 * var(--t)) 0 0 calc(50% - 50vw) !important;
  }

  /* Collages: per-image control on phones (add the class to the Image module next to "ml-img"):
     ml-m-left / ml-m-right = which side the image sits on, ml-m-pull = overlaps the image above it,
     ml-m-back = lies behind the other images */
  .ml-collage .et_pb_module.ml-m-left { align-self: flex-start; }
  .ml-collage .et_pb_module.ml-m-right { align-self: flex-end; }
  .ml-collage .et_pb_module.ml-m-pull { margin-top: -12% !important; }
  .ml-collage .et_pb_module.ml-m-back { z-index: 0; }

  /* Footer: bigger text */
  .et-l--footer .et_pb_text, .et-l--footer .et_pb_text p { font-size: 16px; line-height: 1.5; }
  .et-l--footer .ml-foot-nav p { margin: 0; }
  .et-l--footer .et_pb_image { width: 140px !important; }
}

/* ---------- Divi Visual Builder only (03.11) ----------
   The builder drops the custom properties (--x, --y, --w, --ih …) from the elements' style attributes,
   so absolutely placed collage items ended up 0 px wide. Inside the builder (.et-fb-root-area) collages
   are shown as a simple two-column flow instead, so every image and text can be clicked and edited.
   The live site is not affected. */
.et-fb-root-area .et_pb_row.ml-collage { height: auto !important; width: var(--ml-content) !important; display: block !important; }
.et-fb-root-area .ml-collage > .et_pb_column {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  align-items: flex-start !important; gap: calc(12 * var(--u)) !important; width: 100% !important;
}
.et-fb-root-area .ml-collage .et_pb_module {
  position: relative !important; left: auto !important; top: auto !important; translate: none !important;
  width: calc(50% - 6 * var(--u)) !important; flex: 0 0 auto !important;
}
.et-fb-root-area .ml-collage .et_pb_image { height: auto !important; }
.et-fb-root-area .ml-collage .et_pb_image img { height: auto !important; aspect-ratio: var(--ar, 4 / 5); }

/* ---------- Text pages (Handelsbetingelser / Privatlivspolitik, 03.11) ----------
   Section "ml-sec ml-legal", centred heading (ml-head ml-head--small), text row "ml-row ml-row--narrow ml-row--legal" = 70 % of the page */
.ml-sec > .et_pb_row.ml-row--legal { width: calc(0.7 * var(--ml-page)) !important; }
@media (max-width: 980px) {
  .ml-sec > .et_pb_row.ml-row--legal { width: var(--ml-content) !important; }
}
/* phone: start the heading below the fixed logo */
@media (max-width: 767px) {
  .et_pb_section.ml-sec.ml-legal { padding-top: calc(min(7.5rem, 18svh) + 50px) !important; }
}

/* ---------- Footer: credits + four social icons (15.11) ----------
   Credits (p.ml-foot-credit inside ml-foot-legal) sit on the same lines as "Kontakt" and "Introfilm" (lines 6–7 of the menu),
   and take no width of their own, so they run out under the empty space below email/phone.
   Four icons (Facebook ×2, Instagram, LinkedIn) only fit in one line at 12 pt (was 17 pt), centred on the two contact lines */
@media (min-width: 1101px) {
  .et-l--footer .ml-foot-legal p.ml-foot-credit { margin-top: calc(33 * var(--t)); width: 0; white-space: nowrap; }
  .et-l--footer .et_pb_column:nth-child(4) { padding-right: calc(8 * var(--u)) !important; }
  .et-l--footer .et_pb_social_media_follow { margin-top: calc(4.6 * var(--t)) !important; }
  .et-l--footer .et_pb_social_media_follow li a.icon,
  .et-l--footer .et_pb_social_media_follow li a.icon::before {
    width: calc(12 * var(--t)) !important;
    height: calc(12 * var(--t)) !important;
    line-height: calc(12 * var(--t)) !important;
  }
  .et-l--footer .et_pb_social_media_follow li a.icon::before { font-size: calc(12 * var(--t)) !important; }
  .et-l--footer .et_pb_social_media_follow li + li { margin-left: calc(2.5 * var(--t)) !important; }
}
@media (max-width: 1100px) {
  .et-l--footer .ml-foot-legal p.ml-foot-credit { margin-top: 1lh; }
}
