/* Trainingsbausteine für KI-Praxisstart, KI-Werkstatt und Agentic Flow.
   Gemeinsame Vorlage: src/_includes/bausteine.njk. Jeder Baustein ist auf seinen Wurzelselektor (.tr-…) begrenzt,
   damit die Regeln nicht auf andere Abschnitte der Seiten wirken. Farben nur über --nd-page-accent* (color-system.css,
   body[data-color-scope]). Seitenspezifische Gestaltung (Erklärbereiche, Hero-Grafiken) bleibt in den Seiten. */

/* ===== Grundlage ===== */
.tr-block {
  --paper: #fbfaf6; --paper-warm: #f4efe7; --surface: #ffffff; --ink: #20242a; --muted: #5c6670;
  --line: #d9ded5; --line-warm: #e6dfd3; --radius: 8px; --shadow-soft: 0 10px 28px rgba(31, 36, 42, 0.08);
  padding: 86px 0; scroll-margin-top: 88px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink);
}
.tr-block, .tr-block *, .tr-block *::before, .tr-block *::after { box-sizing: border-box; }
.tr-block :where(h1, h2, h3, p) { margin: 0; }
.tr-container { width: min(100% - var(--seite-rand, 40px), var(--seite-breite, 1120px)); margin: 0 auto; }
.tr-block .tr-title { max-width: 820px; font-size: 37px; line-height: 1.18; font-weight: 780; letter-spacing: normal; text-wrap: wrap; }
.tr-block .tr-intro { max-width: 680px; margin-top: 16px; color: var(--muted); font-size: 18px; }
.tr-block .tr-accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; letter-spacing: -0.018em; }
.tr-block .tr-title .tr-accent, .tr-hero .hero-claim .tr-accent { color: var(--nd-page-accent-hover); }
/* .tr-button: Basis und Variante in assets/css/buttons.css */
.tr-hero .text-link {
  color: var(--nd-page-accent-hover); font-weight: 700; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--nd-page-accent) 48%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em;
}
@media (max-width: 760px) {
  .tr-block { padding: 62px 0; }
  .tr-block .tr-title { font-size: 29px; }
  .tr-block .tr-intro { font-size: 17px; }
}

