/* TODO: Farbwerte, Schriftart und Abstände wurden aus einer visuellen Näherung an
   https://michalowski-consulting.com/ abgeleitet (siehe Briefing, Abschnitt 3).
   Vor Go-Live per Browser-DevTools gegen die Live-Referenzseite verifizieren. */

:root {
  --color-gradient-start: #3B0A5C;
  --color-gradient-end: #5B1E8C;
  --color-accent: #8A2BE2;
  --color-accent-hover: #9B3FE0;
  --color-bg-light: #FFFFFF;
  --color-text-dark: #1A1A2E;
  --color-text-gray: #5F5F6B;
  --color-text-light: #FFFFFF;
  --blob-blue: #DCEBFB;
  --blob-lilac: #EDE3F8;

  --font-main: 'Jost', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-pill: 999px;
  --radius-card: 20px;
  --container-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text-gray);
  background: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; font-size: 1rem; }

a { color: var(--color-accent); text-decoration: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.center { text-align: center; }

.kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 1em;
}

.hero .kicker { color: #D9B8F5; }

.hero h1 { color: var(--color-text-light); }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text-light);
}

.logo span { color: var(--color-accent-hover); }

.main-nav { display: flex; gap: 2rem; }

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-link {
  color: inherit;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-text-light);
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-cta .btn-link { color: rgba(255, 255, 255, 0.85); }
.hero-cta .btn-link:hover { color: #fff; }

.hero-image { position: relative; }

.image-mask {
  border-radius: 24px 24px 24px 90px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--blob-lilac), var(--blob-blue));
}

.image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-mask-alt {
  border-radius: 90px 24px 24px 24px;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.blob-a { width: 380px; height: 380px; background: var(--color-accent); top: -120px; left: -140px; opacity: 0.35; }
.blob-b { width: 300px; height: 300px; background: #C77DFF; bottom: -100px; right: -80px; opacity: 0.3; }
.blob-c { width: 340px; height: 340px; background: var(--blob-blue); top: -80px; right: -120px; }
.blob-d { width: 300px; height: 300px; background: var(--blob-lilac); bottom: -100px; left: -100px; }
.blob-e { width: 320px; height: 320px; background: var(--color-accent); top: -100px; right: 10%; opacity: 0.3; }
.blob-f { width: 260px; height: 260px; background: #C77DFF; bottom: -120px; left: 5%; opacity: 0.25; }

/* Sections */
.section { padding: 90px 0; position: relative; overflow: hidden; }
.section-alt { background: #FAF8FD; }

/* Legal pages (Impressum, Datenschutz) */
.legal-content { max-width: 760px; }
.legal-content h1 { margin-bottom: 1em; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2em; }
.legal-content ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.6em; }

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.split-text h2 { margin-top: 0; }

.lead {
  font-size: 1.1rem;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.lead.emphasis {
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: 0 12px 32px rgba(59, 10, 92, 0.08);
  text-align: left;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blob-lilac);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.step {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: 0 12px 32px rgba(59, 10, 92, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p { font-size: 0.95rem; margin-bottom: 0; }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 8px 24px rgba(59, 10, 92, 0.06);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-accent);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p { margin-top: 12px; margin-bottom: 0; font-size: 0.95rem; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-text-light);
  text-align: center;
}

.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }

.cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.cta-contacts a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

.cta-contacts a:not(.btn):hover { color: #fff; }

/* Footer */
.site-footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
}

.footer-brand span { color: var(--color-accent-hover); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split-layout { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 80px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
