/* Hinter die Dinge – interne vertiefte Barrierefreiheitsprüfung 2.0
   Anpassungen für Textvergrößerung, Umbruch und sichtbare Fokusindikatoren.
   Dies ist KEINE produktive Veröffentlichung. */
@media (max-width:810px) {
  .wrap, .header-inner, .ribbon-layout, .hero-grid, .hero-copy,
  .section-heading, .section-heading-aside, .article-grid,
  .library-hero-grid, .library-intro-grid, .library-list-top,
  .reading-grid, .book-list, .book-feature, .footer-main,
  .footer-bottom, .footer-bottom div, .method-grid,
  .detail-hero, .detail-content, .detail-layout, .detail-read-section {
    min-width:0;
    max-width:100%;
  }
  /* Texte statt Layout-Aufweitung umbrechen lassen. */
  .ribbon-layout, .ribbon-layout *, .footer-bottom, .footer-bottom *,
  .hero-copy, .hero-copy *, .section-heading, .section-heading *,
  .book-feature, .book-feature *, .library-hero, .library-hero *,
  .detail-hero, .detail-hero *, .legal-content, .legal-content *,
  .essay-layout, .essay-layout *, .author-copy, .author-copy * {
    overflow-wrap:anywhere;
    min-width:0;
  }
  .ribbon-layout{flex-wrap:wrap;align-items:center}
  .ribbon-layout span{white-space:normal}
  .footer-bottom div{display:flex;flex-wrap:wrap;gap:12px 20px}
  .footer-bottom a,.footer-main a,.footer-brand{white-space:normal}
  .reading-grid .text-link,.hero-actions a,.button,.nav-cta{white-space:normal;max-width:100%}
  .display-heading,.hero h1,.closing h2,.detail-title,.library-hero h1{overflow-wrap:anywhere}
}
@media(max-width:450px){
  .foundation,.pillar,.book-feature,.reading-grid,.library-card{min-width:0}
  .footer-bottom{overflow-wrap:anywhere}
  .brand-type{overflow-wrap:anywhere;min-width:0}
  .brand-type strong{white-space:normal}
  .preview-ribbon{overflow-wrap:anywhere}
}
/* Tastaturfokus auch in hellen Flächen sichtbar, ohne auf Goldkontrast angewiesen zu sein. */
html[data-theme="light"] :is(a,button,input):focus-visible{outline-color:#71501A}
html[data-theme="dark"] :is(a,button,input):focus-visible{outline-color:#F0D4A4}
@media (forced-colors:active){:is(a,button,input):focus-visible{outline-color:Highlight!important}}
/* Grid-Kinder werden bei stark vergrößertem Text nicht auf die Breite
   ihres längsten untrennbaren Wortes erweitert. */
@media(max-width:810px){
 .use-grid,.newpage-section-grid,.keep-head,.newpage-hero-grid,
 .newpage-section-grid>*,.keep-head>*,.use-grid>*,
 .newpage-hero-grid>*,.newpage-h-art{
   min-width:0;
   max-width:100%;
 }
 .use-grid,.newpage-section-grid,.keep-head,.newpage-hero-grid{
   grid-template-columns:minmax(0,1fr)!important;
 }
 .use-grid>*,.newpage-section-grid>*,.keep-head>*,
 .use-grid h2,.newpage-section-grid h2,.keep-head h2{
   min-width:0;
   overflow-wrap:anywhere;
 }
 .newpage-h-art{width:100%;overflow:hidden}
 .newpage-h-art>span{max-width:100%}
}
@media(max-width:810px){
 .method-steps, .method-step, .method-step>*, .newpage-links,
 .newpage-linklist, .newpage-link{
   min-width:0;
   max-width:100%;
 }
 .method-steps{grid-template-columns:minmax(0,1fr)}
 .method-step{grid-template-columns:minmax(0,60px) minmax(0,1fr)}
 .method-step h3,.method-step p{min-width:0;overflow-wrap:anywhere}
 .newpage-linklist a{flex-wrap:wrap;min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:810px){
 .steps-section h2, .method-use h2, .newpage-section h2,
 .newpage-lead h1, .newpage-prose h2, .newbook-text h2{
   min-width:0;
   overflow-wrap:anywhere;
 }
}
@media(max-width:810px){
  .missing-grid,.contact-end-inner,.detail-dark-inner,.about-next-grid{
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0;max-width:100%;
  }
  .missing-grid>*,.contact-end-inner>*,.detail-dark-inner>*,
  .about-next-grid>*,.about-next-grid a strong{
    min-width:0;max-width:100%;overflow-wrap:anywhere;
  }
  .detail-dark-inner blockquote,.detail-dark-inner blockquote em{
    min-width:0;max-width:100%;overflow-wrap:anywhere;
  }
  .missing-info,.contact-end-inner h2,.contact-end-inner p{
    min-width:0;max-width:100%;overflow-wrap:anywhere;
  }
}
@media(max-width:810px){
  .missing-help-grid,.detail-meta-grid,.guide-duo{
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0;max-width:100%;
  }
  .missing-help-grid>*,.detail-meta-grid>*,.guide-duo>*,
  .missing-help-grid strong,.detail-meta-grid h2,.guide-duo article{
    min-width:0;max-width:100%;overflow-wrap:anywhere;
  }
}
@media(max-width:810px){
  .detail-topic-grid,.detail-question-grid,.guide-questions,
  .detail-topic-grid>*,.detail-question-grid>*{
    min-width:0;max-width:100%;
  }
  .detail-topic-grid,.detail-question-grid{grid-template-columns:minmax(0,1fr)!important}
  .detail-topic-grid p,.detail-question-grid li p,.detail-question-grid li strong,
  .guide-questions li p,.guide-duo article p{
    overflow-wrap:anywhere;min-width:0;
  }
}
