/* Briefaktion, Landingpage im Stil der Wunschzettel-Seite. Schriften lokal, keine externen Quellen. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Handschrift"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); }

:root {
  /* KAMIE-Farben: Electric Tech Blue #0100F4, Deep Tech Purple #691F70, Lilac #8B3AFE */
  --night: #0c081f;
  --night-2: #0a071c;
  --ink: #15112e;
  --muted: #5e5a78;
  --on-dark: #ffffff;
  --on-dark-muted: #b9b4d4;
  --hand: #dcd6ff;
  --lilac-bg: #f3f1fc;
  --line: #e3e0f2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --field: #cdc7ea;
  --blue: #2a18f3;
  --accent: #3b2cf0;
  --grad: linear-gradient(90deg, #2a18f3 0%, #4a21b4 52%, #66237a 100%);
  --radius: 28px;
  --gap: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 860px; }
.hidden { display: none; }

/* Kopfzeile, dunkel und mitlaufend */
.top {
  position: relative; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: auto; height: 42px; }

/* Auftakt: helle Fläche mit kleinen funkelnden Sternen */
.hero {
  position: relative; overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(50% 60% at 88% 18%, rgba(139, 58, 254, 0.13), transparent 70%),
    radial-gradient(40% 50% at 0% 35%, rgba(1, 0, 244, 0.06), transparent 70%),
    #ffffff;
  padding: 72px 0 84px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "text media" "actions media"; column-gap: 56px; row-gap: 32px; align-items: end; }
