/* PsalMotion – psalmotion.de
   Farben und Schriften wie im Corporate Design (CLAUDE.md). Mobil zuerst. */

@font-face { font-family: "Montserrat"; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-extrabold.woff2") format("woff2"); }

:root {
  --navy: #0C1526;
  --navy-hell: #1C2D4A;
  --orange: #F08A3C;
  --orange-dunkel: #E07A2C;
  --weiss: #F7F3EC;
  --grau: #8C9AB3;
  --rand: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  --nacht: 0.92;   /* wird vom Skript je nach Scrollposition gesetzt */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--weiss);
  font-family: "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
strong { font-weight: 800; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

/* ---------- Bühne: Sonnenaufgang im Hintergrund ---------- */
.buehne { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--navy); }
.buehne__standbild, .buehne__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buehne__film { display: none; }
.js .buehne--film .buehne__film { display: block; }
.js .buehne--film .buehne__standbild { display: none; }
/* Nacht: Navy über dem Bild, am Horizont etwas durchlässiger, damit dort schon Licht glimmt */
.buehne__nacht {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy) 45%, rgba(12, 21, 38, 0.72) 66%, var(--navy) 88%);
  opacity: var(--nacht);
}
/* Tiefe: das Meer unten bleibt dunkel, Übergang zu den Kanälen */
.buehne__tiefe {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 21, 38, 0) 62%, rgba(12, 21, 38, 0.6) 100%);
}
/* Ohne Skript-Steuerung (kein JS, reduzierte Bewegung): Standbild mittel abgedunkelt */
html:not(.js) .buehne__nacht, .ruhig .buehne__nacht { opacity: 0.55; }

/* ---------- Scroll-Geschichte ---------- */
.schritt {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12vh var(--rand) 22vh;   /* Inhalt leicht über der Mitte, unten liegt der Horizont */
  text-align: center;
}
.schritt--hell { color: var(--navy); }
.schritt--hell strong { color: var(--navy); }
html:not(.js) .schritt--hell, .ruhig .schritt--hell { color: var(--weiss); }
html:not(.js) .schritt--hell strong, .ruhig .schritt--hell strong { color: var(--weiss); }

/* 1. Logo */
.schritt--logo { padding-bottom: 18vh; }
.zeichen { width: min(46vw, 260px); height: auto; overflow: visible; }
.zeichen path { fill: none; stroke-linecap: round; }
.js .zeichen path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1.6s cubic-bezier(.45, 0, .2, 1) forwards; }
.js .zeichen path:nth-child(3), .js .zeichen path:nth-child(6) { animation-delay: .1s; }
.js .zeichen path:nth-child(2), .js .zeichen path:nth-child(5) { animation-delay: .3s; }
.js .zeichen path:nth-child(1), .js .zeichen path:nth-child(4) { animation-delay: .5s; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

.wortmarke { margin: clamp(20px, 4vh, 36px) 0 0; width: min(72vw, 420px); }
.wortmarke img { width: 100%; height: auto; }
.js .wortmarke { opacity: 0; transform: translateY(12px); animation: auftauchen 1.2s ease-out 1.3s forwards; }
@keyframes auftauchen { to { opacity: 1; transform: none; } }

.scrollhinweis {
  position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-weight: 500; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--grau);
}
.scrollhinweis::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--grau), transparent); }
.js .scrollhinweis { clip-path: inset(0 0 100% 0); animation: aufdecken 1s ease-out 2.4s forwards; }
@keyframes aufdecken { to { clip-path: inset(0); } }
.js .scrollhinweis::after { animation: tropfen 2.4s ease-in-out 3s infinite; transform-origin: top; }
@keyframes tropfen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.schritt--logo { position: relative; }
.weitergescrollt .scrollhinweis { opacity: 0 !important; transition: opacity .4s; }

/* 2. Claim */
.claim {
  margin: 0;
  font-weight: 300; font-size: clamp(44px, 13vw, 112px); line-height: 1.08; letter-spacing: -0.01em;
}

