/* Hinter die Dinge – interne Barrierefreiheitsrunde 1.9. */
/* Beschriftungen mit semantischer Funktion müssen auch auf wechselnden Hintergründen lesbar bleiben. */
html[data-theme="light"] .foundation > span{color:#71552D}
html[data-theme="dark"] .foundation > span{color:#E3C68D}
html[data-theme="light"] .pillar > span{color:#76552D}
html[data-theme="dark"] .pillar > span{color:#E3C68D}
.visual-caption span{color:#62573F}
html[data-theme="light"] .essay-download span{color:#4B5861}
html[data-theme="light"] .legal-section-index{color:#71552D}
html[data-theme="dark"] .legal-section-index{color:#E3C68D}
html[data-theme="dark"] .contact-card-index{color:#E3C68D}
/* Eindeutige Abgrenzung des aktiven Bibliotheksfilters auch ohne Farbunterscheidung. */
.library-filters .filter.is-current{box-shadow:inset 0 -3px 0 currentColor}
@media(forced-colors:active){.library-filters .filter.is-current{border-width:2px;outline:2px solid Highlight;outline-offset:1px}}
/* Vorsorge für stark vergrößerte Schrift in schmalen Ansichten: Text darf Layout-Raster nicht aufweiten. */
@media(max-width:600px){
  .brand{min-width:0;flex:1 1 auto;white-space:normal}
  .brand-type{min-width:0}
  .brand-type strong,.brand-type small{white-space:normal;overflow-wrap:anywhere}
  .header-actions{flex-shrink:0}
  .book-feature{grid-template-columns:minmax(0,115px) minmax(0,1fr)}
  .book-copy,.book-copy p,.book-copy h3{min-width:0;overflow-wrap:anywhere}
  .library-intro-grid,.library-list-top,.library-closing-grid,.library-hero-grid,.essay-hero-grid,.essay-layout,.related-cards{grid-template-columns:minmax(0,1fr)}
  .library-intro-grid>*,.library-list-top>*,.library-closing-grid>*,.library-card,.library-card>*,.related-cards>a,.essay-download>div{min-width:0;overflow-wrap:anywhere}
  .essay-download{flex-wrap:wrap}
}
@media(max-width:600px){
 .hero-grid,.newbook-grid,.pillar{grid-template-columns:minmax(0,1fr)}
 .hero-grid>*,.hero-copy,.newbook-grid>*,.newbook-text,.article-grid>*,.article-card,.article-details,.essay-body,.essay-body>*,.pillar>*{min-width:0;overflow-wrap:anywhere}
 .article-image-link,.article-card h3 a,.related-cards a,.inline-arrow{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:600px){
 .reading-grid{grid-template-columns:minmax(0,1fr) minmax(0,100px)}
 .reading-grid>*,.philosophy-grid>*,.section-heading>*,.section-heading-aside{min-width:0;overflow-wrap:anywhere}
 .reading-grid .text-link{white-space:normal}
}
