/**
 * Block: actionworld/page-hero  + actionworld/section-nav
 * Same logic as the frontpage hero: icon, headline, subline, entry text,
 * booking button. The page image fills the right side, fades into the black
 * and carries the attraction colour (--c, Toolset field "color").
 */
.aw-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 84vh, 860px);
  padding-block: clamp(4rem, 2rem + 5vw, 7rem);
  overflow: hidden;
}

/* Image: right side, masked into the black on the left and bottom */
.aw-page-hero .aw-page-hero__media {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: min(72%, 1280px);
  overflow: hidden;              /* scaled image must not spill out */
}
.aw-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Left fade: masked per layer – the animated image gets its own compositing
   layer, where a mask on the parent is not applied reliably. The bottom
   fade is a black overlay in ::after. */
.aw-page-hero__media img,
.aw-page-hero__media::before,
.aw-page-hero__media::after {
  /* Eased ramp: bright photo areas don't pop in at the edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .04) 12%, rgb(0 0 0 / .18) 26%, rgb(0 0 0 / .45) 40%, rgb(0 0 0 / .78) 54%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .04) 12%, rgb(0 0 0 / .18) 26%, rgb(0 0 0 / .45) 40%, rgb(0 0 0 / .78) 54%, #000 68%);
}
/* Colour: a tint over the whole photo plus light rising from the bottom left (v1 tile look) */
.aw-page-hero__media::before,
.aw-page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.aw-page-hero__media::before { background: color-mix(in srgb, var(--c) 22%, transparent); }
.aw-page-hero__media::after {
  background:
    linear-gradient(0deg, var(--aw-black) 0%, transparent 30%),
    linear-gradient(25deg,
    color-mix(in srgb, var(--c) 75%, transparent) 0%,
    color-mix(in srgb, var(--c) 30%, transparent) 35%,
    transparent 65%);
}

.aw-page-hero__intro { position: relative; z-index: 1; }
.aw-page-hero__intro > * { max-width: 44rem; }

.aw-page-hero__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  background: var(--aw-black);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 80%, transparent), 0 0 40px 6px color-mix(in srgb, var(--c) 45%, transparent);
}
.aw-page-hero__icon img { width: 100%; height: 100%; }

.aw-page-hero__title {
  margin: 0 0 .1em;
  font-size: clamp(3rem, 1.9rem + 4.6vw, 6.25rem);
  line-height: .84;
  text-shadow: 0 4px 40px rgb(0 0 0 / .5);
}
/* Subline in the attraction colour, lifted so magenta and red read well on black */
.aw-page-hero__sub {
  margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem);
  color: color-mix(in srgb, var(--c) 80%, white);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  line-height: .95;
}
.aw-page-hero__lead {
  max-width: 58ch;
  margin-bottom: 2rem;
  color: #dfe2e8;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
}
.aw-page-hero__lead p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .aw-page-hero__intro > * { animation: aw-rise .9s var(--aw-ease-out) both; }
  .aw-page-hero__intro > :nth-child(2) { animation-delay: .06s; }
  .aw-page-hero__intro > :nth-child(3) { animation-delay: .12s; }
  .aw-page-hero__intro > :nth-child(4) { animation-delay: .18s; }
  .aw-page-hero__intro > :nth-child(5) { animation-delay: .24s; }
  .aw-page-hero__media { animation: aw-media-in 1.6s var(--aw-ease-out) both .1s; }
  .aw-page-hero__media img { animation: aw-media-zoom 2.4s var(--aw-ease-out) both .1s; }
}
@keyframes aw-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes aw-media-in {
  from { opacity: 0; transform: translateX(6%); }
  to   { opacity: 1; transform: none; }
}
@keyframes aw-media-zoom {
  from { transform: scale(1.18); }
  to   { transform: scale(1.02); }
}
/* Image drifts slightly while scrolling away */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .aw-page-hero__media img { animation: aw-media-zoom 2.4s var(--aw-ease-out) both .1s, aw-hero-drift linear both; animation-timeline: auto, scroll(); animation-range: normal, 0 100vh; }
  }
}
@keyframes aw-hero-drift { to { scale: 1.1; } }

