/* Web-Apps /buchung/ und /arbeitsblaetter/ (nho-web-app.php, 27.11.2026).
 * html.nho-app = als App vom Home-Bildschirm geöffnet (display-mode: standalone bzw. iOS navigator.standalone).
 * Nur Rahmen und Kopf/Fuß – Buchungsformular, Suche, Fach-Menü und PDF-Links bleiben unverändert. */

/* viewport-fit=cover: Querformat-Ränder am Notch frei halten (auch im Browser; sonst 0). */
body.nho-webapp-seite{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}

/* ---------- App-Modus ---------- */
html.nho-app{background:var(--pm-paper,#f4f5f8);-webkit-tap-highlight-color:transparent}
html.nho-app body{-webkit-text-size-adjust:100%}

/* Kopfleiste kompakt: nur Logo und Hell/Dunkel */
html.nho-app .site-header{padding-top:env(safe-area-inset-top,0px)}
html.nho-app body.admin-bar .site-header{top:0}
html.nho-app #wpadminbar{display:none!important}
html.nho-app body.admin-bar{margin-top:0!important}
html.nho-app .site-header :is(.nho-kn,.nho-kn-konto,.nho-header-trial,.nho-header-cart,.nho-mobile-menu){display:none!important}
html.nho-app .site-header .header-inner,
html.nho-app body.nho-premium .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto!important;min-height:56px!important;padding-block:6px!important;gap:8px!important}
html.nho-app .site-header .nho-look-toggle{grid-column:2!important;grid-row:1!important;width:40px;height:40px}
html.nho-app .site-header .brand{min-height:40px;gap:8px}
html.nho-app .site-header .brand-logo{width:30px!important;height:30px!important;flex-basis:30px!important}
html.nho-app .site-header .brand-copy small{display:none!important}
html.nho-app .site-header .brand-copy .brand-name{font-size:18px!important;white-space:nowrap}
html.nho-app .site-header .brand-copy{display:block!important}

/* Werbe-Teaser und schwebende Probestunden-Knöpfe aus */
html.nho-app :is(.nho-ab-cta,.nho-global-trial,.nho-global-cta,.nho-universal-cta,.nho-sticky-trial-cta,.mobileCTA,.desktopCTA){display:none!important}

/* Fußzeile: nur die schmale Rechtsleiste (Impressum, Datenschutz, Einwilligung) bleibt erreichbar */
html.nho-app .site-footer{padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px))!important}
html.nho-app .site-footer .footer-grid{display:none!important}
html.nho-app .site-footer .footer-bottom{margin-top:0!important;padding-top:0!important;border-top:0!important;justify-content:center;font-size:12px}
html.nho-app .site-footer .footer-bottom>span{display:none}

/* Filter-Blatt der Aufgabenbibliothek nicht unter den Home-Balken */
html.nho-app .mb-app.mbk .mbk-sheet{padding-bottom:env(safe-area-inset-bottom,0px)}

/* ---------- Hinweis „Als App auf den Home-Bildschirm legen“ (nur Browser, nur mobil; web-app.js) ---------- */
.nho-app-tipp{position:relative;display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;width:min(100% - 24px,680px);margin:12px auto 4px;padding:12px 44px 12px 12px;border:1px solid var(--pm-line,#e1e4ec);border-radius:16px;background:var(--pm-surface,#fff);color:var(--pm-ink,#0a0f24);font-family:var(--pm-sans,Inter,Arial,sans-serif);font-size:14px;line-height:1.45;box-shadow:0 8px 24px rgba(10,15,36,.06)}
.nho-app-tipp img{flex:none;width:44px;height:44px;border-radius:11px}
.nho-app-tipp b{display:block;font-weight:600}
.nho-app-tipp p{margin:2px 0 0;color:var(--pm-muted,#5a6379);font-size:13px}
.nho-app-tipp .nho-app-tipp-teilen{display:inline-block;vertical-align:-3px;width:16px;height:16px}
.nho-app-tipp .nho-app-tipp-los{margin-top:8px;min-height:40px;padding:8px 16px;border:0;border-radius:999px;background:var(--pm-orange,#ff7418);color:var(--pm-on-orange,#1a0d00);font:inherit;font-weight:600;cursor:pointer}
.nho-app-tipp .nho-app-tipp-zu{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;color:var(--pm-muted,#5a6379);font-size:22px;line-height:1;cursor:pointer}
.nho-app-tipp :is(button):focus-visible{outline:3px solid var(--pm-orange,#ff7418);outline-offset:2px}

/* ---------- Offline-Hinweis im App-Modus ---------- */
.nho-app-offline{position:fixed;z-index:200050;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);box-sizing:border-box;max-width:calc(100% - 24px);padding:10px 16px;border-radius:999px;background:#0a0f24;color:#fff;font:500 14px/1.4 var(--pm-sans,Inter,Arial,sans-serif);box-shadow:0 10px 30px rgba(10,15,36,.3)}
html[data-look="dunkel"] .nho-app-offline{background:#fff;color:#0a0f24}
.nho-app-offline[hidden]{display:none}
