/* ==========================================================================
   Raphaela Grollius – Mentalcoaching
   Modernes CSS: Custom Properties, Cascade Layers, Nesting, clamp(), Grid,
   :has(), color-mix(), Container Queries, Scroll-driven Animations
   ========================================================================== */

@layer reset, tokens, base, layout, components, pages, utilities;

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  h1, h2, h3 { text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  p { text-wrap: pretty; }
}

@layer tokens {
  :root {
    /* Farben – übernommen von raphaela-grollius.de + Gold aus dem Logo */
    --sand: #f6f3ee;
    --sand-deep: #ece6dc;
    --card: #ffffff;
    --ink: #0b0f14;
    --muted: rgb(11 15 20 / .68);
    --line: rgb(11 15 20 / .08);
    --gold: #a18033;
    --gold-deep: #7a5f22;
    --gold-soft: color-mix(in oklab, var(--gold) 14%, var(--sand));
    --olive: #3a3618;
    --olive-ink: #f3efe4;

    --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-s: 14px;
    --radius-m: 22px;
    --radius-l: 32px;
    --shadow: 0 30px 80px rgb(0 0 0 / .07);
    --shadow-s: 0 10px 30px rgb(0 0 0 / .06);

    --wrap: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --space-section: clamp(4rem, 9vw, 7.5rem);
    --header-h: 84px;
    --ease: cubic-bezier(.22, .8, .24, 1);
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
  }
  body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.7;
    color: var(--ink);
    background: var(--sand);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.01em;
  }
  h1 { font-size: clamp(2.2rem, 1.4rem + 4.4vw, 4.75rem); }
  h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
  h3 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); }
  em { font-style: italic; color: var(--gold-deep); }
  strong { font-weight: 500; }
  a { color: var(--gold-deep); text-underline-offset: .2em; }
  a:hover { color: var(--ink); }
  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
  }
  ::selection { background: var(--gold-soft); }
}

@layer layout {
  .wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
  }
  .wrap--narrow { --wrap: 780px; }
  .section { padding-block: var(--space-section); }
  .section--white { background: var(--card); }
  .section--tint { background: var(--sand-deep); }
  .section--olive {
    background: var(--olive);
    color: var(--olive-ink);
    & p { color: rgb(243 239 228 / .8); }
    & em { color: #d9bd7c; }
  }
  .split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
  }
  .split--reverse > :first-child { order: 2; }
  @media (width < 900px) { .split--reverse > :first-child { order: 0; } }
  .stack > * + * { margin-top: var(--stack, 1.1rem); }
  .center { text-align: center; margin-inline: auto; }
}

