/* ============================================================
   German article pages (/de/preise, /de/erste-trainingseinheit and the
   German guides). Loads after /css/site.css and /css/pages/article.css
   and only adjusts what longer German compounds need. Tokens and rules:
   docs/design-system.md.
============================================================ */

/* Long compounds ("Kennenlerngespräch", "Wiederholungsbereich") may break
   with a hyphen instead of running past the column. Needs lang="de". */
.art-hero-text h1, .prose h2, .prose h3, .art-cta-title, .related-card h3,
.faq-item summary, .art-table td, .price-row-name, .art-toc a, .art-lang-note {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Table headers stay on one line in article.css; German ones are longer, so let them wrap */
.art-table th { white-space: normal; hyphens: auto; -webkit-hyphens: auto; }

@media (max-width: 600px) {
    /* The narrow reading column hyphenates body text too, so lines stay even */
    .prose p, .prose li, .callout p, .faq-body, .related-card p { hyphens: auto; -webkit-hyphens: auto; }
}

/* The language line is longer in German: keep the flag beside the first line instead of above the text */
.art-lang-note { flex-wrap: nowrap; align-items: flex-start; }
.art-lang-note .flag { flex: none; margin-top: .2em; }
