/* ============================================================
   LANDING PAGE — Sektionen unterhalb des Auth-Gates
   ============================================================ */

#auth-gate {
  display: block !important;
  overflow-y: auto;
  background: #0d1117;
}
#auth-gate.hidden { display: none !important; }

/* Particles nur hinter dem Hero, mit weichem Fade nach unten */
#tsparticles-bg {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: auto !important;
  inset: auto !important;
  height: 100vh; min-height: 720px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, rgba(0,0,0,0.7) 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 65%, rgba(0,0,0,0.7) 85%, transparent 100%);
}
/* Übergangs-Glow zwischen Hero und nächster Sektion */
.gate-layout::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -40px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg-base) 80%);
  pointer-events: none; z-index: 2;
}

/* Mini-Header oben */
.lp-mini-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 14px 28px;
  background: rgba(13,17,23,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lp-mini-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text-primary);
}
.lp-mini-brand .logo-text { font-size: 18px; }
.lp-mini-nav {
  display: flex; gap: 22px; justify-content: center;
}
.lp-mini-nav a {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  position: relative; transition: color .15s;
}
.lp-mini-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: center;
  transition: transform .2s;
}
.lp-mini-nav a:hover { color: var(--text-primary); }
.lp-mini-nav a:hover::after { transform: scaleX(1); }
.lp-mini-actions { display: flex; align-items: center; gap: 12px; }
.lp-mini-cta { font-size: 13px; padding: 7px 14px; }

@media (max-width: 860px) {
  .lp-mini-header { grid-template-columns: auto auto; padding: 12px 16px; }
  .lp-mini-nav { display: none; }
}

/* Container */
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.lp-container-narrow { max-width: 760px; }

.lp-section {
  position: relative; z-index: 1;
  padding: 100px 0;
  background: var(--bg-base);
}
.lp-section + .lp-section { border-top: none; }
@media (max-width: 720px) { .lp-section { padding: 64px 0; } }

/* Alternierende Sektion-Hintergründe für Rhythmus */
.lp-features      { background: var(--bg-base); }
.lp-how           { background: linear-gradient(180deg, #0a0d12 0%, #0d1117 100%); position: relative; }
.lp-pricing-teaser{ background: var(--bg-base); }
.lp-quotes        { background: linear-gradient(180deg, #0a0d12 0%, #0d1117 100%); position: relative; }
.lp-faq           { background: var(--bg-base); }
.lp-cta-section   {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #050709 100%);
  border-top: 1px solid rgba(249,115,22,0.18);
}

/* Dekorative Trennlinie zwischen Sektionen — feiner Gradient mit Brand-Akzent */
.lp-section::before {
  content: ''; position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 60%; max-width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.35), transparent);
  pointer-events: none;
}
.lp-section.lp-features::before { display: none; } /* Feature ist erste — der Hero-Fade reicht */

/* Subtile dekorative Glow-Punkte in den dunkleren Sektionen */
.lp-how::after, .lp-quotes::after {
  content: ''; position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.lp-how::after    { top: -200px; right: -200px; }
.lp-quotes::after { bottom: -200px; left: -200px; }
.lp-how .lp-container, .lp-quotes .lp-container { position: relative; z-index: 1; }

.lp-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.lp-h2 {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800; line-height: 1.12;
  color: var(--text-primary); margin: 0 0 16px;
  letter-spacing: -.015em;
}
@media (max-width: 720px) { .lp-h2 { font-size: 30px; } }
.lp-lead {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.65; max-width: 720px;
  margin: 0 0 36px;
}

/* Auth-Gate Layout: Hero zentriert auf gleicher Breite wie die anderen Sektionen */
.gate-layout {
  min-height: auto !important;
  max-width: 1240px !important;        /* leicht breiter als lp-container für die rechte Auth-Box */
  margin: 0 auto !important;
  padding: 24px 28px 80px !important;
  position: relative;
  align-items: stretch;
}
.gate-left {
  padding: 40px 0 0 !important;
  padding-right: 56px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.gate-right {
  padding: 40px 0 0 !important;
  background: rgba(13,17,23,0.55) !important;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  padding: 40px 36px !important;
  align-self: flex-start;
}
.gate-headline { font-size: 56px !important; }
@media (max-width: 720px) {
  .gate-headline { font-size: 38px !important; }
  .gate-layout { padding: 16px 20px 40px !important; }
  .gate-left { padding-right: 0 !important; }
  .gate-right { margin-top: 16px; padding: 28px 22px !important; }
}

/* Glow hinter der Hero-Headline */
.gate-headline {
  position: relative;
}
.gate-headline::before {
  content: ''; position: absolute; left: -8%; top: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(249,115,22,0.18), transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: -1;
}

/* ========== Features ========== */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 18px;
}
@media (max-width: 920px) { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-feature-grid { grid-template-columns: 1fr; } }

.lp-feature-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 26px 30px;
  transition: transform .25s ease, border-color .25s, background .25s, box-shadow .25s;
  animation: lpFade .5s ease backwards;
  overflow: hidden;
}
.lp-feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(249,115,22,0.12), transparent 50%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.lp-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(249,115,22,0.15);
}
.lp-feature-card:hover::before { opacity: 1; }
@keyframes lpFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.lp-feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.lp-feature-card:hover .lp-feature-icon {
  transform: scale(1.06);
  transition: transform .25s;
}
.lp-feature-title {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  margin: 0 0 8px; letter-spacing: -.005em;
}
.lp-feature-text {
  font-size: 14.5px; color: var(--text-secondary);
  line-height: 1.65; margin: 0;
}

/* ========== How it works ========== */
.lp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 18px;
}
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  position: relative;
  padding: 32px 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: transform .2s, border-color .2s;
}
.lp-step:hover { transform: translateY(-4px); border-color: rgba(249,115,22,0.3); }
.lp-step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  color: white; font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(249,115,22,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.lp-step-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; letter-spacing: -.005em; }
.lp-step-text  { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
/* Verbindungslinie zwischen Steps */
.lp-steps { position: relative; }
.lp-steps::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 54px;
  height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.25), rgba(249,115,22,0.25), transparent);
}
@media (max-width: 760px) { .lp-steps::before { display: none; } }