.hero-text { grid-area: text; }
.hero-media { grid-area: media; align-self: center; }
.hero-actions { grid-area: actions; align-self: start; }
h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(42, 24, 243, 0.85); transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #8b3afe; opacity: 0.25; animation: twinkle 4s ease-in-out infinite; }
.stars i:nth-child(3n) { width: 4px; height: 4px; background: #2a18f3; box-shadow: 0 0 8px rgba(42, 24, 243, 0.45); }
.stars i:nth-child(1)  { top: 8%;  left: 6%;  animation-delay: 0s; }
.stars i:nth-child(2)  { top: 14%; left: 22%; animation-delay: 1.2s; }
.stars i:nth-child(3)  { top: 6%;  left: 41%; animation-delay: 2.4s; }
.stars i:nth-child(4)  { top: 18%; left: 58%; animation-delay: 0.6s; }
.stars i:nth-child(5)  { top: 9%;  left: 73%; animation-delay: 3.1s; }
.stars i:nth-child(6)  { top: 4%;  left: 89%; animation-delay: 1.8s; }
.stars i:nth-child(7)  { top: 27%; left: 95%; animation-delay: 2.7s; }
.stars i:nth-child(8)  { top: 31%; left: 3%;  animation-delay: 0.9s; }
.stars i:nth-child(9)  { top: 38%; left: 47%; animation-delay: 3.6s; }
.stars i:nth-child(10) { top: 44%; left: 15%; animation-delay: 1.5s; }
.stars i:nth-child(11) { top: 52%; left: 97%; animation-delay: 0.3s; }
.stars i:nth-child(12) { top: 61%; left: 8%;  animation-delay: 2.1s; }
.stars i:nth-child(13) { top: 67%; left: 36%; animation-delay: 3.3s; }
.stars i:nth-child(14) { top: 73%; left: 52%; animation-delay: 1.1s; }
.stars i:nth-child(15) { top: 79%; left: 92%; animation-delay: 2.9s; }
.stars i:nth-child(16) { top: 86%; left: 18%; animation-delay: 0.7s; }
.stars i:nth-child(17) { top: 91%; left: 44%; animation-delay: 1.9s; }
.stars i:nth-child(18) { top: 94%; left: 71%; animation-delay: 3.8s; }
.stars i:nth-child(19) { top: 22%; left: 33%; animation-delay: 2.5s; }
.stars i:nth-child(20) { top: 57%; left: 27%; animation-delay: 0.4s; }
.stars i:nth-child(21) { top: 12%; left: 52%; animation-delay: 1.6s; }
.stars i:nth-child(22) { top: 83%; left: 61%; animation-delay: 3s; }
.stars i:nth-child(23) { top: 47%; left: 2%;  animation-delay: 2.2s; }
.stars i:nth-child(24) { top: 3%;  left: 64%; animation-delay: 0.8s; }
@keyframes twinkle { 0%, 100% { opacity: 0.12; transform: scale(0.8); } 50% { opacity: 0.6; transform: scale(1.25); } }

/* Notiz mit Pfeil zum Video */
.hint { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 6px; color: #4a21b4; }
.hint span { font-family: "Handschrift", cursive; font-weight: 500; font-size: 32px; line-height: 1; transform: rotate(-2deg); }
.hint svg { width: 40px; height: 58px; flex: none; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 90% at 70% 20%, #2a1a5e, #0b0820 70%); border: 1px solid rgba(21, 17, 46, 0.08); box-shadow: 0 26px 50px -22px rgba(42, 24, 243, 0.45), 0 0 0 8px rgba(139, 58, 254, 0.07); }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.play-circle { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 16px 40px -10px rgba(42, 24, 243, 0.9); transition: transform 0.2s ease; }
.play-circle svg { width: 26px; height: 26px; margin-left: 4px; color: #fff; }
.play:hover .play-circle, .play:focus-visible .play-circle { transform: scale(1.06); }
.play:focus-visible { outline: 2px solid #fff; outline-offset: -8px; border-radius: 22px; }
.play-label { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; }
.video.is-playing .play { display: none; }
.video-missing { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; margin: 0; padding: 24px; color: #fff; font-size: 15px; text-align: center; }
.video.is-missing .play { display: none; }
.video.is-missing .video-missing { display: flex; }
.caption { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Kacheln mit weißem Spalt */
.tile { margin: var(--gap) var(--gap) 0; border-radius: var(--radius); padding: 88px 0; }
.tile-light { background: var(--lilac-bg); }
.tile-dark { background: var(--night-2); color: var(--on-dark); }
h2 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding-top: 22px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 44px 1fr; gap: 6px; }
.steps .num { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; }
.steps p { margin: 2px 0 0; font-size: 17px; color: var(--ink); }
.part { margin: 64px 0 0; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.part-first { margin-top: 36px; }
.flow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow li { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.flow .badge { margin-bottom: 16px; }
.flow b { display: block; font-size: 17px; font-weight: 700; }
.flow p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Formular auf dunkler Kachel, getönte Blöcke, kräftige Feldränder */
.signup h2 { margin-bottom: 32px; }
.card { background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; }
.block { margin: 0 0 16px; padding: 24px; border: 0; border-radius: 18px; background: var(--lilac-bg); min-width: 0; }
.block legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0; font-size: 19px; font-weight: 700; }
.block legend + * { clear: both; }
.badge { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: #fff; font-size: 13px; font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
label { font-size: 14px; font-weight: 600; }
label i, .consent i { font-style: normal; color: var(--accent); margin-left: 2px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover { border-color: #a9a0dc; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 24, 243, 0.14); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 22px 4px 0; font-size: 13.5px; font-weight: 400; line-height: 1.55; color: #3d3957; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.consent a { color: var(--accent); }
.submit-row { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.submit { flex: none; }
.submit[disabled] { filter: grayscale(0.6); cursor: wait; }
.submit:focus-visible { outline: 2px solid var(--blue); }
.after { margin: 0; font-size: 13.5px; color: var(--muted); }
.status { margin: 14px 0 0; font-size: 15px; }
.status:empty { display: none; }
.status.error { color: #b00020; }
.success { display: none; padding: 40px 24px; text-align: center; }
.success .check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; }
.success .check svg { width: 26px; height: 26px; }
.success h3 { margin: 18px 0 8px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.success p { margin: 0 auto; max-width: 30em; color: var(--muted); }
.success .success-link { margin-top: 28px; white-space: nowrap; padding: 0 22px; }
.signup.is-done form { display: none; }
.signup.is-done .success { display: block; }

/* Fußzeile */
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 30px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "media" "actions"; row-gap: 28px; }
  .tile { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --radius: 22px; --gap: 8px; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top .wrap { height: 60px; }
  .brand img { height: 36px; }
  .hero { padding: 36px 0 44px; }
  h1 { font-size: 28px; }
  .hint span { font-size: 28px; }
  .hint svg { width: 34px; height: 50px; }
  .play-circle { width: 68px; height: 68px; }
  .video { border-radius: 16px; }
  .btn { width: 100%; }
  .tile { padding: 48px 0; }
  .tile-light .wrap, .tile-dark .wrap { padding: 0 20px; }
  .steps, .steps-3 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .part { margin-top: 48px; font-size: 20px; }
  .part-first { margin-top: 28px; }
  .card { padding: 14px; border-radius: 18px; }
  .block { padding: 18px 16px; border-radius: 14px; }
  .grid { grid-template-columns: 1fr; }
  .submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .after { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars i { animation: none; }
  .btn:hover { transform: none; transition: none; }
}
