/* ============================================================
   Startseite
   ------------------------------------------------------------
   Eigene Datei, damit das Dashboard davon unberührt bleibt.
   Die Farben folgen dem Logo: tiefes Blau mit Cyan-Akzent.
   ============================================================ */

.lp {
  --lp-bg: #070b14;
  --lp-bg-2: #0d1424;
  --lp-card: #111a2e;
  --lp-card-2: #0e1626;
  --lp-line: #1e2b45;
  --lp-line-hell: #2b3c5c;
  --lp-text: #eaf1ff;
  --lp-muted: #8ea0c0;
  --lp-akzent: #2f7bff;
  --lp-akzent-2: #35d6ff;
  --lp-gruen: #34d399;
  --lp-radius: 16px;

  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
.lp p { margin: 0; }
.lp a { color: inherit; text-decoration: none; }
.lp code, .lp .mono { font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace; }

.lp-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Für Screenreader, sichtbar bei Tastaturfokus */
.lp-skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--lp-akzent); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.lp-skip:focus { left: 20px; }

/* ---------------------------- Kopfzeile ---------------------------- */

.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.lp-nav.gescrollt {
  border-bottom-color: var(--lp-line);
  background: rgba(7, 11, 20, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* Beim Scrollen rückt die Leiste etwas zusammen – wirkt aufgeräumter,
   sobald der Inhalt die Aufmerksamkeit hat. */
.lp-nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px; transition: height .25s ease;
}
.lp-nav.gescrollt .lp-nav-inner { height: 62px; }

/* Dünne Linie am unteren Rand: wie weit ist man auf der Seite? */
.lp-fortschritt {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--lp-akzent), var(--lp-akzent-2));
  box-shadow: 0 0 12px rgba(53, 214, 255, .55);
  transition: width .1s linear;
}

/* ---- Marke ---- */

.lp-marke { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.lp-marke-bild {
  position: relative; width: 38px; height: 38px; flex: 0 0 auto;
  transition: transform .25s ease;
}
.lp-marke:hover .lp-marke-bild { transform: rotate(-6deg) scale(1.06); }
.lp-marke-bild::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 214, 255, .35), transparent 68%);
  opacity: 0; transition: opacity .25s;
}
.lp-marke:hover .lp-marke-bild::after { opacity: 1; }
.lp-marke img {
  width: 38px; height: 38px; border-radius: 50%; display: block; position: relative; z-index: 1;
  box-shadow: 0 0 0 1px var(--lp-line);
}
.lp-marke .kuerzel {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lp-akzent), var(--lp-akzent-2));
  color: #08101f; font-weight: 800;
}
.lp-marke img + .kuerzel { display: none; }

.lp-marke-text { display: flex; flex-direction: column; line-height: 1.2; }
.lp-marke-text small {
  font-size: .66rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--lp-muted);
}

/* ---- Links ---- */

.lp-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.lp-links a:not(.lp-btn) {
  position: relative; padding: 8px 13px; border-radius: 9px;
  color: var(--lp-muted); font-size: .93rem; font-weight: 500;
  transition: color .16s;
}
.lp-links a:not(.lp-btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--lp-akzent), var(--lp-akzent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.lp-links a:not(.lp-btn):hover { color: var(--lp-text); }
.lp-links a:not(.lp-btn):hover::after { transform: scaleX(1); }

/* Der Abschnitt, in dem man gerade liest, bleibt markiert. */
.lp-links a.aktiv { color: var(--lp-text); }
.lp-links a.aktiv::after { transform: scaleX(1); }

.lp-links-trenner {
  width: 1px; height: 22px; margin: 0 10px;
  background: var(--lp-line-hell); flex: 0 0 auto;
}

/* ---- Burger: drei Striche, die sich zum X falten ---- */

.lp-burger {
  display: none; margin-left: auto; position: relative;
  background: none; border: 1px solid var(--lp-line);
  width: 42px; height: 42px; border-radius: 11px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.lp-burger:hover { border-color: var(--lp-line-hell); background: rgba(255, 255, 255, .04); }
.lp-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--lp-text); transition: transform .22s ease, opacity .16s;
}
.lp-burger span:nth-child(1) { top: 14px; }
.lp-burger span:nth-child(2) { top: 20px; }
.lp-burger span:nth-child(3) { top: 26px; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------- Schaltflächen ---------------------------- */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .96rem;
  border: 1px solid var(--lp-line-hell); color: var(--lp-text);
  background: rgba(255, 255, 255, .04); cursor: pointer;
  transition: transform .15s, filter .15s, background .15s, border-color .15s;
}
.lp-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--lp-akzent); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-haupt {
  background: linear-gradient(135deg, var(--lp-akzent), var(--lp-akzent-2));
  border-color: transparent; color: #06101f;
  box-shadow: 0 8px 26px rgba(47, 123, 255, .35);
}
.lp-btn-haupt:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--lp-akzent), var(--lp-akzent-2)); }
.lp-btn-klein { padding: 8px 16px; font-size: .9rem; border-radius: 10px; }

