/* Dunst — concept study 06 "Ritual": immersive, slow, dark, centred. Own design system, nothing shared with other
   concepts: inscriptional caps (Marcellus) over a light geometric sans (Jost), candle amber on near-black, full-bleed
   chapters, rituals drawn as timelines, a fixed journey indicator, and a full-screen quiet guide for the KI. */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --night: #0f110f;
  --night-2: #151512;
  --umber: #1b1712;
  --bone: #ece4d6;
  --bone-muted: #b6ad9e;
  --amber: #d9a86c;
  --amber-soft: rgb(217 168 108 / 0.4);
  --line: rgb(236 228 214 / 0.16);
  --line-strong: rgb(236 228 214 / 0.34);
  --display: "Marcellus", "Trajan Pro", "Optima", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --head: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* KI entry points stay invisible until the KI-Service shows them */
html { background: var(--night); color: var(--bone); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 350 17.5px/1.75 var(--sans); background: var(--night); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 6px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 12px 16px; background: var(--bone); color: var(--night); }
.skip:focus { left: 16px; }

/* ---------- type helpers ---------- */
.label { font: 500 11.5px/1.5 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--amber); }
.numeral { margin-bottom: 18px; font: 400 15px/1 var(--display); letter-spacing: 0.3em; color: var(--amber); }
.numeral::before, .numeral::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 14px 5px; background: var(--amber-soft); }
.lede { max-width: 34rem; margin: 26px auto 0; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.8; color: var(--bone-muted); text-wrap: pretty; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; margin-top: 34px; }
.acts--center { justify-content: center; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px;
  border: 1px solid var(--amber); background: rgb(217 168 108 / 0.08); color: var(--bone);
  font: 500 12px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.9s var(--ease), color 0.9s var(--ease);
}
.btn:hover { background: var(--amber); color: var(--night); }
.line {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bone);
  font: 500 12px/1.7 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer; text-align: center;
  text-decoration: underline 1px var(--amber); text-underline-offset: 9px;
  transition: color 0.8s var(--ease);
}
.line:hover { color: var(--amber); }
/* the KI entry point: a small candle flame before the words */
.ask {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bone-muted);
  font: 400 15.5px/1.3 var(--sans); letter-spacing: 0.04em; cursor: pointer; transition: color 0.8s var(--ease);
}
.ask::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 3px rgb(217 168 108 / 0.55); }
.ask:hover { color: var(--bone); }
.btn.ask { color: var(--bone); letter-spacing: 0.3em; font: 500 12px/1 var(--sans); text-transform: uppercase; }
.btn.ask:hover { color: var(--night); }

/* ---------- header, journey, menu ---------- */
.head {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--head); padding: 0 var(--gutter);
  background: linear-gradient(rgb(15 17 15 / 0.96), rgb(15 17 15 / 0.86) 68%, rgb(15 17 15 / 0));
}
.head-l, .head-r { display: flex; align-items: center; gap: 30px; }
.head-r { justify-content: flex-end; }
.head a:not(.mark) { font: 500 11.5px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; padding: 14px 0; color: var(--bone); }
.head a[aria-current="page"] { color: var(--amber); }
.head a:not(.mark):hover { color: var(--amber); }
.head a.head-cta { padding: 13px 14px 13px 18px; border: 1px solid var(--amber-soft); }
.mark { display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.mark span, .mark--small { font: 400 24px/1 var(--display); letter-spacing: 0.5em; padding-left: 0.5em; text-transform: uppercase; }
.mark small { font: 500 9.5px/1 var(--sans); letter-spacing: 0.36em; padding-left: 0.36em; text-transform: uppercase; color: var(--bone-muted); }
.menu-btn { display: none; justify-self: end; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--bone); font: 500 11.5px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) {
  .head-l, .head-r { display: none; }
  .mark { grid-column: 2; }
  .menu-btn { display: inline-flex; align-items: center; grid-column: 3; }
}

