/* Branchentrainer Mobile Root Fix 1.0.1 — desktop search alignment.
   Deliberately separate from the unchanged mobile files. Only the homepage
   platform search is affected; no typography/content changes elsewhere. */
@media screen and (min-width:901px) {
  /* Do not stretch a short search form to the height of the editorial column. */
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel {
    align-self:start !important;
    display:block !important;
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    box-sizing:border-box !important;
  }

  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:16px !important;
    gap:12px !important;
    box-sizing:border-box !important;
  }

  /* The generic theme .row gutter must not move controls outside the form. */
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm .row {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    box-sizing:border-box !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm .row::before,
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm .row::after {
    content:none !important;
    display:none !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm :is(input,select) {
    display:block !important;
    box-sizing:border-box !important;
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:12px 14px !important;
    min-height:52px !important;
    font-size:16px !important;
    line-height:1.4 !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm button[type=submit] {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:52px !important;
    height:auto !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:12px 16px !important;
    line-height:1.4 !important;
    background:#64eacd !important;
    background-image:none !important;
    color:#07120f !important;
    -webkit-text-fill-color:#07120f !important;
    border:1px solid transparent !important;
    border-radius:10px !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .searchForm button[type=submit]:hover {
    background:#56d8c6 !important;
  }

  /* Compact pills with centered text, not theme-sized empty oval buttons. */
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .bt-ai-pills {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:16px 0 0 !important;
    padding:0 !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel .bt-ai-pills .pill {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 1 auto !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:38px !important;
    height:auto !important;
    max-height:none !important;
    margin:0 !important;
    padding:8px 12px !important;
    font-size:13px !important;
    line-height:1.3 !important;
    white-space:normal !important;
    text-align:center !important;
    border-radius:999px !important;
    box-sizing:border-box !important;
  }
  body.bt-mobile-root-fix #plattform.bt-widget-section .bt-platform-search-panel :is(input,select,button):focus-visible {
    outline:2px solid #15977f !important;
    outline-offset:3px !important;
  }
}
