:root {
  --bg: #07060a;
  --ink: #f4efe7;
  --muted: #9a948c;
  --gold: #d9b46a;
  --gold-soft: rgba(217, 180, 106, 0.18);
  --line: rgba(244, 239, 231, 0.12);
  --max: 1100px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: auto; } /* Lenis übernimmt das Smooth-Scrolling */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cinematic background ---------- */
#cinematic {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 50;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #fff);
  transition: width 0.1s linear;
}

/* ---------- Layout ---------- */
section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.5rem, 6vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}
.title span {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero .lead { margin-bottom: 2.4rem; }

.cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold-soft);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease, color 0.35s ease;
}
.cta:hover {
  background: var(--gold);
  color: #1a1408;
  transform: translateY(-2px);
}

.scroll-cue {
  margin-top: 3.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-cue span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  animation: cue 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes cue { 0%,100% { transform: scaleX(0.3); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- Teaser ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.teaser-item .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  opacity: 0.6;
}
.teaser-item h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0.6rem 0 0.8rem;
}
.teaser-item p { color: var(--muted); }

/* ---------- Signup ---------- */
.signup-inner { max-width: 640px; }
.signup h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0.4rem 0 1.2rem;
}
.signup .lead { margin-bottom: 2.6rem; }

form { display: flex; flex-direction: column; gap: 1.3rem; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
input, select, textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(217, 180, 106, 0.05);
}
input.invalid, textarea.invalid { border-color: #c8654f; }
textarea { resize: vertical; }
select { appearance: none; cursor: pointer; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex: none; }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

form .cta { margin-top: 0.6rem; border: none; background: var(--gold); color: #1a1408; }
form .cta:hover { background: #ecca84; }
form .cta:disabled { opacity: 0.5; cursor: progress; }

.form-note { font-size: 0.72rem; color: var(--muted); }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #e08a76; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}
footer p:first-child {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
.footer-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--gold); }
.muted { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Leads-Admin (#leads) ---------- */
.leads-admin {
  position: fixed;
  top: 1rem; right: 1rem;
  width: min(380px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: rgba(12, 10, 18, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}
.la-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.la-close { color: var(--muted); text-decoration: none; font-size: 0.8rem; }
.la-close:hover { color: var(--ink); }
.la-list { list-style: none; overflow-y: auto; flex: 1; margin: 0 0 0.8rem; }
.la-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.la-empty { color: var(--muted); }
.la-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 100px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.3rem;
}
.la-actions { display: flex; gap: 0.6rem; }
.la-actions button {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
}
.la-actions button:hover { background: var(--gold); color: #1a1408; }
.la-actions .la-danger { border-color: #c8654f; background: rgba(200, 101, 79, 0.12); }
.la-actions .la-danger:hover { background: #c8654f; color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
