/* ============================================================
   STRINGS — Von der Nacht ins Licht
   Display: Unbounded · Body: Outfit
   Der Himmel (#sky) wandert beim Scrollen von Nacht zu Tag,
   die Sonne (#sun) steigt auf, die Sterne (#stars) verfliegen.
   ============================================================ */

:root {
  /* Nacht-Theme (Startzustand) */
  --fg: #eef1f8;
  --muted: #a7aec2;
  --line: rgba(210, 226, 255, 0.16);
  --accent: #ffb26b;          /* Morgenlicht-Bernstein */
  --star: #cfe2ff;            /* Sternenlicht */

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;

  --container: 1140px;
  --pad: clamp(20px, 4vw, 48px);
  --theme-ease: 0.6s ease;
}

/* Tag-Theme — wird per JS gesetzt, sobald der Himmel hell genug ist */
body.day {
  --fg: #2b2140;
  --muted: #6f6480;
  --line: rgba(43, 33, 64, 0.16);
  --accent: #d95f18;
  --star: #d95f18;
}

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

html { scroll-behavior: smooth; }

body {
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color var(--theme-ease);
  background: #05070f; /* Fallback, echte Farbe malt #sky */
}

::selection { background: var(--accent); color: #0b0d18; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Himmel, Sonne, Sterne ---------- */
#sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: #05070f; /* wird per JS interpoliert */
}
#sun {
  position: fixed;
  left: 50%;
  top: 100%;
  z-index: -2;
  width: 160vmax;
  height: 160vmax;
  transform: translate(-50%, calc(var(--sun-rise, 0) * -1%));
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--sun-alpha, 0);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 244, 224, 0.95) 0%,
    rgba(255, 204, 138, 0.75) 18%,
    rgba(255, 156, 92, 0.45) 34%,
    rgba(255, 120, 84, 0.18) 50%,
    transparent 68%);
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: linear-gradient(rgba(8, 10, 22, 0.35), transparent);
}
body.day .site-header::before {
  background: linear-gradient(rgba(251, 248, 240, 0.5), transparent);
}
.site-header.scrolled::before { opacity: 1; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.22em;
}
.wordmark-star, .footer-mark i {
  font-style: normal;
  color: var(--accent);
  margin-left: 6px;
  transition: color var(--theme-ease);
}

.site-nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.site-nav a {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn:hover { transform: translateY(-2px); }

.btn-nav { padding: 10px 18px; font-size: 11px; }
.btn-nav:hover, .btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: var(--star);
  border-color: transparent;
  color: #0b0d1c;
  box-shadow: 0 0 32px rgba(207, 226, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 52px rgba(207, 226, 255, 0.45); }
body.day .btn-primary { color: #fff; box-shadow: none; }

.btn-sun {
  background: linear-gradient(135deg, #ff9e4f, #e8590c);
  border-color: transparent;
  color: #fff;
  padding: 20px 40px;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(232, 89, 12, 0.3);
}
.btn-sun:hover { box-shadow: 0 18px 56px rgba(232, 89, 12, 0.45); }

/* ---------- Gemeinsames ---------- */
.stage {
  position: relative;
  padding: clamp(100px, 16vh, 180px) 0;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  transition: color var(--theme-ease);
}
.stage-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  max-width: 860px;
  margin-bottom: clamp(44px, 7vw, 80px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6.6vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: line-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.24s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.42s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-title .accent {
  background: linear-gradient(100deg, #ffd9a8, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 480px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}
.hero-cta {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-hint {
  position: absolute;
  bottom: 30px;
  left: var(--pad);
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 1s ease 2s forwards;
}
@keyframes fade-in { to { opacity: 0.85; } }

/* ---------- Stats (Konstellation) ---------- */
.constellation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.cstat { position: relative; padding-top: 26px; }
.cstat::before {
  content: "✶";
  position: absolute;
  top: 0; left: 0;
  color: var(--accent);
  font-size: 15px;
  transition: color var(--theme-ease);
}
.cstat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.cstat p { color: var(--muted); font-size: 15.5px; }

/* ---------- Wege ans Licht ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.way {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(26px, 3.4vw, 44px);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
body.day .way { background: rgba(255, 255, 255, 0.45); }
.way:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.way-glyph {
  display: block;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 22px;
  transition: color var(--theme-ease);
}
.way h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 21px);
  margin-bottom: 14px;
}
.way p { color: var(--muted); font-size: 15.5px; }

/* ---------- Sonnenaufgang ---------- */
.sunrise {
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sunrise-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 1.14;
  color: #fff;
  text-shadow: 0 2px 30px rgba(60, 30, 60, 0.45), 0 1px 3px rgba(40, 20, 40, 0.5);
}
body.day .sunrise-line {
  color: #fff;
  text-shadow: 0 2px 34px rgba(217, 95, 24, 0.55), 0 1px 3px rgba(120, 50, 10, 0.45);
}
.sunrise-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: #fff;
  opacity: 0.92;
  text-shadow: 0 1px 14px rgba(60, 30, 60, 0.5);
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
  max-width: 940px;
}
.step { position: relative; padding-left: 0; }
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: background var(--theme-ease), box-shadow var(--theme-ease);
  flex-shrink: 0;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 20px);
}
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Kontakt ---------- */
.kontakt { padding-bottom: clamp(120px, 18vh, 200px); }
.kontakt-inner { text-align: center; }
.kontakt-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 1.1;
  margin-bottom: 26px;
}
.kontakt-sub {
  max-width: 560px;
  margin: 0 auto 46px;
  color: var(--muted);
}
.kontakt-phone {
  display: inline-block;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.kontakt-phone:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Kontaktformular ---------- */
.kontakt-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--theme-ease);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.25s, background var(--theme-ease), color var(--theme-ease);
}
body.day .field input, body.day .field textarea {
  background: rgba(255, 255, 255, 0.55);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  text-align: center;
}
.form-actions .btn { border: none; cursor: pointer; }
.form-actions .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status {
  font-size: 14px;
  min-height: 1.2em;
  color: var(--muted);
}
.form-status.ok { color: #3fae6a; }
.form-status.err { color: #e2604f; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--pad) calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  display: grid;
  gap: 8px;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--fg);
}
.footer-copy { font-size: 12.5px; opacity: 0.75; }

/* ---------- Scroll-Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.constellation-stats .cstat:nth-child(2) { transition-delay: 0.12s; }
.constellation-stats .cstat:nth-child(3) { transition-delay: 0.24s; }
.ways .way:nth-child(2) { transition-delay: 0.12s; }
.ways .way:nth-child(3) { transition-delay: 0.24s; }
.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }
.steps .step:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .constellation-stats { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; text-align: center; }
  .btn-sun { padding: 18px 26px; font-size: 12.5px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .way:hover { transform: none; }
  .hero-hint { animation: none; opacity: 0.85; }
}
