/* ============================================================
   Subpage unification
   Visual source of truth: current homepage header + footer.
   Loaded after each page's inline styles so the shared treatment
   stays identical on Leistungen, Impressum and Datenschutz.
   ============================================================ */

:root {
  --subpage-hero:
    radial-gradient(56% 46% at 80% -8%, rgba(198,214,230,0.24) 0%, rgba(198,214,230,0) 62%),
    radial-gradient(66% 60% at 2% 112%, rgba(150,138,196,0.12) 0%, rgba(150,138,196,0) 60%),
    radial-gradient(52% 40% at 64% 2%, rgba(184,145,46,0.08) 0%, rgba(184,145,46,0) 58%),
    linear-gradient(#f2f0eb 0%, #eae7e1 48%, #e4e0d8 100%);
  --subpage-blue: #2f7eff;
  --subpage-blue-mid: #3c9bf7;
  --subpage-cyan: #58c8f2;
}

/* ---------- Header: same light editorial bar as the homepage ---------- */
.aka-hd,
.pf-hd {
  min-height: 76px;
  padding: 14px max(var(--gutter, clamp(20px, 4vw, 48px)),
    calc((100vw - var(--maxw-content, 1320px)) / 2 + var(--gutter, clamp(20px, 4vw, 48px))));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.aka-hd::before,
.pf-hd::before {
  background: rgba(251, 252, 249, 0.96);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  border-bottom: 1px solid rgba(81, 97, 75, 0.16);
  box-shadow: 0 10px 28px rgba(25, 31, 22, 0.08);
}

.aka-hd__brand .ka-word,
.pf-hd .aka-seal-lockup__wm {
  color: #1d1d1b;
}

.aka-hd__nav,
.pf-nav {
  gap: clamp(0.95rem, 1.7vw, 1.65rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.aka-hd__link,
.pf-nav a {
  position: relative;
  color: rgba(31, 38, 29, 0.72);
  padding: 10px 0 9px;
  border-radius: 0;
  background: transparent;
  font-size: var(--text-sm, 14px);
}

.aka-hd__link::after,
.pf-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold-500, #b8912e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.aka-hd__link:hover,
.pf-nav a:hover,
.pf-nav a.is-active {
  color: #1d1d1b;
  background: transparent;
  box-shadow: none;
}

.aka-hd__link:hover::after,
.pf-nav a:hover::after,
.pf-nav a.is-active::after {
  transform: scaleX(1);
}

.aka-hd__cta a,
.pf-hd__cta .aka-btn {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid rgba(159, 224, 255, 0.82);
  border-radius: 13px;
  background: linear-gradient(105deg,
    var(--subpage-blue) 0%,
    var(--subpage-blue-mid) 54%,
    var(--subpage-cyan) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(18, 53, 105, 0.32);
  box-shadow:
    0 0 18px rgba(55, 146, 255, 0.28),
    0 12px 24px -12px rgba(28, 105, 232, 0.58),
    inset 0 1px 0 rgba(255,255,255,0.34);
}

.aka-hd__cta a:hover,
.pf-hd__cta .aka-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* The services page keeps its useful discipline menu, but uses the same
   homepage CTA instead of the visually unrelated back pill. */
.pf-back-pill {
  display: none !important;
}

@media (min-width: 1181px) {
  .pf-hd__cta {
    display: block;
    margin-left: var(--space-2, 8px);
  }
  .pf-nav {
    margin-left: auto;
  }
}

@media (max-width: 1180px) {
  .pf-hd__cta {
    display: block;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .aka-hd,
  .pf-hd {
    min-height: 68px;
    padding: 11px var(--gutter, clamp(20px, 4vw, 48px));
  }
  .aka-hd::before,
  .pf-hd::before {
    background: rgba(251, 252, 249, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .aka-hd__brand .ka-word {
    font-size: 19px;
  }
  .aka-hd__cta a,
  .pf-hd__cta .aka-btn {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }
}

/* ---------- Leistungen: replace sage with the homepage hero palette ---------- */
.pf-approach,
.pf-cta {
  background: var(--subpage-hero);
  box-shadow:
    inset 0 90px 130px -90px rgba(255,255,255,0.62),
    inset 0 -110px 150px -105px rgba(120,112,96,0.13);
}

.pf-acard {
  background: linear-gradient(168deg, #ffffff 0%, #f7f5f0 52%, #ebe7de 100%);
  border-color: rgba(184, 145, 46, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -10px 22px -15px rgba(184,145,46,0.18),
    0 24px 46px -22px rgba(55,49,39,0.34),
    0 4px 10px rgba(55,49,39,0.10);
}

/* ---------- Footer: same dark booking slab as the homepage target ---------- */
.aka-dock__booking {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 7px 6px 17px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 15px;
  background: rgba(0,0,0,0.24);
}

.aka-dock__booking-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(243,245,239,0.74);
}

.aka-dock__booking-copy span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(223,203,160,0.76);
}

.aka-dock__booking-copy strong {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.aka-dock__booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(159,224,255,0.82);
  border-radius: 10px;
  background: linear-gradient(105deg,
    var(--subpage-blue) 0%,
    var(--subpage-blue-mid) 54%,
    var(--subpage-cyan) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(18,53,105,.32);
  box-shadow: 0 0 13px rgba(55,146,255,.25), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.aka-dock__booking-button:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 0 18px rgba(55,146,255,.34), inset 0 1px 0 rgba(255,255,255,.34);
}

.imp-foot-slab,
.aka-foot[data-theme="sand"] .aka-foot__bottom {
  width: min(calc(100% - 2 * var(--gutter, clamp(20px, 4vw, 48px))),
    var(--maxw-content, 1320px));
  max-width: var(--maxw-content, 1320px);
  padding: clamp(2rem, 3.4vw, 3.2rem);
  border: 1px solid rgba(223,203,160,0.24);
  border-bottom: 0;
  border-radius: clamp(24px, 3vw, 42px) clamp(24px, 3vw, 42px) 0 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.035), transparent 38%),
    linear-gradient(180deg, rgba(27,27,27,0.98), rgba(12,12,12,0.99));
  box-shadow:
    0 -24px 58px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.imp-foot-slab .aka-foot__row,
.aka-foot[data-theme="sand"] .aka-foot__row {
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.imp-foot-slab .aka-foot__row > :first-child,
.aka-foot[data-theme="sand"] .aka-foot__row > :first-child {
  margin-top: 0;
}

.imp-foot-slab .aka-foot__legal,
.aka-foot[data-theme="sand"] .aka-foot__legal {
  margin-top: clamp(1.35rem, 2.2vw, 2rem);
  padding-top: clamp(1.15rem, 2vw, 1.6rem);
}

/* Leistungen no longer repeats a second, green contact hero. The subtle
   mountain scene and booking slab remain as the page close. */
.aka-foot[data-theme="sand"] {
  min-height: clamp(340px, 43vh, 470px);
  padding-top: clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(55% 64% at 72% 18%, rgba(223,203,160,0.08), transparent 68%),
    linear-gradient(160deg, #202224 0%, #161718 62%, #111213 100%);
  box-shadow: none;
}

.aka-foot[data-theme="sand"] .aka-foot__main {
  display: none;
}

.aka-foot[data-theme="sand"] .aka-foot__scene {
  opacity: 0.38;
}

@media (max-width: 760px) {
  .imp-foot-slab .aka-foot__row,
  .aka-foot[data-theme="sand"] .aka-foot__row {
    flex-direction: column;
    align-items: stretch;
  }
  .imp-foot-slab .aka-brand-wm,
  .aka-foot[data-theme="sand"] .aka-foot__row > :first-child {
    align-self: flex-start;
  }
  .aka-dock__booking {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .aka-dock__booking-button {
    width: 100%;
  }
  .imp-foot-slab,
  .aka-foot[data-theme="sand"] .aka-foot__bottom {
    width: calc(100% - 20px);
    padding: 24px 20px 28px;
  }
}
