/* FL Buddy 7 · Mobile Fahrlehrer · Phase 8A */
@media (max-width: 760px){
  body.flb7-workspace{padding-bottom:calc(78px + env(safe-area-inset-bottom));}
  body.flb7-workspace .sidebar{display:none!important;}
  body.flb7-workspace .main-content{margin-left:0!important;width:100%!important;min-width:0!important;}
  body.flb7-workspace .mobile-menu-global{display:none!important;}
  body.flb7-workspace .flb7-globalbar{position:sticky;top:0;z-index:85;padding:10px 12px!important;min-height:58px;background:var(--flb-light-surface, rgba(7,31,38,.96));backdrop-filter:blur(16px);}
  body.flb7-workspace .flb7-search{width:100%;min-width:0;}
  body.flb7-workspace .flb7-search input{font-size:16px;min-width:0;}
  body.flb7-workspace .flb7-search kbd{display:none;}
  body.flb7-workspace .flb7-global-spacer,body.flb7-workspace .flb7-user{display:none!important;}
  body.flb7-workspace .flb7-tabsbar{display:none!important;}
  body.flb7-workspace .page-view{padding-left:12px!important;padding-right:12px!important;padding-bottom:18px!important;}
  body.flb7-workspace .topbar{padding-top:12px;gap:10px;align-items:flex-start;}
  body.flb7-workspace .topbar h1{font-size:clamp(1.35rem,7vw,1.8rem);line-height:1.12;}
  body.flb7-workspace .top-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end;}
  body.flb7-workspace .top-actions .online-pill,body.flb7-workspace .top-actions .cockpit-customize-trigger span{display:none;}
  body.flb7-workspace .hero-card{border-radius:18px;padding:18px!important;grid-template-columns:1fr!important;}
  body.flb7-workspace .hero-copy h2{font-size:1.45rem;}
  body.flb7-workspace .hero-stats{grid-template-columns:1fr 1fr!important;gap:8px!important;}
  body.flb7-workspace .hero-stats article{min-width:0;padding:12px!important;}
  body.flb7-workspace .hero-stats article.next{grid-column:1/-1;}
  body.flb7-workspace button,body.flb7-workspace .button{min-height:44px;}
  body.flb7-workspace .flb7-mobile-bottom{display:grid!important;}
  body.flb7-workspace .flb7-mobile-more{display:block;}
  body.flb7-workspace .modal-card,body.flb7-workspace .dialog-card{max-height:calc(100dvh - 92px);overflow:auto;}
  body.flb7-workspace table{font-size:13px;}
}
@media (min-width:761px){.flb7-mobile-bottom,.flb7-mobile-more{display:none!important;}}
.flb7-mobile-bottom{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:2147481000;grid-template-columns:repeat(5,1fr);gap:3px;padding:6px;border:1px solid var(--flb-light-outline, rgba(130,210,203,.18));border-radius:19px;background:var(--flb-light-surface, rgba(7,31,38,.97));box-shadow:0 14px 42px rgba(0,0,0,.38);backdrop-filter:blur(18px)}
.flb7-mobile-bottom button{appearance:none;border:0;background:transparent;color:var(--flb-light-muted, #9db7bc);border-radius:14px;padding:7px 2px 6px;min-width:0;font:inherit;font-size:10px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1}
.flb7-mobile-bottom button .ico{font-size:19px;line-height:1}
.flb7-mobile-bottom button.active{background:var(--flb-light-teal-soft, rgba(73,201,183,.13));color:var(--flb-light-accent-ink, #6fe0cf)}
.flb7-mobile-more{position:fixed;inset:0;z-index:2147480900;background:var(--flb-light-surface, rgba(1,12,16,.68));backdrop-filter:blur(5px)}
.flb7-mobile-more[hidden]{display:none!important}
.flb7-mobile-more-sheet{position:absolute;left:10px;right:10px;bottom:calc(86px + env(safe-area-inset-bottom));padding:14px;border-radius:20px;border:1px solid var(--flb-light-outline, rgba(130,210,203,.2));background:var(--flb-light-surface, #0a2932);box-shadow:0 22px 60px rgba(0,0,0,.5)}
.flb7-mobile-more-head{display:flex;align-items:center;justify-content:space-between;margin:2px 4px 12px}.flb7-mobile-more-head strong{font-size:16px}.flb7-mobile-more-head button{border:0;background:rgba(255,255,255,.06);color:inherit;border-radius:12px;width:42px;height:42px;font-size:22px}
.flb7-mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.flb7-mobile-more-grid button{border:1px solid var(--flb-light-outline, rgba(130,210,203,.14));background:rgba(255,255,255,.035);color:inherit;border-radius:15px;padding:14px 10px;text-align:left;font:inherit;font-weight:800;min-height:58px}.flb7-mobile-more-grid button small{display:block;color:var(--flb-light-muted, #88a8ae);font-weight:600;margin-top:3px}

/* Closed Beta: Platz fuer Systemleisten und feststehende Navigation. */
@media (max-width:760px){
  html{scroll-padding-bottom:calc(116px + env(safe-area-inset-bottom, 0px));}
  body.flb7-workspace{padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px))!important;}
  body.flb7-workspace .main-content{padding-bottom:calc(108px + env(safe-area-inset-bottom, 0px));}
  body.flb7-workspace .page-view{padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px))!important;}
  body.flb7-workspace .flb7-mobile-bottom{bottom:calc(8px + env(safe-area-inset-bottom, 0px));}
  body.flb7-workspace .settings-section,body.flb7-workspace .settings-card{min-width:0;}
  body.flb7-workspace input,body.flb7-workspace select,body.flb7-workspace textarea{max-width:100%;box-sizing:border-box;}
}

/* Beta Teilpaket 5: lesbare Marken-/Fahrschulkopfzeile ohne Desktop-Eingriff */
@media(max-width:760px){
 body.flb7-workspace .flb7-globalbar{display:flex!important;align-items:center;flex-wrap:wrap;gap:9px;padding:9px 12px!important;}
 body.flb7-workspace .flb7-mobile-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1 1 100%;}
 body.flb7-workspace .flb7-mobile-identity>img{flex:none;object-fit:contain;border-radius:10px;}
 body.flb7-workspace .flb7-mobile-identity-names{display:flex;flex-direction:column;min-width:0;gap:2px;}
 body.flb7-workspace .flb7-mobile-identity-names strong{font-size:14px;letter-spacing:.09em;line-height:1.2;color:var(--flb-light-ink, #e6fff9);}
 body.flb7-workspace .flb7-mobile-identity-names small{font-size:11px;color:var(--flb-light-muted, #b1d4d2);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 body.flb7-workspace .flb7-mobile-school-logo{margin-left:auto;border-radius:8px;background:#fff;object-fit:contain;padding:3px;box-sizing:border-box;}
 body.flb7-workspace .flb7-globalbar .flb7-search{flex:1 1 100%;}
 /* Tagesplan und Notizen bleiben erhalten; dreifache Wiederholung der Kennzahlen entfällt mobil. */
 body.flb7-workspace #page-cockpit .hero-stats{display:none!important;}
 body.flb7-workspace #page-cockpit .hero-card{margin-bottom:12px;}
}
@media(min-width:761px){.flb7-mobile-identity{display:none!important;}}
