/* Lernpfad / Modulübersicht — mobile-first */

.lp-main {
  width: 100%;
  padding: 24px 16px 80px;
  box-sizing: border-box;
  background: #fafafa;
  min-height: 60vh;
}

.lp-width {
  max-width: 720px;
  margin: 0 auto;
}

.lp-intro h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  margin: 0 0 6px;
  color: #0b1f24;
}

.lp-subtitle {
  color: #5b6b6e;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.4;
}

.lp-login-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eaf6f6;
  border: 1px solid #b9e0e0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #00565a;
}

.lp-login-btn {
  background: #006970;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lp-login-btn:hover { background: #00454a; }

.lp-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.lp-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd;
  color: #2c3a3d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.lp-tab.active { background: #006970; border-color: #006970; color: #fff; }
.lp-tab:hover:not(.active) { background: #f0f0f0; }

/* Reuses .lp-login-banner styling for the "X of 183 completed" summary
   shown to logged-in users at the top of the block path. */

.lp-empty {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #5b6b6e;
  font-size: 14px;
}
.lp-empty a { color: #006970; font-weight: 600; }

/* Path */
.lp-path {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Verbindungslinie hinter den Modul-Knoten */
.lp-path::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: #d8e2e3;
  z-index: 0;
}

.lp-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
}
.lp-step:last-child { padding-bottom: 0; }

.lp-node {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(#006970 calc(var(--pct, 0) * 1%), #e1e8e9 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fafafa;
}

.lp-node-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b1f24;
}

.lp-not-started .lp-node,
.lp-no-data .lp-node {
  background: #e1e8e9;
}
.lp-no-data .lp-node-inner { color: #8a9598; }

.lp-complete .lp-node { background: #1aab6b; }
.lp-complete .lp-node-inner { color: #1aab6b; }

.lp-card {
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.lp-card-title {
  font-size: 16px;
  margin: 0 0 4px;
  color: #0b1f24;
}

.lp-card-meta {
  font-size: 12.5px;
  color: #6b7a7d;
  margin: 0 0 10px;
}

.lp-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-btn {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.lp-btn-primary { background: #006970; color: #fff; }
.lp-btn-primary:hover { background: #00454a; }
.lp-btn-secondary { background: #f0f3f3; color: #2c3a3d; }
.lp-btn-secondary:hover { background: #e2e8e8; }

@media (min-width: 600px) {
  .lp-intro h1 { font-size: 32px; }
  .lp-subtitle { font-size: 15px; }
}

/* ---------- Block path v2 (Block/Tier/Case-Struktur) ---------- */

.lp-locked .lp-node {
  background: #e1e8e9;
  opacity: .7;
}
.lp-locked .lp-node-inner {
  font-size: 18px;
  color: #8a9598;
}
.lp-locked .lp-card {
  opacity: .75;
}

.lp-card-block-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a9598;
  margin: 0 0 2px;
}

.lp-coming-soon {
  font-style: italic;
}

.lp-case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #006970;
  margin: 8px 0 2px;
}
.lp-tier-label:first-child { margin-top: 0; }

.lp-case-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f9f9;
  text-decoration: none;
  transition: background .15s;
}
.lp-case-item a:hover { background: #eef3f3; }

.lp-case-num {
  font-size: 11.5px;
  font-weight: 700;
  color: #006970;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lp-case-title {
  font-size: 13.5px;
  color: #2c3a3d;
  flex: 1 1 auto;
  min-width: 0;
}

.lp-case-done a { background: #e9f7f1; }
.lp-case-check {
  color: #1aab6b;
  font-weight: 700;
  margin-left: auto;
  flex: 0 0 auto;
}

.lp-footer-link {
  text-align: center;
  margin: 28px 0 0;
  font-size: 13.5px;
  color: #5b6b6e;
}
.lp-footer-link a { color: #006970; font-weight: 600; text-decoration: none; }
.lp-footer-link a:hover { text-decoration: underline; }