.reise-menu[popover] { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px var(--gutter) 32px; border: 0; background: radial-gradient(80% 60% at 50% 110%, #2a1f14, var(--night) 70%); color: var(--bone); overflow-y: auto; }
.reise-menu:popover-open { display: flex; flex-direction: column; }
.reise-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; }
.reise-top .mark--small { grid-column: 2; font-size: 20px; }
.reise-top .menu-btn { display: inline-flex; grid-column: 3; }
.reise-menu nav { margin: auto 0; padding: 32px 0; text-align: center; }
.reise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reise-list a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font: 400 clamp(30px, 8vw, 54px)/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.reise-list span { font-size: 12px; letter-spacing: 0.3em; color: var(--amber); }
.reise-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 30px; }
.reise-more a { display: inline-flex; min-height: 44px; align-items: center; font: 500 11.5px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; color: var(--bone-muted); }
.reise-cta { margin-top: 26px; }
.reise-foot { text-align: center; font-size: 14px; color: var(--bone-muted); }

/* the journey: a fixed vertical indicator on the right edge, large screens only */
.journey { position: fixed; z-index: 25; right: clamp(14px, 2vw, 34px); top: 50%; transform: translateY(-50%); display: none; }
@media (min-width: 1100px) {
  .journey { display: block; }
  /* wide content keeps clear of the journey indicator */
  .ritual-list, .tl, .short-list, .ways { max-width: min(1080px, calc(100vw - 360px)); }
}
.journey ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.journey ol::before { content: ""; position: absolute; right: 5px; top: 16px; bottom: 16px; width: 1px; background: var(--line-strong); }
.journey a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 32px; color: var(--bone-muted); text-decoration: none; }
.journey a::after { content: ""; position: relative; flex: none; width: 11px; height: 11px; border: 1px solid var(--bone-muted); border-radius: 50%; background: var(--night); transition: background 0.9s var(--ease), border-color 0.9s var(--ease), box-shadow 0.9s var(--ease); }
.journey span { padding: 5px 9px; background: rgb(15 17 15 / 0.72); font: 500 10.5px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.journey a:hover span, .journey a:focus-visible span, .journey a[aria-current] span { opacity: 1; transform: none; }
.journey a[aria-current] { color: var(--amber); }
.journey a[aria-current]::after { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 14px 3px rgb(217 168 108 / 0.45); }

/* ---------- scenes: full-bleed chapters ---------- */
.scene { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.scene-img { width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 46% at 50% 50%, rgb(15 17 15 / 0.62), rgb(15 17 15 / 0.08) 100%), linear-gradient(var(--night), rgb(15 17 15 / 0) 20%, rgb(15 17 15 / 0) 72%, var(--night)); }
.chapter .scene-img, .page-head .scene-img { filter: brightness(1.35) saturate(1.08); }
.scene-img--tee { object-position: 50% 62%; }
.scene-img--dampf { object-position: 80% 50%; }
.scene-img--wasser { object-position: 50% 40%; }

.hero, .chapter, .guide, .page-head { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero { min-height: 100svh; margin-top: calc(-1 * var(--head)); padding: calc(var(--head) + 40px) var(--gutter) 120px; }
.hero h1 { font-size: clamp(40px, 7vw, 106px); letter-spacing: 0.07em; line-height: 1.06; }
.hero .label { margin-bottom: 30px; }
.hero-text { max-width: min(82rem, 100%); }
.hero .scene::after { background: radial-gradient(62% 48% at 50% 50%, rgb(15 17 15 / 0.7), rgb(15 17 15 / 0.12) 100%), linear-gradient(var(--night), rgb(15 17 15 / 0) 24%, rgb(15 17 15 / 0) 70%, var(--night)); }
.hero .lede, .hero h1 { text-shadow: 0 2px 24px rgb(0 0 0 / 0.75); }
@media (orientation: portrait) { .hero .scene::after { background: radial-gradient(90% 42% at 50% 52%, rgb(15 17 15 / 0.8), rgb(15 17 15 / 0.2) 100%), linear-gradient(var(--night), rgb(15 17 15 / 0) 24%, rgb(15 17 15 / 0) 70%, var(--night)); } }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; min-height: 44px; font: 500 10.5px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; color: var(--bone-muted); }
.cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); }

.chapter, .guide { min-height: 100svh; padding: 18vh var(--gutter); }
.chapter-text { max-width: 44rem; }
.chapter h2, .guide h2 { margin-top: 22px; font-size: clamp(34px, 5.2vw, 78px); }
.page-head { min-height: 74svh; margin-top: calc(-1 * var(--head)); padding: calc(var(--head) + 60px) var(--gutter) 90px; }
.page-head h1 { margin-top: 22px; font-size: clamp(46px, 8vw, 120px); letter-spacing: 0.08em; }