/* ---------------------------- Hero ---------------------------- */

.lp-hero { position: relative; padding: 84px 0 72px; }
.lp-hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 700px; z-index: -1;
  background:
    radial-gradient(680px 380px at 50% 0%, rgba(47, 123, 255, .22), transparent 65%),
    radial-gradient(520px 320px at 82% 12%, rgba(53, 214, 255, .14), transparent 60%);
}
.lp-hero-grid { display: grid; gap: 52px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }

.lp-abzeichen {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--lp-line-hell);
  background: rgba(47, 123, 255, .1); color: #9dc4ff; font-size: .84rem; font-weight: 500;
}
.lp-punkt {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lp-gruen);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .2);
}
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: 22px 0 0; }
.lp-verlauf {
  background: linear-gradient(105deg, var(--lp-akzent-2), #7aa8ff 55%, var(--lp-akzent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero-text { color: var(--lp-muted); font-size: 1.12rem; margin-top: 20px; max-width: 54ch; }
.lp-hero-aktionen { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lp-hero-fuss { display: flex; gap: 20px; margin-top: 22px; color: var(--lp-muted); font-size: .87rem; flex-wrap: wrap; }
.lp-hero-fuss span { display: inline-flex; align-items: center; gap: 7px; }
.lp-haken { color: var(--lp-gruen); font-weight: 700; }

/* Terminal-Fenster */
.lp-term {
  border-radius: var(--lp-radius); overflow: hidden; border: 1px solid var(--lp-line);
  background: #070d18; box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.lp-term-kopf {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--lp-card-2); border-bottom: 1px solid var(--lp-line);
}
.lp-ampel { width: 11px; height: 11px; border-radius: 50%; }
.lp-term-titel { margin-left: 8px; color: var(--lp-muted); font-size: .8rem; }
.lp-term-body {
  padding: 18px 20px; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .84rem; line-height: 1.75; min-height: 268px; white-space: pre-wrap; word-break: break-word;
}
.lp-term .prompt { color: var(--lp-akzent-2); }
.lp-term .aus { color: #c6d4ec; }
.lp-term .kommentar { color: #5a6f92; }
.lp-term .gruen { color: var(--lp-gruen); }
.lp-term .grau { color: #64789b; }
.lp-cursor {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom;
  background: var(--lp-akzent-2); animation: lp-blink 1.1s steps(2) infinite;
}
@keyframes lp-blink { 50% { opacity: 0; } }

/* ---------------------------- Kennzahlen ---------------------------- */

.lp-zahlen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: var(--lp-line); border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); overflow: hidden; margin-top: 8px;
}
.lp-zahl { background: var(--lp-card-2); padding: 22px 24px; }
.lp-zahl .wert { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.lp-zahl .wert small { font-size: .95rem; color: var(--lp-muted); font-weight: 500; }
.lp-zahl .bez { color: var(--lp-muted); font-size: .82rem; margin-top: 2px; }

/* ---------------------------- Abschnitte ---------------------------- */

.lp-sek { padding: 92px 0; }
.lp-sek-kopf { max-width: 640px; margin-bottom: 46px; }
.lp-kicker {
  color: var(--lp-akzent-2); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
}
.lp-sek-kopf h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 12px 0 14px; }
.lp-sek-kopf p { color: var(--lp-muted); font-size: 1.04rem; }

.lp-karten { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lp-karte {
  background: linear-gradient(180deg, var(--lp-card), var(--lp-card-2));
  border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lp-karte:hover {
  transform: translateY(-3px); border-color: var(--lp-line-hell);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.lp-karte-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47, 123, 255, .13); border: 1px solid rgba(47, 123, 255, .3);
  margin-bottom: 16px;
}
.lp-karte h3 { font-size: 1.06rem; margin-bottom: 8px; }
.lp-karte p { color: var(--lp-muted); font-size: .94rem; }

/* Schritte */
.lp-schritte { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: schritt; }
.lp-schritt { position: relative; padding-top: 52px; }
.lp-schritt::before {
  counter-increment: schritt; content: counter(schritt);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lp-akzent), var(--lp-akzent-2));
  color: #06101f; font-weight: 800;
}
.lp-schritt h3 { font-size: 1.05rem; margin-bottom: 8px; }
.lp-schritt p { color: var(--lp-muted); font-size: .94rem; }

/* Code mit Reitern */
.lp-code { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); overflow: hidden; background: #070d18; }
.lp-reiter { display: flex; gap: 2px; background: var(--lp-card-2); border-bottom: 1px solid var(--lp-line); padding: 6px 6px 0; overflow-x: auto; }
.lp-reiter button {
  padding: 10px 18px; border: none; background: none; color: var(--lp-muted);
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  border-radius: 9px 9px 0 0; white-space: nowrap;
}
.lp-reiter button[aria-selected="true"] { color: var(--lp-text); background: #070d18; }
.lp-code pre {
  margin: 0; padding: 22px; overflow-x: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85rem; line-height: 1.7;
  color: #c6d4ec;
}
.lp-code .k { color: var(--lp-akzent-2); }
.lp-code .s { color: #9ae6a4; }
.lp-code .c { color: #5a6f92; }

/* Vergleich */
.lp-tab-wrap { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); overflow: hidden; overflow-x: auto; }
.lp-tabelle { width: 100%; border-collapse: collapse; min-width: 560px; }
.lp-tabelle th, .lp-tabelle td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--lp-line); }
.lp-tabelle thead th { background: var(--lp-card-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); }
.lp-tabelle tbody tr:last-child td { border-bottom: none; }
.lp-tabelle td:first-child { color: var(--lp-text); font-weight: 500; }
.lp-tabelle td { color: var(--lp-muted); font-size: .93rem; }
.lp-ja { color: var(--lp-gruen); font-weight: 700; }
.lp-nein { color: #6b7a94; }

/* FAQ */
.lp-faq { display: grid; gap: 12px; max-width: 820px; }
.lp-faq details {
  border: 1px solid var(--lp-line); border-radius: 13px; background: var(--lp-card-2);
  transition: border-color .2s;
}
.lp-faq details[open] { border-color: var(--lp-line-hell); }
.lp-faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--lp-akzent-2); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq p { padding: 0 22px 20px; color: var(--lp-muted); font-size: .95rem; }

/* Schlussaufruf */
.lp-cta {
  position: relative; text-align: center; padding: 64px 32px;
  border: 1px solid var(--lp-line-hell); border-radius: 22px;
  background: linear-gradient(160deg, rgba(47, 123, 255, .16), rgba(53, 214, 255, .06) 60%, transparent);
  overflow: hidden;
}
.lp-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.lp-cta p { color: var(--lp-muted); margin: 14px auto 28px; max-width: 52ch; }

/* Fußzeile */
.lp-fuss { border-top: 1px solid var(--lp-line); padding: 46px 0 30px; margin-top: 40px; }
.lp-fuss-grid { display: grid; gap: 34px; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); }
.lp-fuss h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); margin: 0 0 14px; }
.lp-fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-fuss a { color: var(--lp-muted); font-size: .93rem; }
.lp-fuss a:hover { color: var(--lp-text); }
.lp-fuss-unten {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--lp-line);
  color: #5f7290; font-size: .85rem;
}
.lp-fuss-text { color: var(--lp-muted); font-size: .93rem; margin-top: 12px; max-width: 34ch; }

