/* MeteorAI — brand: purple #600099 -> blue #0059AC, Roboto (headings) / Inter (body) */

/* Fonts self-hosted (variable fonts, latin subset) — no Google Fonts CDN,
   see LG München I 3 O 17493/20 (remote loading = GDPR risk) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/roboto-latin.woff2') format('woff2');
}

:root {
  --brand-purple: #600099;
  --brand-blue: #0059AC;
  --brand-gradient: linear-gradient(135deg, #600099 11.86%, #0059AC 88.14%);
  --text-dark: #1A1A2E;
  --text-muted: #5C5C70;
  --bg-light: #FAFAFC;
  --border: #E2E2EA;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--brand-blue); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-header { height: 28px; width: 28px; }

.logo-wordmark {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.55), 0 6px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  background-image:
    linear-gradient(100deg, rgba(10, 4, 36, 0.78) 0%, rgba(10, 4, 36, 0.5) 38%, rgba(10, 4, 36, 0.12) 68%),
    url('../assets/hero-bg-4.webp');
  background-size: cover;
  background-position: 55% 85%;
  color: #fff;
  padding: 96px 0 80px;
}

.hero .container { position: relative; z-index: 1; max-width: 1180px; text-align: center; }
.hero .subhead { max-width: 960px; margin-left: auto; margin-right: auto; }

/* Shooting star — independent of cursor, loops on its own. */
.shooting-star {
  position: absolute;
  top: 14%;
  left: 8%;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  animation: shooting-star 9s linear infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
  /* Pivot at the dot end (right center), not the tail's own midpoint —
     otherwise rotate() swings the near end away from the dot instead of
     around it, leaving a visible gap/offset. */
  transform-origin: right center;
  /* 30deg matches the 240px/140px travel vector in @keyframes shooting-star below */
  transform: translateY(-50%) rotate(30deg);
}

.shooting-star.star-2 {
  top: 42%;
  left: 58%;
  animation-delay: 5s;
  animation-duration: 13s;
}

@keyframes shooting-star {
  0%   { opacity: 0; transform: translate(0, 0); }
  2%   { opacity: 1; }
  14%  { opacity: 0; transform: translate(240px, 140px); }
  100% { opacity: 0; transform: translate(240px, 140px); }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
}

.hero-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
}

.hero-logo-icon { height: 130px; width: 130px; }

.hero-logo-wordmark {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 7px;
  font-size: 2.2rem;
  color: #fff;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 2.6rem;
  color: #fff;
}

.hero .subhead {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 32px;
}

.hero .trust-line {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Sections */
section { padding: 72px 0; }

section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-title-rule {
  width: 64px;
  height: 3px;
  background: var(--brand-gradient);
  margin: 0 auto 40px;
  border-radius: 2px;
}

.section-intro {
  margin: 0 auto 16px;
  color: var(--text-dark);
  text-align: center;
}

.section-intro:last-of-type { margin-bottom: 0; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card h3 { font-size: 1.15rem; }

.card .muted { color: var(--text-muted); font-size: 0.95rem; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step { text-align: center; }

.step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

.steps-4 { grid-template-columns: repeat(4, 1fr); }

.step-optional { opacity: 0.85; }

.step-optional .step-number {
  background: none;
  border: 2px solid var(--border);
  color: var(--text-muted);
}

.optional-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Warum MeteorAI — hook + gradient-border cards */
.warum-intro {
  margin: 0 auto 40px;
  text-align: center;
}

.warum-hook {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.warum-pivot {
  font-weight: 600;
  color: var(--text-dark);
}

.warum-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.warum-card {
  padding: 24px 28px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--brand-gradient) border-box;
}

.warum-card h3 { margin-bottom: 10px; }

.founder-card {
  display: flex;
  align-items: center;
  gap: 28px;
}

.founder-photo-wrap {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: contain;
}

.founder-links {
  display: flex;
  gap: 10px;
}

.founder-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.founder-links svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.founder-links a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Für wen — Branchen-Pills */
.branchen-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
}

.branche {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
}

/* Beispielrechnung (So arbeiten wir) */
.beispiel-card {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-light), var(--bg-light)) padding-box, var(--brand-gradient) border-box;
  text-align: center;
}

.beispiel-card h3 { margin-bottom: 16px; }

.beispiel-note { font-size: 0.85rem; margin-bottom: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* Contact / CTA repeat block */
.cta-block {
  text-align: center;
  background: var(--brand-gradient);
  border-radius: 16px;
  padding: 56px 32px;
  color: #fff;
}

.cta-block h2 { color: #fff; }
.cta-block p { opacity: 0.9; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 24px auto 0;
}

.contact-form .form-row { display: flex; gap: 12px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
}

.contact-form .botcheck { position: absolute; left: -9999px; }

.contact-form .btn { border: none; cursor: pointer; }

.form-status { font-size: 0.9rem; min-height: 1.2em; margin: 4px 0 0; }

.form-fallback { margin-top: 16px; font-size: 0.85rem; opacity: 0.85; }

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: var(--text-muted); margin-left: 16px; }

/* Placeholder marker — visible in dev, easy to grep, strip before go-live if desired */
.placeholder {
  outline: 2px dashed #C41E3A;
  outline-offset: 4px;
  position: relative;
}

.placeholder::after {
  content: "PLACEHOLDER";
  position: absolute;
  top: -10px;
  left: 8px;
  background: #C41E3A;
  color: #fff;
  font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* Mobile */
@media (max-width: 720px) {
  nav ul { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-logo-link { margin-bottom: 40px; }
  .hero-logo-icon { height: 68px; width: 68px; }
  .hero-logo-wordmark { font-size: 1.15rem; letter-spacing: 2.5px; }
  .hero { background-position: 78% 90%; }
  .grid-3, .steps, .steps-4 { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; text-align: center; }
  .contact-form .form-row { flex-direction: column; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
