/* =========================================================================
   landing.css — Öffentliche Landingpage diacompas.de
   Eigener Namespace (lp-), getrennt von der App-CSS (style.css/fachlehrer.css).
   Designleitidee (ADR-008 / Konzept 2026-06-05): "ruhige Klarheit".
   Eine Akzentfarbe (Blau), viel Weißraum, Kompassnadel-Motiv, JS-frei.
   ========================================================================= */

:root {
  --lp-blau:        #2563eb;
  --lp-blau-dunkel: #1d4ed8;
  --lp-tinte:       #1f2933;
  --lp-grau:        #5b6770;
  --lp-hell:        #f6f8fb;
  --lp-linie:       #e5e8ec;
  --lp-weiss:       #ffffff;
  --lp-gruen:       #1a7f4b;
  --lp-gelb:        #d4a017;
  --lp-rot:         #c0392b;
  --lp-radius:      14px;
  --lp-schatten:    0 2px 14px rgba(20, 35, 70, 0.07);
  --lp-max:         960px;
  --lp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-tinte);
  background: var(--lp-weiss);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.lp-container {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--lp-blau); }

/* ── Skip-Link ───────────────────────────────────────────────────────── */
.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lp-blau);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.lp-skip:focus { left: 0; }

/* ── Header ──────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--lp-linie);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.lp-wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--lp-tinte);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.lp-needle { width: 28px; height: 28px; color: var(--lp-tinte); }
.lp-wortmarke-text { line-height: 1; }

.lp-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.lp-nav > a {
  text-decoration: none;
  color: var(--lp-grau);
  font-size: 0.95rem;
  font-weight: 500;
}
.lp-nav > a:hover { color: var(--lp-tinte); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.lp-btn-primary {
  background: var(--lp-blau);
  color: #fff !important;
}
.lp-btn-primary:hover { background: var(--lp-blau-dunkel); }
.lp-btn-primary:active { transform: translateY(1px); }
.lp-btn-gross { padding: 0.85rem 1.6rem; font-size: 1.05rem; }
.lp-btn-link {
  color: var(--lp-blau);
  padding-left: 0.4rem;
}
.lp-btn-link:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.lp-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.lp-hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.lp-hero-text { flex: 1 1 60%; }
.lp-hero-titel {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--lp-tinte);
}
.lp-hero-claim {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--lp-blau);
  margin: 0 0 1rem;
  line-height: 1.3;
}
.lp-hero-lead {
  font-size: 1.1rem;
  color: var(--lp-grau);
  max-width: 34em;
  margin: 0 0 1.8rem;
}
.lp-hero-lead em { color: var(--lp-tinte); font-style: italic; }
.lp-hero-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.lp-hero-bild {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}
.lp-needle-gross {
  width: 220px;
  height: 220px;
  color: var(--lp-tinte);
  filter: drop-shadow(0 6px 18px rgba(37, 99, 235, 0.18));
}
.lp-hero-mehr { margin: 0; }

/* ── Login-Karte (Hero) ──────────────────────────────────────────────── */
.lp-login-spalte { flex: 0 0 360px; }
.lp-login-karte {
  background: var(--lp-weiss);
  border: 1px solid var(--lp-linie);
  border-radius: var(--lp-radius);
  box-shadow: 0 8px 30px rgba(20, 35, 70, 0.10);
  padding: 1.8rem;
}
.lp-login-kopf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.lp-login-kopf .lp-needle { width: 32px; height: 32px; color: var(--lp-tinte); }
.lp-login-kopf h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }

.lp-login-fehler {
  background: #fdecea;
  border: 1px solid var(--lp-rot);
  color: #8a221a;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.lp-login-form { display: grid; gap: 0.35rem; }
.lp-login-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-grau);
  margin-top: 0.5rem;
}
.lp-login-form input {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--lp-linie);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-tinte);
}
.lp-login-form input:focus {
  outline: none;
  border-color: var(--lp-blau);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.lp-btn-block { display: block; width: 100%; text-align: center; margin-top: 1.1rem; cursor: pointer; border: none; }
.lp-login-hinweis {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--lp-grau);
  line-height: 1.5;
}

