/* Minimale Ergänzungen – das originale Theme-CSS bleibt unangetastet. */

img[src="/assets/missing.svg"] {
  background: #eceff2;
  object-fit: cover;
}

.link-missing { cursor: default; }

@media (max-width: 860px) {
  .fl-page-nav .fl-submenu-open > .sub-menu { display: block !important; }
  .fl-page-nav .fl-menu-open > .sub-menu { display: block !important; }
}

/* Icons, die nur in Font Awesome Pro existierten */
.fa-users-class::before { content: "\f0c0"; }
.fa-clock-o::before { content: "\f017"; }
.fa-alarm-clock::before { content: "\f017"; }

/* Graue Zitatzeile der Startseite (im Original im Layout-CSS definiert) */
.fl-row.grey > .fl-row-content-wrap { background-color: #f4f4f4; }

img[src="/assets/missing.svg"]:not([width]) {
  width: auto;
  max-width: 280px;
  max-height: 150px;
  object-fit: contain;
}

/* Trenner (im Original pro Node im Layout-CSS definiert) */
.fl-module-separator .fl-separator {
  height: 1px;
  background-color: #d9dde1;
}

/* Mobile: das Original hatte kein Viewport-Meta, hier nur ein paar Notlösungen */
@media (max-width: 860px) {
  .fl-page-header { background-image: none !important; }
  .fl-page-header-row { display: block; }
  .fl-page-header-logo, .fl-page-nav-col { width: 100%; max-width: 100%; }
  .fl-logo-text p { font-size: 12px; line-height: 1.7; }
}

@media (max-width: 860px) {
  .fl-page-nav .menu-item-has-children { position: relative; }
  .fl-submenu-icon-wrap {
    position: absolute; top: 0; right: 0; bottom: auto; height: 46px;
    display: flex; align-items: center; padding: 0 16px; color: #fff;
  }
  .fl-submenu-toggle-icon { display: none; }
  .fl-submenu-icon-wrap::after { content: "\25BE"; font-size: 13px; line-height: 1; }
}

@media (max-width: 860px) {
  .fl-page-nav li.fl-submenu-open > .sub-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
    width: auto !important;
    background: rgba(0, 0, 0, .14) !important;
    box-shadow: none !important;
  }
  .fl-page-nav li.fl-submenu-open > .sub-menu a {
    color: #fff !important;
    padding-left: 46px !important;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
}

/* Untermenü-Aufzählungszeichen: Pro-Icon war nicht verfügbar */
#menu-hauptnavigation .sub-menu li a:before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  content: "\f105" !important;
  margin-right: 6px;
}
