/* Mondspiel – Stylesheet
   Schriften liegen lokal in /fonts (SIL Open Font License). */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Nacht */
  --night-900: #0e1a2b;
  --night-800: #14213d;
  --night-700: #1c2c4d;
  --night-line: #2a3b60;

  /* Mondlicht */
  --moon: #f6f1e7;
  --moon-200: #ebe3d2;
  --moon-300: #d9cfba;
  --moon-glow: rgb(246 241 231 / 0.22);

  /* Nebentexte */
  --mist: #a3b1c7;   /* auf Nacht, Kontrast ca. 8:1 */
  --slate: #4a5872;  /* auf Mondweiß, Kontrast ca. 6.4:1 */
  --ink: #14213d;

  /* Platzhalter-Markierung, nur bis zum Livegang sichtbar */
  --placeholder: #f2d48a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Typo-Skala, Verhältnis ca. 1.25 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --step-hero: clamp(2.5rem, 1.6rem + 4.6vw, 5.25rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 76rem;
  --radius: 6px;
  --radius-lg: 16px;
  --header-h: 4.25rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  --focus: var(--moon);
  margin: 0;
  background: var(--night-900);
  color: var(--moon);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--moon-200);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--moon);
  color: var(--night-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Platzhalter, die der Inhaber noch ausfüllen muss */
.ph {
  padding: 0 0.25em;
  background: var(--placeholder);
  color: var(--ink);
  border-radius: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), box-shadow 260ms var(--ease-out), color 180ms var(--ease-out);
}

/* Auf Nacht: Mondlicht. Beim Überfahren leuchtet der Knopf leicht wie der Mond. */
.btn-primary {
  background: var(--moon);
  color: var(--night-900);
}

.btn-primary:hover {
  box-shadow: 0 0 0 4px rgb(246 241 231 / 0.1), 0 0 28px var(--moon-glow);
}

.btn-secondary {
  border-color: var(--moon);
  color: var(--moon);
}

.btn-secondary:hover {
  background: rgb(246 241 231 / 0.08);
}

.btn-quiet {
  padding-inline: 0.25rem;
  color: var(--moon);
  text-decoration: underline;
  text-decoration-color: var(--night-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 180ms var(--ease-out);
}

.btn-quiet:hover {
  text-decoration-color: var(--moon);
}

/* Auf hellen Flächen kehren sich die Farben um */
.section-light .btn-primary {
  background: var(--night-800);
  color: var(--moon);
}

.section-light .btn-primary:hover {
  background: var(--night-700);
  box-shadow: 0 0 0 4px rgb(20 33 61 / 0.1);
}

.section-light .btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}

.section-light .btn-secondary:hover {
  background: rgb(20 33 61 / 0.06);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night-900);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--night-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--moon);
}

.brand-mark {
  width: 3.6rem;
  height: auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a:not(.btn) {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--mist);
  font-size: 0.975rem;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.nav-list a:not(.btn):hover {
  color: var(--moon);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

/* Mond, der beim Scrollen zunimmt */
.moon-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.moon-phase {
  width: 1.75rem;
  height: 1.75rem;
  transition: filter 600ms var(--ease-out);
}

.moon-phase .moon-disc {
  fill: var(--night-700);
}

.moon-phase .moon-lit {
  fill: var(--moon);
}

.moon-phase.is-full {
  filter: drop-shadow(0 0 6px rgb(246 241 231 / 0.55));
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  color: var(--moon);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle[aria-expanded="true"] .icon-open,
.menu-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--night-900);
    border-bottom: 1px solid var(--night-line);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding-block: 0.85rem;
    font-size: 1.125rem;
    color: var(--moon);
    border-bottom: 1px solid var(--night-700);
  }

  .nav-cta {
    margin-top: 1.25rem;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

@media (min-width: 961px) {
  .nav-cta {
    display: none;
  }
}

/* ---------- Startbereich ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 48rem);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 36rem at 82% -8%, rgb(246 241 231 / 0.07), transparent 65%),
    linear-gradient(var(--night-900), var(--night-800) 70%);
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-stars circle {
  fill: var(--moon);
}

.shooting-star {
  stroke: var(--moon);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 0.35 2;
  stroke-dashoffset: 0.35;
  opacity: 0;
}

.hero-copy {
  position: relative;
  padding-top: clamp(3rem, 2rem + 6vh, 7.5rem);
  padding-bottom: 2rem;
}

.hero-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-hero);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hero-title span {
  display: block;
  margin-top: 0.12em;
  color: var(--moon-200);
}

.hero-lead {
  max-width: 34ch;
  margin: 1.75rem 0 0;
  color: var(--mist);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
}

/* Horizont mit Harz-Silhouette und laufendem Windspiel */
.horizon {
  position: relative;
  margin-top: auto;
  height: clamp(7rem, 5rem + 9vw, 12rem);
}

.horizon-hills {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hill-far {
  fill: var(--night-700);
}

.hill-near {
  fill: var(--night-900);
}

.runner {
  --dog-w: clamp(4.5rem, 3.5rem + 3vw, 7rem);
  position: absolute;
  left: 0;
  /* Oberkante des vorderen Hügels liegt bei ca. 29 % der Horizonthöhe */
  bottom: 28.5%;
  width: var(--dog-w);
  opacity: 0;
  transform: translateX(calc(-1 * var(--dog-w)));
}

.runner svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--moon);
  stroke: var(--moon);
}

.runner .pose-gather {
  opacity: 0;
}

/* ---------- Abschnitte allgemein ---------- */

.section {
  padding-block: var(--section-y);
  /* Beim Anspringen nicht den oberen Innenabstand zeigen, sondern direkt die Überschrift */
  scroll-margin-top: calc(-1 * var(--section-y) + 2rem);
}

.section-dark {
  background: var(--night-900);
}

.section-light {
  --focus: var(--ink);
  background: var(--moon);
  color: var(--ink);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-lead {
  max-width: 46ch;
  margin: 1rem 0 0;
  color: var(--mist);
  font-size: var(--step-1);
  line-height: 1.5;
}

.section-light .section-lead {
  color: var(--slate);
}

/* ---------- Für wen ---------- */

.audience {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--moon-300);
}

.audience-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
}