/* 3. Einzeiler */
.einzeiler { margin: 0; max-width: 16em; font-size: clamp(26px, 7.4vw, 56px); line-height: 1.25; }
.einzeiler strong { display: block; margin-top: .3em; }

/* 4. Über PsalMotion */
.ueber { max-width: 34rem; text-align: left; }
.ueber p { margin: 0 0 1.4em; font-size: clamp(19px, 5vw, 26px); line-height: 1.55; font-weight: 400; }
.ueber p:last-child { margin-bottom: 0; }

/* 5. Für heute */
.moment { margin: 0; font-size: clamp(30px, 8.6vw, 72px); line-height: 1.22; }
.moment strong { display: inline-block; margin-top: .25em; }

/* Einblenden beim Erreichen (nur mit JS und ohne reduzierte Bewegung) */
.js:not(.ruhig) .enthuellen { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js:not(.ruhig) .enthuellen.sichtbar { opacity: 1; transform: none; }
.js:not(.ruhig) .ueber .enthuellen:nth-child(2) { transition-delay: .35s; }

/* ---------- Kanäle ---------- */
.kanaele {
  position: relative;
  padding: 18vh var(--rand) 12vh;
  background: linear-gradient(to bottom, rgba(12, 21, 38, 0) 0, var(--navy) 40vh);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.kanaele__titel { margin: 0 0 48px; max-width: 18em; font-weight: 300; font-size: clamp(26px, 6.8vw, 44px); line-height: 1.25; }
.kanaele__titel span { font-weight: 800; color: var(--orange); }

.beispiel { margin: 0 0 48px; }
.beispiel__rahmen { position: relative; width: min(64vw, 300px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--navy-hell); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(247, 243, 236, .08); }
.beispiel__video { width: 100%; height: 100%; object-fit: cover; }
.beispiel__ton {
  position: absolute; right: 12px; bottom: 12px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px;
  background: rgba(12, 21, 38, .72); color: var(--weiss);
  font: 500 12px/1 "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.beispiel figcaption { margin-top: 14px; font-weight: 400; font-size: 14px; color: var(--grau); }

.kanaele__liste { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px; display: grid; gap: 12px; }
.kanaele__liste a, .kanaele__fehlt {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 60px; padding: 0 24px; border-radius: 30px;
  border: 1px solid rgba(247, 243, 236, .22); background: rgba(28, 45, 74, .55);
  font-weight: 500; font-size: 17px; text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.kanaele__liste a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.kanaele__fehlt { opacity: .6; }
.kanaele__liste small { font-size: 12px; font-weight: 400; color: var(--grau); }
.kanaele__whatsapp { margin: 20px 0 0; max-width: 26em; font-size: 15px; color: var(--grau); }

/* ---------- Fußzeile ---------- */
.fuss {
  padding: 32px var(--rand) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(140, 154, 179, .18);
  background: var(--navy);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-weight: 400; font-size: 14px; color: var(--grau);
}
.fuss p { margin: 0; }
.fuss a { text-decoration: none; padding: 12px 4px; }
.fuss a:hover { color: var(--weiss); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite { background: var(--navy); }
.kopf { padding: 28px var(--rand); }
.kopf a { display: inline-block; width: 168px; }
.text { max-width: 40rem; margin: 0 auto; padding: 4vh var(--rand) 12vh; font-weight: 400; font-size: 17px; line-height: 1.65; }
.text h1 { font-weight: 300; font-size: clamp(32px, 8vw, 48px); line-height: 1.15; margin: 0 0 1em; }
.text h2 { font-weight: 800; font-size: 18px; margin: 2.2em 0 .5em; }
.text p, .text ul { margin: 0 0 1em; }
.text a { color: var(--orange); }
.text .stand { color: var(--grau); font-size: 14px; }
.text .offen { color: var(--orange); }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 900px) {
  .schritt { padding-bottom: 18vh; }
  .zeichen { width: 300px; }
  .wortmarke { width: 480px; }
  .ueber { max-width: 40rem; }
  .kanaele__liste { max-width: 720px; grid-template-columns: repeat(2, 1fr); }
  .kanaele__liste li:last-child { grid-column: 1 / -1; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
