/* Die Laptop-Lernansicht bleibt unverändert. */
.reader-mobile-header, .reader-mobile-bar { display: none; }
@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  html:has(.learn-page) { scroll-padding-top: calc(100px + env(safe-area-inset-top)); scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .learn-page { --reader-side: clamp(20px,5vw,32px); background: #f6f5ef; }
  .learn-page > .site-header, .learn-page > .site-footer, .learn-sidebar { display: none; }
  .reader-mobile-header { display: block; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: #f6f5ef; border-bottom: 1px solid #d9dcd2; }
  .reader-mobile-header-row { display: flex; align-items: center; gap: 8px; min-height: 76px; padding: 10px 12px; }
  .reader-back, .reader-all { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 48px; min-height: 48px; border-radius: 12px; }
  .reader-back:hover, .reader-all:hover { background: #e6e9de; }
  .reader-context { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding-inline: 3px; }
  .reader-theme { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
  .reader-position { font-size: 12px; line-height: 1.4; color: #596250; }
  .reader-all { gap: 7px; padding-inline: 12px; border: 1px solid #c4cdbb; border-radius: 100px; font-size: 13px; font-weight: 600; }
  .reader-all .icon { width: 18px; height: 18px; }
  .reader-position-progress { display: block; width: 100%; height: 3px; margin: 0; border: 0; border-radius: 0; background: #e1e5d9; color: #3c6650; appearance: none; }
  .reader-position-progress::-webkit-progress-bar { background: #e1e5d9; border-radius: 0; }
  .reader-position-progress::-webkit-progress-value { background: #3c6650; border-radius: 0; }
  .reader-position-progress::-moz-progress-bar { background: #3c6650; border-radius: 0; }
  .learn-page .learn-shell { display: block; width: 100%; padding: 28px var(--reader-side) 44px; }
  .learn-page.reader-enhanced .learn-shell { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .learn-page .learn-content { width: 100%; max-width: 640px; margin-inline: auto; }
  .learn-page .slide-paper { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .learn-page .slide-heading { margin-bottom: 30px; }
  .learn-page .slide-meta { margin-bottom: 16px; font-size: 12px; }
  .learn-page .slide-meta > span:first-child { display: none; }
  .learn-page .slide-heading h1 { font-size: clamp(29px,7.5vw,38px); line-height: 1.18; letter-spacing: -.04em; text-wrap: pretty; }
  .learn-page .slide-intro { margin-top: 18px; color: #4f5b49; font-size: 17px; line-height: 1.65; }
  .learn-page .content-block .prose { font-size: 17px; line-height: 1.8; }
  .learn-page .content-block h2 { margin-bottom: 16px; font-size: 26px; line-height: 1.25; letter-spacing: -.03em; }
  .learn-page .content-block + .content-block { margin-top: 28px; }
  .learn-page .lesson-image { width: 100%; max-height: 300px; object-fit: contain; border-radius: 16px; }
  .learn-page figcaption, .learn-page .media-caption { font-size: 13px; line-height: 1.6; }
  .learn-page .content-block blockquote { padding: 24px; border-radius: 18px; }
  .learn-page .content-block blockquote p { font-size: 25px; line-height: 1.35; }
  .learn-page .content-block blockquote footer { font-size: 13px; }
  .learn-page .quiz-card { padding: 25px 20px; margin: 30px -4px 0; border-radius: 18px; }
  .learn-page .quiz-card legend { font-size: 25px; line-height: 1.25; }
  .learn-page .quiz-hint { font-size: 14px; }
  .learn-page .quiz-option { min-height: 56px; padding: 15px 12px; font-size: 16px; line-height: 1.5; }
  .learn-page .quiz-card input[type=text] { min-height: 52px; font-size: 16px; }
  .learn-page .quiz-card button[type=submit] { width: 100%; min-height: 52px; margin-top: 20px; font-size: 15px; }
  .learn-page .quiz-feedback { font-size: 15px; line-height: 1.6; }
  .learn-page.reader-enhanced .slide-finish, .learn-page.reader-enhanced .lesson-navigation { display: none; }
  .reader-enhanced .reader-mobile-bar { display: block; position: fixed; inset: auto 0 0; z-index: 15; padding: 10px max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); border-top: 1px solid #d9dcd2; background: #f6f5ef; }
  .reader-mobile-bar > nav { display: flex; gap: 12px; max-width: 640px; margin-inline: auto; }
  .reader-previous { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid #bac5ae; border-radius: 100px; }
  .reader-previous:hover { background: #e4e9db; }
  .reader-mobile-bar .reader-next { flex: 1; min-height: 52px; padding: 14px 18px; background: #123c35; border-color: #123c35; font-size: 16px; }
  .reader-mobile-bar .reader-next:disabled { opacity: .55; }
  .reader-bar-hint { max-width: 640px; margin: 0 auto 9px; font-size: 13px; line-height: 1.45; color: #4f5b49; }
  .learn-page .course-complete { padding: 28px 22px; margin-top: 30px; }
  .learn-page .course-complete h2 { font-size: 31px; line-height: 1.2; }
  .learn-page .course-complete p { font-size: 16px; line-height: 1.7; }
  .learn-page .course-complete .button { min-height: 48px; font-size: 14px; }
  .learn-page :is(input,button,a,[tabindex]) { scroll-margin-top: calc(100px + env(safe-area-inset-top)); scroll-margin-bottom: calc(145px + env(safe-area-inset-bottom)); }
  .learn-page .theme-picker :is(input,button,a,[tabindex]) { scroll-margin-block: 20px; }
  /* Die Bildschirmtastatur erhält Platz, wenn eine Antwort eingegeben wird. */
  .learn-page:has(.quiz-card input[type=text]:focus) .reader-mobile-bar { visibility: hidden; }
  .theme-page .theme-hero { padding: 24px; gap: 24px; }
  .theme-page .theme-hero h1 { font-size: clamp(32px,8vw,43px); line-height: 1.2; }
  .theme-page .theme-description { font-size: 16px; line-height: 1.7; }
  .theme-page .theme-hero .button, .theme-page .back-link { min-height: 48px; }
  .theme-page .lesson-list > li > a { min-height: 80px; }
  .theme-page .lesson-list h3 { font-size: 21px; line-height: 1.3; }
  .theme-page .lesson-list p { font-size: 15px; line-height: 1.6; }
  .member-dialog-close { width: 48px; height: 48px; }
}
@media (max-width: 700px) {
  .study-hero-media, .study-hero-media img { height: 220px; }
  .study-topics .category-filters { flex-wrap: nowrap; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 0 9px; }
  .study-topics .filter-chip { flex-shrink: 0; min-height: 44px; font-size: 13px; padding-inline: 15px; }
  .study-topics .search-field { min-height: 48px; }
  .study-topics .search-field input { font-size: 16px; }
  .learning-home .member-login-link, .learning-home .site-nav .text-button, .learning-home .site-nav > a { min-height: 44px; display: inline-flex; align-items: center; }
  .theme-page .theme-hero-media { height: 170px; }
}
@media (max-width: 360px) {
  .reader-mobile-header-row { gap: 4px; padding-inline: 6px; }
  .reader-all { padding-inline: 10px; }
  .reader-theme { font-size: 14px; }
}
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .reader-mobile-header-row { min-height: 60px; padding-block: 6px; }
  .reader-enhanced .reader-mobile-bar { padding-top: 8px; padding-bottom: max(8px,env(safe-area-inset-bottom)); }
  .reader-previous, .reader-mobile-bar .reader-next { min-height: 48px; height: 48px; }
  .learn-page .learn-shell { padding-top: 22px; }
}