/* ===== hero ===== */
.tr-block.tr-hero { padding: 64px 0; background: var(--paper-warm); border-bottom: 1px solid #e6dfd3; }
.tr-hero .hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tr-hero h1 { font-size: 68px; line-height: 1.02; font-weight: 820; letter-spacing: -0.01em; }
.tr-hero .hero-claim { margin-top: 20px; max-width: 520px; font-size: 26px; line-height: 1.3; font-weight: 560; }
/* Akzentzeile der Trainings-Heros: Source Serif 4 Italic (variabel, lokal, --font-accent), Gewicht 600. */
.tr-hero .hero-claim .tr-accent { color: var(--nd-page-accent-hover); font-family: var(--font-accent, Georgia, "Times New Roman", serif); font-weight: 600; }
.tr-hero .hero-copy { max-width: 34em; margin-top: 22px; }
.tr-hero .hero-copy p + p { margin-top: 14px; }
.tr-hero .hero-copy p { color: var(--muted); font-size: 17px; }
.tr-hero .hero-actions { margin-top: 24px; }
.tr-hero .hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--nd-page-accent-hover); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tr-hero .hero-eyebrow::before { content: ""; flex: none; width: 38px; height: 2px; border-radius: 999px; background: var(--nd-page-accent); }
.tr-hero .hero-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tr-hero .price-lines { font-size: 17px; line-height: 1.55; margin-top: 22px; padding-top: 16px; border-top: 1px solid #ddd4c6; }
.tr-hero .hero-figure { width: 100%; max-width: 540px; margin: 0; justify-self: end; }
@media (max-width: 1100px) {
  .tr-hero .hero-head { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tr-hero .hero-figure { justify-self: start; max-width: 540px; }
}
@media (max-width: 960px) {
  .tr-hero .hero-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .tr-block.tr-hero { padding: 44px 0 52px; }
  .tr-hero h1 { font-size: 46px; }
  .tr-hero .hero-claim { font-size: 21px; }
  .tr-hero .hero-action-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .tr-hero .hero-action-row .text-link { align-self: center; }
}
@media (max-width: 620px) {
  .tr-block.tr-hero { padding: 44px 0 44px; }
  .tr-hero .hero-head { gap: 28px; }
}
@media (max-width: 540px) {
  .tr-hero .hero-figure { max-width: 400px; }
}

/* ===== ablauf ===== */
.tr-block.tr-ablauf { background: var(--paper); border-top: 1px solid var(--line); }
.tr-ablauf .frame-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 48px; align-items: start; }
/* Kein Sticky: Die linke Spalte (Preiskarte mit Ergebnisblock) ist höher als die rechte; normaler Dokumentfluss hält alle Inhalte auch bei geringer Bildschirmhöhe erreichbar. */
.tr-ablauf .frame-stack { position: static; }
.tr-ablauf .frame-stack .tr-intro { font-size: 17px; margin-top: 14px; max-width: none; }
.tr-ablauf .price-card { margin-top: 24px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.tr-ablauf .price-amount { display: block; color: var(--nd-page-accent-hover); font-size: 54px; line-height: 1; font-weight: 820; letter-spacing: -0.01em; }
.tr-ablauf .price-card p { margin-top: 14px; color: var(--ink); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.tr-ablauf .price-card p strong { font-weight: 700; }
.tr-ablauf .price-card p + p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.tr-ablauf .price-card .tr-button { margin-top: 22px; }
.tr-ablauf .step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tr-ablauf .step-grid-head { grid-column: 1 / -1; margin: 0 0 2px; color: var(--ink); font-size: 17px; font-weight: 720; }
.tr-ablauf .step-grid-head span { color: var(--muted); font-weight: 400; }
.tr-ablauf .step-box { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tr-ablauf .step-box.final { border-color: color-mix(in srgb, var(--nd-page-accent-hover) 28%, transparent); background: var(--nd-page-accent-soft); }
.tr-ablauf .step-nr { display: block; margin-bottom: 10px; color: var(--nd-page-accent-hover); font-size: 17px; font-weight: 760; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tr-ablauf .step-label { display: block; margin-bottom: 4px; color: var(--nd-page-accent-hover); font-size: 12px; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; }
.tr-ablauf .step-box h3 { font-size: 18px; line-height: 1.3; font-weight: 720; }
.tr-ablauf .step-box p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 1100px) {
  .tr-ablauf .frame-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tr-ablauf .frame-stack { position: static; max-width: 640px; }
}
@media (max-width: 960px) {
  .tr-ablauf .frame-layout { grid-template-columns: 1fr; gap: 36px; }
  .tr-ablauf .frame-stack { position: static; }
}
@media (max-width: 760px) {
  .tr-ablauf .price-card { padding: 24px 20px; }
  .tr-ablauf .price-amount { font-size: 44px; }
  .tr-ablauf .price-card .tr-button { width: 100%; }
  .tr-ablauf .step-grid { grid-template-columns: 1fr; gap: 12px; }
  .tr-ablauf .step-box { padding: 18px 18px 20px; }
}

/* ===== person ===== */
.tr-block.tr-person { background: var(--surface); border-top: 1px solid var(--line); }
.tr-person .person-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: center; }
.tr-person .person-portrait { margin: 0; }
.tr-person .person-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.tr-person .person-copy { max-width: 620px; }
.tr-person .person-copy p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.tr-person .person-copy .person-qual { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.tr-person .person-copy .person-exp { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tr-person .person-copy .person-more { margin-top: 12px; font-size: 15px; }
.tr-person .person-link { color: var(--nd-page-accent-hover); font-weight: 400; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--nd-page-accent) 40%, transparent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.tr-person .person-link:hover { text-decoration-color: currentColor; }
@media (max-width: 960px) {
  .tr-person .person-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .tr-person .person-layout { grid-template-columns: 1fr; gap: 28px; }
  .tr-person .person-portrait { width: min(62vw, 230px); }
}

/* ===== eignung ===== */
body[data-color-scope="agentic-flow"] .tr-eignung { --tr-eignung-background: var(--nd-paper); }
.tr-block.tr-eignung { background: var(--tr-eignung-background, var(--nd-page-accent-soft)); border-top: 0; }
.tr-eignung .fit-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.tr-eignung .fit-copy p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.tr-eignung .fit-copy p + p { margin-top: 14px; }
.tr-eignung .fit-sub { margin-top: 56px; font-size: 20px; line-height: 1.3; }
.tr-eignung .fit-note { margin-top: 22px; color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .tr-eignung .fit-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== angebote ===== */
.tr-angebote .offer-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-template-rows: auto auto 1fr auto; }
.tr-angebote .offer { --mod: var(--nd-general); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; --mod-dark: var(--nd-general-hover); display: grid; flex-direction: column; border-top: 2px solid var(--mod); grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.tr-angebote .offer.is-praxis { --mod: var(--nd-reset); --mod-dark: var(--nd-reset-hover); }
.tr-angebote .offer.is-werkstatt { --mod: var(--nd-understand); --mod-dark: var(--nd-understand-hover); }
.tr-angebote .offer.is-flow { --mod: var(--nd-flow); --mod-dark: var(--nd-flow-hover); }
.tr-angebote .offer-name { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 17px; line-height: 1.25; font-weight: 720; grid-row: 2; padding-top: 14px; border-top: 1px solid var(--line); }
.tr-angebote .offer-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mod); flex: none; }
.tr-angebote .offer-here { font-size: 12px; font-weight: 760; color: var(--nd-page-accent-hover); background: var(--nd-page-accent-tint); padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.tr-angebote .offer p { margin-top: 10px; color: var(--muted); text-wrap: pretty; }
.tr-block.tr-angebote { background: var(--paper-warm); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.tr-angebote .offer-link { align-self: flex-start; margin-top: 14px; padding-top: 16px; color: var(--mod-dark); font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--mod) 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; grid-row: 4; justify-self: start; }
.tr-angebote .offer-link:hover { text-decoration-color: currentColor; }
.tr-angebote .offer-frame { max-width: 60ch; margin-top: 24px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.tr-angebote .offer-frame strong { color: var(--ink); font-weight: 700; }
.tr-angebote .offer-key { max-width: 72ch; margin-top: 24px; color: var(--ink); font-size: 16px; font-weight: 700; text-wrap: pretty; }
.tr-angebote .offer-key + .offer-frame { max-width: 72ch; margin-top: 8px; }
.tr-angebote .offer .offer-wish { grid-row: 1; margin: 0 0 16px; color: var(--ink); font-size: 20px; font-weight: 720; line-height: 1.28; text-wrap: balance; }
.tr-angebote .offer .offer-text { grid-row: 3; margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 960px) {
  .tr-angebote .offer-cards { grid-template-columns: 1fr; gap: 12px; grid-template-rows: none; }
  .tr-angebote .offer { display: flex; grid-row: auto; }
  .tr-angebote .offer .offer-wish { order: -1; }
  .tr-angebote .offer-link { align-self: flex-start; }
}
@media (max-width: 760px) {
  .tr-angebote .offer { padding: 20px; }
  .tr-angebote .offer .offer-wish { font-size: 19px; }
}

/* ===== faq ===== */
.tr-block.tr-faq { background: var(--surface); border-top: 1px solid var(--line); }
.tr-faq .faq-layout { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.tr-faq .faq-list { display: block; gap: 10px; border-top: 1px solid var(--line); }
.tr-faq .faq-list details { border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); box-shadow: none; }
.tr-faq .faq-list details[open] { border-color: color-mix(in srgb, var(--nd-general) 40%, var(--line)); box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.tr-faq .faq-list summary { display: block; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-size: 17px; line-height: 1.4; font-weight: 720; position: relative; }
.tr-faq .faq-list summary::-webkit-details-marker { display: none; }
.tr-faq .faq-list summary::after { content: ""; flex: none; display: block; place-items: center; width: 14px; height: 1.8px; border-radius: 1px; border: 0; color: var(--nd-general-hover); font-size: 18px; font-weight: 500; line-height: 1; position: absolute; right: 6px; top: 50%; margin-top: -1px; background: var(--nd-page-accent-hover); transition: transform 160ms ease; transform: rotate(90deg); }
.tr-faq .faq-list details[open] summary::after { content: ""; border-color: var(--nd-general); position: absolute; right: 6px; top: 50%; display: block; width: 14px; height: 1.8px; margin-top: -1px; border: 0; border-radius: 1px; background: var(--nd-page-accent-hover); transition: transform 160ms ease; transform: rotate(0deg); }
.tr-faq .faq-list details p { border: 0; margin: 0; padding: 0 44px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 66ch; text-wrap: pretty; }
.tr-faq .faq-list summary::marker { content: ""; }
.tr-faq .faq-list summary::before { content: ""; position: absolute; right: 6px; top: 50%; display: block; width: 14px; height: 1.8px; margin-top: -1px; border: 0; border-radius: 1px; background: var(--nd-page-accent-hover); transition: transform 160ms ease; }
.tr-faq .faq-list summary:hover { color: var(--nd-page-accent-hover); }
@media (max-width: 960px) {
  .tr-faq .faq-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .tr-faq .faq-list summary { padding: 18px 36px 18px 0; font-size: 16px; }
  .tr-faq .faq-list details p { padding: 0 0 18px; }
}

/* ===== kontakt ===== */
.tr-block.tr-kontakt { padding: 92px 0; background-color: #102d32; background-image: radial-gradient(circle at 8% 92%, rgba(63, 112, 128, 0.2), transparent 34%), linear-gradient(135deg, #123639 0%, #102d32 48%, #102536 100%); color: #f5f7f4; scroll-margin-top: 70px; }
.tr-kontakt .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr); gap: 72px; align-items: center; }
.tr-kontakt h2 { max-width: 600px; color: #fff; font-size: clamp(36px, 3.8vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
.tr-kontakt h2 .tr-accent { display: block; margin-top: 6px; color: #e2b896; }
.tr-kontakt .contact-lede { margin-top: 24px; max-width: 600px; color: #d3dedc; font-size: 18px; line-height: 1.55; }
.tr-kontakt .contact-lede + .contact-lede { margin-top: 14px; }
.tr-kontakt .contact-trust { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: #eef3f1; }
.tr-kontakt .contact-trust li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.tr-kontakt .contact-trust li::before { content: "✓"; color: #a9cad8; font-weight: 800; }
.tr-kontakt .form-card { padding: 32px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 26px 62px rgba(3, 17, 24, 0.3); }
/* Formularfelder, Hinweise, Status, Fehler: gemeinsam in assets/css/formular.css. Hier nur die Trainings-Variante des Buttons im Formular. */
.tr-kontakt .mf .tr-button { --btn-min-height: 54px; --btn-border: 0; --btn-radius: 10px; line-height: inherit; }
.tr-kontakt .form-note a { color: var(--nd-general-hover); font-weight: 700; }
.tr-kontakt .contact-text { max-width: 600px; margin-top: 16px; color: #d3dedc; font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
.tr-kontakt .contact-key { color: #fff; font-weight: 700; }
@media (max-width: 960px) {
  .tr-kontakt .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .tr-block.tr-kontakt { padding: 64px 0; }
  .tr-kontakt h2 { font-size: 34px; }
  .tr-kontakt .contact-lede { font-size: 17px; }
  .tr-kontakt .form-card { padding: 22px; border-radius: 12px; }
}

/* ===== Ergänzungen der gemeinsamen Bausteine ===== */
.tr-hero .hero-figure img { display: block; width: 100%; height: auto; }
/* Ablauf: Ergebnisblock innerhalb der Preiskarte, Hinweis, dezenter Link zu Ablauf & Preisen */
.tr-ablauf .price-outcome { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tr-ablauf .price-outcome-title { margin: 0; color: var(--nd-page-accent-hover); font-size: 16px; line-height: 1.3; font-weight: 760; }
.tr-ablauf .price-card .price-outcome p { margin-top: 8px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.tr-ablauf .price-card .price-outcome p strong { display: block; color: var(--nd-page-accent-hover); font-size: 13.5px; font-weight: 760; }
.tr-ablauf .price-card .price-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
.tr-ablauf .price-more { display: block; margin-top: 14px; text-align: center; color: var(--nd-page-accent-hover); font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--nd-page-accent) 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.tr-ablauf .price-more:hover { text-decoration-color: currentColor; }
/* Interner Platzhalter: nur in der Arbeitsfassung zulässig, bricht check:release ab */
.platzhalter { padding: 1px 6px; border: 1px dashed #b4772c; border-radius: 4px; background: #fff6e6; color: #7a4d12; font-style: italic; }
/* Eignung: Einleitung und Liste (Praxisstart) */
.tr-eignung .fit-copy .fit-lead { color: var(--ink); font-size: 18px; font-weight: 600; max-width: 58ch; }
.tr-eignung .fit-copy .fit-sub-title { margin-top: 26px; color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 720; }
.tr-eignung .fit-copy ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.tr-eignung .fit-copy li { position: relative; padding-left: 22px; color: var(--muted); font-size: 17px; max-width: 58ch; }
.tr-eignung .fit-copy li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-page-accent); }
.tr-eignung .fit-copy .fit-sub-note { margin-top: 18px; }
/* Person: Beschreibungssatz in eigener Zeile */
.tr-person .tr-title .tr-accent { display: block; font-family: var(--font-accent, Georgia, "Times New Roman", serif); font-weight: var(--font-accent-weight, 500); }
.tr-eignung .tr-title .tr-accent { font-family: var(--font-accent, Georgia, "Times New Roman", serif); font-weight: var(--font-accent-weight, 500); }
.tr-person .person-copy .tr-title { max-width: none; }