.audience p {
  margin: 0;
  color: var(--slate);
}

@media (min-width: 640px) {
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .audience {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Das bekommen Sie ---------- */

.split {
  display: grid;
  gap: 0 4rem;
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .split .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.features {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 1rem;
}

.bullet {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  fill: var(--moon-200);
}

.features h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.features p {
  margin: 0;
  color: var(--mist);
}

/* ---------- Kostenlose Vorschau ---------- */

.preview-card {
  --focus: var(--moon);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 1rem + 5vw, 5rem);
  background:
    radial-gradient(28rem 28rem at 100% 0%, rgb(246 241 231 / 0.08), transparent 70%),
    var(--night-800);
  color: var(--moon);
  border-radius: var(--radius-lg);
}

/* Ein großer, kaum sichtbarer Mond in der Ecke */
.preview-card::before {
  content: "";
  position: absolute;
  top: -7rem;
  right: -7rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  box-shadow: inset 2.2rem -1.4rem 0 0 rgb(246 241 231 / 0.07);
  pointer-events: none;
}

.preview-card .section-lead {
  color: var(--mist);
}

.preview-card .btn-primary {
  background: var(--moon);
  color: var(--night-900);
}

.preview-card .btn-primary:hover {
  background: var(--moon);
  box-shadow: 0 0 0 4px rgb(246 241 231 / 0.1), 0 0 28px var(--moon-glow);
}

.preview-steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--night-line);
}

.step-no {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--mist);
}

.preview-steps p {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.25;
}

@media (min-width: 900px) {
  .preview-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .preview-steps li {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vorschau zum Ausprobieren ---------- */

/* Damit die Branchenfarbe weich überblendet statt zu springen */
@property --m {
  syntax: "<color>";
  inherits: true;
  initial-value: #2f4b3c;
}

.demo {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
}

@media (min-width: 960px) {
  .demo {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
  }
}

.demo-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}

.demo-note {
  max-width: 42ch;
  margin: 0.75rem 0 0.5rem;
  color: var(--slate);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.field label,
.branches legend {
  font-size: 0.95rem;
  font-weight: 600;
}

.optional {
  color: var(--slate);
  font-weight: 400;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: #fffdf8;
  border: 1.5px solid var(--moon-300);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms var(--ease-out);
}

.field input::placeholder {
  color: #6b7790;
}

.field input:hover,
.field input:focus {
  border-color: var(--ink);
}

.branches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.branches legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.branch {
  position: relative;
}

.branch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.branch span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--moon-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.branch span:hover {
  border-color: var(--ink);
}

.branch input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--moon);
}

.branch input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.demo-cta {
  margin-top: 2rem;
}

.demo-stage {
  display: grid;
  justify-items: center;
  gap: 2rem;
}

@media (min-width: 1100px) {
  .demo-stage {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
  }
}