@layer components {
  /* ---------- Skip-Link ---------- */
  .skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
    &:focus { top: 1rem; }
  }

  /* ---------- Header & Navigation ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--sand) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: var(--header-h);
  }
  .brand img { width: clamp(130px, 18vw, 170px); }

  .nav__list {
    display: flex; align-items: center; gap: clamp(.5rem, 2vw, 2rem);
    list-style: none; padding: 0;
  }
  .nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem .25rem;
    font-size: .95rem; font-weight: 400; letter-spacing: .02em;
    color: var(--ink); text-decoration: none;
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
    transition: background-size .35s var(--ease);
    &:hover, &[aria-current="page"] { background-size: 100% 1px; color: var(--ink); }
  }
  .nav__chevron { width: .7em; transition: rotate .3s var(--ease); }

  .nav__item--has-sub { position: relative; }
  .subnav {
    position: absolute; top: 100%; left: 50%;
    min-width: 290px; padding: .6rem; list-style: none;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-m); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    translate: -50% 10px;
    transition: opacity .25s var(--ease), translate .25s var(--ease), visibility .25s;
    &::before { /* unsichtbare Brücke, damit das Menü beim Überfahren offen bleibt */
      content: ""; position: absolute; inset: -14px 0 auto; height: 14px;
    }
    & a {
      display: block; padding: .7rem 1rem; border-radius: var(--radius-s);
      color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.4;
      & small { display: block; color: var(--muted); font-size: .8rem; }
      &:hover, &[aria-current="page"] { background: var(--gold-soft); }
    }
  }
  .nav__item--has-sub:is(:hover, :focus-within, .is-open) {
    & .subnav { opacity: 1; visibility: visible; translate: -50% 4px; }
    & .nav__chevron { rotate: 180deg; }
  }

  .nav-toggle {
    display: none;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
    background: var(--card); cursor: pointer;
    place-items: center;
    & span, & span::before, & span::after {
      content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink);
      transition: transform .3s var(--ease), opacity .3s;
    }
    & span { position: relative; }
    & span::before { position: absolute; top: -6px; }
    & span::after { position: absolute; top: 6px; }
    &[aria-expanded="true"] span { background: transparent; }
    &[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
    &[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  }
  .nav__cta { margin-left: .5rem; }

  @media (width < 980px) {
    .nav-toggle { display: grid; }
    .nav {
      position: fixed; inset: var(--header-h) 0 auto 0;
      max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
      background: var(--sand); border-bottom: 1px solid var(--line);
      padding: 1rem var(--gutter) 2rem;
      opacity: 0; visibility: hidden; translate: 0 -12px;
      transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s;
    }
    body:has(.nav-toggle[aria-expanded="true"]) {
      overflow: hidden;
      & .nav { opacity: 1; visibility: visible; translate: 0 0; }
    }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list > li { border-bottom: 1px solid var(--line); }
    .nav__link { padding: 1rem 0; font-size: 1.1rem; width: 100%; justify-content: space-between; background: none; }
    .subnav {
      position: static; translate: none; min-width: 0;
      box-shadow: none; border: 0; background: transparent; padding: 0 0 .75rem;
      opacity: 1; visibility: visible; display: none;
      &::before { display: none; }
    }
    .nav__item--has-sub:is(:hover, :focus-within, .is-open) .subnav { translate: none; }
    .nav__item--has-sub.is-open .subnav { display: block; }
    .nav__cta { margin: 1.5rem 0 0; border: 0 !important; & .btn { width: 100%; } }
  }

  /* ---------- Buttons ---------- */
  .btn {
    --btn-bg: var(--gold-deep);
    --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1rem 1.7rem;
    border: 1px solid var(--btn-bg); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease);
    &:hover {
      --btn-bg: var(--ink); color: #fff;
      translate: 0 -2px; box-shadow: 0 12px 24px rgb(0 0 0 / .12);
    }
    & svg { width: 1.1em; transition: translate .3s var(--ease); }
    &:hover svg { translate: 3px 0; }
  }
  .btn--ghost {
    --btn-bg: transparent; --btn-fg: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 25%, transparent);
    &:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
  }
  .btn--light {
    --btn-bg: var(--olive-ink); --btn-fg: var(--olive);
    &:hover { --btn-bg: #fff; color: var(--olive); }
  }
  .btn--small { padding: .7rem 1.2rem; font-size: .88rem; }
  .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

  /* ---------- Typo-Bausteine ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-deep);
    &::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
  }
  .section--olive .eyebrow { color: #d9bd7c; }
  .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); }
  .muted { color: var(--muted); }
  .section-head {
    max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem);
    &.center { text-align: center; & .eyebrow { justify-content: center; } }
  }

  /* ---------- Bildkarten ---------- */
  .image-card {
    position: relative;
    border-radius: var(--radius-l); overflow: hidden;
    box-shadow: var(--shadow); background: var(--card);
    & img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  }
  .image-card--tall img { aspect-ratio: 3 / 4; }
  .image-frame { position: relative; isolation: isolate; }
  .image-frame::before {
    content: ""; position: absolute; z-index: -1;
    inset: 2rem -1.25rem -1.25rem 2rem;
    border: 1px solid var(--gold); border-radius: var(--radius-l);
  }

  /* ---------- Sonnen-Ornament aus dem Logo ---------- */
  .sun {
    width: 64px; color: var(--gold);
    &.center { margin-inline: auto; }
  }

  /* ---------- Angebotskarten (Container Queries) ---------- */
  .cards {
    display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
  .offer {
    container-type: inline-size;
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-l); overflow: hidden;
    box-shadow: var(--shadow-s);
    text-decoration: none; color: inherit;
    transition: translate .4s var(--ease), box-shadow .4s var(--ease);
    &:hover { translate: 0 -6px; box-shadow: var(--shadow); color: inherit; }
    & figure { overflow: hidden; }
    & img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; transition: scale .8s var(--ease); }
    &:hover img { scale: 1.04; }
    & .offer__body { padding: clamp(1.4rem, 5cqi, 2.2rem); display: grid; gap: .75rem; flex: 1; align-content: start; }
    & .offer__num { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
    & p { color: var(--muted); font-size: .97rem; }
    & .offer__more {
      margin-top: auto; padding-top: .5rem;
      display: inline-flex; align-items: center; gap: .5rem;
      font-size: .9rem; font-weight: 400; color: var(--gold-deep);
    }
  }
  @container (width > 420px) {
    .offer__body h3 { font-size: 2rem; }
  }

  /* ---------- Listen ---------- */
  .check-list {
    list-style: none; padding: 0; display: grid; gap: .9rem;
    & li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: start; }
    & li::before {
      content: ""; width: 1.25rem; height: 1.25rem; margin-top: .3rem;
      border-radius: 50%;
      background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237a5f22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
    }
  }
  .section--olive .check-list li::before { background-color: rgb(255 255 255 / .12); }

  /* ---------- Werte / Features ---------- */
  .features {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    counter-reset: feature;
  }
  .feature {
    counter-increment: feature;
    padding: 2rem; border-radius: var(--radius-m);
    background: var(--card); border: 1px solid var(--line);
    &::before {
      content: counter(feature, decimal-leading-zero);
      display: block; margin-bottom: 1rem;
      font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold);
    }
    & h3 { font-size: 1.5rem; margin-bottom: .5rem; }
    & p { color: var(--muted); font-size: .97rem; }
  }
  .section--olive .feature {
    background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1);
    & p { color: rgb(243 239 228 / .75); }
  }

  /* ---------- Zitat ---------- */
  .quote {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.25;
    max-width: 900px; margin-inline: auto; text-align: center;
    & footer { margin-top: 1.5rem; font-family: var(--font-sans); font-style: normal; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
  }

  /* ---------- Stimmen ---------- */
  .testimonials {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
  .testimonial {
    padding: 2.2rem; border-radius: var(--radius-m);
    background: var(--sand); border: 1px solid var(--line);
    display: grid; gap: 1.2rem; align-content: space-between;
    & blockquote p { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
    & figcaption { font-size: .85rem; color: var(--muted); }
    & figcaption strong { color: var(--ink); }
  }

  /* ---------- Buchungsbereich ---------- */
  .booking {
    position: relative; overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--olive); color: var(--olive-ink);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    & .booking__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 25%; }
    & .booking__body { padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.4rem; align-content: center; }
    & p { color: rgb(243 239 228 / .82); }
    & em { color: #d9bd7c; }
    & .eyebrow { color: #d9bd7c; }
  }
  .steps {
    list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step;
    & li {
      counter-increment: step;
      display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start;
      font-size: .97rem;
    }
    & li::before {
      content: counter(step);
      display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1;
      border-radius: 50%; border: 1px solid rgb(217 189 124 / .6);
      font-family: var(--font-serif); font-size: 1.15rem; color: #d9bd7c;
    }
    & strong { display: block; color: var(--olive-ink); }
  }
  .booking__meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
    font-size: .85rem; color: rgb(243 239 228 / .7);
    & span { display: inline-flex; align-items: center; gap: .4rem; }
    & svg { width: 1rem; color: #d9bd7c; }
  }

  /* ---------- Formular ---------- */
  .form {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-l); box-shadow: var(--shadow);
    & .field--full { grid-column: 1 / -1; }
    @media (width < 640px) { grid-template-columns: 1fr; }
  }
  .field {
    display: grid; gap: .4rem;
    & label { font-size: .85rem; font-weight: 400; }
    & label .req { color: var(--gold-deep); }
    & :is(input, textarea, select) {
      width: 100%; padding: .95rem 1.1rem;
      border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
      border-radius: var(--radius-s);
      background: var(--sand); font-size: 1rem; font-weight: 300;
      transition: border-color .2s, background .2s, box-shadow .2s;
      &:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
      &:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px var(--gold-soft); }
    }
    & select {
      appearance: none; cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230b0f14' stroke-width='1.5'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem;
      padding-right: 2.8rem;
    }
    & textarea { min-height: 160px; resize: vertical; field-sizing: content; }
    /* Fehlermeldung erst nach Interaktion zeigen */
    & :is(input, textarea):user-invalid { border-color: #b3261e; background: #fff7f6; }
    & .hint { font-size: .8rem; color: var(--muted); }
  }
  .consent {
    display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
    font-size: .85rem; color: var(--muted);
    & input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--gold-deep); }
  }
  .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
  .form:has(:invalid) button[type="submit"] { opacity: .85; }
  .form-status {
    grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: var(--radius-s);
    background: var(--gold-soft); font-size: .95rem;
    &:empty { display: none; }
  }

  /* ---------- Kontaktinfo ---------- */
  .contact-list {
    list-style: none; padding: 0; display: grid; gap: 1.25rem;
    & li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; }
    & .icon {
      display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%;
      background: var(--gold-soft); color: var(--gold-deep);
      & svg { width: 1.2rem; }
    }
    & small { display: block; color: var(--muted); font-size: .8rem; }
    & a { color: var(--ink); text-decoration: none; }
    & a:hover { color: var(--gold-deep); }
  }

  /* ---------- FAQ ---------- */
  .faq { display: grid; gap: .75rem; }
  .faq details {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 0 1.5rem;
    transition: box-shadow .3s;
    &[open] { box-shadow: var(--shadow-s); }
    & summary {
      list-style: none; cursor: pointer; padding: 1.3rem 0;
      display: flex; justify-content: space-between; gap: 1rem; align-items: center;
      font-weight: 400;
      &::-webkit-details-marker { display: none; }
      &::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold); transition: rotate .3s var(--ease); }
    }
    &[open] summary::after { rotate: 45deg; }
    & p { padding-bottom: 1.3rem; color: var(--muted); }
  }
  /* sanftes Öffnen, wo unterstützt */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: hidden;
      transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* ---------- Breadcrumb ---------- */
  .breadcrumb {
    font-size: .8rem; color: var(--muted);
    & ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
    & li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
    & a { color: var(--muted); text-decoration: none; }
    & a:hover { color: var(--ink); }
  }

  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--ink); color: rgb(255 255 255 / .72);
    padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
    font-size: .92rem;
    & a { color: rgb(255 255 255 / .85); text-decoration: none; }
    & a:hover { color: #d9bd7c; }
    & h2 { font-family: var(--font-sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #d9bd7c; margin-bottom: 1.1rem; }
    & ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
  }
  .footer-grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    @media (width < 900px) { grid-template-columns: 1fr 1fr; }
    @media (width < 560px) { grid-template-columns: 1fr; }
  }
  .footer-brand {
    & img { width: 170px; filter: brightness(0) invert(.92) sepia(.25); margin-bottom: 1.25rem; }
    & p { max-width: 34ch; }
  }
  .social { display: flex; gap: .75rem; margin-top: 1.5rem; }
  .social a {
    display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 50%;
    border: 1px solid rgb(255 255 255 / .2);
    transition: background .3s, border-color .3s, color .3s;
    & svg { width: 18px; }
    &:hover { background: #d9bd7c; border-color: #d9bd7c; color: var(--ink); }
  }
  .footer-bottom {
    margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    font-size: .8rem; color: rgb(255 255 255 / .5);
    & nav { display: flex; gap: 1.5rem; }
  }

  /* ---------- Mobile Sticky CTA ---------- */
  .sticky-cta {
    display: none;
    @media (width < 640px) {
      display: block; position: fixed; inset: auto 1rem 1rem; z-index: 40;
      & .btn { width: 100%; box-shadow: 0 12px 30px rgb(0 0 0 / .2); }
      transition: translate .4s var(--ease), opacity .4s;
    }
  }
  body.at-booking .sticky-cta { translate: 0 150%; opacity: 0; }
  body:has(#formular) .sticky-cta { display: none; }
  @media (width < 900px) { .contact-photo { display: none; } }
}

@layer pages {
  /* ---------- Hero ---------- */
  .hero {
    padding-block: clamp(3rem, 7vw, 6rem) var(--space-section);
    overflow: clip;
  }
  .hero__grid {
    display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
    grid-template-columns: 1.1fr .9fr;
    @media (width < 900px) { grid-template-columns: 1fr; }
  }
  .hero h1 { margin-block: 1.25rem 1.5rem; }
  .hero .lead { max-width: 52ch; margin-bottom: 2.2rem; }
  .hero__media { position: relative; }
  .hero__badge {
    position: absolute; left: -1.5rem; bottom: 2.5rem;
    display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.3rem; border-radius: var(--radius-m);
    background: rgb(255 255 255 / .85); backdrop-filter: blur(10px);
    box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35;
    & strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; }
    & .sun { width: 40px; flex: none; }
    @media (width < 560px) { left: .75rem; bottom: .75rem; }
  }
  .hero__trust {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem;
    font-size: .85rem; color: var(--muted);
    & span { display: inline-flex; align-items: center; gap: .45rem; }
    & span::before { content: ""; width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
  }

  /* ---------- Unterseiten-Hero ---------- */
  .page-hero {
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
    & h1 { margin-block: 1rem 1.25rem; }
    & .lead { max-width: 60ch; }
  }
  .page-hero--center { text-align: center; & .lead { margin-inline: auto; } & .eyebrow { justify-content: center; } }

  /* ---------- Banner ---------- */
  .banner {
    position: relative; min-height: clamp(360px, 55vw, 560px);
    display: grid; align-items: end;
    border-radius: var(--radius-l); overflow: hidden; color: #fff;
    & img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    &::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 15 20 / .65), transparent 60%); }
    & .banner__text { position: relative; z-index: 1; padding: clamp(1.5rem, 5vw, 3.5rem); max-width: 700px; }
    & p { color: rgb(255 255 255 / .85); }
  }

  /* ---------- Rechtstexte ---------- */
  .legal {
    & h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 2.75rem; margin-bottom: .75rem; }
    & h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500; margin-top: 1.75rem; margin-bottom: .5rem; }
    & p, & li { color: var(--muted); }
    & ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
    & > * + * { margin-top: .9rem; }
    & address { font-style: normal; }
  }
  .note {
    padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold);
    background: var(--gold-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-size: .95rem;
  }
}

