/* themoonchild.de — hand-written, no framework */

@font-face {
  font-family: "Jost";
  src: url(/assets/fonts/jost.woff2) format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url(/assets/fonts/jost-italic.woff2) format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jomolhari";
  src: url(/assets/fonts/jomolhari.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(/assets/fonts/cormorant-italic.woff2) format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --bg-2: #222120;
  --bg-3: #2b2928;
  --fg: #f7f2ee;
  --muted: #b5aca6;
  --line: #3a3735;
  --cream: #efe6e0;
  --cream-2: #e6d9d0;
  --ink: #1a1a1a;
  --ink-muted: #5d534d;
  --peach: #efb786;
  --amber: #dd7d1c;
  --serif: "Jomolhari", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Cormorant Garamond", "Jomolhari", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 2px;
  --header-h: 84px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
strong { font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  font: 500 .78rem/1.3 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: .5rem 1rem; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

/* thin centered rule under headings, like on the old site */
.rule::after { content: ""; display: block; width: 7rem; height: 1px; margin: 1.4rem auto 0; background: currentColor; opacity: .5; }

.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section--alt { background: var(--bg-2); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .eyebrow { color: var(--amber); }
.section--cream .lead, .section--cream .muted { color: var(--ink-muted); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* --- buttons & links --- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.8em;
  background: var(--cream); color: var(--ink);
  font: 500 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--peach); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgb(247 242 238 / .6); }
.btn--ghost:hover { background: var(--fg); color: var(--ink); }
.section--cream .btn { background: var(--ink); color: var(--cream); }
.section--cream .btn:hover { background: var(--amber); color: var(--ink); }
.section--cream .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(26 26 26 / .6); }
.section--cream .btn--ghost:hover { background: var(--ink); color: var(--cream); }
.link { text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: .28em; text-decoration-thickness: 1px; }
.link:hover { color: var(--peach); }
.section--cream .link { text-decoration-color: var(--amber); }
.section--cream .link:hover { color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.center .actions, .actions.center { justify-content: center; }

/* --- header: nav | logo | nav --- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgb(26 26 26 / .8), rgb(26 26 26 / 0));
  transition: background .3s;
}
.site-header.is-scrolled { background: rgb(26 26 26 / .94); backdrop-filter: blur(10px); }
.brand { display: block; grid-column: 2; }
.brand__logo { width: 72px; height: auto; }
.nav-desktop { display: flex; gap: clamp(1.5rem, 4vw, 4rem); }
.nav-desktop--left { justify-content: flex-end; }
.nav-desktop a, .site-nav a {
  font: 400 .8rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; padding-block: .5rem; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav-desktop a:hover, .nav-desktop a[aria-current] { border-color: var(--peach); }
.site-nav, .nav-toggle, .nav-close { display: none; }

@media (min-width: 60.01rem) {
  :root { --header-h: 120px; }
  .brand__logo { width: 104px; }
}
@media (max-width: 60rem) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 1; }
  .nav-desktop { display: none; }
  .nav-toggle {
    display: grid; grid-column: 3; gap: 5px; place-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--fg); }
  .site-nav[popover]:popover-open {
    display: block;
    inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
    margin: 0; border: 0; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
    background: var(--bg); color: var(--fg);
  }
  .site-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
  .site-nav a { font: 400 2rem/1.2 var(--serif); letter-spacing: .02em; text-transform: none; }
  .site-nav a[aria-current] { border-color: var(--peach); }
  .site-nav::backdrop { background: rgb(0 0 0 / .5); }
  .nav-close {
    display: block; position: absolute; top: 18px; right: var(--gutter);
    width: 44px; height: 44px; border: 0; background: none; color: var(--fg);
    font: 300 2.4rem/1 var(--sans); cursor: pointer;
  }
}

/* --- hero --- */
.hero {
  position: relative;
  min-height: min(100svh, 56rem);
  display: grid; align-items: end; text-align: center;
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 9vw, 6.5rem);
  isolation: isolate; overflow: hidden;
}
.hero--short { min-height: min(64svh, 36rem); }
/* header without picture: title + line centred between menu bar and first video */
.hero--plain { --gap: clamp(3rem, 8vw, 5.5rem); min-height: 0; padding-block: calc(var(--header-h) + var(--gap)) var(--gap); }
.hero--plain .lead { margin-bottom: 0; }
.hero--plain + .section { padding-top: 0; }
.hero--plain::after { content: none; }
.hero__media, .hero__media > * {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 0%, rgb(26 26 26 / .5) 38%, rgb(26 26 26 / .25) 70%, rgb(26 26 26 / .6) 100%);
}
.hero h1 { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(2rem, 5.6vw, 4.2rem); }
/* home page: everything on the video smaller so the video stands out */
.page-home .hero { padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-home .hero::after { background: linear-gradient(to top, rgb(26 26 26 / .5) 0%, rgb(26 26 26 / .25) 38%, rgb(26 26 26 / .125) 70%, rgb(26 26 26 / .3) 100%); }
.page-home .hero h1 { font-size: clamp(1.45rem, 3.9vw, 2.9rem); }
/* page headings on kontakt, filme and pakete: same size as on the home page */
.page-kontakt .hero h1, .page-filme .hero h1, .page-pakete .page-title h1 { font-size: clamp(1.45rem, 3.9vw, 2.9rem); }
.page-pakete .page-title h1, .page-filme .hero h1 { text-transform: none; }
.page-kontakt .hero::after { content: none; }  /* no dark gradient over the header picture */
.page-kontakt .hero { margin-top: var(--header-h); padding-top: 3rem; }  /* header picture starts below the menu bar */
.page-home .hero .eyebrow { font-size: .72rem; margin-bottom: .9rem; }
.page-home .hero .statement { font-size: .78rem; margin-bottom: 0; }
.page-home .hero .actions { margin-top: 1.6rem; gap: .9rem; }
.page-home .hero .btn { font-size: .76rem; padding: .9em 1.6em; }
.hero .eyebrow { color: var(--fg); letter-spacing: .3em; }
.hero .lead { color: #e7e0da; margin-inline: auto; }
.hero .statement { margin-top: 0; }
.hero .actions { justify-content: center; }
.hero__media video { background: none; }

/* page title without image */
.page-title { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)); padding-bottom: clamp(2rem, 5vw, 3rem); text-align: center; }
.page-title h1 { text-transform: lowercase; }

/* --- home intro --- */
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(2rem, 7vw, 5rem); margin: 0 0 2.5rem; font: 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.3 var(--serif); letter-spacing: .08em; }
.columns { display: grid; gap: 0 3rem; }
@media (min-width: 52rem) { .columns { grid-template-columns: 1fr 1fr; } }
.wide-img { width: 100%; }
.statement { font: 500 .85rem/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; max-width: 46rem; margin: 2rem auto 0; text-align: center; }