/* Das Handy */
.phone {
  position: relative;
  width: min(17.5rem, 82vw);
  aspect-ratio: 9 / 18.5;
  padding: 0.55rem;
  background: var(--night-900);
  border-radius: 2.5rem;
  box-shadow: 0 2px 0 1px var(--night-700) inset, 0 40px 60px -30px rgb(20 33 61 / 0.55);
}

.phone::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 50%;
  z-index: 2;
  width: 4.5rem;
  height: 1.1rem;
  translate: -50% 0;
  background: var(--night-900);
  border-radius: 999px;
}

.phone-screen {
  --m: #2f4b3c;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fbfaf7;
  border-radius: 2rem;
  color: #1d2430;
  font-size: 0.7rem;
  line-height: 1.35;
  transition: --m 500ms var(--ease-out);
}

.phone-screen[data-branch="gastgeber"] { --m: #5b3d58; }
.phone-screen[data-branch="praxis"] { --m: #22596a; }
.phone-screen[data-branch="hofladen"] { --m: #8a4b1f; }

.m-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2.4rem 0.9rem 0.75rem;
}

.m-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--m);
  border-radius: 0.45rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.m-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-burger {
  position: relative;
  flex: none;
  width: 0.95rem;
  height: 0.6rem;
  border-block: 2px solid currentColor;
}

.m-burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  translate: 0 -50%;
  background: currentColor;
}

.m-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0.6rem;
  padding: 1.15rem 1rem 1.25rem;
  background: linear-gradient(160deg, var(--m), color-mix(in srgb, var(--m) 65%, #000));
  border-radius: 1rem;
  color: #fff;
}

.m-motif {
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  width: 6rem;
  height: 6rem;
  fill: none;
  stroke: rgb(255 255 255 / 0.2);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-kicker {
  position: relative;
  margin: 0;
  font-size: 0.62rem;
  opacity: 0.85;
}

.m-head {
  position: relative;
  max-width: 11ch;
  margin: 0.35rem 0 0.95rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.phone-screen[data-branch="gastgeber"] .m-head,
.phone-screen[data-branch="hofladen"] .m-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
}

.phone-screen[data-branch="praxis"] .m-head {
  font-weight: 500;
}

.m-btn {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border-radius: 0.4rem;
  color: var(--m);
  font-size: 0.65rem;
  font-weight: 700;
}

.m-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.7rem 0.6rem 0;
}

.m-tiles span {
  padding: 0.75rem 0.25rem;
  background: color-mix(in srgb, var(--m) 10%, #fff);
  border-radius: 0.6rem;
  color: var(--m);
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
}

.m-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0.9rem 0;
  color: #4a5568;
  font-size: 0.62rem;
}

.m-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: #3a9b5c;
  border-radius: 50%;
}

.m-lines {
  display: grid;
  gap: 0.4rem;
  margin: 0.9rem 0.9rem 0;
}

.m-lines span {
  height: 0.4rem;
  background: #e9e5dc;
  border-radius: 1rem;
}

.m-lines span:nth-child(2) { width: 85%; }
.m-lines span:nth-child(3) { width: 60%; }

.m-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 3.2rem 3.2rem;
  gap: 0.35rem;
  margin: 0.9rem 0.6rem 0;
}

