/* ==========================================================================
   Landingpage (index.php) — nutzt die Farb-Tokens und Schriften aus style.css.
   Alle Klassen mit Präfix "lp-", damit nichts in die App-Seiten hineinwirkt.
   ========================================================================== */

.lp{--lp-max:1120px; --lp-nav-h:64px; margin-top:-30px; margin-bottom:calc(-80px - env(safe-area-inset-bottom));}
.lp ::selection{background:var(--income-soft); color:var(--ink);}
html:has(.lp){scroll-behavior:smooth; scroll-padding-top:calc(var(--lp-nav-h) + 16px);}
@media (prefers-reduced-motion: reduce){ html:has(.lp){scroll-behavior:auto;} }

/* Hintergrund über die volle Fensterbreite, ohne die Breite zu verändern (kein 100vw →
   kein Versatz durch den Scrollbalken): Schatten nach außen, per clip-path nur seitlich sichtbar. */
.lp-band{--band-bg:transparent; background:var(--band-bg); box-shadow:0 0 0 100vmax var(--band-bg); clip-path:inset(0 -100vmax); padding:88px 0;}
.lp-band--white{--band-bg:var(--surface);}
.lp-band--dark{--band-bg:var(--ink); color:#EDEFE9;}
.lp-band--green{--band-bg:var(--income); color:#fff;}
.lp-inner{max-width:var(--lp-max); margin:0 auto;}

/* Tastatur-Fokus sichtbar machen (style.css blendet Outlines global aus) */
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible{
  outline:2px solid var(--income); outline-offset:3px; border-radius:8px;
}
.lp-band--dark a:focus-visible, .lp-band--green a:focus-visible{outline-color:#fff;}

/* Dezentes Einblenden beim Scrollen (JS setzt .is-visible via IntersectionObserver in
   index.php) — respektiert prefers-reduced-motion, zeigt sonst sofort den Endzustand. */
.lp-reveal{
  opacity:0; transform:translateY(14px);
  transition:opacity .4s cubic-bezier(0.16,1,0.3,1), transform .4s cubic-bezier(0.16,1,0.3,1);
  transition-delay:var(--d, 0ms);
}
.lp-reveal.is-visible{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){ .lp-reveal{opacity:1; transform:none; transition:none;} }

/* Typografie */
.lp h1, .lp h2, .lp h3{color:inherit; font-weight:560; letter-spacing:-0.015em;}
.lp-h2{font-size:38px; line-height:1.12; margin:0 0 14px; max-width:22ch;}
.lp-intro{font-size:17px; line-height:1.6; color:var(--ink-soft); margin:0; max-width:60ch;}
.lp-section-head{margin-bottom:48px;}
.lp-section-head--center{text-align:center;}
.lp-section-head--center .lp-h2, .lp-section-head--center .lp-intro{margin-left:auto; margin-right:auto;}
.lp p{text-wrap:pretty;}
.lp-textlink{color:var(--income); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px;}
.lp-textlink:hover{text-decoration-thickness:2px;}

/* Buttons (Ergänzung zu .btn) */
.lp-btn-lg{padding:14px 24px; font-size:15px; border-radius:12px; min-height:48px; justify-content:center;}
.lp .btn-primary{transition:background .15s ease, transform .1s;}
.lp .btn-primary:hover{background:#185c3d;}
.lp-btn-outline{background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--line);}
.lp-btn-outline:hover{box-shadow:inset 0 0 0 1px var(--ink-faint);}
.lp-btn-light{background:#fff; color:var(--income);}
.lp-btn-light:hover{background:#EEF6F1;}

/* ---------- Navigation ---------- */
.lp-nav{
  position:sticky; top:0; z-index:40; background:var(--bg);
  box-shadow:0 0 0 100vmax var(--bg); clip-path:inset(0 -100vmax -1px);
}
.lp-nav.is-scrolled{box-shadow:0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line);}
.lp-nav-inner{height:var(--lp-nav-h); display:flex; align-items:center; gap:28px;}
.lp-logo{display:block; flex-shrink:0;}
.lp-logo img{display:block; width:156px; height:34px; object-fit:cover;}
.lp-nav-links{display:flex; gap:4px; margin:0; padding:0; list-style:none;}
.lp-nav-links a{display:block; padding:10px 12px; font-size:14px; font-weight:500; color:var(--ink-soft); text-decoration:none; border-radius:8px;}
.lp-nav-links a:hover{color:var(--ink); background:var(--bg-alt);}
.lp-nav-actions{margin-left:auto; display:flex; align-items:center; gap:6px;}
.lp-nav-actions .btn{min-height:44px; padding:10px 16px; font-size:14px;}

/* ---------- Hero ---------- */
.lp-hero{display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; padding:64px 0 96px;}
.lp-hero h1{font-size:54px; line-height:1.06; margin:0 0 20px; letter-spacing:-0.025em; max-width:14ch;}
.lp-hero h1 em{font-style:normal; color:var(--income);}
.lp-lead{font-size:18px; line-height:1.6; color:var(--ink-soft); margin:0 0 32px; max-width:48ch;}
.lp-cta-row{display:flex; gap:12px; flex-wrap:wrap;}
.lp-trust{display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; padding:0; list-style:none;}
.lp-trust li{display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:500; color:var(--ink-soft); background:var(--bg-alt); border-radius:99px; padding:6px 14px 6px 10px;}
.lp-trust svg{width:16px; height:16px; stroke:var(--income); stroke-width:2.4; fill:none; flex-shrink:0;}

/* Produktvorschau (reines HTML, Beispielwerte) */
.lp-preview{
  position:relative; background:var(--surface); border:1px solid var(--line); border-radius:20px;
  box-shadow:0 2px 4px rgba(28,36,32,.04), 0 24px 60px -12px rgba(28,36,32,.18);
  padding:24px; animation:lp-rise .7s cubic-bezier(0.16,1,0.3,1) .1s both;
}
@keyframes lp-rise{from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ .lp-preview{animation:lp-fade .3s ease both;} }
@keyframes lp-fade{from{opacity:0;} to{opacity:1;}}
.lp-preview-tag{position:absolute; top:-11px; right:20px; background:var(--accent-soft); color:#7A5A17; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:99px;}
.lp-preview-head{display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:12.5px; color:var(--ink-faint); margin-bottom:6px;}
.lp-preview-head strong{color:var(--ink); font-weight:600; font-size:13.5px;}
.lp-preview-label{font-size:12.5px; color:var(--ink-soft); margin:14px 0 2px;}
.lp-preview-amount{font-size:38px; font-weight:600; letter-spacing:-0.02em; color:var(--income); line-height:1.1;}
.lp-preview-bars{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0 20px;}
.lp-preview-bar{background:var(--bg); border-radius:12px; padding:10px 12px;}
.lp-preview-bar span{display:block; font-size:12px; color:var(--ink-soft);}
.lp-preview-bar b{font-size:15px; font-weight:600;}
.lp-preview-bar.in b{color:var(--income);}
.lp-preview-bar.out b{color:var(--expense);}
.lp-preview-sub{font-size:12px; font-weight:600; color:var(--ink-soft); margin:0 0 6px; display:flex; justify-content:space-between;}
.lp-preview-list{list-style:none; margin:0 0 18px; padding:0;}
.lp-preview-list li{display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--line); font-size:14px;}
.lp-preview-list .amt{margin-left:auto; font-size:13.5px;}
.lp-check{width:20px; height:20px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--line); flex-shrink:0;}
.lp-check.done{background:var(--income); border-color:var(--income);}
.lp-check svg{width:13px; height:13px; stroke:#fff; stroke-width:3; fill:none;}
.lp-preview-list li.open{color:var(--ink-soft);}
.lp-goal{background:var(--bg); border-radius:12px; padding:12px;}
.lp-goal-row{display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px;}
.lp-goal-track{height:8px; border-radius:99px; background:var(--line); overflow:hidden;}
.lp-goal-fill{height:100%; width:62%; background:var(--accent); border-radius:inherit;}

/* ---------- Schritte ---------- */
.lp-steps{display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin:0; padding:0; list-style:none; counter-reset:lp-step;}
.lp-step{position:relative;}
.lp-step-num{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--income-soft); color:var(--income); font-weight:700; font-size:16px; margin-bottom:18px; position:relative; z-index:1;
}
.lp-step:not(:last-child)::after{content:""; position:absolute; top:22px; left:60px; right:-24px; height:1px; background:var(--line);}
.lp-step h3{font-size:21px; margin:0 0 8px;}
.lp-step p{margin:0; font-size:15px; line-height:1.6; color:var(--ink-soft);}

/* ---------- Funktionen: abwechselnd Text / Bild ---------- */
.lp-feature{display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center;}
.lp-feature + .lp-feature{margin-top:96px;}
.lp-feature:nth-of-type(even) .lp-feature-media{order:-1;}
.lp-feature-media{border-radius:24px; aspect-ratio:5/4; display:flex; align-items:center; justify-content:center; padding:40px;}
.lp-feature-media img{max-width:78%; max-height:100%; width:auto; height:auto; display:block;}
.lp-media--green{background:var(--income-soft);}
.lp-media--sand{background:var(--accent-soft);}
.lp-media--sage{background:var(--bg-alt);}

/* Handgebaute Panels statt Fotos/Icon-Bilder — im selben Stil wie .lp-preview im Hero. */
.lp-mock{width:100%; display:flex; align-items:center; justify-content:center;}
.lp-mock-card{
  width:100%; max-width:300px; background:var(--surface); border-radius:16px; padding:18px;
  box-shadow:0 2px 4px rgba(28,36,32,.04), 0 12px 28px -8px rgba(28,36,32,.12);
}
.lp-mock-card .lp-preview-sub{margin-bottom:8px;}
.lp-mock-card .lp-preview-list{margin-bottom:0;}
.lp-mock-card .lp-goal + .lp-goal{margin-top:16px;}

.lp-persons{width:100%; max-width:300px; display:flex; flex-direction:column; gap:8px;}
.lp-person-chip{
  display:flex; align-items:center; gap:9px; background:var(--surface); border-radius:12px;
  padding:10px 14px; font-size:14px; font-weight:500; color:var(--ink);
  box-shadow:0 1px 2px rgba(28,36,32,.04);
}
.lp-avatar{
  width:28px; height:28px; border-radius:50%; background:var(--income-soft); color:var(--income);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:12.5px;
}
.lp-person-role{margin-left:auto; font-size:12px; color:var(--ink-faint); white-space:nowrap;}
.lp-person-chip--pending{opacity:.6;}
.lp-person-chip--pending .lp-avatar{background:var(--bg-alt); color:var(--ink-faint);}

.lp-feature h3{font-size:30px; line-height:1.15; margin:0 0 14px;}
.lp-feature p{font-size:16px; line-height:1.65; color:var(--ink-soft); margin:0 0 18px; max-width:52ch;}
.lp-checklist{list-style:none; margin:0; padding:0; display:grid; gap:10px;}
.lp-checklist li{display:flex; gap:10px; font-size:15px; line-height:1.5;}
.lp-checklist svg{width:18px; height:18px; stroke:var(--income); stroke-width:2.4; fill:none; flex-shrink:0; margin-top:2px;}

.lp-more{margin-top:96px; padding-top:48px; border-top:1px solid var(--line);}
.lp-more h3{font-size:22px; margin:0 0 28px;}
.lp-more-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px 40px; margin:0; padding:0; list-style:none;}
.lp-more-grid li{display:grid; grid-template-columns:36px 1fr; gap:4px 14px; align-items:start;}
.lp-more-icon{grid-row:span 2; width:36px; height:36px; border-radius:10px; background:var(--bg); display:flex; align-items:center; justify-content:center; color:var(--income);}
.lp-more-icon svg{width:18px; height:18px; stroke:currentColor; stroke-width:2; fill:none;}
.lp-more-grid strong{font-size:15px; font-weight:600;}
.lp-more-grid span{font-size:14px; line-height:1.5; color:var(--ink-soft);}

/* ---------- Für wen ---------- */
.lp-audience{display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin:0; padding:0; list-style:none;}
.lp-audience li{padding-top:18px; border-top:2px solid var(--income);}
.lp-audience strong{display:block; font-family:'Fraunces',Georgia,serif; font-size:21px; font-weight:560; margin-bottom:6px;}
.lp-audience span{font-size:15px; line-height:1.55; color:var(--ink-soft);}

/* ---------- Sicherheit (dunkel) ---------- */
.lp-security{display:grid; grid-template-columns:.9fr 1.1fr; gap:72px; align-items:start;}
.lp-band--dark .lp-intro{color:#B7C1BA;}
.lp-band--dark .lp-textlink{color:#8FD3AE;}
.lp-security-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:32px 36px;}
.lp-security-list li{display:grid; grid-template-columns:40px 1fr; gap:4px 14px;}
.lp-security-icon{grid-row:span 2; width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#8FD3AE;}
.lp-security-icon svg{width:19px; height:19px; stroke:currentColor; stroke-width:2; fill:none;}
.lp-security-list strong{font-size:16px; font-weight:600; color:#fff;}
.lp-security-list span{font-size:14.5px; line-height:1.55; color:#B7C1BA;}
.lp-legal-links{margin:26px 0 0; font-size:14.5px; color:#B7C1BA; line-height:1.7;}

/* ---------- Ratgeber ---------- */
.lp-guide{display:grid; grid-template-columns:1.1fr .9fr; gap:72px; align-items:start;}
.lp-guide p{font-size:16px; line-height:1.7; color:var(--ink-soft); margin:0 0 16px; max-width:62ch;}
.lp-guide h3{font-size:22px; margin:0 0 18px;}
.lp-tips{list-style:none; margin:0; padding:0;}
.lp-tips li{padding:14px 0; border-top:1px solid var(--line); font-size:15px; line-height:1.55; color:var(--ink-soft);}
.lp-tips li:last-child{border-bottom:1px solid var(--line);}
.lp-tips strong{display:block; color:var(--ink); font-weight:600; margin-bottom:2px;}

/* ---------- Budget-Methoden ---------- */
.lp-methods{display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin:0; padding:0; list-style:none;}
.lp-methods li{padding-top:20px; border-top:2px solid var(--accent);}
.lp-methods h3{font-size:22px; line-height:1.2; margin:0 0 10px;}
.lp-methods p{font-size:15px; line-height:1.7; color:var(--ink-soft); margin:0;}

/* ---------- FAQ ---------- */
.lp-faq{display:grid; grid-template-columns:.8fr 1.2fr; gap:72px; align-items:start;}
.lp-faq-list details{border-bottom:1px solid var(--line);}
.lp-faq-list details:first-child{border-top:1px solid var(--line);}
.lp-faq-list summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 2px; font-size:16.5px; font-weight:600; color:var(--ink);
}
.lp-faq-list summary::-webkit-details-marker{display:none;}
.lp-faq-list summary svg{width:20px; height:20px; stroke:var(--ink-soft); stroke-width:2; fill:none; flex-shrink:0; transition:transform .2s ease;}
.lp-faq-list details[open] summary svg{transform:rotate(180deg);}
.lp-faq-list summary:hover{color:var(--income);}
.lp-faq-list details p{margin:-4px 0 20px; font-size:15.5px; line-height:1.65; color:var(--ink-soft); max-width:62ch;}

/* ---------- Abschluss ---------- */
.lp-final{text-align:center;}
.lp-final .lp-h2{margin:0 auto 14px; max-width:20ch;}
.lp-final p{font-size:17px; line-height:1.6; color:#DDEFE5; margin:0 auto 30px; max-width:52ch;}
.lp-final .lp-cta-row{justify-content:center;}
.lp-final .lp-btn-ghost-light{color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.5); background:transparent;}
.lp-final .lp-btn-ghost-light:hover{box-shadow:inset 0 0 0 1px #fff;}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .lp-nav-links{display:none;}
  .lp-hero{grid-template-columns:1fr; gap:48px; padding:40px 0 72px;}
  .lp-hero h1{font-size:44px; max-width:16ch;}
  .lp-feature, .lp-security, .lp-guide, .lp-faq{grid-template-columns:1fr; gap:36px;}
  .lp-feature:nth-of-type(even) .lp-feature-media{order:0;}
  .lp-feature-media{aspect-ratio:auto; min-height:260px;}
  .lp-more-grid{grid-template-columns:1fr 1fr;}
  .lp-audience{grid-template-columns:1fr 1fr;}
  .lp-methods{grid-template-columns:1fr; gap:28px;}
}
@media (max-width: 860px){ .lp{margin-top:-26px; margin-bottom:-70px;} }
@media (max-width: 640px){
  .lp{margin-top:-18px; margin-bottom:calc(-60px - env(safe-area-inset-bottom)); --lp-nav-h:58px;}
  .lp-inner{padding:0 4px;}
  .lp-band{padding:64px 0;}
  .lp-logo img{width:128px; height:28px;}
  .lp-nav-inner{gap:12px;}
  .lp-nav-actions .lp-nav-login{display:none;}
  .lp-nav-actions .btn{padding:10px 14px; font-size:13.5px;}
  .lp-hero{padding:28px 0 56px;}
  .lp-hero h1{font-size:36px;}
  .lp-lead{font-size:16.5px;}
  .lp-cta-row .btn{flex:1 1 100%;}
  .lp-h2{font-size:30px;}
  .lp-section-head{margin-bottom:32px;}
  .lp-steps{grid-template-columns:1fr; gap:28px;}
  .lp-step:not(:last-child)::after{display:none;}
  .lp-feature + .lp-feature{margin-top:64px;}
  .lp-feature h3{font-size:25px;}
  .lp-feature-media{min-height:200px; padding:28px;}
  .lp-more{margin-top:64px;}
  .lp-more-grid, .lp-audience, .lp-security-list{grid-template-columns:1fr;}
  .lp-preview{padding:18px;}
  .lp-preview-amount{font-size:32px;}
}
