:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --radius:16px;

  --done-bg:#ecfdf5;
  --done-border:#bbf7d0;

  --imp-bg:#fffbeb;
  --imp-border:#fde68a;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:16px;
}

/* =========================
   HEADER (zweizeilig, NICHT sticky)
   ========================= */
.topbar{
  background:#fff;
  /* kein position:sticky -> scrollt normal weg */
}

/* Zeile 1: Logo zentriert */
.topbar__logoRow{
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top:14px;
  padding-bottom:10px;
}

.brand{
  display:block;
  text-decoration:none;
  color:var(--text);
}

/* Logo: mobil kleiner, Desktop 350px */
.brand__logo{
  width:260px;
  max-width:85%;
  height:auto;
  display:block;
  margin:0 auto;
}
@media (min-width: 760px){
  .brand__logo{
    width:350px;
    max-width:70%;
  }
}

/* Abstand (Absatz) */
.topbar__gap{
  height:14px;
}

/* Zeile 2: Titel links, Navigation rechts
   Trennlinien: NUR container-breit */
.topbar__barRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:12px;
  padding-bottom:12px;

  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.page-title{
  font-weight:900;
  font-size:24px;
  letter-spacing:0.2px;
  line-height:1.2;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:flex;
  gap:10px;
  align-items:center;
}

/* Mobil: untereinander */
@media (max-width: 760px){
  .topbar__barRow{
    flex-direction:column;
    align-items:flex-start;
  }
  .page-title{
    white-space:normal;
  }
  .nav{
    justify-content:flex-start;
  }
}

/* Navigation */
.nav{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav__link{
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  white-space:nowrap;
}
.nav__link:hover{
  background:#f3f4f6;
}
.nav__text{
  font-size:14px;
  white-space:nowrap;
}

.muted{color:var(--muted)}

/* =========================
   LAYOUT / TYPO
   ========================= */
.h1{
  font-size:22px;
  margin:12px 0 14px;
}
.h2{
  font-size:18px;
  margin:0 0 10px;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(min-width:760px){
  .grid{grid-template-columns:1fr 1fr}
}

/* =========================
   CARDS
   ========================= */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
}

.card--done{
  background:var(--done-bg);
  border-color:var(--done-border);
}

.card--important{
  background:var(--imp-bg);
  border-color:var(--imp-border);
}

/* =========================
   FORMS / BUTTONS
   ========================= */
.label{
  display:block;
  font-size:14px;
  margin:10px 0 6px;
}

.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font-size:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid transparent;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{background:var(--primary-hover)}

.btn.secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--border);
}
.btn.secondary:hover{background:#f9fafb}

/* =========================
   BADGES / META
   ========================= */
.kursmeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:14px;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f9fafb;
}

/* =========================
   ALERTS
   ========================= */
.alert{
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  margin:12px 0;
}

/* =========================
   VIDEO
   ========================= */
.video{
  aspect-ratio: 16 / 9;
  width:100%;
  border:1px solid var(--border);
  border-radius:16px;
}

/* =========================
   FOOTER (Trennlinie container-breit)
   ========================= */
.footer{
  padding:18px 0;
  margin-top:22px;
  background:#fff;
  /* border-top entfernt -> sonst full width */
}

.footer__inner{
  display:flex;
  justify-content:center;
  border-top:1px solid var(--border); /* container-breit */
  padding-top:14px;
}

.footer__link{
  color:var(--text);
  text-decoration:none;
}
.footer__link:hover{
  text-decoration:underline;
}
