/* ═══════════════════════════════════════════════════════════════
   landing.css — Baby-Leitfaden: Lavender / Twilight Design System
   "The Ethereal Archive" — same palette as the wizard
   ═══════════════════════════════════════════════════════════════ */
@import url('/assets/fonts/noto-manrope.css');
@import url('/assets/fonts/material-symbols.css');

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

:root {
  /* Lavender / Twilight palette */
  --primary:           #665a6d;
  --primary-dim:       #d1c1d8;
  --primary-fixed:     #eeddf4;
  --primary-container: #9b8da2;

  --surface:           #fcf9f4;
  --surface-lowest:    #ffffff;
  --surface-low:       #f6f3ee;
  --surface-mid:       #f0ede9;
  --surface-high:      #ebe8e3;
  --surface-highest:   #e5e2dd;
  --surface-dim:       #dcdad5;

  --on-surface:        #1c1c19;
  --on-surface-var:    #4a454b;
  --secondary:         #586062;
  --outline:           #7b757c;
  --outline-var:       #ccc4cb;

  --gradient:          linear-gradient(135deg, #665a6d 0%, #9b8da2 100%);
  --shadow:            0 10px 30px rgba(28, 28, 25, 0.06);
  --shadow-lg:         0 20px 60px rgba(28, 28, 25, 0.08);

  --headline:          'Noto Serif', Georgia, serif;
  --body:              'Manrope', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--body);
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.lp-footer { margin-top: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
}
.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ══════════════════════════════════════════════════
   TOP NAV — glassmorphism, 80% opacity + 24px blur
   ══════════════════════════════════════════════════ */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(252, 249, 244, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .lp-nav { padding: 18px 48px; } }

.lp-logo {
  font-family: var(--headline);
  font-style: italic;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-logo b {
  font-style: normal;
}
.lp-logo-img {
  height: 28px;
  width: auto;
}

.lp-nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .lp-nav-links { display: flex; } }

.lp-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(28, 28, 25, 0.45);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-bottom: 2px;
}
.lp-nav-link:hover { color: var(--primary); }
.lp-nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 8px 24px rgba(102, 90, 109, 0.22);
}
.lp-nav-cta:hover { opacity: 0.88; }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.lp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 64px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) { .lp-hero { padding: 100px 48px 64px; } }

/* Decorative background blob */
.lp-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(209, 193, 216, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .lp-hero-inner { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.lp-hero-text { order: 2; }
@media (min-width: 1024px) { .lp-hero-text { order: 1; } }

.lp-hero-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.lp-hero-h1 {
  font-family: var(--headline);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 24px;
}
.lp-hero-h1 em {
  font-style: italic;
  color: var(--primary);
}

.lp-hero-p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--on-surface-var);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.lp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(102, 90, 109, 0.28);
}
.btn-primary:hover { transform: scale(0.97); }
.btn-primary:active { opacity: 0.9; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-highest);
  color: var(--on-surface);
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-high); }

/* Hero image */
.lp-hero-img-wrap { order: 1; position: relative; }
@media (min-width: 1024px) { .lp-hero-img-wrap { order: 2; } }

.lp-hero-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-low);
  aspect-ratio: 4/5;
  max-height: 600px;
}
.lp-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.lp-hero-quote {
  display: none;
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: rgba(252, 249, 244, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 260px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(204, 196, 203, 0.15);
}
@media (min-width: 768px) { .lp-hero-quote { display: block; } }
.lp-hero-quote p {
  font-family: var(--headline);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--on-surface-var);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   BENEFITS — Asymmetric Masonry / "Ethereal Archive"
   ══════════════════════════════════════════════════ */
.lp-benefits {
  padding: 80px 24px;
  background: var(--surface-low);
}
@media (min-width: 768px) { .lp-benefits { padding: 100px 48px; } }

.lp-section-wrap { max-width: 1200px; margin: 0 auto; }

.lp-section-header { margin-bottom: 56px; }
.lp-section-header h2 {
  font-family: var(--headline);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 14px;
}
.lp-section-header p {
  font-size: 16px;
  color: var(--on-surface-var);
  max-width: 560px;
  line-height: 1.75;
}

/* Bento grid */
.lp-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .lp-bento { grid-template-columns: repeat(12, 1fr); }
}

.bento-card {
  background: var(--surface-lowest);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.bento-card:hover { background: var(--surface-highest); }

@media (min-width: 768px) {
  .bento-card-wide   { grid-column: span 7; }
  .bento-card-narrow { grid-column: span 5; }
}

.bento-card-tall { min-height: 340px; justify-content: space-between; }

.bento-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}
.bento-card h3 {
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--on-surface);
}
.bento-card p {
  font-size: 14px;
  color: var(--on-surface-var);
  line-height: 1.75;
  max-width: 380px;
}
.bento-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--on-surface-var);
  line-height: 1.5;
}
.bento-list li .material-symbols-outlined {
  font-size: 17px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.bento-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 24px;
  cursor: pointer;
  transition: gap 0.2s;
  letter-spacing: 0.02em;
}
.bento-card-link:hover { gap: 14px; }

