/* ==========================================================================
   Startseite vor der Anmeldung (Werbung + Einstieg zu Login/Registrierung)
   Eigenes Hell/Dunkel über .lp[data-lp="light|dark"] – unabhängig von der gespeicherten Design-Wahl.
   ========================================================================== */

.lp {
  --lp-bg: #f6f7fb;
  --lp-bg-2: #ffffff;
  --lp-card: #ffffff;
  --lp-border: #e3e7ee;
  --lp-text: #162132;
  --lp-muted: #5b6678;
  --lp-faint: #8a94a6;
  --lp-accent: #b07a0c;
  --lp-accent-soft: #fdf3dc;
  --lp-brand: #162132;
  --lp-btn: #162132;
  --lp-on-btn: #ffffff;
  --lp-shadow: 0 24px 60px rgba(22, 33, 50, 0.16);
  --lp-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  display: none;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
.lp[data-lp="dark"] {
  --lp-bg: #111a28;
  --lp-bg-2: #162132;
  --lp-card: #1d2a3e;
  --lp-border: #2c3c55;
  --lp-text: #eef2f7;
  --lp-muted: #9aa6b8;
  --lp-faint: #6f7d92;
  --lp-accent: #f1b442;
  --lp-accent-soft: rgba(241, 180, 66, 0.12);
  --lp-brand: #eef2f7;
  --lp-btn: #f1b442;
  --lp-on-btn: #162132;
  --lp-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* Seite ohne Anmeldung: kein Rand um den Body, kein App-Footer */
html body.landing-mode { padding: 0; background: var(--lp-page-bg, #f6f7fb); }
html body.landing-mode.lp-dark { --lp-page-bg: #111a28; }
body.landing-mode .lp { display: block; }
body.landing-mode .app-footer { display: none !important; }

.lp a { color: var(--lp-accent); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- Navigation */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lp-brand) !important; font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.lp-logo img { border-radius: 9px; }
.lp-logo span { color: var(--lp-accent); }
.lp-links { display: flex; gap: 22px; margin-left: 12px; }
.lp-links a { color: var(--lp-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.lp-links a:hover { color: var(--lp-text); }
.lp-nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: inherit; transition: transform .15s, background .15s, border-color .15s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--lp-btn); color: var(--lp-on-btn) !important; }
.lp-btn-ghost { background: transparent; color: var(--lp-text) !important; border-color: var(--lp-border); }
.lp-btn-ghost:hover { border-color: var(--lp-faint); }
.lp-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.lp-show-sm { display: none; }

/* Hell/Dunkel-Umschalter für die Beispielbilder */
.lp-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lp-card); border: 1px solid var(--lp-border); }
.lp-seg button {
  border: 0; background: transparent; color: var(--lp-muted); font: 600 13px/1 inherit; font-family: inherit;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.lp-seg button[aria-pressed="true"] { background: var(--lp-btn); color: var(--lp-on-btn); }

/* ---------------------------------------------------------------- Hero */
.lp-hero { padding: 72px 0 40px; text-align: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lp-mono); text-transform: uppercase; letter-spacing: 1.6px; font-size: 11.5px;
  color: var(--lp-accent); background: var(--lp-accent-soft); padding: 6px 12px; border-radius: 999px;
}
.lp-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -1.6px; font-weight: 800;
  margin: 20px auto 18px; max-width: 880px; color: var(--lp-text);
}
.lp-hero h1 em { font-style: normal; color: var(--lp-accent); }
.lp-lead { font-size: clamp(16px, 2vw, 19px); color: var(--lp-muted); max-width: 680px; margin: 0 auto 30px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-note { margin-top: 14px; font-size: 13px; color: var(--lp-faint); }

.lp-stage { position: relative; margin: 56px auto 0; max-width: 1060px; }
.lp-stage-bar { display: flex; justify-content: center; margin-bottom: 18px; }
.lp-frame {
  border-radius: 14px; overflow: hidden; background: var(--lp-card);
  border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow);
}
.lp-frame-top { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--lp-border); background: var(--lp-bg-2); }
.lp-frame-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-border); }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-phone {
  position: absolute; right: -18px; bottom: -40px; width: 22%; min-width: 150px;
  border-radius: 26px; overflow: hidden; border: 6px solid #0b111b; box-shadow: var(--lp-shadow); background: #0b111b;
}
.lp-phone img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- Abschnitte */
.lp-section { padding: 96px 0 0; }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lp-kicker { font-family: var(--lp-mono); text-transform: uppercase; letter-spacing: 1.6px; font-size: 11.5px; color: var(--lp-accent); }
.lp-section h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.9px; line-height: 1.15; margin: 10px 0 12px; color: var(--lp-text); }
.lp-section-head p { color: var(--lp-muted); font-size: 17px; margin: 0; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feature { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 14px; padding: 22px; }
.lp-feature .lp-ico { font-size: 26px; line-height: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--lp-accent-soft); margin-bottom: 14px; }
.lp-feature h3 { font-size: 17px; margin: 0 0 6px; color: var(--lp-text); }
.lp-feature p { font-size: 14.5px; color: var(--lp-muted); margin: 0; }
.lp-feature-wide { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; border-color: var(--lp-accent); background: linear-gradient(135deg, var(--lp-accent-soft), var(--lp-card) 60%); }
.lp-feature-wide .lp-ico { flex-shrink: 0; margin-bottom: 0; }
.lp-feature-wide p { max-width: 760px; }
.lp-feature sup { font-size: 0.6em; color: var(--lp-accent); margin-left: 2px; }
.lp-footnote { text-align: center; margin-top: 16px; }

