:root {
  --gauss-red: #b61917;
  --gauss-red-dark: #8e120f;
  --ink: #1f1f1f;
  --paper: #fbfaf7;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Liberation Sans", Arial, sans-serif;
}

a {
  color: #0b5d86;
}

a:hover {
  color: var(--gauss-red);
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gauss-red);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.site-footer {
  background: #fff;
}

.accent {
  color: var(--gauss-red);
}

.btn-accent {
  background: var(--gauss-red);
  border-color: var(--gauss-red);
  color: #fff;
}

.btn-accent:hover {
  background: var(--gauss-red-dark);
  border-color: var(--gauss-red-dark);
  color: #fff;
}

.badge-accent {
  background: var(--gauss-red);
  color: #fff;
}

.pdf-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gauss-red);
  padding-bottom: 0.5rem;
  color: #555;
  font-size: 0.95rem;
}

.pdf-header .subject {
  font-weight: 700;
}

.card {
  border: 1px solid #d8d8d8;
}

.stage-card {
  text-decoration: none;
  color: inherit;
}

.stage-card:hover {
  border-color: var(--gauss-red);
  box-shadow: 0 2px 8px rgba(182, 25, 23, 0.12);
}

.stage-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gauss-red);
}

.path-list {
  display: grid;
  gap: 0.6rem;
}

.path-step {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.path-step:hover {
  border-color: var(--gauss-red);
  box-shadow: 0 2px 8px rgba(182, 25, 23, 0.12);
}

.step-id {
  font-weight: 700;
  color: var(--gauss-red);
  min-width: 2.2rem;
}

.part-heading {
  margin-top: 1.5rem;
}

.info-box {
  background: #e6f4fb;
  border-left: 6px solid #729fcf;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
}

.merke-box {
  background: #eef6e6;
  border: 2px solid #76b728;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
}

.tipp-box {
  background: #fdebf1;
  border: 1px solid #c4245a;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
}

.media-video,
.media-audio {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 0.5rem;
  background: #fff;
}

.media-video {
  max-height: 450px;
}

.pdf-preview {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.pdf-preview img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
}

.pdf-preview img:last-child {
  margin-bottom: 0;
}

.teacher-note {
  background: #fff;
  border-left: 5px solid var(--gauss-red);
  padding: 0.85rem 1rem;
  border-radius: 0.25rem;
}

.small-muted {
  color: #666;
}

@media (min-width: 900px) {
  .pdf-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
  }
  .pdf-preview img {
    margin-bottom: 0;
  }
}
