#fggh-header,
#fggh-header * {
  box-sizing: border-box;
}

#fggh-header {
  position: relative;
  z-index: 99990;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fggh-text);
  background: var(--fggh-bg);
  line-height: 1.35;
}

body.fggh-sticky #fggh-header {
  position: sticky;
  top: 0;
}

body.admin-bar.fggh-sticky #fggh-header {
  top: 32px;
}

.fggh-container {
  width: min(calc(100% - 40px), var(--fggh-container));
  margin: 0 auto;
}

.fggh-topbar {
  min-height: var(--fggh-topbar);
  background: var(--fggh-bg2);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 12.5px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .03);
}

.fggh-topbar-inner {
  min-height: var(--fggh-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.fggh-topbar-message {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: .01em;
}

.fggh-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fggh-topbar a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}

.fggh-topbar a:hover {
  color: var(--fggh-accent);
}

.fggh-topbar .fggh-phone span {
  color: rgba(255, 255, 255, .72);
  margin-right: 4px;
}

.fggh-phone span {
  color: var(--fggh-muted);
  margin-right: 4px;
}

.fggh-mainbar {
  background: var(--fggh-bg);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .08);
}

.fggh-mainbar-inner {
  min-height: var(--fggh-height);
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.fggh-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding-top: 7px;
}

.fggh-logo {
  display: flex;
  align-items: center;
  width: var(--fggh-logo);
  max-width: 100%;
  min-height: 58px;
  text-decoration: none;
}

.fggh-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(3px);
}

.fggh-slogan {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  color: #373737;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.fggh-slogan-text {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.fggh-slogan-logo {
  flex: 0 0 auto;
  display: block;
  width: var(--fggh-slogan-logo);
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}

.fggh-navigation {
  justify-self: center;
  min-width: 0;
}

.fggh-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fggh-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.fggh-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  color: var(--fggh-text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: .2s ease;
}

.fggh-menu > li > a:hover,
.fggh-menu > li.current-menu-item > a,
.fggh-menu > li.current-menu-ancestor > a {
  color: var(--fggh-accent);
  background: #f5f5f5;
}

.fggh-menu > li.current-menu-item > a::after,
.fggh-menu > li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--fggh-accent);
  border-radius: 2px;
}

.fggh-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 9px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16);
}

.fggh-menu li:hover > .sub-menu,
.fggh-menu li:focus-within > .sub-menu {
  display: block;
}

.fggh-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: #222;
  text-decoration: none;
  border-radius: 7px;
}

.fggh-menu .sub-menu a:hover {
  background: #f3f3f3;
  color: var(--fggh-accent);
}

.fggh-menu .sub-menu .sub-menu {
  left: 100%;
  top: 0;
}

/* Kompaktes Desktop-Zusatzmenü für weitere Unterseiten. */
.fggh-more {
  position: relative;
  justify-self: end;
}

.fggh-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  color: #222;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .06);
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.fggh-more-toggle:hover,
.fggh-more-toggle:focus-visible,
.fggh-more.is-open .fggh-more-toggle {
  border-color: var(--fggh-accent);
  color: var(--fggh-accent);
  background: #fff8f3;
  transform: translateY(-1px);
  outline: none;
}

/* Die drei Linien werden als echtes SVG direkt im Button gerendert.
   Dadurch können Theme- oder Icon-CSS-Regeln die Linien nicht mehr ausblenden. */
#fggh-header .fggh-more-toggle .fggh-more-icon {
  display: block !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: #222 !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  fill: none !important;
  pointer-events: none !important;
}

#fggh-header .fggh-more-toggle .fggh-more-icon line {
  display: block !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#fggh-header .fggh-more-toggle:hover .fggh-more-icon,
#fggh-header .fggh-more-toggle:focus-visible .fggh-more-icon,
#fggh-header .fggh-more.is-open .fggh-more-toggle .fggh-more-icon {
  color: var(--fggh-accent) !important;
}

.fggh-more-panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 13px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.fggh-more.is-open .fggh-more-panel {
  display: block;
}

.fggh-more-title,
.fggh-mobile-more-title {
  padding: 4px 8px 9px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fggh-more-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fggh-more-menu li {
  margin: 0;
  padding: 0;
}

.fggh-more-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  color: #222;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}

.fggh-more-menu a:hover,
.fggh-more-menu a:focus-visible,
.fggh-more-menu .current-menu-item > a,
.fggh-more-menu .current-menu-ancestor > a {
  color: var(--fggh-accent);
  background: #f5f5f5;
  outline: none;
}

.fggh-more-menu .sub-menu {
  list-style: none;
  margin: 0 0 4px 12px;
  padding: 0 0 0 9px;
  border-left: 2px solid #ededed;
}

.fggh-more-menu .sub-menu a {
  min-height: 36px;
  color: #5b5b5b;
  font-size: 13.5px;
  font-weight: 600;
}

.fggh-mobile-more {
  display: none;
}

.fggh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--fggh-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(218, 95, 6, .21);
  transition: .2s ease;
}

.fggh-cta:hover {
  background: var(--fggh-accent-hover);
  transform: translateY(-1px);
}

