/* Landingpage Nachlass & Nachfolge
   Sand-Linie und Sand-Schrift stammen von der Startseite (--hp-gold-line / --hp-gold).
   --sand im globalen Stylesheet ist das Creme und bleibt unangetastet. */

html {
  scroll-behavior: smooth;
}

body.ew {
  --ew-sand-line: #D8C4A0;
  --ew-sand-ink: #B8935F;
  --ew-ink: #1e2e3f;
  background: var(--sand);
  color: var(--ew-ink);
  font-family: "Public Sans", var(--sans);
  font-size: 18px;
  line-height: 1.7;
}

body.ew h1,
body.ew h2,
body.ew h3,
body.ew .ew-quote,
body.ew .ew-pull {
  font-family: "Lora", var(--serif);
  font-weight: 500;
  color: var(--navy);
}

body.ew h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

body.ew h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

body.ew h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
}

body.ew p {
  margin: 0 0 16px;
  max-width: none;
  font-size: 18px;
  line-height: 1.7;
  hyphens: none;
  -webkit-hyphens: none;
}

body.ew .section {
  padding: 72px 0;
}

body.ew .ew-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.ew .ew-kicker,
body.ew h2.ew-kicker {
  margin: 0 0 14px;
  font-family: "Public Sans", var(--sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ew-sand-ink);
}

body.ew h2 em {
  font-style: italic;
  font-weight: 500;
}

body.ew a {
  color: var(--navy);
}

.ew-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 64px 0 72px;
}

body.ew .ew-hero h1 {
  color: #fff;
}

body.ew .ew-hero .ew-kicker {
  color: var(--ew-sand-line);
}

body.ew .ew-hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ew-sand-line);
}

.ew-hero .ew-lead {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.65;
}

.ew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy) !important;
  font-family: "Public Sans", var(--sans);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none !important;
}

.ew-btn:hover {
  background: var(--sand);
}

.ew-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.ew .ew-micro,
body.ew .ew-fine {
  font-size: 14px;
  line-height: 1.45;
  hyphens: none;
  -webkit-hyphens: none;
}

.ew-micro {
  margin: 10px 0 0;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.68);
}

.ew-list {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
}

.ew-list li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 28px;
  font-size: 18px;
  line-height: 1.6;
}

.ew-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 16px;
  height: 2px;
  background: var(--ew-sand-ink);
}

.ew-quote {
  margin: 8px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--ew-sand-ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}

body.ew .ew-quote p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.ew-roles,
.ew-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.ew-role,
.ew-fact {
  border-top: 1px solid var(--ew-sand-line);
  padding-top: 18px;
}

.ew-role--mine {
  border-top-width: 3px;
  border-top-color: var(--navy);
}

.ew-role p,
.ew-fact p {
  margin: 0;
}

.ew-fact strong,
.ew-role h3 {
  display: block;
  margin-bottom: 6px;
}

.ew-steps {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  gap: 22px;
}

.ew-steps li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.ew-steps .ew-num {
  font-family: "Lora", var(--serif);
  font-size: 18px;
  color: var(--ew-sand-ink);
  padding-top: 2px;
}

.ew-future {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

body.ew .ew-future h2.ew-kicker {
  color: var(--ew-sand-line);
}

.ew-follow {
  margin-top: 28px;
}

.ew-future p {
  max-width: 40rem;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.ew-about {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 36px 56px;
  align-items: start;
}

.ew-about__text {
  max-width: 40rem;
}

.ew-about__photo img {
  width: 100%;
  height: auto;
  display: block;
}

body.ew .ew-pull {
  margin-top: 22px;
  font-family: "Lora", var(--serif);
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}

.ew-faq {
  border-top: 1px solid rgba(12, 34, 56, 0.12);
}

.ew-faq:last-of-type {
  border-bottom: 1px solid rgba(12, 34, 56, 0.12);
}

.ew-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy);
}

.ew-faq summary::-webkit-details-marker {
  display: none;
}

.ew-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-top: -4px;
}

.ew-faq[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.ew-faq summary:focus-visible {
  outline: 2px solid rgba(12, 34, 56, 0.28);
  outline-offset: 3px;
}

.ew-faq p {
  margin: 0 0 18px;
  max-width: 62ch;
}

.ew-booking {
  max-width: 640px;
  background: #fff;
  border: 1px solid rgba(12, 34, 56, 0.1);
  padding: 28px 26px 30px;
}

.ew-booking .bsp-field label,
.ew-booking .bsp-format legend {
  font-size: 16px;
}

.ew-fine {
  margin: 14px 0 0;
  max-width: 640px;
  color: rgba(30, 46, 63, 0.62);
}

.ew-alert {
  max-width: 640px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(12, 34, 56, 0.12);
  color: var(--navy);
}

.ew-thanks {
  max-width: 640px;
  padding: 8px 0 0;
}

.ew-thanks p {
  font-size: 20px;
  line-height: 1.55;
}

.ew-thanks__when {
  color: var(--navy);
  font-weight: 650;
}

.ew-sticky {
  display: none;
}

#terminbuchung {
  scroll-margin-top: 84px;
  scroll-margin-bottom: 96px;
}

body.ew .ew-booking .bsp-day-card,
body.ew .ew-booking .bsp-time-card,
body.ew .ew-booking .bsp-empty-card {
  hyphens: none;
  -webkit-hyphens: none;
}

@media (max-width: 780px) {
  body.ew {
    font-size: 18px;
  }

  body.ew .section {
    padding: 52px 0;
  }

  .ew-hero {
    padding: 40px 0 48px;
  }

  .ew-roles,
  .ew-facts,
  .ew-about {
    grid-template-columns: 1fr;
  }

  .ew-about__text {
    order: 1;
  }

  .ew-about__photo {
    order: 2;
    max-width: 320px;
  }

  .ew-booking {
    padding: 22px 16px 24px;
  }

  body.ew .ew-booking .bsp-day-card {
    font-size: 14px;
    padding: 10px 8px;
    letter-spacing: -0.01em;
  }

  .ew-sticky {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 30;
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .ew-sticky.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ew-sticky a {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--navy);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 14px 34px rgba(12, 34, 56, 0.28);
  }

  body.ew {
    padding-bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ew-sticky {
    transition: none;
  }
}
