/* Gemeinsames Aussehen für alle Kurse */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5c6370;
  --accent: #1d5fa8;
  --accent-soft: #e6eef8;
  --border: #dedcd5;
  --radius: 10px;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1f2228;
    --text: #e6e7ea;
    --muted: #a0a6b0;
    --accent: #7fb2ec;
    --accent-soft: #233243;
    --border: #343842;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .inner,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header .inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.site-title {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.breadcrumb {
  font-size: .9rem;
  color: var(--muted);
}

main { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }

.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .75rem;
}

.card-list a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.card-list a:hover,
.card-list a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card-list .card-title { display: block; font-weight: 600; color: var(--accent); }
.card-list .card-text { display: block; color: var(--muted); font-size: .95rem; }

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .75rem 1rem;
  margin: 1.5rem 0;
}

.site-footer {
  color: var(--muted);
  font-size: .85rem;
  padding-bottom: 2rem;
}
