/* ============================================================
   Q KI Consulting – Landingpage
   Basis, Formular (CTA), Q-Gespräch
   ============================================================ */

:root {
  --bg: #000;
  --fg: #fff;
  --fg-70: rgba(255, 255, 255, .7);
  --fg-50: rgba(255, 255, 255, .5);
  --fg-30: rgba(255, 255, 255, .3);
  --fg-15: rgba(255, 255, 255, .15);
  --fg-08: rgba(255, 255, 255, .08);
  /* Brand-Font hier eintragen (z. B. selbst gehostete Grotesk). Fallback: System-Stack. */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; min-height: 100dvh; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 2.5rem, 40rem); margin-inline: auto; }

/* Q-Bildmarke (Symbol #logo-q) – Größe über width/height */
.q-mark { display: block; fill: currentColor; width: 1em; height: 1em; }

/* Seite bleibt unsichtbar, solange der Film läuft */
.page { opacity: 0; transition: opacity 1.2s var(--ease); }
.page.is-visible { opacity: 1; }
body.film-active { overflow: hidden; }

/* ---------- CTA / Formular ---------- */
.cta { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 4rem 0; }
.cta h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 500;
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem;
}
.lead { color: var(--fg-70); font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.5; margin: 0 0 2.2rem; }
.br-l { display: none; }
@media (min-width: 640px) { .br-l { display: inline; } }

.field { display: block; margin-bottom: .9rem; }
.field-label { display: block; font-size: .8rem; color: var(--fg-70); margin-bottom: .45rem; letter-spacing: .01em; }
input[type=email] {
  width: 100%; background: transparent; color: #fff;
  border: 1px solid var(--fg-30); border-radius: .5rem;
  padding: .9rem 1rem; font: inherit; font-size: 1rem; outline: none;
  transition: border-color .2s;
}
input[type=email]::placeholder { color: var(--fg-30); }
input[type=email]:focus { border-color: var(--fg-70); }
input[type=email][aria-invalid=true] { border-color: #fff; }
.err { font-size: .85rem; color: #fff; margin: -.4rem 0 .9rem; }

.consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .8rem; line-height: 1.45; color: var(--fg-70);
  margin: .4rem 0 1.4rem; cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 1.05rem; height: 1.05rem; margin: .1rem 0 0;
  border: 1px solid var(--fg-50); border-radius: .25rem;
  background: transparent; cursor: pointer; position: relative;
}
.consent input:checked { background: #fff; border-color: #fff; }
.consent input:checked::after {
  content: ""; position: absolute; left: .32rem; top: .1rem;
  width: .28rem; height: .55rem; border: solid #000; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-primary {
  width: 100%; background: #fff; color: #000; border: 0; border-radius: .5rem;
  padding: 1rem; font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { transform: scale(.99); }
.btn-primary[disabled] { opacity: .5; cursor: default; }
.fine { font-size: .72rem; color: var(--fg-50); line-height: 1.5; margin: 1rem 0 0; text-align: center; }
.fine a { color: var(--fg-70); }

.link-btn {
  background: none; border: 0; color: var(--fg-50); font-size: .8rem;
  padding: .5rem 0; margin-top: 2.5rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}
.link-btn:hover { color: #fff; }

/* ---------- Q-Gespräch ---------- */
.q { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 4rem 0; overflow: hidden; }
.q .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38vh; pointer-events: none; opacity: .75; }
@media (max-width: 640px) { .q .waves { height: 24vh; opacity: .5; } }
.q-wrap { position: relative; text-align: center; width: min(100% - 2.5rem, 46rem); }
.q-big { width: 3rem; height: 3rem; margin: 0 auto 1.4rem; }
.q-screen { min-height: 14rem; }
.q-screen.is-leaving > * { animation: qout .35s var(--ease) both; }
.q-screen > * { animation: qin .9s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes qout { from { opacity: 1; } to { opacity: 0; } }

.q-text {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.5; color: var(--fg-70);
  margin: 0 auto 2rem; max-width: 34rem; font-weight: 400;
}
.q-text.strong { color: #fff; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.q-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 auto; max-width: 40rem; list-style: none; padding: 0; }
.q-opt {
  width: 100%; background: transparent; border: 1px solid var(--fg-30); border-radius: .5rem;
  padding: .95rem .8rem; font-size: .9rem; color: #fff; cursor: pointer; line-height: 1.3;
  transition: border-color .2s, background .2s;
}
.q-opt:hover, .q-opt:focus-visible { border-color: #fff; background: var(--fg-08); outline: none; }
.q-opts .wide { grid-column: 2 / 3; }
.q-opts.two { grid-template-columns: repeat(2, 1fr); max-width: 30rem; }
.q-opts.two .wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .q-opts, .q-opts.two { grid-template-columns: 1fr 1fr; }
  .q-opts .wide, .q-opts.two .wide { grid-column: 1 / -1; }
}
.q-dots { display: inline-flex; gap: .45rem; margin-top: .4rem; }
.q-dots i { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; opacity: .35; animation: qdot 1.2s infinite; }
.q-dots i:nth-child(2) { animation-delay: .2s; }
.q-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes qdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.q-note { font-size: .8rem; color: var(--fg-50); margin: 2.5rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .q-screen > *, .q-dots i, .q-screen.is-leaving > * { animation: none; }
  .page { transition: none; }
}
