/* LamaID – Ruhephase (id-sleeping, Port 80)
   Eigene Datei statt <style>-Block in der Seite: Ein eingebetteter Stil
   verlangt style-src 'unsafe-inline' in der CSP. Liegt unter /files/,
   weil NPM /files/ auch in der Ruhephase ausliefert (Port 8081 fällt auf
   web/html/files zurück, web/default.conf). */

:root {
  --accent: #75bde9;
  --bg: #07090f;
  --text: #daedf8;
  --text-dim: #7ba8c0;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow: hidden;
}

/* ── Stars ── */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%       { opacity: var(--max-op, 0.7); }
}

/* ── Moon ── */
.moon {
  position: fixed;
  top: 48px;
  right: 80px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  box-shadow: -18px 4px 0 6px #c8dff0;
  filter: drop-shadow(0 0 18px rgba(117,189,233,0.55));
  animation: moon-pulse 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes moon-pulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(117,189,233,0.45)); }
  50%       { filter: drop-shadow(0 0 32px rgba(117,189,233,0.85)); }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  gap: 1.5rem;
  text-align: center;
}

/* ── Logo ── */
.logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(117,189,233,0.3);
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(117,189,233,0.06);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Lama SVG ── */
.lama-wrap {
  position: relative;
}
.lama-wrap svg {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}
.zzz {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  animation: zzz-float 3s ease-in-out infinite;
}
.zzz-1 { top: 18px; right: -4px;  font-size: 1.1rem; animation-delay: 0s;   opacity: 0.7; }
.zzz-2 { top:  2px; right: 10px;  font-size: 1.5rem; animation-delay: 0.7s; opacity: 0.85; }
.zzz-3 { top: -16px;right: 24px;  font-size: 2rem;   animation-delay: 1.4s; opacity: 1; }
@keyframes zzz-float {
  0%   { transform: translate(0, 0); opacity: 0; }
  20%  { opacity: var(--op, 0.8); }
  80%  { opacity: var(--op, 0.8); }
  100% { transform: translate(6px, -18px); opacity: 0; }
}

/* ── Headline ── */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
}
h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ── Subtext ── */
.subtext {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ── Footer ── */
footer {
  position: fixed;
  /* über .page (z-index 2), sonst verdeckt der Inhalt die Links zu Impressum/Datenschutz/AGB */
  z-index: 3;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(218,237,248,0.3);
  letter-spacing: 0.06em;
}
footer .legal-links { display: block; margin-top: 6px; }
footer .legal-links button {
  background: none; border: none; padding: 0 2px; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit;
  text-decoration: underline; text-underline-offset: 3px; opacity: 0.9;
}
footer .legal-links button:hover { opacity: 1; color: var(--accent); }

@media (max-width: 480px) {
  .moon { top: 24px; right: 24px; width: 52px; height: 52px;
          box-shadow: -13px 3px 0 4px #c8dff0; }
}

/* ── SVG-Figur ─────────────────────────────────────────────── */
.ll { stroke: #75bde9; stroke-linecap: round; stroke-linejoin: round; }
.ll-thin  { stroke-width: 1.4; fill: none; }
.ll-med   { stroke-width: 2;   fill: none; }
.ll-fill  { stroke-width: 1.8; fill: rgba(117,189,233,0.08); }
.ll-fill-dark { stroke-width: 1.8; fill: rgba(7,9,15,0.7); }

/* Breathing body: subtle vertical scale from belly */
.llama-body {
  animation: llamaBreathe 3.8s ease-in-out infinite;
  transform-origin: 188px 180px;
}
@keyframes llamaBreathe {
  0%, 100% { transform: scaleY(1); }
  45%       { transform: scaleY(1.02); }
}

/* Ear twitch */
.llama-ear {
  animation: earTwitch 8s ease-in-out infinite 2s;
  transform-origin: 48px 144px;
}
@keyframes earTwitch {
  0%, 88%, 100% { transform: rotate(0deg); }
  90%            { transform: rotate(-12deg); }
  94%            { transform: rotate(5deg); }
}

/* Tail wag */
.llama-tail {
  animation: tailWag 5s ease-in-out infinite 1s;
  transform-origin: 277px 136px;
}
@keyframes tailWag {
  0%, 70%, 100% { transform: rotate(0deg); }
  78%           { transform: rotate(8deg); }
  86%           { transform: rotate(-4deg); }
}

/* Wool bob */
.llama-wool {
  animation: woolBob 3.8s ease-in-out infinite;
}
@keyframes woolBob {
  0%, 100% { transform: translateY(0); }
  45%       { transform: translateY(-1.5px); }
}

/* ZZZ floating */
.zzz-group text {
  fill: #75bde9;
  font-family: 'Cormorant Garamond', Georgia, serif;
  animation: floatZzz var(--zdur) ease-in-out infinite var(--zdel);
  opacity: 0;
}
@keyframes floatZzz {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.7); }
  15%  { opacity: 0.9; transform: translate(-3px, -6px) scale(1); }
  80%  { opacity: 0.6; transform: translate(-8px, -28px) scale(1.1); }
  100% { opacity: 0;   transform: translate(-10px, -38px) scale(0.8); }
}

/* Zeitversatz der drei Z (statt style-Attributen an den <text>-Elementen) */
.z-takt-1 { --zdur: 3.6s; --zdel: 0s; }
.z-takt-2 { --zdur: 3.6s; --zdel: 0.9s; }
.z-takt-3 { --zdur: 3.6s; --zdel: 1.8s; }
