/* ============================================================
   Quark – Produktwebsite
   Palette aus dem App-Icon: tiefes Navy, Wellen-Blau/Cyan,
   Violett und goldgelber Akzent.
   ============================================================ */

:root {
  --bg:        #080b1f;
  --bg-2:      #0d1130;
  --surface:   rgba(255,255,255,0.045);
  --surface-2: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.09);
  --text:      #eef1ff;
  --muted:     #a3a9c9;
  --gold:      #ffc24b;
  --cyan:      #5bc8ff;
  --blue:      #6b7be8;
  --violet:    #9a86e6;
  --radius:    22px;
  --maxw:      1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
          "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255,194,75,0.10);
  border: 1px solid rgba(255,194,75,0.22);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.grad {
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #07112b;
  background: linear-gradient(180deg, #7fd2ff, var(--cyan));
  box-shadow: 0 10px 30px rgba(91,200,255,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(91,200,255,0.42); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn-lg { font-size: 1.08rem; padding: 1em 1.9em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 5vw, 2.5rem);
  background: rgba(8,11,31,0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 0.55em 1.2em; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(107,123,232,0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(154,134,230,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,194,75,0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }
.hero-meta { display: flex; gap: 2.4rem; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.hero-phone { display: flex; justify-content: center; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-phone { margin-top: 1rem; }
}

/* ---------- Phone Mockup ---------- */
.phone {
  position: relative;
  width: 270px;
  max-width: 72vw;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2f55, #15183a);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 33px;
}
.phone-dark { background: linear-gradient(160deg, #1a1c34, #0a0b18); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 2.5rem);
}
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 3rem; }
.section-head h2,
.show-text h2,
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.18);
}
.card-ico {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(107,123,232,0.25), rgba(91,200,255,0.12));
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Showcase Rows ---------- */
.showcase { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.show-row.reverse .show-text { order: 2; }
.show-text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.4rem; }
.show-phones { display: flex; justify-content: center; gap: 1rem; }
.tilt-l { transform: rotate(-4deg) translateY(8px); z-index: 1; }
.tilt-r { transform: rotate(4deg) translateY(-8px) translateX(-28px); }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307112b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(180deg, #7fd2ff, var(--cyan));
}

@media (max-width: 820px) {
  .show-row, .show-row.reverse { grid-template-columns: 1fr; text-align: center; }
  .show-row.reverse .show-text { order: 0; }
  .ticks { display: inline-flex; text-align: left; }
  .show-text { display: flex; flex-direction: column; align-items: center; }
  .tilt-r { translate: 18px 0; }
}

/* ---------- Feed Section ---------- */
.feed-sec { position: relative; }
.feed-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 30% 50%, rgba(255,194,75,0.10), transparent 70%);
  pointer-events: none;
}
.feed-sec .show-row { position: relative; }

/* ---------- Worlds ---------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.wcard {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.3rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform .2s ease, background .2s ease;
}
.wcard:hover { transform: translateY(-3px); background: var(--surface-2); }
.wcard span { font-size: 1.6rem; }
.wcard b { font-size: 0.98rem; font-weight: 700; margin-top: 0.3rem; }
.wcard i { font-style: normal; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 900px) { .world-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .world-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */
.cta { padding: 0 clamp(1rem, 5vw, 2.5rem) clamp(4rem, 9vw, 7rem); }
.cta-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(107,123,232,0.35), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-icon {
  width: 92px; height: 92px;
  border-radius: 22px;
  margin-bottom: 1.4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0.6rem auto 1.8rem; }
.cta-note { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.foot-brand img { width: 26px; height: 26px; border-radius: 8px; }
.footer p { margin-bottom: 0.7rem; }
.footer small { font-size: 0.82rem; opacity: 0.7; }
.foot-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin: 1.1rem 0 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.foot-legal a:hover { color: var(--text); }

/* ============================================================
   Rechtsseiten (Impressum, Privacy, Terms)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.1rem, 5vw, 2rem) 4rem;
}
.legal-head { margin-bottom: 2.5rem; }
.legal-head .eyebrow { margin-bottom: 1rem; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.4rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}
.legal p, .legal li { color: var(--cloud, #c8cce6); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { margin: 0 0 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; line-height: 1.8; }
.legal .placeholder {
  color: var(--gold);
  background: rgba(255,194,75,0.10);
  border: 1px dashed rgba(255,194,75,0.4);
  border-radius: 6px;
  padding: 0.05em 0.45em;
  font-weight: 600;
  font-size: 0.95em;
}
.legal .note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1.3rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.legal hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--text); }