/* ---------- sections on plain night ---------- */
.section-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 64px); }
.rituals { padding: clamp(72px, 9vw, 130px) var(--gutter); background: linear-gradient(var(--night), var(--night-2) 20%, var(--night-2) 80%, var(--night)); }
.ritual-list { max-width: 1080px; margin: clamp(56px, 8vw, 110px) auto 0; display: grid; gap: clamp(72px, 10vw, 140px); }
.rituals > .acts { margin-top: clamp(56px, 8vw, 100px); }
.ritual { text-align: center; }
.ritual .label { margin-bottom: 14px; }
.ritual-name { font-size: clamp(44px, 6vw, 88px); letter-spacing: 0.14em; padding-left: 0.14em; }
.ritual--compact .ritual-name { font-size: clamp(36px, 4.6vw, 64px); }
.ritual-meta { margin-top: 14px; font: 500 12px/1.6 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone-muted); }
.ritual-desc { max-width: 36rem; margin: 22px auto 0; color: var(--bone-muted); text-wrap: pretty; }
.ritual .acts { justify-content: center; margin-top: 30px; }

/* the ritual as a timeline: minute marks along one line, the price at its end */
.tl { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 980px; margin: 44px auto 0; text-align: left; }
.tl-steps { display: flex; list-style: none; margin: 0; padding: 0; }
.tl-steps li { position: relative; flex: var(--g) 1 0; min-width: 5.5em; padding: 24px 12px 0 0; border-top: 1px solid var(--line-strong); }
.tl-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1px solid var(--amber); border-radius: 50%; background: var(--night-2); }
.tl-min { display: block; font: 400 14px/1 var(--display); letter-spacing: 0.08em; color: var(--amber); }
.tl-name { display: block; margin-top: 10px; font: 500 11px/1.45 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); overflow-wrap: anywhere; hyphens: auto; }
.tl-end { position: relative; padding: 24px 0 0 20px; }
.tl-end::before { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px 3px rgb(217 168 108 / 0.45); }
.tl-price { display: block; margin-top: 8px; font: 400 clamp(24px, 2.2vw, 30px)/1 var(--display); letter-spacing: 0.04em; white-space: nowrap; }
.g5 { --g: 5; } .g10 { --g: 10; } .g15 { --g: 15; } .g20 { --g: 20; } .g25 { --g: 25; } .g30 { --g: 30; } .g35 { --g: 35; } .g40 { --g: 40; }
.g45 { --g: 45; } .g50 { --g: 50; } .g55 { --g: 55; } .g60 { --g: 60; } .g75 { --g: 75; } .g90 { --g: 90; } .g120 { --g: 120; }
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; max-width: 19rem; margin-top: 36px; }
  .tl-steps { flex-direction: column; }
  .tl-steps li { flex: none; min-height: calc(var(--g) * 1.6px + 50px); padding: 0 0 0 26px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .tl-steps li::before { top: 0; left: -5px; }
  .tl-min { margin-top: -1px; }
  .tl-name { margin-top: 6px; }
  .tl-end { padding: 0 0 0 26px; }
  .tl-end::before { top: 0; left: -4px; }
  .tl-price { margin-top: 6px; }
}

/* the KI guide invitation (only with the KI-Service): a single flame, a question, one calm button */
.guide { min-height: 0; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 12vw, 160px); background: radial-gradient(40% 36% at 50% 22%, rgb(217 168 108 / 0.1), transparent 70%); }
.guide h2 { margin-top: 20px; }
.guide .lede { max-width: 32rem; }
.guide-flame { overflow: hidden; width: clamp(150px, 16vw, 220px); aspect-ratio: 2 / 3; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; margin: 0 auto clamp(8px, 2vw, 20px); -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.guide-flame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; transform: scale(1.5); filter: brightness(1.25); }

