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

:root {
  --accent: #16213e;
  --accent-2: #3a4a5c;
  --accent-soft: #e9edf5;
  --accent-line: #d3d9e4;
  --bg-base: #f5f7fa;
  --bg-line: rgba(22, 33, 62, .06);
  --bg-pattern:
    linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
  --bg-size: 24px 24px, 24px 24px;
}

/* Per-job themes: applied to <body class="job-XX"> and to landing cards */
.job-AA {
  --accent: #1f4a48;
  --accent-2: #2f6b68;
  --accent-soft: #e4eceb;
  --accent-line: #c3d3d1;
  --bg-base: #f1f5f4;
  --bg-line: rgba(47, 107, 104, .07);
  --bg-pattern: repeating-radial-gradient(circle at 0 0, transparent 0 39px, var(--bg-line) 39px 40px);
  --bg-size: auto;
}

.job-AM {
  --accent: #2f3a40;
  --accent-2: #465660;
  --accent-soft: #e8ebed;
  --accent-line: #c7ced3;
  --bg-base: #f3f5f6;
  --bg-line: rgba(70, 86, 96, .09);
  --bg-pattern:
    linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
  --bg-size: 12px 12px, 12px 12px;
}

.job-AU {
  --accent: #223a5e;
  --accent-2: #35608f;
  --accent-soft: #e6ebf1;
  --accent-line: #c5cfdb;
  --bg-base: #f2f4f7;
  --bg-line: rgba(53, 96, 143, .08);
  --bg-pattern:
    repeating-linear-gradient(45deg, var(--bg-line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, var(--bg-line) 0 1px, transparent 1px 26px);
  --bg-size: auto;
}

.job-ET {
  --accent: #2f4a33;
  --accent-2: #4a6b4e;
  --accent-soft: #e7ece7;
  --accent-line: #c9d3c9;
  --bg-base: #f3f6f3;
  --bg-line: rgba(74, 107, 78, .09);
  --bg-pattern:
    radial-gradient(circle, var(--bg-line) 2px, transparent 2.5px),
    linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
  --bg-size: 48px 48px, 24px 24px, 24px 24px;
}

.job-KR {
  --accent: #3d3654;
  --accent-2: #5b5278;
  --accent-soft: #e9e7ef;
  --accent-line: #cdc9da;
  --bg-base: #f4f3f7;
  --bg-line: rgba(91, 82, 120, .08);
  --bg-pattern:
    linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px),
    linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
  --bg-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.job-MP {
  --accent: #6b4a20;
  --accent-2: #906530;
  --accent-soft: #efe9e1;
  --accent-line: #d8ccbb;
  --bg-base: #f6f3ee;
  --bg-line: rgba(144, 101, 48, .10);
  --bg-pattern: radial-gradient(var(--bg-line) 1.5px, transparent 1.6px);
  --bg-size: 18px 18px;
}

.job-PM {
  --accent: #232f47;
  --accent-2: #3c4c6b;
  --accent-soft: #e6eaf0;
  --accent-line: #c6cedb;
  --bg-base: #f2f4f7;
  --bg-line: rgba(60, 76, 107, .08);
  --bg-pattern: repeating-linear-gradient(45deg, transparent 0 7px, var(--bg-line) 7px 8px);
  --bg-size: auto;
}

.job-PR {
  --accent: #6b2420;
  --accent-2: #90423d;
  --accent-soft: #f0e4e2;
  --accent-line: #d9c4c2;
  --bg-base: #f7f2f1;
  --bg-line: rgba(144, 66, 61, .08);
  --bg-pattern: repeating-linear-gradient(-45deg, transparent 0 11px, var(--bg-line) 11px 12px);
  --bg-size: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  background-image: var(--bg-pattern);
  background-size: var(--bg-size, auto);
  background-attachment: fixed;
  color: #1a1a2e;
  line-height: 1.5
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--accent)
}

.subtitle {
  color: #666;
  font-size: .9rem;
  margin-bottom: 20px
}

/* Page header (index + job pages) */
.page-header {
  max-width: 820px;
  margin: 4px 0 26px
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px
}

.page-header h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 8px
}

.page-header .subtitle {
  margin-bottom: 0
}

.lead {
  font-size: .98rem;
  color: #555;
  line-height: 1.6
}

.page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-size: .85rem;
  color: #666
}

