/* ============================================================
   Sonne QM — Schulungen / Fortbildungen
   Loads AFTER home.css, scoped under .home like everything else.
   ============================================================ */

/* ── Fakten-Leiste unter dem Hero ───────────────────────── */
.home .sch-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home .sch-fact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home .sch-fact strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--g700);
  letter-spacing: -0.01em;
}
.home .sch-fact span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Hero mit Bild (nur diese Seite) ────────────────────── */
.home .about-hero--media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
}
.home .about-hero--media .about-actions {
  margin-top: 4px;
}
.home .sch-hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(3, 20, 16, 0.45);
}
.home .sch-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Zarter Grünschleier, damit das Stockfoto zur Markenfarbe passt */
.home .sch-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 36, 30, 0.34), rgba(20, 86, 74, 0.14) 55%, transparent);
  pointer-events: none;
}

/* ── Bildband ───────────────────────────────────────────── */
.home .sch-band {
  margin: 0;
}
.home .sch-band img {
  display: block;
  width: 100%;
  /* ohne height:auto gewinnt das HTML-height-Attribut und aspect-ratio greift nicht */
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.home .sch-band figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Referentenfoto ─────────────────────────────────────── */
.home .sch-trainer-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(29, 115, 99, 0.18);
  flex: none;
}

/* ── Direkte Antwort (Pflichtschulungen) ────────────────── */
.home .sch-answer {
  max-width: 78ch;
  margin: 0 auto 24px;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--g700);
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.home .sch-answer strong {
  color: var(--ink);
  font-weight: 800;
}
.home .sch-caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-700);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.home .sch-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.home .sch-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.home .sch-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--g500);
}
.home .sch-breadcrumb a {
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 700;
}
.home .sch-breadcrumb a:hover {
  text-decoration: underline;
}
.home .sch-breadcrumb [aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}

/* ── Stand / Aktualisierungshinweis ─────────────────────── */
.home .sch-updated {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

/* ── Seminarliste (Accordion) ───────────────────────────── */
.home .sch-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-700);
}
.home .sch-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.home .sch-group-label:first-of-type {
  margin-top: 0;
}

.home .sch-list {
  display: grid;
  gap: 14px;
}

.home .sch-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 96px;
}
.home .sch-item:hover,
.home .sch-item[open] {
  border-color: rgba(29, 115, 99, 0.3);
  box-shadow: 0 18px 40px rgba(29, 115, 99, 0.1);
}

.home .sch-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}
.home .sch-summary::-webkit-details-marker {
  display: none;
}
.home .sch-summary:focus-visible {
  outline: 2px solid var(--g700);
  outline-offset: -3px;
}

.home .sch-code {
  align-self: start;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--g700), var(--g600));
  border-radius: var(--pill);
  padding: 6px 12px;
  white-space: nowrap;
}

.home .sch-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g700);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 6px;
}
.home .sch-head p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 10px;
}
.home .sch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home .sch-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--g700);
  background: rgba(29, 115, 99, 0.1);
  border-radius: var(--pill);
  padding: 4px 10px;
}
.home .sch-tag--time {
  color: var(--teal-700);
  background: rgba(95, 151, 166, 0.14);
}
.home .sch-tag--duty {
  color: #a2542f;
  background: rgba(245, 158, 11, 0.16);
}

.home .sch-chev {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 115, 99, 0.08);
  color: var(--g700);
  transition: transform 0.25s ease, background 0.2s ease;
  flex: none;
}
.home .sch-chev svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home .sch-item[open] .sch-chev {
  transform: rotate(180deg);
  background: rgba(29, 115, 99, 0.16);
}

.home .sch-body {
  padding: 0 24px 26px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 22px;
}
.home .sch-hl {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 8px;
}
.home .sch-sub {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 68ch;
}

.home .sch-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.home .sch-cols h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  margin: 0 0 12px;
}

.home .sch-take {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.home .sch-take li {
  position: relative;
  padding-left: 25px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
}
.home .sch-take li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--g700), var(--g500));
}

.home .sch-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.home .sch-topics li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}
.home .sch-topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g500);
}
.home .sch-topics li strong {
  color: var(--ink);
  font-weight: 700;
}

.home .sch-mat {
  margin-top: 22px;
  border: 1px dashed rgba(29, 115, 99, 0.3);
  background: rgba(29, 115, 99, 0.04);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}
.home .sch-mat strong {
  color: var(--g700);
  font-weight: 800;
}

.home .sch-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.home .sch-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

/* ── Pakete ─────────────────────────────────────────────── */
.home .sch-bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home .sch-bundle {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home .sch-bundle::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g700), var(--g500), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.home .sch-bundle:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 115, 99, 0.3);
  box-shadow: 0 18px 40px rgba(29, 115, 99, 0.12);
}
.home .sch-bundle:hover::before {
  transform: scaleX(1);
}
.home .sch-bundle h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--g700);
  margin: 0;
}
.home .sch-bundle p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.home .sch-bundle-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-700);
}
.home .sch-bundle--wide {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #07241e 0%, #0e3a30 55%, #14564a 100%);
  border-color: transparent;
}
.home .sch-bundle--wide h3 {
  color: #fff;
}
.home .sch-bundle--wide p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 72ch;
}
.home .sch-bundle--wide .sch-bundle-meta {
  color: var(--g400);
}

/* ── Ablauf in vier Schritten ───────────────────────────── */
.home .sch-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: schstep;
}
.home .sch-step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
}
.home .sch-step::before {
  counter-increment: schstep;
  content: counter(schstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--g700), var(--g600));
}
.home .sch-step h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--g700);
  margin: 0 0 6px;
}
.home .sch-step p {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Jahresplan-Tabelle ─────────────────────────────────── */
.home .sch-plan-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}
.home .sch-plan {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.85rem;
}
.home .sch-plan th,
.home .sch-plan td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.home .sch-plan thead th {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-700);
  background: rgba(29, 115, 99, 0.05);
}
.home .sch-plan tbody tr:last-child td {
  border-bottom: none;
}
.home .sch-plan td:first-child {
  font-weight: 800;
  color: var(--g700);
  white-space: nowrap;
}
.home .sch-plan td:nth-child(2) {
  color: var(--ink);
}
.home .sch-plan td:nth-child(3),
.home .sch-plan td:nth-child(4) {
  color: var(--muted);
}

/* ── Warum wir ──────────────────────────────────────────── */
.home .sch-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home .sch-why li {
  list-style: none;
  position: relative;
  padding: 20px 22px 20px 54px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.home .sch-why li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--g700), var(--g500));
}
.home .sch-why li strong {
  color: var(--ink);
  font-weight: 800;
}

/* ── Referenten-Karte ───────────────────────────────────── */
.home .sch-trainer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.home .sch-trainer h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g700);
  margin: 0 0 4px;
}
.home .sch-trainer p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home .sch-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home .sch-bundles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .sch-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* Hero stapelt: Text zuerst, Bild darunter */
  .home .about-hero--media {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .home .sch-hero-media img {
    aspect-ratio: 16 / 9;
  }
  /* 3:1 ist auf schmalen Displays ein Briefschlitz */
  .home .sch-band img {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
}

@media (max-width: 820px) {
  .home .sch-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .home .sch-why {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .sch-summary {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 20px;
  }
  .home .sch-code {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .home .sch-body {
    padding: 20px 20px 24px;
  }
  .home .sch-trainer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 620px) {
  .home .sch-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .sch-bundles,
  .home .sch-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .sch-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .sch-bundle,
  .home .sch-chev {
    transition: none;
  }
}