.fggh-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fggh-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  color: #282828;
  font-size: 12px;
  font-weight: 700;
}

.fggh-social a:hover {
  border-color: var(--fggh-accent);
  background: var(--fggh-accent);
  color: #fff;
}

.fggh-topbar .fggh-social a {
  border-color: rgba(255, 255, 255, .34);
  color: #ffffff;
  background: rgba(255, 255, 255, .04);
}

.fggh-topbar .fggh-social a:hover {
  border-color: var(--fggh-accent);
  background: var(--fggh-accent);
  color: #ffffff;
}

/* Desktop: Burger-Menü immer sicher ausblenden. */
#fggh-header .fggh-menu-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 9px !important;
  margin: 0 !important;
  border: 1px solid #dedede !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

#fggh-header .fggh-menu-toggle > span:not(.screen-reader-text) {
  display: block !important;
  width: 21px !important;
  max-width: 21px !important;
  height: 2px !important;
  min-height: 2px !important;
  margin: 2.5px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #222 !important;
  transition: .2s;
}

.fggh-mobile-panel {
  display: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1320px) {
  .fggh-mainbar-inner {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) auto auto;
    gap: 14px;
  }

  .fggh-menu > li > a {
    padding: 0 8px;
    font-size: 13.5px;
  }

  .fggh-slogan {
    font-size: 12px;
  }
}


@media (max-width: 1160px) {
  body.admin-bar.fggh-sticky #fggh-header {
    top: 46px;
  }

  .fggh-container {
    width: min(calc(100% - 28px), var(--fggh-container));
  }

  .fggh-topbar-message {
    display: none;
  }

  .fggh-topbar-links {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .fggh-topbar .fggh-phone span {
    display: none;
  }

  .fggh-topbar .fggh-social {
    display: none;
  }

  .fggh-mainbar-inner {
    min-height: 92px;
    grid-template-columns: minmax(245px, 1fr) auto;
  }

  .fggh-more {
    display: none;
  }

  .fggh-brand {
    max-width: 600px;
    padding-top: 3px;
  }

  .fggh-logo img {
    transform: translateY(1px);
  }

  .fggh-logo {
    width: var(--fggh-logo-mobile);
    min-height: 48px;
  }

  .fggh-logo img {
    max-height: 64px;
  }

  .fggh-navigation {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  #fggh-header .fggh-menu-toggle {
    display: inline-flex !important;
    justify-self: end;
  }

  .fggh-mainbar-inner > .fggh-cta {
    display: none;
  }

  .fggh-header.is-open .fggh-navigation {
    display: block;
  }

  .fggh-header.is-open .fggh-mainbar-inner {
    padding-bottom: 14px;
  }

  .fggh-menu {
    display: block;
    padding: 10px 0 4px;
    border-top: 1px solid #e6e6e6;
  }

  .fggh-menu > li > a {
    min-height: 45px;
    padding: 0 10px;
    font-size: 16px;
  }

  .fggh-menu > li.current-menu-item > a::after,
  .fggh-menu > li.current-menu-ancestor > a::after {
    left: 10px;
    right: auto;
    width: 28px;
  }

  .fggh-menu .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .fggh-menu li.is-submenu-open > .sub-menu {
    display: block;
  }

  .fggh-menu .sub-menu a {
    color: var(--fggh-muted);
    padding: 9px 12px;
  }

  .fggh-menu .sub-menu a:hover {
    background: #f4f4f4;
    color: var(--fggh-accent);
  }

  .fggh-mobile-panel {
    padding: 0 14px 16px;
    background: var(--fggh-bg);
  }

  .fggh-header.is-open .fggh-mobile-panel {
    display: block;
  }

  .fggh-mobile-more {
    display: block;
    padding: 12px 0 4px;
    border-bottom: 1px solid #e6e6e6;
  }

  .fggh-mobile-more .fggh-more-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .fggh-mobile-more .fggh-more-menu > li {
    min-width: 0;
  }

  .fggh-mobile-more .fggh-more-menu a {
    min-height: 40px;
    padding: 8px 9px;
  }

  .fggh-mobile-more .fggh-more-menu .sub-menu {
    grid-column: 1 / -1;
    margin-left: 8px;
  }

  .fggh-mobile-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .fggh-mobile-contact a {
    color: var(--fggh-text);
    text-decoration: none;
    font-size: 13px;
  }

  .fggh-mobile-contact .fggh-social {
    margin-left: auto;
  }

  .fggh-cta-mobile {
    width: 100%;
  }

  .fggh-header.is-open .fggh-menu-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .fggh-header.is-open .fggh-menu-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .fggh-header.is-open .fggh-menu-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  .fggh-topbar {
    display: none;
  }

  .fggh-mainbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 82px;
  }

  .fggh-logo {
    width: var(--fggh-logo-mobile);
    max-width: calc(100vw - 92px);
  }

  .fggh-slogan {
    display: none;
  }

  .fggh-mobile-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fggh-mobile-contact .fggh-social {
    margin-left: 0;
  }

  .fggh-phone span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fggh-header * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .fggh-mobile-more .fggh-more-menu { grid-template-columns: 1fr; }
}