/* --- split layout --- */
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split img { width: 100%; }

/* --- films --- */
.films { display: grid; gap: clamp(5rem, 11vw, 9rem); }
.film { display: grid; gap: 1.5rem 3.5rem; align-items: center; }
@media (min-width: 56rem) {
  .film { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  /* every second film: video on the right, but still in the wide column */
  .film:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .film:nth-child(even) > :first-child { order: 2; }
}
.film h3 { margin-bottom: .2em; }
.film .where { font: 400 .78rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: 1.2rem; }
.film blockquote { margin: 0; font-style: italic; color: var(--muted); }
.film blockquote p:last-child { margin-bottom: 0; }
.film .embed { aspect-ratio: 21 / 9; }  /* cinema format on the films page */
.featured { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .featured { grid-template-columns: 1fr 1fr; } }
.featured figure { margin: 0; }
.featured figcaption { margin-top: .9rem; font: 400 .78rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.section--cream .featured figcaption { color: var(--ink-muted); }
.testimonial { max-width: 44rem; margin-inline: auto; text-align: center; }
.testimonial blockquote { margin: 0 0 1.2rem; font: 400 clamp(1.1rem, 2vw, 1.35rem)/1.6 var(--serif); }
.testimonial cite { font: 400 .78rem/1.5 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); }

.embed {
  position: relative; display: block; aspect-ratio: 16 / 9;
  overflow: hidden; background: #000;
}
.embed img, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.embed img { transition: transform .6s, opacity .3s; }
.embed:hover img { transform: scale(1.03); opacity: .85; }
.embed__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgb(26 26 26 / .45); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgb(247 242 238 / .85);
  transition: background .2s, scale .2s;
}
.embed__play::after {
  content: ""; position: absolute; left: 53%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--fg);
}
.embed:hover .embed__play { background: rgb(239 183 134 / .85); scale: 1.06; }
.embed__note {
  position: absolute; right: .7rem; bottom: .6rem;
  font-size: .72rem; color: rgb(247 242 238 / .8);
  background: rgb(26 26 26 / .55); padding: .2em .6em;
}
.embed.is-playing .embed__play, .embed.is-playing .embed__note { display: none; }

/* --- badges / instagram --- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; margin-bottom: 3rem; }
.badges img { width: 120px; }

/* --- packages --- */
.packages { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.package {
  display: flex; flex-direction: column; padding: 2rem 2rem 2.2rem;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: translate .4s cubic-bezier(.2,.7,.2,1), border-color .4s;
}
/* hover animation from the "nachthimmel" variant: card lifts, moon turns */
.package:hover { translate: 0 -6px; border-color: rgb(239 183 134 / .55); }
.package__moon { transition: rotate 1.2s cubic-bezier(.2,.7,.2,1); }
.package:hover .package__moon { rotate: 12deg; }
@media (prefers-reduced-motion: reduce) { .package, .package__moon { transition: none; } .package:hover { translate: none; } .package:hover .package__moon { rotate: none; } }
.package__moon { width: 150px; margin: 0 auto 1.2rem; }
.package h2 { font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 1.4rem; }
.package h3 { font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--peach); margin: 0 0 .8rem; }
.package ul { margin-bottom: 1.8rem; }
.package li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.package li:first-child { border-top: 1px solid var(--line); }
.package__price { margin-top: auto; font: 400 2rem/1 var(--serif); text-align: center; }
.package__price small { font: 400 .75rem/1 var(--sans); letter-spacing: .04em; color: var(--muted); }
.package--featured { border-color: rgb(239 183 134 / .55); }