/* Without image (Infos, Impressum …): compact, the aura carries the colour */
.aw-page-hero:not(:has(.aw-page-hero__media)) { min-height: 0; padding-block: clamp(4rem, 2rem + 5vw, 7rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Mobile: image on top, fading into the black, text overlaps the fade */
@media (max-width: 900px) {
  .aw-page-hero { display: block; min-height: 0; padding-top: 0; }
  .aw-page-hero .aw-page-hero__media {
    position: relative;
    width: 100%;
    height: clamp(340px, 92vw, 560px);
  }
  .aw-page-hero__media img,
  .aw-page-hero__media::before,
  .aw-page-hero__media::after {
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
  }
  .aw-page-hero__intro { margin-top: clamp(-9rem, -22vw, -4rem); }
  .aw-page-hero:not(:has(.aw-page-hero__media)) { padding-top: 3.5rem; }
  .aw-page-hero:not(:has(.aw-page-hero__media)) .aw-page-hero__intro { margin-top: 0; }
  .aw-page-hero__icon { width: 60px; height: 60px; margin-bottom: 1.75rem; }
}

/* Section navigation: the v1 anchor buttons, now sticky with scroll spy */
.aw-subnav {
  position: sticky;
  top: 61px;                       /* compact header height, 1px under it: no seam */
  z-index: 40;
  border-block: 1px solid var(--aw-line);
}
.aw-subnav::before {
  content: "";
  position: absolute; inset: -1px 0;   /* also behind the borders */
  z-index: -1;
  background: rgb(0 0 0 / .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.aw-subnav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 140px;           /* room for the hanging Buchen ribbon */
}
.aw-subnav__list {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.aw-subnav__list::-webkit-scrollbar { display: none; }
.aw-subnav__list a {
  position: relative;
  display: block;
  padding: 1rem 0 .85rem;
  color: var(--aw-mute);
  font-family: var(--aw-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--aw-dur-fast);
}
.aw-subnav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c) 20%, var(--c) 80%, transparent);
  box-shadow: 0 0 12px var(--c);
  transform: scaleX(0);
  transition: transform var(--aw-dur) var(--aw-ease-out);
}
.aw-subnav .aw-subnav__list a:any-link { text-decoration: none; }   /* stronger than the underline for links in page content (.aw-content li > a) */
.aw-subnav__list a:hover { color: var(--aw-white); }
.aw-subnav__list a.is-active { color: var(--aw-white); }
.aw-subnav__list a.is-active::after { transform: none; }

/* Booking button at the end of the bar: always in reach while scrolling */
.aw-subnav__cta { flex: none; min-height: 36px; padding-block: .45em .35em; font-size: 1rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .aw-subnav__inner { padding-right: 0; }
}
@media (max-width: 600px) {
  .aw-subnav__inner { gap: .75rem; }
  .aw-subnav__cta { padding-inline: .8em; font-size: .95rem; }
  /* Fade the scrolling links out under the button */
  .aw-subnav__inner:has(.aw-subnav__cta) .aw-subnav__list { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
}

/* Logged-in editors: the header sits below the WordPress admin bar, so does the section nav */
.admin-bar .aw-subnav { top: calc(61px + 32px); }
@media (max-width: 782px) { .admin-bar .aw-subnav { top: calc(61px + 46px); } }
@media (max-width: 600px) { .admin-bar .aw-subnav { top: 61px; } }

/* Anchor targets land below header + section nav */
main [id] { scroll-margin-top: 130px; }
.admin-bar main [id] { scroll-margin-top: 162px; }

/* Optional contact under the intro text (e.g. Anfahrt): address, then phone / e-mail buttons */
.aw-page-hero__contact { margin: -.5rem 0 2rem; color: #dfe2e8; }
.aw-page-hero__contact p { margin-bottom: .9rem; }

