* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  color: #1d2733;
  line-height: 1.5;
}

a { color: #2563eb; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.card h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.sub { color: #5a6b7f; margin-bottom: 1.25rem; font-size: 0.95rem; }

.alert {
  background: #fdecea;
  color: #a82318;
  border: 1px solid #f5c6c2;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

form input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c8d2dd;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

form input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }

button {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #1d4fd7; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #e3e9f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand { font-weight: 700; font-size: 1.1rem; color: #1d2733; text-decoration: none; }

.user-area { display: flex; align-items: center; gap: 0.75rem; }
.user-email { color: #5a6b7f; font-size: 0.9rem; }

.user-area form { margin: 0; }

.btn-ghost {
  width: auto;
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.btn-ghost:hover { background: #eef3fe; }

.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.content h1 { font-size: 1.4rem; margin-bottom: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.grid .card { max-width: none; padding: 1.25rem; }

/* ---- Suche ---- */
.search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.search input { margin-bottom: 0; }
.search button { width: auto; padding: 0.6rem 1.1rem; white-space: nowrap; }
.search-info { color: #5a6b7f; margin-bottom: 1rem; }

/* ---- Fortschritt ---- */
.progress-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #5a6b7f;
  margin-bottom: 0.5rem;
}
.progress-track {
  height: 8px;
  background: #e3e9f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ---- Modul + Lektionsliste ---- */
.modul { margin-bottom: 1.5rem; }
.modul-titel { font-size: 1.15rem; margin-bottom: 0.6rem; }
.lektion-liste { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.lektion-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(20, 35, 60, 0.06);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: #1d2733;
}
.lektion-row:hover { box-shadow: 0 2px 12px rgba(20, 35, 60, 0.12); }
.lektion-status {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c8d2dd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}
.lektion-status.is-done { background: #16a34a; border-color: #16a34a; }
.lektion-name { flex: 1; font-weight: 500; }
.lektion-go { color: #9aa7b6; }

/* ---- Lektionsseite ---- */
.breadcrumb { color: #5a6b7f; font-size: 0.9rem; margin-bottom: 0.4rem; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.kurztext {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.kurztext h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.transkript {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.transkript summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0;
  color: #2563eb;
}
.transkript-body {
  white-space: pre-line;
  color: #33414f;
  font-size: 0.95rem;
  padding: 0.5rem 0 1rem;
}

.lektion-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.lektion-nav form { margin: 0; flex: 1; min-width: 220px; }
.btn-primary { width: 100%; }
.btn-next {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-next:hover { background: #eef3fe; }

/* ---- Trefferliste ---- */
.treffer-liste { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.treffer {
  display: block;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(20, 35, 60, 0.06);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: #1d2733;
}
.treffer:hover { box-shadow: 0 2px 12px rgba(20, 35, 60, 0.12); }
.treffer-modul { display: block; font-size: 0.78rem; color: #9aa7b6; text-transform: uppercase; letter-spacing: 0.03em; }
.treffer-titel { display: block; font-weight: 600; margin: 0.1rem 0 0.25rem; }
.treffer-snippet { display: block; font-size: 0.9rem; color: #5a6b7f; }
.treffer-snippet mark { background: #fef08a; padding: 0 0.1em; }

@media (max-width: 480px) {
  .topbar { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .content { padding: 1rem 0.75rem; }
  .lektion-nav { flex-direction: column; align-items: stretch; }
  .btn-next { justify-content: center; }
}

/* ---- Startseite / Landing (job-178) ---- */
.topbar .btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }
.lp .hero { text-align: center; padding: 1.5rem 0 1rem; }
.lp .hero h1 { font-size: 2rem; margin-bottom: 0.6rem; }
.lp .lead { color: #5a6b7f; font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

.lp-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
}
.lp-grid .card { max-width: none; }
.lp-features h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: #33414f; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 1.2rem; height: 1.2rem;
  background: #16a34a; color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

.price-card { text-align: center; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; }
.price .amount { font-size: 2.4rem; font-weight: 700; color: #1d2733; }
.price .per { color: #5a6b7f; font-size: 1rem; }
.price-note { color: #5a6b7f; font-size: 0.9rem; margin: 0.35rem 0 1.1rem; }
.login-hint { font-size: 0.9rem; color: #5a6b7f; margin-top: 0.9rem; }

.btn-block {
  display: block;
  text-align: center;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}
.btn-block:hover { background: #1d4fd7; }

.site-footer {
  text-align: center;
  padding: 1.75rem 1rem;
  color: #9aa7b6;
  font-size: 0.9rem;
}
.site-footer a { color: #5a6b7f; }

@media (max-width: 640px) {
  .lp-grid { grid-template-columns: 1fr; }
}
