/*
 * AktivLeben60 – Kurse / Anleitungen
 * V15.2 RESPONSIVE + WORTTRENNUNGS-FIX
 *
 * Korrekturen:
 * - Kurskopf und Lernroute reagieren auf die tatsächliche Inhaltsbreite.
 * - Keine gequetschte Textspalte bei Seitenleiste oder Tablet-Breite.
 * - Saubere Listenumbrüche auf Android und iPhone.
 * - Arbeitsschritte nutzen mobil die gesamte Textbreite.
 * - Ausschließlich innerhalb von .al60-kurs gekapselt.
 */

.al60-kurs {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #18263a;
  font-size: 19px;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.al60-kurs,
.al60-kurs * {
  box-sizing: border-box;
}

.al60-kurs img {
  max-width: 100%;
}

.al60-kurs h1,
.al60-kurs h2,
.al60-kurs h3,
.al60-kurs p,
.al60-kurs li,
.al60-kurs a,
.al60-kurs strong,
.al60-kurs span,
.al60-kurs div {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* =========================================================
   Kurskopf
   Auto-Fit richtet sich nach der echten Inhaltsbreite,
   nicht nur nach der Breite des Browserfensters.
   ========================================================= */

.al60-kurs .al60-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
  padding: 34px;
  background: #f7f5ef;
  border: 2px solid #ded7c9;
  border-radius: 26px;
}

.al60-kurs .al60-hero > div {
  min-width: 0;
}

.al60-kurs .al60-hero h1 {
  margin: 0 0 14px;
  color: #163b5c;
  font-size: clamp(31px, 4vw, 38px);
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

.al60-kurs .al60-kicker {
  margin-bottom: 6px;
  color: #6b6a2f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.al60-kurs .al60-hero > img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  justify-self: center;
  background: #fff;
  border: 1px solid #e4ddcf;
  border-radius: 20px;
}

/* =========================================================
   Metadaten
   Keine schmalen, kreisförmigen Felder bei wenig Platz.
   ========================================================= */

.al60-kurs .al60-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.al60-kurs .al60-pill {
  display: inline-block;
  max-width: 100%;
  padding: 7px 13px;
  background: #fff;
  border: 1px solid #ded7c9;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
}

/* =========================================================
   Allgemeine Boxen
   ========================================================= */

.al60-kurs .al60-note {
  margin: 24px 0;
  padding: 18px 22px;
  background: #fff7d8;
  border-left: 8px solid #e2b84b;
  border-radius: 16px;
}

.al60-kurs .al60-toc {
  margin: 26px 0;
  padding: 22px;
  background: #fff;
  border: 2px solid #ded7c9;
  border-radius: 20px;
}

.al60-kurs .al60-visual,
.al60-kurs .al60-slide {
  margin: 24px 0;
  background: #fff;
  border: 2px solid #ded7c9;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

.al60-kurs .al60-visual {
  padding: clamp(20px, 3vw, 26px);
}

.al60-kurs .al60-slide {
  padding: clamp(20px, 3vw, 28px);
}

.al60-kurs .al60-visual h2,
.al60-kurs .al60-slide h2 {
  margin: 0 0 16px;
  color: #17608f;
  font-size: clamp(25px, 3.2vw, 30px);
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

.al60-kurs .al60-slide h3 {
  margin: 18px 0 8px;
  color: #18263a;
  font-size: clamp(21px, 2.7vw, 23px);
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

/* =========================================================
   Listen
   Eigene, kompakte Einrückung innerhalb der Kursbeiträge.
   Verhindert zusätzliche Theme-Einzüge auf Android.
   ========================================================= */

.al60-kurs ul,
.al60-kurs ol {
  max-width: 100%;
  margin: .8em 0 1em;
  padding-inline-start: 1.45em;
}

.al60-kurs li {
  margin: .42em 0;
  padding-inline-start: .18em;
  line-height: 1.58;
}

.al60-kurs li::marker {
  color: #163b5c;
  font-weight: 700;
}

.al60-kurs li > ul,
.al60-kurs li > ol {
  margin-top: .4em;
  padding-inline-start: 1.25em;
}

.al60-kurs .al60-toc ol {
  margin: 8px 0 0;
  padding-inline-start: 1.55em;
}

/* =========================================================
   Interne Links
   ========================================================= */

.al60-kurs .al60-toc a,
.al60-kurs .al60-path a,
.al60-kurs .al60-section-links a {
  color: #17608f;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.al60-kurs .al60-toc a:hover,
.al60-kurs .al60-path a:hover,
.al60-kurs .al60-section-links a:hover {
  text-decoration: underline;
}

.al60-kurs .al60-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.al60-kurs .al60-section-links a {
  max-width: 100%;
  padding: 8px 13px;
  background: #f7f5ef;
  border: 1px solid #ded7c9;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.35;
}

/* =========================================================
   Lernroute
   Auch hier Auto-Fit statt einer starren 420-px-Bildspalte.
   ========================================================= */

.al60-kurs .al60-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 22px;
  align-items: start;
}

.al60-kurs .al60-visual figure {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.al60-kurs .al60-visual figure > img,
.al60-kurs .al60-visual img,
.al60-kurs .al60-kurs-card img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  background: #fff;
  border: 1px solid #e4ddcf;
  border-radius: 20px;
}

.al60-kurs .al60-visual figcaption {
  max-width: 520px;
  margin: 8px auto 0;
  color: #52606f;
  font-size: 15px;
  line-height: 1.5;
}

.al60-kurs .al60-path {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.al60-kurs .al60-path a {
  display: block;
  max-width: 100%;
  padding: 12px 14px;
  background: #f7f5ef;
  border: 1px solid #ded7c9;
  border-radius: 16px;
  color: #163b5c;
  font-weight: 800;
}

/* =========================================================
   Nummerierte Arbeitsschritte
   ========================================================= */

.al60-kurs .al60-step {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 20px 0;
}

.al60-kurs .al60-step > div:last-child {
  min-width: 0;
}

.al60-kurs .al60-step > div:last-child > :first-child {
  margin-top: 0;
}

.al60-kurs .al60-num {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #dff2ef;
  border-radius: 50%;
  color: #0b4f5f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

/* =========================================================
   Hinweis-, Übungs- und Prüfboxen
   ========================================================= */

.al60-kurs .al60-check,
.al60-kurs .al60-warning,
.al60-kurs .al60-practice,
.al60-kurs .al60-quiz {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 16px;
}

.al60-kurs .al60-check {
  background: #eef8f5;
}

.al60-kurs .al60-warning {
  background: #fdecec;
  border-left: 8px solid #d66363;
}

.al60-kurs .al60-practice {
  background: #eef4ff;
  border-left: 8px solid #7aa7d9;
}

.al60-kurs .al60-quiz {
  background: #f4edf9;
  border-left: 8px solid #b992d0;
}

.al60-kurs .al60-sources {
  margin: 30px 0;
  padding: 16px 20px;
  background: #f7f7f7;
  border-radius: 16px;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.al60-kurs .al60-small {
  color: #52606f;
  font-size: 16px;
}

.al60-kurs .al60-dont {
  color: #9b2c2c;
  font-weight: 700;
}

.al60-kurs .al60-do {
  color: #22543d;
  font-weight: 700;
}

/* =========================================================
   Lernillustrationen
   ========================================================= */

.al60-kurs .al60-learning-figure {
  max-width: 100%;
  margin: 24px 0;
  padding: 14px;
  background: #f7f9fb;
  border: 2px solid #d8e1e8;
  border-radius: 22px;
}

.al60-kurs .al60-learning-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 16px;
}

.al60-kurs .al60-learning-figure figcaption {
  margin: 12px 6px 2px;
  color: #42546a;
  font-size: 16px;
  line-height: 1.5;
}

/* =========================================================
   Kursübersichtskarten
   ========================================================= */

.al60-kurs .al60-kurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.al60-kurs .al60-kurs-card {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #ded7c9;
  border-radius: 18px;
}

.al60-kurs .al60-kurs-card img {
  border-radius: 14px;
}

/* =========================================================
   Tablet und schmale Inhaltsbereiche
   ========================================================= */

@media (max-width: 900px) {
  .al60-kurs {
    font-size: 18px;
  }

  .al60-kurs .al60-hero,
  .al60-kurs .al60-visual-grid {
    grid-template-columns: 1fr;
  }

  .al60-kurs .al60-hero > img,
  .al60-kurs .al60-visual figure > img {
    width: 100%;
    max-width: 620px;
  }
}

/* =========================================================
   Smartphone / Android
   ========================================================= */

@media (max-width: 620px) {
  .al60-kurs {
    font-size: 17px;
    line-height: 1.62;
  }

  .al60-kurs .al60-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
  }

  .al60-kurs .al60-hero h1 {
    font-size: clamp(28px, 8.5vw, 32px);
    line-height: 1.16;
  }

  .al60-kurs .al60-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .al60-kurs .al60-pill {
    width: 100%;
    border-radius: 12px;
  }

  .al60-kurs .al60-note,
  .al60-kurs .al60-toc,
  .al60-kurs .al60-visual,
  .al60-kurs .al60-slide {
    padding: 18px;
  }

  .al60-kurs .al60-note,
  .al60-kurs .al60-warning,
  .al60-kurs .al60-practice,
  .al60-kurs .al60-quiz {
    border-left-width: 6px;
  }

  .al60-kurs .al60-slide h2,
  .al60-kurs .al60-visual h2 {
    font-size: 23px;
    line-height: 1.24;
  }

  .al60-kurs .al60-slide h3 {
    font-size: 21px;
  }

  .al60-kurs ul,
  .al60-kurs ol,
  .al60-kurs .al60-toc ol {
    margin-left: 0;
    padding-inline-start: 1.25em;
  }

  .al60-kurs li {
    padding-inline-start: .08em;
  }

  /*
   * Auf Smartphones steht die Nummer über dem Text.
   * Dadurch rücken mehrzeilige Erklärungen nicht dauerhaft
   * um eine zusätzliche Zahlenspalte nach rechts.
   */
  .al60-kurs .al60-step {
    display: block;
    margin: 22px 0;
  }

  .al60-kurs .al60-num {
    width: 40px;
    height: 40px;
    margin: 0 0 10px;
    font-size: 20px;
  }

  .al60-kurs .al60-section-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .al60-kurs .al60-section-links a {
    width: 100%;
    text-align: center;
  }

  .al60-kurs .al60-learning-figure {
    margin: 18px 0;
    padding: 8px;
    border-radius: 16px;
  }

  .al60-kurs .al60-learning-figure img {
    border-radius: 12px;
  }

  .al60-kurs .al60-learning-figure figcaption {
    margin: 10px 4px 2px;
    font-size: 15px;
  }
}

/* Sehr kleine Android-Geräte */
@media (max-width: 380px) {
  .al60-kurs {
    font-size: 16.5px;
  }

  .al60-kurs .al60-hero,
  .al60-kurs .al60-note,
  .al60-kurs .al60-toc,
  .al60-kurs .al60-visual,
  .al60-kurs .al60-slide {
    padding: 15px;
  }

  .al60-kurs .al60-hero h1 {
    font-size: 27px;
  }

  .al60-kurs .al60-slide h2,
  .al60-kurs .al60-visual h2 {
    font-size: 22px;
    line-height: 1.24;
  }

  .al60-kurs .al60-slide h3 {
    font-size: 20px;
  }
}

/* =========================================================
   Kurs drucken / PDF
   Der Hinweis steht bewusst unter dem Button.
   Diese beiden Klassen stammen aus dem Theme und liegen
   außerhalb des .al60-kurs-Wrappers.
   ========================================================= */

.al60-course-print-button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-align: center;
  vertical-align: top;
}

.al60-course-print-hint {
  display: block;
  max-width: 100%;
  margin: 8px 0 20px;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .al60-course-print-button {
    width: 100%;
  }

  .al60-course-print-hint {
    margin-top: 10px;
    font-size: 16px;
  }
}

