/* ============ HUNTWORKER – Inhaltsseiten ============
   Ratgeber, Gewerke, Über uns, Nachbesetzungsschutz, Rechner, 404.
   Baut auf styles.css auf (Farben, Schriften, Header, Footer, Buttons). */

/* ---- Seitenkopf ---- */
.page-head {
  background: linear-gradient(180deg, var(--red-tint) 0%, #fff 100%);
  padding: 44px 0 52px;
}
.page-head .container { max-width: 960px; }
.page-head h1 { font-size: 44px; letter-spacing: -1px; margin-bottom: 18px; }
.page-head .lead { font-size: 19px; color: var(--gray); max-width: 760px; }
.page-head .meta-line { margin-top: 18px; font-size: 14px; color: var(--gray-light); }
.page-head.center { text-align: center; }
.page-head.center .lead { margin: 0 auto; }

/* ---- Brotkrumen ---- */
.breadcrumbs { margin-bottom: 26px; font-size: 14px; color: var(--gray-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin: 0 9px; color: var(--gray-light); }
.breadcrumbs a { color: var(--gray); font-weight: 600; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--gray); }

/* ---- Artikel mit Inhaltsverzeichnis ---- */
.article-wrap { padding: 56px 0 88px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 56px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}
.toc {
  position: sticky;
  top: 98px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 14.5px;
}
.toc p { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 8px; line-height: 1.4; }
.toc li::before { content: counter(toc) "."; color: var(--copper-dark); font-weight: 700; font-family: var(--font-head); }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--red); text-decoration: underline; }

/* ---- Fließtext ---- */
.prose { max-width: 720px; font-size: 17px; color: var(--ink); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 29px; letter-spacing: -0.4px; margin-top: 52px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 34px; scroll-margin-top: 96px; }
.prose p, .prose li { color: #384146; }
.prose a { color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--copper-dark); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--copper-dark); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .lead-p { font-size: 19px; color: var(--gray); }
.prose figure { margin: 28px 0 0; }
.prose figcaption { font-size: 13.5px; color: var(--gray); margin-top: 10px; }

/* Schritt-Liste (Leitfaden) */
.step-list { list-style: none; padding: 0 !important; counter-reset: st; gap: 14px !important; }
.step-list > li {
  counter-increment: st;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 66px;
}
.step-list > li::before {
  content: counter(st);
  position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-tint); color: var(--red-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.step-list > li strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 3px; }

/* Häkchen-Liste */
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-tint); color: var(--red-dark); font-size: 12px; font-weight: 700;
}

/* Hinweis-Kästen */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--petrol);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.callout.warn { border-left-color: var(--copper); background: var(--copper-tint); border-color: var(--copper-line); }
.callout > strong:first-child { display: block; font-family: var(--font-head); font-size: 16.5px; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* Definition (Nachbesetzungsschutz) */
.definition {
  font-size: 20px !important;
  line-height: 1.6;
  color: var(--ink) !important;
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 18px;
  padding: 24px 28px;
}

/* Kennzahlen */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat b { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1.1; color: var(--red-dark); letter-spacing: -0.5px; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--gray); line-height: 1.45; }
.stat sup, .src-ref { font-size: 11.5px; font-weight: 700; color: var(--copper-dark); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
}
.data-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--gray); padding-top: 10px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: none; }
.data-table thead th { background: var(--bg-soft); font-family: var(--font-head); font-size: 14.5px; }
.data-table thead th.hl { background: var(--petrol); color: #fff; }
.data-table td.hl { background: var(--red-tint); font-weight: 600; }
.data-table td:first-child { font-weight: 600; color: var(--gray); }

/* Quellen */
.sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 20px !important; margin-top: 0 !important; }
.sources ol { font-size: 14px; gap: 6px; }
.sources li { color: var(--gray); word-break: break-word; }
.sources a { font-weight: 600; }
.disclaimer { font-size: 13.5px; color: var(--gray-light); }

/* ---- FAQ (gleiches Markup wie Startseite) ---- */
.faq-list { display: grid; gap: 12px; margin-top: 22px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red-tint); color: var(--red-dark);
  display: grid; place-items: center; font-size: 14px; transition: transform 0.2s;
}
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--gray); font-size: 16px; }
.faq-item .faq-body a { color: var(--red-dark); font-weight: 700; text-decoration: underline; }

/* ---- Abschluss-CTA ---- */
.cta-band {
  background: var(--petrol);
  border-radius: 22px;
  padding: 44px 44px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
  margin-top: 56px;
}
.cta-band h2 { font-size: 28px !important; color: #fff; margin: 0 0 10px !important; }
.cta-band p { color: rgba(255, 255, 255, 0.9) !important; font-size: 16.5px; margin: 0; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn { white-space: normal; text-align: center; }
.cta-band .btn-line { border: 2px solid rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.cta-band .btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.prose .cta-band a.btn { color: #fff; text-decoration: none; }

/* ---- Karten-Raster (Ratgeber-Übersicht, Weiterlesen) ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.link-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.link-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card .lc-kicker { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--copper-dark); }
.link-card h2, .link-card h3 { font-size: 20px; margin: 0; }
.link-card p { font-size: 15px; color: var(--gray); }
.link-card .lc-more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--red-dark); }
.prose .link-card { text-decoration: none; font-weight: 400; }
.related { margin-top: 56px; }
.related > h2 { font-size: 24px !important; }
.related .card-grid { margin-top: 18px; }

/* ---- Über uns ---- */
.person-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px;
}
.person-card .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--petrol); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: 1px;
}
.person-card img.avatar { object-fit: cover; }
.person-card h3 { margin: 0 0 2px !important; font-size: 20px; }
.person-card .role { color: var(--gray); font-size: 15px; margin: 0 !important; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.unit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.unit.self { border: 2px solid var(--red); }
.unit b { display: block; font-family: var(--font-head); font-size: 17px; }
.unit span { display: block; font-size: 14.5px; color: var(--gray); margin-top: 4px; }
.nap-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
}
.nap-box p { margin: 0 !important; }

/* ---- 404 ---- */
.notfound { padding: 72px 0 96px; text-align: center; }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; color: var(--red-tint); -webkit-text-stroke: 2px var(--red); }
.notfound h1 { font-size: 36px; margin: 18px 0 12px; }
.notfound .lead { color: var(--gray); font-size: 18px; max-width: 620px; margin: 0 auto; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.notfound .card-grid { margin: 52px auto 0; max-width: 980px; text-align: left; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  /* minmax(0, 1fr): sonst drückt die Mindestbreite breiter Tabellen die Spalte auf */
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; order: -1; }
}
@media (max-width: 900px) {
  .page-head { padding: 28px 0 36px; }
  .page-head h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-head .lead { font-size: 17px; }
  .article-wrap { padding: 36px 0 64px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 25px; margin-top: 42px; }
  .prose h3 { font-size: 19px; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .definition { font-size: 18px !important; padding: 20px 20px; }
  .stat { padding: 14px 14px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 13px; }
  .person-card { grid-template-columns: 72px minmax(0, 1fr); padding: 20px; }
  .person-card .avatar { width: 72px; height: 72px; font-size: 24px; }
  .notfound .code { font-size: 72px; }
  .notfound h1 { font-size: 28px; }
}

/* Zeilenköpfe in Datentabellen (Barrierefreiheit: jede Zelle hat einen Kopf) */
.data-table tbody th[scope="row"] { font-weight: 600; color: var(--gray); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; background: #fff; font-family: var(--font-body); font-size: 15px; }
.data-table tr:last-child th[scope="row"] { border-bottom: none; }