/* Erinnerungen: Bild und Text nebeneinander */
.lp-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; margin-bottom: 40px; }
.lp-split-rev .lp-frame { order: 2; }
.lp-split-text .lp-ico { font-size: 26px; line-height: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--lp-accent-soft); margin-bottom: 14px; }
.lp-split-text h3 { font-size: 22px; letter-spacing: -0.4px; margin: 0 0 8px; color: var(--lp-text); }
.lp-split-text p { color: var(--lp-muted); margin: 0 0 12px; font-size: 15.5px; }
.lp-split-text ul { margin: 0; padding-left: 0; list-style: none; }
.lp-split-text li { position: relative; padding-left: 24px; margin: 6px 0; font-size: 14.5px; color: var(--lp-text); }
.lp-split-text li::before { content: '✓'; position: absolute; left: 0; color: var(--lp-accent); font-weight: 800; }

/* Galerie mit Reitern */
.lp-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.lp-tabs button {
  border: 1px solid var(--lp-border); background: var(--lp-card); color: var(--lp-muted);
  font: 600 14px/1 inherit; font-family: inherit; padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.lp-tabs button[aria-selected="true"] { background: var(--lp-btn); border-color: var(--lp-btn); color: var(--lp-on-btn); }
.lp-gallery-caption { text-align: center; color: var(--lp-muted); margin: 18px auto 0; max-width: 680px; font-size: 15px; min-height: 3em; }
.lp-gallery .lp-frame { max-width: 1000px; margin: 0 auto; }
.lp-gallery-bar { display: flex; justify-content: center; margin-bottom: 16px; }

/* Hell & Dunkel nebeneinander */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-compare figure { margin: 0; }
.lp-compare figcaption { margin-top: 10px; font-size: 14px; color: var(--lp-muted); text-align: center; }
.lp-compare figcaption b { color: var(--lp-text); }
.lp-compare-phones { display: flex; gap: 20px; justify-content: center; margin-top: 28px; }
.lp-compare-phones .lp-phone { position: static; width: 200px; min-width: 0; }

/* Schritte */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: lp-step; }
.lp-step { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 14px; padding: 24px; position: relative; }
.lp-step::before {
  counter-increment: lp-step; content: counter(lp-step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lp-btn); color: var(--lp-on-btn); font-weight: 800; margin-bottom: 14px;
}
.lp-step h3 { margin: 0 0 6px; font-size: 17px; color: var(--lp-text); }
.lp-step p { margin: 0; font-size: 14.5px; color: var(--lp-muted); }

.lp-band {
  margin: 96px 0 0; padding: 56px 24px; text-align: center; border-radius: 20px;
  background: linear-gradient(135deg, #162132 0%, #24344b 100%); color: #eef2f7;
}
.lp-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.6px; }
.lp-band p { color: #9aa6b8; margin: 0 auto 24px; max-width: 560px; }
.lp-band .lp-btn-primary { background: #f1b442; color: #162132 !important; }
.lp-band .lp-btn-ghost { color: #eef2f7 !important; border-color: #3a4c68; }

.lp-footer { padding: 40px 0 48px; color: var(--lp-faint); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.lp-footer a { color: var(--lp-muted); text-decoration: none; }

/* Login/Registrierung über der Startseite: schließen per × */
.auth-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: #8a94a6; font-size: 22px; line-height: 1; cursor: pointer;
}
.auth-close:hover { background: rgba(127, 127, 127, 0.15); }
#loginModal .modal-content, #registerModal .modal-content { position: relative; }

/* ---------------------------------------------------------------- Handy */
@media (max-width: 900px) {
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-links { display: none; }
  .lp-phone { right: 8px; bottom: -28px; width: 26%; min-width: 0; border-width: 4px; border-radius: 18px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav .lp-wrap { gap: 10px; }
  .lp-nav-actions .lp-btn { padding: 8px 12px; font-size: 13px; }
  .lp-nav-actions .lp-hide-sm { display: none; }
  .lp-nav-actions .lp-show-sm { display: inline; }
  .lp-logo { font-size: 18px; }
  .lp-hero { padding: 44px 0 24px; }
  .lp-features, .lp-steps, .lp-compare, .lp-split { grid-template-columns: 1fr; }
  .lp-split { gap: 18px; }
  .lp-split-rev .lp-frame { order: 0; }
  .lp-section { padding-top: 72px; }
  .lp-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .lp-tabs button { flex-shrink: 0; }
  .lp-compare-phones .lp-phone { width: 44%; }
  .lp-band { margin-top: 72px; padding: 40px 20px; border-radius: 16px; }
}
