/* Section-bound photographic atmosphere. No fixed layer or changes to scene photos.
   Keep this enhancement separate so the previous background is easy to restore. */
:root {
  --botanical-leaves:url('/assets/media/atmosphere/botanical-v2-leaves.webp');
  --botanical-fern:url('/assets/media/atmosphere/botanical-v2-fern.webp');
  --botanical-palm:url('/assets/media/atmosphere/botanical-v2-palm.webp');
  --botanical-fade:linear-gradient(transparent,#00000040 9%,#000000bb 20%,#000 34%,#000 65%,#000000b0 80%,#00000038 93%,transparent);
  --botanical-reading:linear-gradient(90deg,#000,#000000bb 12%,#00000033 30%,transparent 42%,transparent 58%,#00000033 70%,#000000bb 88%,#000);
}
.page-home :is(.studio-introduction,.ritual-chapter,.price-chapter,.results-chapter,.extensions,.hairsystems,.care-invitation),
.contact-section { position:relative; isolation:isolate; }
.page-home :is(.studio-introduction,.ritual-chapter,.price-chapter,.results-chapter,.extensions,.hairsystems,.care-invitation)::before,
.contact-section::before {
  content:''; position:absolute; inset:-100px 0 auto; height:min(calc(100% + 200px),1000px);
  z-index:-1; pointer-events:none; background-image:var(--botanical-image,var(--botanical-palm));
  background-position:center; background-size:cover; background-repeat:no-repeat;
  opacity:var(--botanical-opacity,.68); transform:none;
  mask-image:var(--botanical-fade),var(--botanical-reading); mask-composite:intersect;
}
.page-home .studio-introduction { --botanical-image:var(--botanical-leaves); --botanical-opacity:.72; }
.page-home .ritual-chapter { --botanical-image:var(--botanical-palm); --botanical-opacity:.5; }
.page-home .ritual-chapter::before { height:760px; top:-160px; }
.page-home .price-chapter { --botanical-image:var(--botanical-fern); --botanical-opacity:.76; }
.page-home .price-chapter::before { height:860px; top:-120px; }
.page-home .results-chapter { --botanical-image:var(--botanical-leaves); --botanical-opacity:.55; }
.page-home .extensions { --botanical-image:var(--botanical-palm); --botanical-opacity:.8; }
.page-home :is(.extensions,.hairsystems) {
  --botanical-reading:linear-gradient(90deg,#000,#00000060 10%,#00000020 23%,transparent 40%,transparent 60%,#00000020 77%,#00000060 90%,#000);
}
.page-home .hairsystems { --botanical-image:var(--botanical-fern); --botanical-opacity:.68; }
.page-home .care-invitation { --botanical-image:var(--botanical-leaves); --botanical-opacity:.82; }
.page-home .care-invitation::before { inset:-120px 0; height:auto; }
.contact-section { --botanical-image:var(--botanical-fern); --botanical-opacity:.56; }

/* Existing subpage layers get a varied, quieter selection from the same image world. */
.hero-visual picture { display:block; width:100%; height:100%; }
body:not(.page-home) .page-intro:not(.page-intro-photo)::before { background-image:var(--botanical-palm); opacity:.62; }
.native-tool-section::before,.team-conditions::before { background-image:var(--botanical-fern); opacity:.38; }
#direkt-bewerben::before,.invitation::before { background-image:var(--botanical-leaves); opacity:.5; }
.page-booking main>.section::before { background-image:var(--botanical-palm); opacity:.45; }
.legal-section::before { background-image:var(--botanical-fern); opacity:.22; }

@media(max-width:767px) {
  :root {
    --botanical-leaves:url('/assets/media/atmosphere/mobile-leaves-alpha-v3-700.webp');
    --botanical-fern:url('/assets/media/atmosphere/mobile-fern-alpha-v3-700.webp');
    --botanical-palm:var(--botanical-fern);
    --botanical-reading:linear-gradient(90deg,#000,#000000a0 16%,#00000035 34%,transparent 52%);
  }
  /* A soft forest wash and enlarged, out-of-focus fronds supplement the existing
     edge plants. Both layers scroll with the page and leave the text untouched. */
  main::before {
    content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(165deg,transparent,#06140cc9 24%,#0b2015a6 56%,#07170eb3 76%,transparent) 0 0/100% 1800px repeat-y;
  }
  .page-home main::before { top:100vh; top:100svh; top:100dvh; }
  .page-home :is(.studio-introduction,.ritual-chapter,.price-chapter,.results-chapter,.extensions,.hairsystems,.care-invitation)>.container::before {
    content:''; position:absolute; inset:10% 0 auto; height:min(85%,1400px);
    z-index:-2; pointer-events:none;
    background:url('/assets/media/atmosphere/botanical-v2-palm-small.webp') 68% center/auto 100% no-repeat;
    opacity:.2; filter:blur(3px) saturate(.55);
    mask-image:linear-gradient(transparent,#000 18%,#000 78%,transparent);
  }
  .page-home :is(.ritual-chapter,.results-chapter,.hairsystems)>.container::before {
    background-position:28% center; transform:scaleX(-1);
  }
  .quiet-care-view main::before { display:none; }
  /* Center the people, whose focal points sit away from their source-image centers.
     Bound each frame so a wide phone never exposes the source image's outer edge. */
  .page-home .scene-nadine .scene-media { inset:auto; width:calc(100% - 40px); max-width:440px; height:auto; aspect-ratio:902/1600; padding:0; margin:36px auto 0; mask-image:none; }
  .page-home .scene-nadine .scene-media img { object-fit:contain; object-position:center; }
  .page-home .ritual-scenes article:nth-of-type(3)>figure { width:100%; max-width:440px; margin-inline:auto; }
  .page-home .ritual-scenes article:nth-of-type(3) img { object-position:calc(50% - 340px) center; }
  /* One portrait scene fills the visible viewport, including the header area. */
  .page-home .scene-hero { display:block; height:100vh; height:100svh; height:100dvh; min-height:0; }
  .page-home .scene-hero .scene-content { padding-top:clamp(132px,18svh,180px); padding-bottom:32px; }
  .page-home .scene-hero .scene-media {
    position:absolute; inset:0; width:100%; height:100%; margin:0;
    mask-image:linear-gradient(#000 80%,#000000ba 88%,transparent 100%);
  }
  .page-home .scene-hero .scene-media img { width:100%; height:100%; object-fit:cover; object-position:center top; mask-image:none; }
  .page-home .scene-hero::before { content:none; }
  /* Transparent portrait assets remove the rectangular landscape-image edges.
     The vertical mask is applied to the same bounds as the contained image. */
  .page-home :is(.studio-introduction,.ritual-chapter,.price-chapter,.results-chapter,.extensions,.hairsystems,.care-invitation)::before,
  .contact-section::before {
    inset:var(--botanical-top,-48px) 0 auto; height:auto; aspect-ratio:2/3;
    background-size:100% 100%; background-position:center;
    opacity:var(--botanical-opacity,.8); transform:scaleX(var(--botanical-flip,1));
    mask-image:linear-gradient(transparent,#000 15%,#000 80%,transparent),var(--botanical-reading);
    mask-composite:intersect;
  }
  .page-home .studio-introduction { --botanical-image:var(--botanical-fern); --botanical-opacity:.78; --botanical-top:50px; }
  .page-home .ritual-chapter { --botanical-image:var(--botanical-leaves); --botanical-opacity:.76; --botanical-top:-90px; }
  .page-home .price-chapter { --botanical-image:var(--botanical-fern); --botanical-flip:-1; --botanical-opacity:.8; --botanical-top:-60px; }
  .page-home .results-chapter { --botanical-image:var(--botanical-leaves); --botanical-flip:-1; --botanical-opacity:.75; --botanical-top:-70px; }
  .page-home .extensions { --botanical-image:var(--botanical-fern); --botanical-opacity:.8; --botanical-top:-80px; }
  .page-home .hairsystems { --botanical-image:var(--botanical-leaves); --botanical-opacity:.78; --botanical-top:0px; }
  .page-home .care-invitation { --botanical-image:var(--botanical-fern); --botanical-opacity:.8; --botanical-top:-50px; }
  .page-home :is(.ritual-chapter,.results-chapter,.hairsystems),.contact-section {
    --botanical-reading:linear-gradient(90deg,transparent 48%,#00000035 66%,#000000a0 84%,#000);
  }
  .page-home :is(.studio-introduction,.ritual-chapter,.extensions,.hairsystems)::after {
    content:''; position:absolute; inset:auto 0 var(--botanical-bottom,60px);
    height:auto; aspect-ratio:2/3; z-index:-1; pointer-events:none;
    background:var(--botanical-secondary,var(--botanical-leaves)) center/100% 100% no-repeat;
    opacity:.72;
    mask-image:linear-gradient(transparent,#000 18%,#000 78%,transparent),var(--botanical-secondary-mask,linear-gradient(90deg,transparent 48%,#00000055 76%,#000));
    mask-composite:intersect;
  }
  .page-home .studio-introduction { --botanical-bottom:130px; }
  .page-home .ritual-chapter {
    --botanical-bottom:180px; --botanical-secondary:var(--botanical-fern);
    --botanical-secondary-mask:linear-gradient(90deg,#000,#00000055 24%,transparent 52%);
  }
  .page-home .extensions { --botanical-bottom:26%; }
  .page-home .hairsystems {
    --botanical-bottom:-20px; --botanical-secondary:var(--botanical-fern);
    --botanical-secondary-mask:linear-gradient(90deg,#000,#00000055 24%,transparent 52%);
  }
  .page-home :is(.scene-nadine,.scene-spa,.scene-career)::before {
    content:''; position:absolute; inset:0 0 auto; height:auto; aspect-ratio:2/3;
    z-index:-1; pointer-events:none;
    background:var(--botanical-leaves) center/100% 100% no-repeat; opacity:.76;
    mask-image:linear-gradient(transparent,#000 15%,#000 76%,transparent),linear-gradient(90deg,transparent 48%,#00000055 78%,#000);
    mask-composite:intersect;
  }
  .page-home .scene-spa::before {
    top:-50px; background-image:var(--botanical-fern);
    mask-image:linear-gradient(transparent,#000 15%,#000 76%,transparent),linear-gradient(90deg,#000,#00000055 22%,transparent 52%);
  }
  .page-home .scene-career::before { top:-60px; transform:scaleX(-1); }
  /* Feather the actual photograph, including its sides, rather than a larger wrapper. */
  .page-home .scene:not(.scene-hero) .scene-media img {
    mask-image:linear-gradient(transparent,#000 18%,#000 76%,transparent),linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
    mask-composite:intersect;
  }
  .page-home .scene.scene-nadine .scene-media img {
    mask-image:linear-gradient(transparent,#000 3%,#000 97%,transparent);
  }
  .page-home .ritual-scenes article>figure img {
    mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent);
  }
  @media(prefers-reduced-motion:no-preference) {
    .page-home .botanical-reveal::before { animation:botanical-edge-enter 1100ms var(--ease-out) both; }
    @keyframes botanical-edge-enter {
      from { opacity:0; translate:var(--botanical-enter,-18px) 0; }
      to { opacity:var(--botanical-opacity,.76); translate:0 0; }
    }
  }
  .page-home :is(.ritual-chapter,.price-chapter,.hairsystems,.scene-nadine) { --botanical-enter:18px; }
}
@media(max-width:767px) and (max-height:650px) {
  .page-home .scene-hero::after {
    content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:linear-gradient(90deg,#09100bdb,#09100b80 65%,#09100b10);
    mask-image:linear-gradient(#000 65%,transparent 94%);
  }
  .page-home .scene-hero .scene-content { padding-top:120px; }
  .page-home .scene-hero h1 { font-size:clamp(43px,12vw,62px); margin-bottom:20px; }
  .page-home .scene-hero .eyebrow { margin-bottom:20px; }
  .page-home .scene-hero .scene-copy .scene-lead { margin-top:16px; }
  .page-home .scene-hero .button { margin-top:24px; }
}
@media(max-width:767px) and (max-height:480px) {
  .page-home .scene-hero .scene-media img { object-position:center; }
  .page-home .scene-hero .scene-content { padding-top:100px; }
  .page-home .scene-hero .eyebrow { margin-bottom:10px; }
  .page-home .scene-hero h1 { font-size:36px; line-height:1.05; margin-bottom:12px; }
  .page-home .scene-hero .scene-copy .scene-lead { margin-top:0; font-size:15px; }
  .page-home .scene-hero .button { margin-top:16px; min-height:44px; padding-block:10px; }
}
.quiet-care-view :is(.page-intro,.native-tool-section,.invitation)::before { display:none; }
@media print {
  main::before,.page-home .section>.container::before { display:none !important; }
  .page-home :is(.section,.scene)::before,.page-home .section::after,.contact-section::before { display:none !important; }
}