/* gift voucher */
.giftbox { padding: clamp(80px, 11vw, 150px) var(--gutter); text-align: center; background: radial-gradient(55% 45% at 50% 62%, rgb(217 168 108 / 0.14), transparent 70%), var(--night); }
.giftbox-text { max-width: 40rem; margin: 0 auto; }
.giftbox h2 { margin-top: 20px; font-size: clamp(34px, 5vw, 72px); }
.gift { width: min(460px, 100%); margin: clamp(48px, 7vw, 80px) auto 0; perspective: 1400px; }
.gift-card {
  position: relative; display: grid; align-content: space-between; justify-items: center; aspect-ratio: 1.586; padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgb(217 168 108 / 0.5); background: radial-gradient(120% 95% at 50% 0%, #2d2419 0%, #17130f 58%, #0e0d0b 100%);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.9), inset 0 0 0 7px #17130f, inset 0 0 0 8px rgb(217 168 108 / 0.28);
  transform: rotateX(10deg); transition: transform 1.6s var(--ease);
}
.gift:hover .gift-card { transform: none; }
.gift-mark { font: 400 13px/1 var(--display); letter-spacing: 0.6em; padding-left: 0.6em; text-transform: uppercase; color: var(--amber); }
.gift-title { font: 400 clamp(30px, 7vw, 46px)/1 var(--display); letter-spacing: 0.16em; padding-left: 0.16em; text-transform: uppercase; }
.gift-sub { margin-top: -18px; font: 500 10.5px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-muted); }
.gift-for { display: flex; align-items: flex-end; gap: 12px; width: 72%; font: 400 12px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-muted); }
.gift-for i { flex: 1; height: 1px; background: rgb(236 228 214 / 0.35); }
.giftbox .acts { margin-top: clamp(40px, 5vw, 56px); }

/* short rituals, consultation, questions */
.short { padding: clamp(96px, 12vw, 170px) var(--gutter) 0; }
.short-list { list-style: none; max-width: 1080px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.short-item { padding: 8px clamp(18px, 3vw, 40px) 20px; text-align: center; }
.short-item + .short-item { border-left: 1px solid var(--line); }
.short-item h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.1em; }
.short-desc { margin-top: 14px; font-size: 16px; color: var(--bone-muted); }
.short-item .acts { flex-direction: column; gap: 4px; margin-top: 20px; }
@media (max-width: 860px) {
  .short-list { grid-template-columns: 1fr; gap: 40px; }
  .short-item + .short-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 44px; }
}
.consult { max-width: 46rem; margin: 0 auto; padding: clamp(96px, 12vw, 170px) var(--gutter); text-align: center; }
.consult h2 { margin-top: 20px; font-size: clamp(30px, 4vw, 56px); }
.before { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(96px, 12vw, 170px); background: var(--night-2); }
.qa { max-width: 44rem; margin: clamp(40px, 6vw, 72px) auto 0; }
.qa div { padding: 30px 0; border-top: 1px solid var(--line); text-align: center; }
.qa div:last-child { border-bottom: 1px solid var(--line); }
.qa dt { font: 400 clamp(19px, 1.8vw, 24px)/1.35 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-wrap: balance; }
.qa dd { max-width: 34rem; margin: 12px auto 0; color: var(--bone-muted); }

/* visit */
.visit { padding: clamp(96px, 12vw, 160px) var(--gutter); text-align: center; background: var(--night); border-top: 1px solid var(--line); }
.visit-address { margin-top: 20px; font-size: clamp(30px, 4vw, 56px); letter-spacing: 0.08em; }
.visit-address span { display: block; margin-top: 12px; font: 500 12px/1.5 var(--sans); letter-spacing: 0.3em; color: var(--bone-muted); }
.visit-note { max-width: 30rem; margin: 18px auto 0; color: var(--bone-muted); }
.hours { max-width: 26rem; margin: clamp(40px, 5vw, 56px) auto 0; }
.hours div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 8px 0; }
.hours dt { text-align: right; font: 500 12px/2.2 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); }
.hours dd { text-align: left; font-variant-numeric: tabular-nums; }
.hours-note { max-width: 30rem; margin: 18px auto 0; font-size: 14.5px; color: var(--bone-muted); }
.visit--page { background: var(--night); }
.visit--hours h2 { margin-top: 20px; font-size: clamp(30px, 4vw, 56px); }
.way { list-style: none; counter-reset: way; width: fit-content; max-width: 100%; margin: clamp(44px, 6vw, 64px) auto 0; padding: 0; text-align: left; }
.way li { position: relative; counter-increment: way; min-height: 64px; padding: 0 0 0 30px; border-left: 1px solid var(--line-strong); }
.way li:last-child { min-height: 0; border-color: transparent; }
.way li::before { content: ""; position: absolute; top: 9px; left: -5px; width: 9px; height: 9px; border: 1px solid var(--amber); border-radius: 50%; background: var(--night); }
.way li:last-child::before { background: var(--amber); box-shadow: 0 0 14px 3px rgb(217 168 108 / 0.45); }