@layer pages {
  /* ---------- Über mich: lange Erzählung ---------- */
  .toc {
    position: sticky; top: calc(var(--header-h) + .5rem); z-index: 10;
    margin-block: 0 1rem;
    & ol {
      list-style: none; padding: .4rem; margin-inline: auto; width: fit-content; max-width: 100%;
      display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
      background: color-mix(in srgb, var(--card) 88%, transparent);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s);
    }
    & a {
      display: block; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px;
      font-size: .82rem; color: var(--ink); text-decoration: none;
      &:hover { background: var(--gold-soft); }
    }
    @media (width < 640px) { display: none; }
  }
  .chapter {
    display: grid; gap: clamp(2rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: start;
    &.chapter--solo { grid-template-columns: minmax(0, 46rem); justify-content: center; }
    @media (width < 900px) { grid-template-columns: 1fr; }
  }
  .chapter__aside { position: sticky; top: calc(var(--header-h) + 5rem); }
  @media (width < 900px) {
    .chapter__aside { position: static; order: -1; max-width: 420px; }
    .chapter__aside .image-card img { aspect-ratio: 4 / 3; object-position: center 25%; }
  }
  .chapter__figure figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
  .prose {
    max-width: 46rem;
    font-size: clamp(1.02rem, .98rem + .25vw, 1.12rem);
    & h2 { margin-bottom: 1.75rem; }
    & > * + * { margin-top: 1.05em; }
    & p { color: color-mix(in srgb, var(--ink) 80%, transparent); }
    & strong { color: var(--ink); }
  }
  .section--olive .prose p { color: rgb(243 239 228 / .85); }
  .section--olive .prose strong { color: var(--olive-ink); }
  .prose--intro { margin-top: 1.5rem; }
  .pullquote {
    margin-block: 2.25rem !important; padding: .25rem 0 .25rem 1.5rem;
    border-left: 2px solid var(--gold);
    & p {
      font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
      line-height: 1.3; color: var(--ink) !important;
    }
  }
  .section--olive .pullquote p { color: var(--olive-ink) !important; }
  .inner-voices {
    list-style: none; padding: 1.5rem 1.75rem; border-radius: var(--radius-m);
    background: var(--gold-soft); display: grid; gap: .6rem;
    & li { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; }
  }
  .section--white .inner-voices { background: var(--sand); }
  .triad {
    list-style: none; padding: 0; margin-block: 2rem !important; display: grid; gap: .4rem;
    & li { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; }
    & span { font-style: italic; color: #d9bd7c; }
  }
  .quote--light { color: var(--olive-ink); & footer { color: #d9bd7c; text-transform: none; letter-spacing: 0; font-size: 1rem; max-width: 40rem; margin-inline: auto; line-height: 1.6; } }
}

@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .mt-l { margin-top: clamp(2rem, 4vw, 3rem); }

  /* Scroll-Reveal: nativ per scroll-driven animations, sonst per JS-Fallback */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 28%;
      }
    }
    @supports not (animation-timeline: view()) {
      .js .reveal { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
      .js .reveal.is-visible { opacity: 1; translate: 0 0; }
    }
    @keyframes reveal {
      from { opacity: 0; translate: 0 40px; }
      to { opacity: 1; translate: 0 0; }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
