/* =========================
   QM PERSONAL – qm-berufe.css (nur Seite Berufe im Qualitätsmanagement)
========================= */

:root {
  --qm-primary: #6E9828;
  --qm-secondary: #5F8428;
  --qm-bg: #F4F8EC;
  --qm-bg-soft: #F4F8EC;
  --qm-soft: #EEF5E3;
  --qm-soft-2: #F8FBF2;
  --qm-hover: #E4EFD2;
  --qm-border: #CCD8BE;

  --qm-text: #1A1A1A;
  --qm-text-main: #1A1A1A;
  --qm-text-muted: #555555;
  --qm-muted: #555555;
  --qm-white: #FFFFFF;

  --qm-primary-dark: #5F8428;

  --radius: 14px;
  --qm-radius: 14px;
  --qm-radius-sm: 10px;
  --maxw: 1100px;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--qm-bg-soft);
  color: var(--qm-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* TYPOGRAPHY */

h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--qm-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--qm-secondary);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid #D7A500;
  outline-offset: 3px;
  border-radius: 4px;
}

.lead {
  color: var(--qm-text-muted);
  font-size: 1.05rem;
}

.muted {
  color: var(--qm-text-muted);
}

/* LAYOUT */

.wrap {
  max-width: var(--maxw);
  margin: auto;
  padding: 20px;
}

.main,
.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.main > *,
.layout > *,
.hero > * {
  min-width: 0;
}

/* HEADER UND HAUPTNAVIGATION
   Werden zentral über headersite.css gestaltet.
   Die bisherigen .site-header-, .header-inner-, .brand- und
   .primary-nav-Regeln sind hier bewusst entfernt.
*/

/* BREADCRUMB – passend zum öffentlichen Header */
.breadcrumb { margin: 0 0 1rem; font-size: .95rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; color: var(--qm-muted); font-weight: 700; }
.breadcrumb a { display: inline-block; padding: .4rem .75rem; color: #365714; background: var(--qm-soft); border: 1px solid var(--qm-border); border-radius: 6px; font-weight: 700; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { background: var(--qm-hover); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { padding: .4rem .75rem; color: #fff; background: #52751D; border-radius: 6px; font-weight: 700; }

/* HERO */

.hero {
  background: linear-gradient(180deg, var(--qm-white), #F9FBEF);
  border: 1px solid var(--qm-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}

.hero h1 {
  margin-top: 0;
}

.hero-buttons,
.btn-row,
.button-group {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* CARDS */

.card {
  background: var(--qm-white);
  border: 1px solid var(--qm-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.card-sticky {
  position: sticky;
  top: 20px;
  align-self: start;
}

/* BUTTONS */

.btn,
.cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  background: var(--qm-primary);
  border: 2px solid var(--qm-primary);
  color: #FFFFFF;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover,
.btn:focus,
.cta-large:hover,
.cta-large:focus {
  background: var(--qm-secondary);
  border-color: var(--qm-secondary);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  background: var(--qm-white);
  border: 2px solid var(--qm-primary);
  border-radius: 10px;
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--qm-primary);
  border-color: var(--qm-primary);
  color: #FFFFFF;
  text-decoration: none;
}

.cta-large {
  display: flex;
  width: 100%;
  border-radius: 12px;
}

/* SIDEBAR */

.card-sticky .btn,
.qm-sidebar .btn {
  display: flex;
  width: 100%;
  text-align: center;
  margin: 14px 0 0;
}

.qm-sidebar-link {
  margin: 12px 0 0;
}

.sidebar-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--qm-border);
}

.sidebar-contact {
  margin: 0;
}

.sidebar-contact h2 {
  margin: 0 0 12px;
}

.sidebar-contact p {
  margin: 0;
}

/* LISTS */

ul.features {
  padding-left: 18px;
  margin: 10px 0;
}

ul.features li {
  margin: 6px 0;
}

/* TABLES */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  min-width: 620px;
}

.salary-table th,
.salary-table td {
  padding: 10px;
  border-bottom: 1px solid #E5E5E5;
  text-align: left;
  vertical-align: top;
}

.salary-table th {
  font-weight: 700;
  background: #F9F9F9;
}

.salary-table tr:hover {
  background: #FAFAFA;
}

.salary-note {
  margin-top: 10px;
  color: #555555;
}

/* HIGHLIGHT BOX */

.highlight-box {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--qm-soft-2);
  border: 1px solid var(--qm-border);
  border-left: 5px solid var(--qm-primary-dark);
  border-radius: var(--radius);
}

.highlight-box p {
  margin: 0;
}

/* JOB FEED */

#jobs-feed {
  border: 1px dashed var(--qm-border);
  border-radius: 12px;
  padding: 12px;
  background: #FBFDF6;
}

.job-item {
  background: var(--qm-white);
  border-left: 5px solid var(--qm-primary);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.job-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.job-meta {
  font-size: 0.85rem;
  color: var(--qm-text-muted);
}

/* FAQ */

.faq dt {
  font-weight: 700;
  margin-top: 12px;
}

.faq dd {
  margin: 6px 0 12px;
  color: var(--qm-text-muted);
}

/* SEO KEYWORDS BLOCK */

.seo-keywords {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--qm-bg-soft);
  border: 1px solid var(--qm-border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--qm-text-main);
  text-align: center;
}

.seo-keywords strong {
  color: var(--qm-primary-dark);
  font-weight: 700;
}

/* RELATED TOPICS */

.related-topics {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--qm-soft-2);
  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius);
}

.related-topics h2 {
  margin-top: 0;
}

.related-topics__group {
  margin-top: 1.25rem;
}

.related-topics__group h3 {
  margin-bottom: 0.5rem;
  color: var(--qm-primary-dark);
}

.related-topics__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

.related-topics__list a {
  font-weight: 700;
}

/* PARETO SVG CHART */

.pareto-chart {
  margin: 18px 0 0;
}

.pareto-chart svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius-sm);
  background: #FFFFFF;
}

.pareto-chart figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--qm-text-muted);
}

/* SVG KNOWLEDGE GRAPH */

.svg-box {
  fill: #FFFFFF;
  stroke: var(--qm-primary);
  stroke-width: 2;
  rx: 14;
  cursor: pointer;
  transition: all 0.2s ease;
}

.svg-box:hover {
  fill: #F4F8EC;
  stroke: var(--qm-secondary);
  stroke-width: 3;
}

.svg-center {
  fill: #F4F8EC;
  stroke: var(--qm-secondary);
  stroke-width: 3;
  rx: 14;
}

.svg-line {
  stroke: #555555;
  stroke-width: 2;
}

.svg-title {
  font: 700 16px Arial, sans-serif;
  fill: #1A1A1A;
}

.svg-muted {
  font: 500 13px Arial, sans-serif;
  fill: #555555;
}

/* FOOTER wird zentral über footersite.css gestaltet. */

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .main,
  .layout {
    grid-template-columns: 1fr;
  }

  .card-sticky {
    position: static;
  }
}

@media (max-width: 700px) {
  .wrap {
    padding: 14px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .hero,
  .card {
    padding: 16px;
  }

  .hero-buttons,
  .btn-row,
  .button-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .btn,
  .btn-secondary,
  .cta-large {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }

  .breadcrumb { font-size: .875rem; }
  .breadcrumb ol, .breadcrumb li { gap: .35rem; }
  .breadcrumb a, .breadcrumb li[aria-current="page"] { padding: .35rem .55rem; }

}