/* Lavender accent card */
.bento-lavender {
  background: var(--primary-fixed);
}
.bento-lavender h3 { color: var(--primary); }
.bento-lavender p  { color: var(--on-surface-var); }
.bento-lavender:hover { background: var(--primary-dim); }

/* Muted card */
.bento-muted { background: var(--surface-mid); }
.bento-muted:hover { background: var(--surface-high); }

.bento-img-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-high);
  margin-bottom: 20px;
}
.bento-img-box img { width: 100%; height: 100%; object-fit: cover; }

.avatar-row { display: flex; margin-top: 20px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--surface-lowest);
  background: var(--surface-mid);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }

.bento-horizontal { flex-direction: row; align-items: center; gap: 24px; }
.bento-img-small {
  width: 110px; height: 110px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-mid);
}
.bento-img-small img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════
   CTA SECTION — Twilight gradient background
   ══════════════════════════════════════════════════ */
.lp-cta {
  padding: 80px 24px;
}
@media (min-width: 768px) { .lp-cta { padding: 100px 48px; } }

.lp-cta-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: var(--gradient);
  border-radius: 20px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .lp-cta-box { padding: 80px 72px; } }

.lp-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.lp-cta-box h2 {
  font-family: var(--headline);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.lp-cta-box p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 16px 36px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(28, 28, 25, 0.15);
}
.btn-cta-white:hover { transform: scale(0.97); }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.lp-footer {
  background: var(--surface-dim);
  padding: 36px 24px 80px;
}
@media (min-width: 768px) { .lp-footer { padding: 36px 48px; } }

.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .lp-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.lp-footer-logo {
  font-family: var(--headline);
  font-style: italic;
  font-size: 17px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-footer-logo b { font-style: normal; }
.lp-footer-logo-img {
  height: 24px;
  width: auto;
}
.lp-footer-links { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
@media (min-width: 768px) { .lp-footer-links { gap: 24px; width: auto; } }
.lp-footer-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  transition: color 0.2s;
}
.lp-footer-link:hover { color: var(--primary); }
.lp-footer-copy {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-var);
}

/* ══════════════════════════════════════════════════
   LEGAL PAGES (agb, datenschutz, impressum)
   ══════════════════════════════════════════════════ */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 96px 20px 80px; }
.legal-wrap h1 { font-family: var(--serif); font-size: 2rem; color: var(--primary); margin: 0 0 6px; }
.legal-wrap .sub { color: #9ca3af; font-size: .875rem; margin: 0 0 36px; }
.legal-card { background: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); line-height: 1.8; }
.legal-card h2 { font-family: var(--serif); font-size: 1.1rem; color: var(--primary); margin: 0 0 12px; }
.legal-card h3 { font-size: .9375rem; font-weight: 600; color: var(--primary); margin: 16px 0 8px; }
.legal-card p { margin: 0 0 12px; color: #374151; font-size: .9375rem; }
.legal-card p:last-child { margin: 0; }
.legal-card a { color: var(--primary); }
.legal-card ul { padding-left: 1.5em; margin: 0 0 12px; color: #374151; font-size: .9375rem; }
.legal-card li { margin-bottom: .4em; }

/* ══════════════════════════════════════════════════
   PREVIEW PAGE OVERRIDES (preview.php benutzt dieses CSS)
   ══════════════════════════════════════════════════ */
.preview-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 249, 244, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  box-shadow: 0 1px 0 rgba(204, 196, 203, 0.25);
}
.preview-nav a.back {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--outline); transition: color .2s;
}
.preview-nav a.back:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════
   SUCCESS PAGE OVERRIDES (success.php benutzt dieses CSS)
   ══════════════════════════════════════════════════ */
.success-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252, 249, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  box-shadow: var(--shadow);
}
.success-header a {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--on-surface-var); transition: color .2s;
}
.success-header a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════
   MOBILE NAV FIX — verhindert Umbruch auf kleinen Screens
   Nav würde sonst 2-zeilig und verdeckt Seitenüberschriften
   ══════════════════════════════════════════════════ */
@media (max-width: 540px) {
  /* Kleinere Nav-Innenabstände, mehr Platz für Inhalte */
  .lp-nav { padding: 12px 16px; }

  /* Logo-Bild ausblenden — Text-Wordmark ist ausreichend */
  .lp-logo-img { display: none; }

  /* CTA-Button kompakter */
  .lp-nav-cta {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
}
