/* Kursübersicht und einfache 404-Seite. */
:root {
  color-scheme: light;
  --navy: #003468;
  --lime: #a5c500;
  --ink: #1e293b;
  --muted: #475569;
  --line: #dbe3ec;
  --page: #f5f8fb;
  --surface: #ffffff;
  --teal: #006d68;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}
a { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.shell { width: min(100% - 40px, 1040px); margin-inline: auto; }
.site-header { background: var(--navy); color: #fff; border-bottom: 4px solid var(--lime); }
.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
}
.brand strong { font-weight: 500; color: #d8e7f4; }
.brand-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(165 197 0 / 60%);
  background: #fff;
  flex: none;
}
.site-header a:focus-visible { outline-color: var(--lime); }
.catalog { padding-top: 52px; padding-bottom: 72px; }
.page-intro { max-width: 760px; margin-bottom: 54px; }
.page-intro h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.13;
  font-weight: 800;
}
.page-intro p { max-width: 670px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.5; }
.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.list-heading h2 { margin: 0; font-size: 18px; color: var(--navy); }
.list-heading span { color: var(--muted); font-size: 14px; }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.course {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.course:hover { border-color: #96b4ce; }
.course:focus-visible { outline-offset: 3px; }
.course-copy {
  min-width: 0;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.course-type { color: #526300; font-size: 13px; font-weight: 700; }
.course-list li:nth-child(2) .course-type { color: var(--teal); }
.course h3 {
  max-width: 550px;
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.22;
  font-weight: 750;
}
.course p { max-width: 520px; margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.course-action {
  margin-top: auto;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}
.course-action span { display: inline-block; margin-left: 5px; }
.course-preview { overflow: hidden; background: #e6edf4; border-left: 1px solid var(--line); }
.course-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.generator-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.generator-links > span { color: var(--muted); font-weight: 700; margin-right: auto; }
.generator-links a { font-weight: 700; text-underline-offset: 4px; }
.generator-links a span { color: var(--teal); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-inner a { color: inherit; text-underline-offset: 3px; }
body > main:not(.catalog) { width: min(100% - 40px, 640px); margin: 72px auto; }
body > main:not(.catalog) h1 { color: var(--navy); font-size: 32px; }
@media (max-width: 760px) {
  .header-inner { min-height: 88px; }
  .brand { font-size: 21px; }
  .brand-logo { width: 56px; height: 56px; }
  .catalog { padding-top: 36px; padding-bottom: 52px; }
  .page-intro { margin-bottom: 38px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro p { font-size: 17px; }
  .course { grid-template-columns: minmax(0, 1fr); }
  .course-copy { padding: 25px 24px; }
  .course h3 { font-size: 23px; }
  .course-preview { height: 188px; border-left: 0; border-top: 1px solid var(--line); }
  .generator-links { align-items: flex-start; flex-direction: column; gap: 10px; }
  .generator-links > span { margin: 0 0 4px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 25px; }
}
@media (max-width: 480px) {
  .shell { width: min(100% - 32px, 1040px); }
  .brand { font-size: 18px; }
  .brand-logo { width: 48px; height: 48px; }
  .page-intro h1 { font-size: 30px; }
  .course h3 { font-size: 21px; }
  .course-preview { height: 150px; }
}
