/* =========================================================================
   MOBILVERSION — TERAPI (telefon, ≤ 809.98px)

   The phone layer for terapi.html only. Loaded right after css/mobil.css,
   which carries the shared pieces (top bar, menu, footer, book dock, tokens).
   Every rule sits inside the phone media block and is scoped to
   body.cm-page-terapi, so desktop and every other page are untouched.
   Behaviour (story folds, price line, step line): js/mobil-terapi.js.

   Sections, top to bottom:
     1. Hero       — title, the "Århus, Skødstrup og online" line, the lead
     2. Services   — Parterapi / Individuel / Selvværd: title, photo, text
                     folded to its first lines, price, button
     3. "Det kan du forvente" — eyebrow, title, portrait, text, then the three
                     steps as a numbered line that draws itself
     4. "Næste skridt" CTA
   ========================================================================= */

@media (max-width: 809.98px) {

  /* 1. HERO — shared by the four sub-pages, see css/mobil.css "SUB-PAGE HERO" */

  /* ---------------------------------------------------------------------
     2. SERVICES — the photo used to be the band's dark background with the
     long copy in white on top of it. On the phone each service now reads like
     the desktop card does: ink on cream, title, then the photo, then the text
     folded to its first lines ("Fold ud"), the price and the button.
     The photo is painted as a block under the title (::after on the title
     box); the text box, price line and fold button are handled in JS.
     --------------------------------------------------------------------- */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .framer-1wne30e {
    gap: 84px !important;             /* a touch more air between the services */
    padding: 72px 0 0 !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-14o5rni, .framer-5me07v, .framer-neciwr) {
    background: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-14o5rni, .framer-5me07v, .framer-neciwr)::before,
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-14o5rni, .framer-5me07v, .framer-neciwr)::after {
    content: none !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-gb9c8e-container, .framer-1gzj2a5-container, .framer-1nxj1nz-container) {
    display: none !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-43aqtr, .framer-fyg7ve, .framer-1slj5u) {
    transform: none !important;
    padding: 0 var(--cm-m-gutter) !important;
    gap: 0 !important;
    width: 100% !important;
    height: auto !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-vo6msp, .framer-1bzrj7k, .framer-1dpmvbf, .framer-1iyyltm, .framer-4bhsxw, .framer-z8y547, .framer-8r1ulm, .framer-pbws8g, .framer-15yig4b) {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-lkatsd, .framer-wy6lem, .framer-fbgyd1, .framer-5jomio, .framer-1cfqdcl, .framer-1xo3zd9) {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* title */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge h2.framer-text,
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge h2.framer-text * {
    font-size: 34px !important;
    --framer-font-size: 34px !important;
    line-height: 1.1 !important;
    --framer-line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    color: var(--cm-text, #4a3730) !important;
    --framer-text-color: var(--cm-text, #4a3730) !important;
  }

  /* the photo, under the title */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-lkatsd, .framer-wy6lem, .framer-fbgyd1)::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    margin: 22px 0 24px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 30%;
    background-color: #2a2421;
  }
  /* farvefotos (2026-11-26), same files as the bands use on phone */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .framer-lkatsd::after {
    background-image: url("../images/cammilla-farve/grafik-11.jpg");
    background-position: 45% 30%;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .framer-wy6lem::after {
    background-image: url("../images/cammilla-farve/grafik-10.jpg");
    background-position: 62% 30%;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .framer-fbgyd1::after {
    background-image: url("../images/cammilla-farve/grafik-12.jpg");
    background-position: 72% 25%;
  }

  /* text */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge p.framer-text,
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge p.framer-text * {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
    --framer-line-height: 1.65 !important;
    color: var(--cm-body, #35312d) !important;
    --framer-text-color: var(--cm-body, #35312d) !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-5jomio, .framer-1cfqdcl, .framer-1xo3zd9) p.framer-text {
    margin: 0 0 14px !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge ul.cm-therapy-bullets {
    margin: 2px 0 16px !important;
    padding-left: 22px !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge ul.cm-therapy-bullets li {
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
  }

  /* the fold (class + button from js/mobil-terapi.js) */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-fold {
    --cm-fade-bot: 90px;
    max-height: 168px;               /* ~6 lines, the last ones fading */
    overflow: hidden !important;
    transition: max-height 0.75s cubic-bezier(0.22, 0.7, 0.2, 1), --cm-fade-bot 0.5s ease !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-fold.is-open {
    --cm-fade-bot: 0px;
  }
  /* the price moves out of the fold (a copy sits under the button row) */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-fold .cm-therapy-price {
    display: none !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-more {
    margin: 4px 0 0 !important;
    padding: 11px 0 !important;       /* 44px tap target */
  }

  /* price line: hairline above, amounts side by side */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 28px;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(74, 55, 48, 0.12);
    align-self: stretch;
    width: 100%;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-price .cm-therapy-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-price .cm-therapy-price-amount {
    font-family: var(--cm-font-lead, "Montserrat", sans-serif);
    font-size: 22px !important;
    font-weight: 400;
    line-height: 1.2;
    color: var(--cm-text, #4a3730) !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge .cm-mt-price .cm-therapy-price-unit {
    font-family: var(--cm-font-body, "DM Sans", sans-serif);
    font-size: 13px !important;
    font-weight: 400;
    color: var(--cm-body, #35312d) !important;
    opacity: 0.75;
  }

  /* button — the site's ink pill, 44px tall */
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge :is(.framer-18cebzm-container, .framer-19712v0-container, .framer-12tstt0-container) {
    width: auto !important;
    height: 44px !important;
    margin: 22px 0 0 !important;
    align-self: flex-start !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge a[href="./book.html"] {
    height: 44px !important;
    background: #171210 !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge a[href="./book.html"] p.framer-text,
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge a[href="./book.html"] p.framer-text * {
    color: #fdfbfa !important;
    --framer-text-color: #fdfbfa !important;
    font-size: 12px !important;
    --framer-font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
  body.cm-page-terapi #main .cm-therapy-framer-services-bridge a[href="./book.html"] :is([data-framer-name="Circle A"], [data-framer-name="Circle B"]) {
    background-color: #fdfbfa !important;
  }

  /* ---------------------------------------------------------------------
     3. "DET KAN DU FORVENTE" — one column at the page gutter (it was a 278px
     column inside 56px margins): eyebrow, title, portrait, text, then the
     three steps as a numbered line like "Sådan virker det" on the front page.
     The middle column dissolves so its pieces can sit around the portrait.
     --------------------------------------------------------------------- */
  body.cm-page-terapi #custom-therapy-section {
    padding: 72px var(--cm-m-gutter) 8px !important;
  }
  body.cm-page-terapi #custom-therapy-section > div {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  body.cm-page-terapi #custom-therapy-section > div > div:last-child {
    display: contents !important;
  }
  /* (the template sets order inline, hence !important) */
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(1) { order: 1 !important; }
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(2) { order: 2 !important; }
  body.cm-page-terapi #custom-therapy-section > div > div:first-child                { order: 3 !important; }
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(3) { order: 4 !important; }
  body.cm-page-terapi #custom-therapy-section .cm-steps-track                      { order: 5 !important; }

  /* eyebrow */
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(1) {
    font-size: 11px !important;
    margin: 0 0 14px !important;
  }
  /* title */
  body.cm-page-terapi #custom-therapy-section h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
  }
  /* portrait */
  body.cm-page-terapi #custom-therapy-section > div > div:first-child {
    flex: none !important;
    width: 100% !important;
    margin: 26px 0 0 !important;
  }
  /* text */
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(3) {
    margin: 24px 0 0 !important;
    gap: 14px !important;
  }
  body.cm-page-terapi #custom-therapy-section > div > div:last-child > :nth-child(3) p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
  }

  /* steps: number + a thin line drawn down to the next step */
  body.cm-page-terapi.cm-reveal-armed #custom-therapy-section .cm-steps-track.cm-reveal {
    opacity: 1 !important;            /* each step reveals itself instead */
  }
  body.cm-page-terapi #custom-therapy-section .cm-steps-track {
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 36px !important;
    margin: 56px 0 0 !important;
    padding: 0 !important;
  }
  body.cm-page-terapi #custom-therapy-section .cm-step {
    position: relative !important;
    flex: none !important;
    display: block !important;
    width: 100% !important;
    padding-left: 56px !important;
    transform: none !important;
    opacity: var(--cm-m-rev, 1) !important;
    translate: 0 calc((1 - var(--cm-m-rev, 1)) * 12px);
  }
  /* font sizes on the number, title and text are inline !important in the
     template, so js/mobil-terapi.js sets the phone sizes inline (stepType) */
  body.cm-page-terapi #custom-therapy-section .cm-step-num {
    position: absolute !important;
    left: 0;
    top: -2px;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  body.cm-page-terapi #custom-therapy-section .cm-step-rule {
    position: absolute !important;
    left: 16px;
    top: 42px;
    bottom: -28px;
    width: 1px !important;
    background: linear-gradient(to bottom, rgba(198, 154, 146, 0.8), rgba(198, 154, 146, 0.1)) !important;
    opacity: 1 !important;
    transform-origin: top;
    transform: scaleY(var(--cm-m-draw, 1));
  }
  body.cm-page-terapi #custom-therapy-section .cm-step:last-child .cm-step-rule {
    display: none !important;
  }
  body.cm-page-terapi #custom-therapy-section .cm-step > div:last-child {
    padding: 0 !important;
    gap: 8px !important;
  }
  body.cm-page-terapi #custom-therapy-section .cm-step-title {
    line-height: 1.2 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  body.cm-page-terapi #custom-therapy-section .cm-step-body {
    opacity: 1 !important;
  }

  /* ---------------------------------------------------------------------
     4. "NÆSTE SKRIDT" CTA
     --------------------------------------------------------------------- */
  body.cm-page-terapi #cm-custom-therapy-cta {
    padding: 72px var(--cm-m-gutter) 24px !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > p:first-child {
    font-size: 11px !important;
    margin-bottom: 14px !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > h2::before,
  body.cm-page-terapi #cm-custom-therapy-cta > h2::after {
    display: none !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > p:nth-of-type(2) {
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 300 !important;   /* same as the other pages' "Næste skridt" */
    margin-bottom: 32px !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > h2 {
    text-wrap: balance;
  }
  body.cm-page-terapi #cm-custom-therapy-cta > div {
    flex-direction: column !important;
    gap: 26px !important;
  }
  body.cm-page-terapi #cm-custom-therapy-cta a.cm-cta-dark {
    height: 44px !important;
  }
  /* the hearts + "Betroet af" line: shared, css/mobil.css "SUB-PAGE HERO" block */
}

/* Guard: phone-only pieces never show above the phone width */
@media (min-width: 810px) {
  .cm-mt-price,
  .cm-mt-more {
    display: none !important;
  }
}