.page-stats strong {
  color: var(--accent);
  font-size: 1.05rem;
  margin-right: 3px
}

.section {
  margin-bottom: 30px
}

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a93a6;
  margin-bottom: 12px
}

.job-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--bg-base);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-line);
  border-radius: 10px
}

.job-nav-home {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap
}

.job-nav-home:hover {
  color: var(--accent-2)
}

.job-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.job-nav-link {
  min-width: 38px;
  padding: 4px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all .15s
}

.job-nav-link:hover {
  border-color: var(--accent-2);
  color: var(--accent-2)
}

.job-nav-link.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default
}

.pdf-dropdown {
  position: relative;
  margin-left: auto
}

.pdf-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s
}

.pdf-toggle-btn:hover {
  background: var(--accent)
}

.pdf-toggle-btn .dropdown-arrow {
  font-size: .65rem
}

.pdf-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  overflow: hidden;
  min-width: 240px
}

.pdf-dropdown-menu.show {
  display: block
}

.pdf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: .85rem;
  transition: background .15s
}

.pdf-item:hover {
  background: var(--accent-soft)
}

.pdf-item .pdf-icon-small {
  font-size: 1rem
}

.pdf-item .pdf-item-name {
  flex: 1;
  white-space: nowrap
}

.info-box {
  background: #fff;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  margin: 0;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08)
}

.info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  user-select: none;
  font-size: .85rem;
  font-weight: 600;
  color: #555
}

.info-intro {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0
}

.level-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  font-size: .88rem;
  margin-bottom: 4px
}

.level-card dd {
  margin: 0;
  color: #777;
  font-size: .82rem;
  line-height: 1.55
}

.info-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f5;
  font-size: .82rem;
  color: #777;
  line-height: 1.6
}

.info-note a {
  color: var(--accent-2)
}

@media (max-width: 720px) {
  .level-cards {
    grid-template-columns: 1fr
  }
}

.info-header .arrow {
  font-size: .75rem;
  color: #999;
  transition: transform .2s;
  width: 12px
}

.info-header.open .arrow {
  transform: rotate(90deg)
}

.info-content {
  display: none
}

.info-content.open {
  display: block
}

.lvl-badge {
  font-size: .7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  min-width: 5ch
}

.lvl-hkb {
  background: #e8f5e9;
  color: #2e7d32
}

.lvl-hk {
  background: #e8eaf6;
  color: #283593
}

.lvl-lk {
  background: #e3f2fd;
  color: #1565c0
}

.lvl-lz {
  background: #e0f7fa;
  color: #00838f
}

.controls {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 14px
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center
}

.search-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: 0;
  transition: border-color .2s
}

.search-row input:focus {
  border-color: var(--accent-2)
}

.search-row .count {
  white-space: nowrap;
  font-size: .85rem;
  color: #888
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid #eef1f5
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.filter-group label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #9aa3b2
}

.filter-group .options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px
}

.filter-group .options button {
  padding: 4px 10px;
  font-size: .8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  color: #666
}

.filter-group .options button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2)
}

.filter-group .options button.active {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2)
}

.clear-btn {
  padding: 4px 10px;
  font-size: .8rem;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all .15s
}

.clear-btn:hover {
  background: #e74c3c;
  color: #fff
}

.subject-header {
  cursor: pointer;
  padding: 13px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, border-color .15s
}

.subject-header:hover {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent-line))
}

.subject-header .arrow {
  font-size: .8rem;
  color: var(--accent-2);
  transition: transform .2s;
  width: 16px
}

.subject-header.open .arrow {
  transform: rotate(90deg)
}

.subject-header .code {
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
  background: var(--accent);
  padding: 2px 9px;
  border-radius: 5px
}

.subject-header .name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent)
}

.subject-content {
  display: none;
  padding-left: 14px;
  border-left: 2px solid var(--accent-line);
  margin-left: 10px;
  margin-bottom: 18px
}

.subject-content.open {
  display: block
}

.competence-header {
  cursor: pointer;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, border-color .15s
}

.competence-header:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line)
}

.competence-header .arrow {
  font-size: .75rem;
  color: #bbb;
  transition: transform .2s;
  width: 14px
}

.competence-header.open .arrow {
  transform: rotate(90deg)
}

.competence-header .code {
  font-weight: 600;
  color: var(--accent);
  font-size: .8rem;
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px
}

.competence-header .name {
  font-size: .9rem;
  color: #333;
  font-weight: 500
}