/* request */
.request { padding: clamp(96px, 14vw, 180px) var(--gutter); text-align: center; background: radial-gradient(60% 50% at 50% 100%, rgb(217 168 108 / 0.12), transparent 70%), var(--night); }
.request h2 { margin-top: 20px; font-size: clamp(36px, 5vw, 72px); }
.ways { list-style: none; max-width: 980px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.ways li { flex: 1 1 15rem; display: grid; gap: 10px; justify-items: center; padding: 22px 24px; }
.ways li + li { border-left: 1px solid var(--line); }
.ways span { font: 500 11px/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); }
.ways a, .ways button { font: 400 clamp(19px, 1.8vw, 24px)/1.3 var(--display); letter-spacing: 0.04em; color: var(--bone); text-decoration: none; border: 0; background: none; padding: 6px 0; cursor: pointer; overflow-wrap: anywhere; }
.ways a:hover, .ways button:hover { color: var(--amber); }
.request .fine { max-width: 34rem; margin: 30px auto 0; font-size: 14.5px; color: var(--bone-muted); }
@media (max-width: 760px) {
  .ways li { flex-basis: 100%; }
  .ways li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* footer */
.foot { padding: 0 var(--gutter) 40px; text-align: center; }
.foot-ende { display: flex; flex-direction: column; align-items: center; }
.foot-linie { width: 1px; height: clamp(70px, 9vw, 120px); background: linear-gradient(to bottom, rgb(217 168 108 / 0), var(--amber)); }
.foot-glut { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px 5px rgb(217 168 108 / 0.32); }
.foot-gruss { margin-top: 30px; font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: 0.1em; padding-left: 0.1em; text-transform: uppercase; }
.foot-marke { margin-top: 12px; font: 500 11px/1.4 var(--sans); letter-spacing: 0.34em; padding-left: 0.34em; text-transform: uppercase; color: var(--amber); }
.foot-line { margin-top: 40px; color: var(--bone-muted); font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; }
.foot-nav a:hover { color: var(--amber); }
.foot-note { max-width: 40rem; margin: 22px auto 0; font-size: 13.5px; color: var(--bone-muted); }

/* ---------- slow motion — only when allowed; everything is visible without it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .scene-img--hero { animation: drift 22s var(--ease) both; }
  @keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
  .hero-text { animation: breathe 2.4s var(--ease) 0.2s both; }
  @keyframes breathe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .cue::after { animation: fall 3.2s ease-in-out infinite; transform-origin: top; }
  @keyframes fall { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
  @supports (animation-timeline: view()) {
    .chapter .scene-img, .guide .scene-img { animation: settle linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
    .chapter-text, .ritual, .giftbox-text, .gift { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- the KI-Mitarbeiter: a quiet, full-screen guide ---------- */
html.ki-open { overflow: hidden; }
.ki-panel {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: radial-gradient(85% 60% at 50% 105%, #2e2216 0%, var(--night) 62%) var(--night); color: var(--bone);
  flex-direction: column; align-items: center; overflow: hidden;
}
.ki-panel[open] { display: flex; }
.ki-panel::backdrop { background: #0a0b0a; }
.ki-head { position: relative; width: 100%; display: flex; justify-content: center; padding: 30px 110px 8px; text-align: center; }
.ki-who { display: grid; justify-items: center; gap: 14px; }
.ki-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 20px 5px rgb(217 168 108 / 0.5); }
.ki-name { font: 400 14px/1.4 var(--display); letter-spacing: 0.3em; text-transform: uppercase; }
.ki-badge { margin-top: 4px; font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone-muted); }
.ki-close { position: absolute; top: 18px; right: clamp(8px, 3vw, 28px); min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--bone-muted); font: 500 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer; }
.ki-close span { display: none; }
.ki-close::after { content: "Schließen"; }
.ki-close:hover { color: var(--amber); }
.ki-note { max-width: 34rem; padding: 6px 24px 0; text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--bone-muted); }
.ki-log { flex: 1; width: 100%; max-width: 42rem; overflow-y: auto; overscroll-behavior: contain; padding: 4vh 24px 28px; display: flex; flex-direction: column; gap: 28px; }
.ki-log > :first-child { margin-top: auto; }
/* older lines recede (still readable), the latest exchange stands alone */
.ki-log > .ki-msg { --fade: #8d8579; transition: color 1.6s var(--ease); }
.ki-log > .ki-msg:not(:nth-last-child(-n + 2)), .ki-log > .ki-msg:not(:nth-last-child(-n + 2)) strong { color: var(--fade); }
.ki-log:focus-visible { outline-offset: -4px; }
.ki-msg--bot { text-align: center; font: 300 clamp(18px, 1.9vw, 23px)/1.65 var(--sans); color: var(--bone); text-wrap: pretty; }
.ki-msg--bot p + p, .ki-msg--bot ul + p { margin-top: 14px; }
.ki-msg--bot strong { font-weight: 450; color: var(--amber); }
.ki-msg--bot ul { list-style: none; margin: 12px 0 4px; padding: 0; font-size: 0.86em; }
.ki-msg--bot li { padding: 5px 0; }
.ki-msg--user { align-self: center; max-width: 32rem; text-align: center; font: 400 13.5px/1.6 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.ki-typing { align-self: center; display: flex; gap: 10px; padding: 10px 0; }
.ki-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: ki-breath 1.8s infinite ease-in-out; }
.ki-typing span:nth-child(2) { animation-delay: 0.3s; }
.ki-typing span:nth-child(3) { animation-delay: 0.6s; }
@keyframes ki-breath { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.ki-chips { width: 100%; max-width: 30rem; max-height: 40%; overflow-y: auto; padding: 4px 24px 30px; display: flex; flex-direction: column; }
.ki-chip { min-height: 50px; padding: 12px 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--bone); font: 350 16.5px/1.4 var(--sans); text-align: center; cursor: pointer; transition: color 0.8s var(--ease), background 0.8s var(--ease); }
.ki-chip:last-child { border-bottom: 1px solid var(--line); }
.ki-chip:hover, .ki-chip:focus-visible { color: var(--amber); background: rgb(217 168 108 / 0.06); }
.ki-form { align-self: center; width: 100%; max-width: 28rem; display: grid; gap: 16px; padding: 28px clamp(20px, 4vw, 32px); border: 1px solid var(--amber-soft); background: rgb(22 20 16 / 0.9); text-align: left; }
.ki-form-title { text-align: center; font: 400 22px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.ki-form-sub, .ki-form-note { text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--bone-muted); }
.ki-field { display: grid; gap: 4px; }
.ki-field label { font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); }
.ki-field input, .ki-field select { width: 100%; min-height: 42px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--bone); font: 350 16px/1.4 var(--sans); appearance: none; }
.ki-field select { background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(-45deg, transparent 50%, var(--amber) 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.ki-field option { background: var(--night-2); color: var(--bone); }
.ki-submit { justify-self: center; min-height: 52px; padding: 0 32px; border: 1px solid var(--amber); background: var(--amber); color: var(--night); font: 500 12px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; }
.ki-sent { align-self: center; text-align: center; }
.ki-sent-title { font: 400 20px/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.ki-sent-ref { margin-top: 6px; font-size: 13px; letter-spacing: 0.14em; color: var(--bone-muted); }
.ki-owner { align-self: center; width: 100%; max-width: 26rem; padding: 20px 24px; border: 1px solid var(--amber-soft); text-align: center; }
.ki-owner-title { margin-bottom: 10px; font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); }
.ki-owner-card p { margin-top: 4px; font-size: 15px; }
.ki-owner-card .ki-owner-via { color: var(--bone-muted); font-size: 13px; }
@media (max-width: 640px) {
  .ki-head { padding: 58px 20px 4px; }
  .ki-close { top: 8px; right: 8px; }
  .ki-name { font-size: 12.5px; letter-spacing: 0.2em; }
  .ki-badge { letter-spacing: 0.18em; }
  .ki-note { font-size: 11.5px; }
  .ki-log { padding: 3vh 20px 20px; gap: 22px; }
  .ki-chips { max-height: 44%; padding: 4px 16px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ki-panel[open] { animation: ki-in 1.2s var(--ease) both; }
  @keyframes ki-in { from { opacity: 0; } to { opacity: 1; } }
  .ki-mark { animation: ki-breath 3.6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
