.cert-exam-page {
  max-width: 56rem;
}

.cert-exam-intro {
  color: var(--theme-text-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.cert-exam-sub {
  color: var(--theme-text-muted);
  margin: -0.5rem 0 1rem;
}

.exam-cards-cert-list .exam-card.cert-exam {
  border-left: 3px solid #0d9488;
}

.exam-cards-cert-list .exam-card.ihkbe {
  border-left-color: #2563eb;
}

.exam-cards-cert-list .exam-card.ihkbawu {
  border-left-color: #7c3aed;
}

.exam-card--soon {
  opacity: 0.92;
}

.cert-hub-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cert-hub-card--teil {
  border-left: 3px solid #2563eb;
}

.cert-hub-card--teil2_analyse {
  border-left-color: #0d9488;
}

.cert-hub-card--teil2_konzeption {
  border-left-color: #7c3aed;
}

.cert-teil-heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.cert-hub-card {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--theme-border-strong);
  border-radius: 10px;
  background: var(--theme-bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cert-hub-card:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.cert-hub-card--disabled {
  opacity: 0.65;
  cursor: default;
  background: var(--theme-bg-subtle);
}

button.cert-hub-card {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.cert-hub-card--repeat {
  border-left: 3px solid #f59e0b;
}

.cert-hub-card-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--theme-text-heading);
}

.cert-hub-card-meta {
  display: block;
  font-size: 0.88rem;
  color: var(--theme-text-muted);
  margin-top: 0.25rem;
}

.cert-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cert-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--theme-border-strong);
  background: var(--theme-bg-elevated);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--theme-text-secondary);
}

.cert-cat-pill.is-active,
.cert-cat-pill:hover {
  border-color: var(--theme-accent);
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
}

.cert-cat-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

.cert-course-section {
  margin-bottom: 2rem;
}

.cert-course-heading {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--theme-text-heading);
}

.cert-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-bg-elevated);
}

.cert-modules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cert-modules-table th,
.cert-modules-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--theme-border);
  vertical-align: top;
}

.cert-modules-table th {
  background: var(--theme-bg-subtle);
  font-weight: 600;
  color: var(--theme-text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-mod-num {
  white-space: nowrap;
  font-weight: 600;
  color: #0d9488;
}

.cert-topics {
  color: #64748b;
  max-width: 18rem;
}

.cert-q-count {
  text-align: center;
  color: #94a3b8;
}

.cert-q-link {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
}

.cert-q-link:hover,
.cert-q-link:focus-visible {
  background: #ccfbf1;
  color: #0f766e;
  text-decoration: underline;
}

.cert-pdf-ref {
  font-size: 0.72rem;
  color: #94a3b8;
}

.cert-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
}

.cert-tag-routing { background: #dbeafe; color: #1d4ed8; }
.cert-tag-switching { background: #d1fae5; color: #047857; }
.cert-tag-security { background: #fee2e2; color: #b91c1c; }
.cert-tag-ipv6 { background: #ede9fe; color: #6d28d9; }
.cert-tag-wireless { background: #ffedd5; color: #c2410c; }
.cert-tag-ospf { background: #dbeafe; color: #1d4ed8; }
.cert-tag-hsrp { background: #e0e7ff; color: #4338ca; }
.cert-tag-static-routing { background: #dbeafe; color: #1e40af; }
.cert-tag-wpa { background: #ffedd5; color: #9a3412; }
.cert-tag-vlan { background: #d1fae5; color: #047857; }
.cert-tag-acl { background: #fee2e2; color: #b91c1c; }
.cert-tag-nat { background: #fce7f3; color: #be185d; }
.cert-tag-vpn { background: #fee2e2; color: #991b1b; }
.cert-tag-dhcp { background: #ecfccb; color: #3f6212; }
.cert-tag-dns { background: #ecfccb; color: #365314; }
.cert-tag-subnetting { background: #f3e8ff; color: #7e22ce; }
.cert-tag-qos { background: #fef3c7; color: #b45309; }
.cert-tag-topic { background: #e2e8f0; color: #475569; }

.cert-tag--link {
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.cert-tag--link:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.cert-tag--link.is-active {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.25);
}

.cert-quiz-meta-block {
  margin: 0 0 0.75rem;
}
.cert-quiz-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cert-hub-topics {
  margin: 1.25rem 0 1.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}
.cert-topic-nav {
  margin: 0;
}
.cert-cat-pill--topic.cert-tag {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.cert-category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert-category-preview a {
  color: #0d9488;
}

.cert-question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-question-item a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cert-question-item a:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.cert-question-title {
  display: block;
  font-weight: 600;
  color: var(--theme-text-heading);
  line-height: 1.45;
}

.cert-question-module {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--theme-text-muted);
}

.cert-question-badges {
  margin-left: 0.35rem;
  white-space: nowrap;
}

.cert-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  vertical-align: middle;
}

.cert-q-badge-learned {
  background: #0d9488;
  color: #fff;
}

.cert-q-badge-repeat {
  color: #0d9488;
}