/* ========== Pricing teaser ========== */
.lp-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 22px;
}
@media (max-width: 880px) { .lp-pricing-grid { grid-template-columns: 1fr; } }

.lp-price-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.lp-price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.lp-price-popular {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(249,115,22,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 1px var(--brand-glow), 0 16px 48px rgba(249,115,22,0.18);
}
.lp-price-popular:hover {
  box-shadow: 0 0 0 1px var(--brand), 0 22px 60px rgba(249,115,22,0.3);
}
.lp-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-price-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-primary); }
.lp-price-amount { font-family: var(--font-display); font-size: 40px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.lp-price-period { font-size: 13px; color: var(--text-muted); margin-top: -8px; }
.lp-price-features {
  list-style: none; padding: 0; margin: 14px 0 18px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.lp-price-features li {
  position: relative; padding-left: 22px;
}
.lp-price-features li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5L5 9.5L10 3.5' stroke='%234ADE80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.lp-price-cta { width: 100%; justify-content: center; padding: 11px; }

.lp-pricing-note {
  text-align: center; color: var(--text-muted); font-size: 12px;
  margin-top: 18px;
}

/* ========== Quotes ========== */
.lp-quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 22px;
}
@media (max-width: 880px) { .lp-quote-grid { grid-template-columns: 1fr; } }
.lp-quote {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 30px 26px 26px;
  margin: 0;
  transition: transform .2s, border-color .2s;
}
.lp-quote::before {
  content: '"'; position: absolute; top: 0; left: 18px;
  font-family: var(--font-display);
  font-size: 78px; line-height: 1; font-weight: 900;
  color: rgba(249,115,22,0.35);
}
.lp-quote:hover { transform: translateY(-4px); border-color: rgba(249,115,22,0.3); }
.lp-quote blockquote {
  font-size: 15.5px; line-height: 1.7; color: var(--text-primary);
  margin: 0 0 16px;
  position: relative; z-index: 1;
}
.lp-quote figcaption { font-size: 13px; color: var(--text-muted); }
.lp-quote figcaption strong { color: var(--text-primary); font-weight: 700; }

/* ========== FAQ ========== */
.lp-faq-list { margin-top: 18px; }
.lp-faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.lp-faq-item:hover { border-color: rgba(249,115,22,0.2); }
.lp-faq-item[open] {
  border-color: rgba(249,115,22,0.4);
  background: linear-gradient(180deg, rgba(249,115,22,0.06), rgba(255,255,255,0.015));
}
.lp-faq-item summary {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; list-style: none;
  padding-right: 28px; position: relative;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 22px; line-height: 1;
  color: var(--text-muted); transition: transform .2s, color .2s;
}
.lp-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--brand); }
.lp-faq-item p {
  margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); line-height: 1.65;
  animation: faqOpen .25s ease;
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== Final CTA ========== */
.lp-cta-inner { text-align: center; position: relative; z-index: 1; }
.lp-cta-btn {
  font-size: 16px; padding: 16px 40px; margin-top: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #F97316, #FB923C);
  border: none;
  box-shadow: 0 10px 30px rgba(249,115,22,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform .15s, box-shadow .15s;
}
.lp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(249,115,22,0.6), 0 0 0 1px rgba(255,255,255,0.15);
}