.m-gallery span {
  background: linear-gradient(140deg, color-mix(in srgb, var(--m) 35%, #fff), color-mix(in srgb, var(--m) 70%, #fff));
  border-radius: 0.55rem;
}

.m-gallery span:first-child {
  grid-row: span 2;
}

.m-gallery span:nth-child(3) {
  background: color-mix(in srgb, var(--m) 18%, #fff);
}


/* Anfragen kommen per WhatsApp */
.m-wa {
  position: absolute;
  right: 0.8rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 14px -4px rgb(0 0 0 / 0.3);
}

.m-wa svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* Google-Vorschau */
.serp {
  width: 100%;
  max-width: 22rem;
}

.serp-label {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-size: 0.875rem;
}

.serp-card {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--moon-300);
  border-radius: 12px;
}

.serp-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.serp-url {
  color: #3c4a5e;
  font-size: 0.8rem;
}

.serp-card .serp-title {
  margin-block: 0.2rem;
  color: #1f3fae;
  font-size: 1.05rem;
  line-height: 1.3;
}

.serp-desc {
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---------- Live gemessen ---------- */

.measure {
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--night-line);
}

.measure-text {
  max-width: 40ch;
  margin: 0;
  color: var(--moon-200);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.35;
}

.measure-text strong {
  color: var(--moon);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--night-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.measure-note {
  margin: 0.9rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* ---------- Arbeiten ---------- */

.works {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1.5px dashed var(--night-line);
  border-radius: 10px;
}

@media (min-width: 720px) {
  .work-frame {
    aspect-ratio: 4 / 3;
  }
}

.work-frame span {
  position: absolute;
  top: 0.8rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--night-line);
}

.work-frame span:nth-child(1) { left: 0.9rem; }
.work-frame span:nth-child(2) { left: 1.7rem; }
.work-frame span:nth-child(3) { left: 2.5rem; }

.work-label {
  margin: 0.9rem 0 0;
  color: var(--mist);
}

/* ---------- Preise ---------- */

.plans {
  display: grid;
  gap: 1.5rem;
  max-width: 60rem;
}

@media (min-width: 780px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--moon-300);
  border-radius: var(--radius-lg);
}

.plan-plus {
  --focus: var(--moon);
  background: var(--night-800);
  border-color: var(--night-800);
  color: var(--moon);
}

.plan-name {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 500;
}

.plan-price {
  margin: 1.25rem 0 0;
}

.plan-price .amount {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-price .per {
  margin-left: 0.35rem;
  color: var(--slate);
}

.plan-setup {
  margin: 0.5rem 0 0;
  color: var(--slate);
}

.plan-plus .plan-price .per,
.plan-plus .plan-setup {
  color: var(--mist);
}

.plan-list {
  flex: 1;
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--moon-300);
}

.plan-plus .plan-list {
  border-top-color: var(--night-line);
}

.plan-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}

/* Kleiner Vollmond als Listenpunkt */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.plan .btn {
  align-self: flex-start;
}

.section-light .plan-plus .btn-primary {
  background: var(--moon);
  color: var(--night-900);
}

.section-light .plan-plus .btn-primary:hover {
  background: var(--moon);
  box-shadow: 0 0 0 4px rgb(246 241 231 / 0.1), 0 0 28px var(--moon-glow);
}

.plans-note {
  margin-top: 2rem;
}

.plans-note p {
  margin: 0;
  font-weight: 600;
}

.plans-note .small {
  margin-top: 0.35rem;
  color: var(--slate);
  font-size: var(--step--1);
  font-weight: 400;
}

/* ---------- Ablauf: der Mond nimmt mit jedem Schritt zu ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 3.75rem;
}

/* Verbindungslinie zwischen den Monden */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 3rem;
  bottom: -2.25rem;
  width: 1px;
  background: var(--night-line);
}

.phase {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
}

.phase circle {
  fill: var(--night-700);
}

.phase path,
.phase circle.full {
  fill: var(--moon);
}

.phase-full {
  filter: drop-shadow(0 0 5px rgb(246 241 231 / 0.45));
}

.timeline h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  max-width: 32ch;
  color: var(--mist);
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .timeline li {
    padding-left: 0;
    padding-top: 4rem;
  }

  .timeline li:not(:last-child)::after {
    left: 3.4rem;
    right: -1rem;
    top: 1.2rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* ---------- Über Mondspiel ---------- */

.about {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
  }
}

.about-photo {
  margin: 0;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 28rem;
  padding: 2.5rem;
  background:
    radial-gradient(20rem 20rem at 70% 25%, rgb(255 255 255 / 0.6), transparent 70%),
    var(--moon-200);
  border-radius: var(--radius-lg);
}

.photo-placeholder img {
  width: 80%;
  height: auto;
}

.about-photo figcaption {
  max-width: 28rem;
  margin-top: 0.75rem;
  color: var(--slate);
  font-size: var(--step--1);
}