/* ── Sektionen ───────────────────────────────────────────────────────── */
.lp-section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.lp-section-grau { background: var(--lp-hell); }
.lp-section-blau { background: #eef3fe; }
.lp-section-titel {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  text-align: center;
}
.lp-prosa h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.lp-prosa p { font-size: 1.1rem; color: var(--lp-tinte); max-width: 42em; }
.lp-prosa { max-width: 720px; }

/* ── So funktioniert es ──────────────────────────────────────────────── */
.lp-schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.lp-schritte li {
  background: var(--lp-weiss);
  border: 1px solid var(--lp-linie);
  border-radius: var(--lp-radius);
  padding: 1.6rem;
  box-shadow: var(--lp-schatten);
}
.lp-schritt-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lp-blau);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.lp-schritte h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.lp-schritte p { margin: 0; color: var(--lp-grau); }

/* ── Rollen-Karten ───────────────────────────────────────────────────── */
.lp-karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.lp-karte {
  background: var(--lp-weiss);
  border: 1px solid var(--lp-linie);
  border-radius: var(--lp-radius);
  padding: 1.6rem;
  box-shadow: var(--lp-schatten);
}
.lp-karte h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--lp-blau); }
.lp-karte p { margin: 0; color: var(--lp-grau); }

/* ── Vertrauen ───────────────────────────────────────────────────────── */
.lp-vertrauen {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 0.9rem;
}
.lp-vertrauen li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 1.05rem;
}
.lp-vertrauen li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lp-gruen);
  font-weight: 800;
}

/* ── Pilot / Kontakt ─────────────────────────────────────────────────── */
.lp-kontakt { font-weight: 500; }

/* ── Rechtstexte ─────────────────────────────────────────────────────── */
.lp-rechtstext h1 { font-size: 1.9rem; margin: 0 0 1.2rem; }
.lp-rechtstext h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.lp-rechtstext p { color: var(--lp-tinte); }
.lp-hinweis {
  background: #fff7e6;
  border: 1px solid var(--lp-gelb);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: #8a6d1a;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.lp-footer {
  border-top: 1px solid var(--lp-linie);
  background: var(--lp-hell);
  padding: 2rem 0;
  margin-top: 1rem;
}
.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--lp-grau);
  font-size: 0.9rem;
}
.lp-footer-marke { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--lp-tinte); }
.lp-footer-nav { display: flex; gap: 1.2rem; }
.lp-footer-nav a { color: var(--lp-grau); text-decoration: none; }
.lp-footer-nav a:hover { color: var(--lp-tinte); text-decoration: underline; }

/* Ampel-Signet (Brücke zur App-Diagnosesprache) */
.lp-ampel { display: inline-flex; gap: 3px; }
.lp-ampel i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lp-ampel i:nth-child(1) { background: var(--lp-gruen); }
.lp-ampel i:nth-child(2) { background: var(--lp-gelb); }
.lp-ampel i:nth-child(3) { background: var(--lp-rot); }

/* ── Lade-Animation (dezent, JS-frei) ────────────────────────────────── */
.lp-hero, .lp-section { animation: lp-fade 0.5s ease both; }
@keyframes lp-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .lp-hero-inner { flex-direction: column-reverse; text-align: center; gap: 1.5rem; }
  .lp-hero-lead { margin-left: auto; margin-right: auto; }
  .lp-hero-cta { justify-content: center; }
  .lp-needle-gross { width: 150px; height: 150px; }
  .lp-login-spalte { flex-basis: auto; width: 100%; }
  .lp-login-form label { text-align: left; }
  .lp-schritte, .lp-karten { grid-template-columns: 1fr; }
  .lp-nav { gap: 0.9rem; }
  .lp-nav > a:not(.lp-btn) { display: none; }   /* Mobil: nur "Anmelden" sichtbar */
}

/* ── Reduced Motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero, .lp-section { animation: none; }
  .lp-btn { transition: none; }
}