/* ========== Footer ========== */
.lp-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0 20px;
  position: relative; z-index: 1;
}
.lp-footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
.lp-footer-col { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-col a {
  color: var(--text-muted); font-size: 13px;
  text-decoration: none; transition: color .15s;
}
.lp-footer-col a:hover { color: var(--brand); }
.lp-footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-footer-tagline { font-size: 12px; color: var(--text-muted); margin-top: 4px; max-width: 320px; }
.lp-footer-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 6px;
}
.lp-footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 32px; padding: 18px 28px 0;
  max-width: 1180px; margin-left: auto; margin-right: auto;
  font-size: 12px; color: var(--text-muted);
}
@media (max-width: 600px) { .lp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ========== Smooth Scroll für Anchors ========== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ========== Reveal-Animationen für Landing ========== */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.lp-reveal.lp-revealed { opacity: 1; transform: translateY(0); }

/* Hero-Headline: Glow-Pulse */
.gate-headline span {
  position: relative;
}
.gate-headline span::after {
  content: ''; position: absolute; inset: -10px;
  background: radial-gradient(closest-side, rgba(249,115,22,0.25), transparent 70%);
  z-index: -1; filter: blur(20px);
  animation: heroGlow 4s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.4; transform: scale(.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* OAuth-Buttons: Mini-Animation beim Erscheinen */
.btn-oauth { animation: oauthIn .4s ease backwards; }
.btn-oauth:nth-child(1) { animation-delay: .15s; }
.btn-oauth:nth-child(2) { animation-delay: .25s; }
.btn-oauth:nth-child(3) { animation-delay: .35s; }
@keyframes oauthIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   LIGHT THEME — Sektionen müssen helle Backgrounds bekommen
   ============================================================ */
[data-theme="light"] .lp-how {
  background: linear-gradient(180deg, #F4F2EE 0%, #FAF9F7 100%);
}
[data-theme="light"] .lp-quotes {
  background: linear-gradient(180deg, #F4F2EE 0%, #FAF9F7 100%);
}
[data-theme="light"] .lp-cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FAF9F7 0%, #FFF6EC 100%);
}
[data-theme="light"] .lp-feature-card,
[data-theme="light"] .lp-step,
[data-theme="light"] .lp-quote,
[data-theme="light"] .lp-faq-item,
[data-theme="light"] .lp-price-card {
  background: linear-gradient(180deg, #FFFFFF, #FAF9F7);
  border-color: var(--border);
}
[data-theme="light"] .lp-feature-card:hover,
[data-theme="light"] .lp-step:hover,
[data-theme="light"] .lp-quote:hover,
[data-theme="light"] .lp-price-card:hover {
  box-shadow: 0 16px 40px rgba(28,26,24,0.10);
}
[data-theme="light"] .lp-faq-item[open] {
  background: linear-gradient(180deg, #FFF6EC, #FAF9F7);
  border-color: rgba(249,115,22,0.5);
}
[data-theme="light"] .lp-quote::before { color: rgba(249,115,22,0.55); }

[data-theme="light"] #auth-gate { background: var(--bg-base); }
[data-theme="light"] .gate-right {
  background: rgba(255,255,255,0.85) !important;
  border-color: var(--border);
}
[data-theme="light"] .lp-mini-header {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--border-muted);
}
[data-theme="light"] .lp-footer {
  background: var(--bg-elevated);
  border-top-color: var(--border-muted);
}

/* ============================================================
   Mobile Polish
   ============================================================ */
@media (max-width: 720px) {
  .lp-section { padding: 64px 0; }
  .lp-section::before { width: 80%; }
  .lp-feature-card, .lp-step, .lp-quote, .lp-price-card { padding: 22px 20px; }
}