.competence-content {
  display: none;
  padding-left: 8px
}

.competence-content.open {
  display: block
}

.competence-desc {
  font-size: .8rem;
  line-height: 1.5;
  color: #555;
  margin: 6px 0 10px 6px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
  border-left: 3px solid var(--accent-line)
}

.lk-header {
  cursor: pointer;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 6px;
  margin-bottom: 4px;
  margin-left: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s
}

.lk-header:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line)
}

.lk-header .arrow {
  font-size: .7rem;
  color: #ccc;
  transition: transform .2s;
  width: 12px
}

.lk-header.open .arrow {
  transform: rotate(90deg)
}

.lk-code {
  font-weight: 600;
  color: var(--accent);
  font-size: .75rem;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap
}

.semester-range {
  flex-shrink: 0;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  background: #fff8e1;
  color: #e65100;
  white-space: nowrap;
  margin-left: auto
}

.lk-desc {
  font-size: .8rem;
  color: #555;
  flex: 1
}

.lk-content {
  display: none;
  padding-left: 16px;
  margin-bottom: 6px
}

.lk-content.open {
  display: block
}

.lernziel-row {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 2px;
  margin-left: 8px;
  padding: 4px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
  border-left: 3px solid var(--accent-line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem
}

.lz-id {
  font-weight: 700;
  color: #00838f;
  font-size: .72rem;
  background: #e0f7fa;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  width: 12ch;
  flex-shrink: 0;
  text-align: center
}

.lz-desc {
  flex: 1;
  color: #444
}

.hk-pw-badge {
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: auto
}

.hk-pw-badge.mandatory {
  background: #e8f5e9;
  color: #2e7d32
}

.hk-pw-badge.optional {
  background: #fff3e0;
  color: #e65100
}

.taxonomie-badge {
  flex-shrink: 0;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  background: #f3e5f5;
  color: #7b1fa2;
  min-width: 24px;
  text-align: center
}

.semester-badge {
  flex-shrink: 0;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  background: #fff8e1;
  color: #e65100;
  white-space: nowrap
}

.lernort-badge {
  flex-shrink: 0;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  min-width: 28px;
  text-align: center
}

.lernort-BE {
  background: #e8f5e9;
  color: #1b5e20
}

.lernort-BFS {
  background: #f3e5f5;
  color: #7b1fa2
}

.lernort-ük {
  background: #e0f2f1;
  color: #00695c
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999
}

.no-results strong {
  color: #666
}

.highlight {
  background: #fff176;
  font-weight: 600
}

.toggle-all-btn {
  padding: 4px 10px;
  font-size: .8rem;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all .15s
}

.toggle-all-btn:hover {
  background: var(--accent-2);
  color: #fff
}

.highlighted {
  animation: highlight-pulse 2s ease-out;
  background: var(--accent-soft);
  border-radius: 6px;
  border-left: 3px solid var(--accent-2);
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 50%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Landing page: job overview */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 8px
}

.job-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  color: #1a1a2e;
  box-shadow: 0 1px 3px rgba(22, 33, 62, .08);
  transition: transform .15s, box-shadow .15s, border-color .15s
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(22, 33, 62, .16);
  border-color: var(--accent-2)
}

.job-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit
}

.job-card--materials .job-card-body {
  padding-bottom: 0
}

.job-card-materials {
  display: block;
  padding: 2px 16px 14px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-2)
}

.job-card-materials:hover {
  text-decoration: underline
}

.job-card-media {
  display: block;
  height: 160px;
  background: var(--accent-soft);
  overflow: hidden
}

.job-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9);
  transition: transform .3s
}

.job-card:hover .job-card-media img {
  transform: scale(1.04)
}

.job-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 16px 16px
}

.job-card-head {
  display: flex;
  align-items: center;
  gap: 12px
}

.job-card-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-2)
}

.job-code {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  text-align: center
}

.job-name {
  font-size: .95rem
}

/* Per-job links (index) */
.job-links {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  background: #fff;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08)
}

.job-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px
}

.job-links-name {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none
}

.job-links-name:hover {
  color: var(--accent-2)
}

.job-links-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: .78rem
}

.job-links-links a {
  color: var(--accent-2);
  text-decoration: none
}

.job-links-links a:hover {
  text-decoration: underline
}

@media (max-width: 720px) {
  .job-links {
    grid-template-columns: 1fr
  }
}