.info { display: grid; gap: 3rem 4rem; }
@media (min-width: 52rem) { .info { grid-template-columns: 1fr 1fr; } }
.info h2 { font-size: 1.45rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2rem; }
.info h3 { font: 500 1rem/1.4 var(--sans); margin: 1.6rem 0 .3rem; }
.info h3:first-of-type { margin-top: 0; }
.info p { color: var(--ink-muted); }
.info .price { color: var(--ink); font-weight: 500; }
.info small { font-size: .75em; font-weight: 400; color: var(--ink-muted); }
/* highlighted extra (social media package): just the amber accent, no box */
.info .highlight h3 { color: var(--amber); }
.info .highlight h3::before { content: "✦"; margin-right: .5em; font-size: .8em; }
.info .highlight .price { color: var(--amber); }
.illu { width: 180px; margin-top: 1.5rem; }

/* steps in the style of the "einladung" variant: italic script numbers */
.steps { counter-reset: step; display: grid; gap: 1.6rem; margin-top: 2rem; text-align: left; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps li::before {
  content: counter(step) "."; position: absolute; left: 0; top: -.35rem;
  font: italic 400 2.6rem/1 var(--script); color: var(--peach);
}
.script { font: italic 400 1.14em/1 var(--script); color: var(--ink); letter-spacing: -.005em; }

/* --- about --- */
.facts { counter-reset: fact; display: grid; gap: 0 3rem; }
@media (min-width: 52rem) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { counter-increment: fact; display: grid; grid-template-columns: 2.6rem 1fr; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts li::before { content: counter(fact, decimal-leading-zero); font: 400 1rem/1.7 var(--serif); color: var(--peach); }

/* --- contact form --- */
.form { display: grid; gap: 1.4rem; }
@media (min-width: 44rem) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.field input[type=text], .field input[type=email], .field input[type=number], .field textarea {
  width: 100%; padding: .85rem 1rem; font: 300 1rem/1.5 var(--sans); color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--peach); }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font: 300 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg);
}
.choices input { accent-color: var(--peach); margin: 0; }
.choices label:has(input:checked) { border-color: var(--peach); }
.form__note { font-size: .9rem; color: var(--muted); }
.form__note a { text-decoration-color: var(--peach); }
.form-sent { display: none; padding: 1rem 1.2rem; border-left: 2px solid var(--peach); background: var(--bg-2); }
.form-sent.is-visible { display: block; }

/* --- prose (legal pages) --- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3rem; }
.prose h3 { font: 500 1.05rem/1.4 var(--sans); margin-top: 2rem; }
.prose p, .prose li { color: #d9d1cb; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration-color: var(--peach); }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(4rem, 8vw, 6rem) 2rem; background-color: var(--bg); text-align: center; }
.site-footer__logo { width: 120px; height: auto; margin: 0 auto 1.6rem; }
.site-footer__big { font: 400 clamp(1.6rem, 3.4vw, 2.4rem)/1.25 var(--serif); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; margin-top: 2.2rem; font: 400 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.site-footer__links a { text-decoration: none; color: var(--muted); }
.site-footer__links a:hover { color: var(--fg); }
.site-footer__fine { font-size: .8rem; color: #7a726d; margin-top: 3rem; }
/* moon phases in the footer */
.phases { display: flex; justify-content: center; gap: .9rem; margin: 1.6rem 0; }
.phases span { width: .8rem; height: .8rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--peach); }
.phases span:nth-child(2) { background: linear-gradient(to right, transparent 50%, var(--peach) 50%); }
.phases span:nth-child(3) { background: var(--peach); }
.phases span:nth-child(4) { background: linear-gradient(to left, transparent 50%, var(--peach) 50%); }

/* --- reveal on scroll (class added by JS, only below the fold) --- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .45s ease, translate .45s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* --- page change: a short cross-fade instead of a hard cut (browsers that don't know it just switch) --- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .18s; }
}

/* --- utilities --- */
.page-top { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)); }
.illu { mix-blend-mode: multiply; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* --- accents on every page ---
   starry night sky on the dark areas (taken from the "nachthimmel" variant),
   amber stars between the three words and the star ornament under headings
   (taken from the "einladung" variant). */
body, .section--alt, .site-footer { background-image: url(/assets/stars.png); }
.section--alt { background-position: 170px 90px; }
.words span + span::before { content: "✦"; font: 400 .6em/1 var(--sans); color: var(--amber); margin-right: clamp(2rem, 7vw, 5rem); vertical-align: .3em; }
.rule::after { width: 10rem; height: 1rem; margin-top: 1.3rem; background: url(/assets/ornament-peach.svg) center / contain no-repeat; opacity: 1; }