/* Einblenden beim Scrollen.
   Wichtig: Der Effekt ist eine Zugabe, keine Bedingung. Standardmaessig ist
   alles sichtbar; erst wenn JavaScript laeuft UND den Beobachter eingerichtet
   hat, wird versteckt und dann eingeblendet. Sonst waere die halbe Seite leer,
   falls das Skript scheitert oder der Beobachter nie ausloest. */
.lp-auf { transition: opacity .6s ease, transform .6s ease; }
html.js-anim .lp-auf { opacity: 0; transform: translateY(18px); }
html.js-anim .lp-auf.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .lp-auf { opacity: 1; transform: none; transition: none; }
  .lp-cursor { animation: none; }
  .lp-karte:hover { transform: none; }
}

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero { padding: 56px 0 48px; }
  .lp-sek { padding: 64px 0; }
  .lp-links { display: none; }
  .lp-links.offen {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--lp-bg-2); border-bottom: 1px solid var(--lp-line);
    padding: 12px 20px 18px; gap: 2px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    animation: lp-menue-auf .18s ease;
  }
  .lp-links.offen a { padding: 12px 14px; }
  .lp-links.offen a:not(.lp-btn)::after { display: none; }
  .lp-links.offen .lp-btn { margin-top: 6px; }
  .lp-links-trenner { display: none; }
  .lp-burger { display: block; }
  .lp-marke-text small { display: none; }

  @keyframes lp-menue-auf { from { opacity: 0; transform: translateY(-8px); } }
}