.about-text {
  max-width: 38rem;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin: 0 0 1.1rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---------- Häufige Fragen ---------- */

.faq-wrap {
  display: grid;
  gap: 0 4rem;
}

@media (min-width: 1000px) {
  .faq-wrap {
    grid-template-columns: 5fr 7fr;
  }
}

.faq details {
  border-bottom: 1px solid var(--night-line);
}

.faq details:first-child {
  border-top: 1px solid var(--night-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

/* Sichel, die beim Öffnen zum Vollmond wird */
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0.3rem -0.1rem 0 0 var(--moon);
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.faq summary:hover::after {
  box-shadow: inset 0.45rem -0.1rem 0 0 var(--moon);
}

.faq details[open] summary::after {
  background: var(--moon);
  box-shadow: 0 0 8px rgb(246 241 231 / 0.45);
}

.faq details p {
  max-width: 56ch;
  margin: 0 0 1.5rem;
  color: var(--mist);
}

/* ---------- Kontakt ---------- */

.contact {
  position: relative;
  background:
    radial-gradient(40rem 24rem at 50% 0%, rgb(246 241 231 / 0.08), transparent 70%),
    var(--night-800);
  text-align: center;
}

.contact .section-lead {
  margin-inline: auto;
}

.contact-moon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 2rem;
  fill: var(--moon);
  filter: drop-shadow(0 0 18px rgb(246 241 231 / 0.45));
}

.contact-actions {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

@media (min-width: 760px) {
  .contact-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  height: 100%;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--night-line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.contact-btn:hover {
  border-color: var(--moon);
}

.contact-actions li:first-child .contact-btn {
  background: var(--moon);
  border-color: var(--moon);
  color: var(--night-900);
}

.contact-actions li:first-child .contact-btn:hover {
  box-shadow: 0 0 0 4px rgb(246 241 231 / 0.1), 0 0 28px var(--moon-glow);
}

.contact-actions li:first-child small {
  color: var(--slate);
}

.contact-btn svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-btn strong {
  display: block;
  font-size: 1.125rem;
}

.contact-btn small {
  display: block;
  margin-top: 0.1rem;
  color: var(--mist);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-btn small.ph {
  display: inline-block;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--night-line);
  color: var(--mist);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }

  .footer-meta {
    text-align: right;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
}

.footer-brand strong {
  color: var(--moon);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--moon);
  text-underline-offset: 0.25em;
}

.sleepers {
  text-align: center;
}

.sleepers svg {
  width: 10rem;
  margin: 0 auto 0.5rem;
  overflow: visible;
}

.sleeper {
  fill: var(--mist);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.sleeper-back {
  fill: var(--night-line);
}

.sleeper-line {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sleeper-line.thick {
  stroke-width: 1.8;
}

.sleeper-line.thin {
  stroke-width: 1.2;
}

.sleeper-cut {
  fill: none;
  stroke: var(--night-900);
  stroke-width: 0.8;
  stroke-linecap: round;
}

.zzz {
  fill: var(--mist);
  font-family: var(--serif);
  font-size: 7px;
  font-style: italic;
  opacity: 0;
}

.sleepers p {
  margin: 0;
  font-size: 0.875rem;
}

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */

.page {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section-y);
}

.page .wrap {
  max-width: 48rem;
}

.page h1 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
}

.page h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.page p,
.page li {
  color: var(--moon-200);
}

.page address {
  font-style: normal;
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--placeholder);
  color: var(--ink);
  border-radius: var(--radius);
}

.page .notice p {
  margin: 0;
  color: var(--ink);
}

.lost-dog {
  width: 8rem;
  margin-bottom: 2rem;
  fill: var(--moon);
  stroke: var(--moon);
}

.lost-dog .pose-gather {
  opacity: 0;
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .twinkle {
    animation: twinkle 4.5s ease-in-out infinite alternate;
  }

  .twinkle-2 {
    animation-duration: 6s;
    animation-delay: -2s;
  }

  .twinkle-3 {
    animation-duration: 5.2s;
    animation-delay: -3.5s;
  }

  /* Eine einzige Sternschnuppe, kurz nachdem das Windspiel durch ist */
  .shooting-star {
    animation: shoot 1.1s ease-out 7.2s 1 forwards;
  }

  .runner.is-running {
    animation: run-across 5.2s cubic-bezier(0.35, 0.05, 0.55, 0.95) forwards;
  }

  .runner.is-running .pose-stretch,
  .lost-dog .pose-stretch {
    animation: gait-a 0.34s steps(1, end) infinite;
  }

  .runner.is-running .pose-gather,
  .lost-dog .pose-gather {
    animation: gait-b 0.34s steps(1, end) infinite;
  }

  .runner.is-running svg,
  .lost-dog {
    animation: gait-bob 0.34s ease-in-out infinite;
  }

  .horizon {
    cursor: pointer;
  }

  .sleeper:not(.sleeper-back) {
    animation: breathe 4.2s ease-in-out infinite;
  }

  .zzz {
    animation: drift 4.2s ease-out infinite;
  }

  .zzz-2 {
    animation-delay: 2.1s;
  }
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to { opacity: 0.9; }
}

@keyframes shoot {
  0% { opacity: 0; stroke-dashoffset: 0.35; }
  15% { opacity: 0.9; }
  100% { opacity: 0; stroke-dashoffset: -1; }
}

@keyframes run-across {
  0% {
    opacity: 1;
    transform: translateX(calc(-1 * var(--dog-w)));
  }
  100% {
    opacity: 1;
    transform: translateX(100vw);
  }
}

@keyframes gait-a {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes gait-b {
  0% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes gait-bob {
  0%, 100% { transform: translateY(-6%); }
  50% { transform: translateY(3%); }
}

@keyframes breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.035); }
}

@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(4px, -9px); }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .runner {
    display: none;
  }
}
