/*!
 * ig_grueneliga_v10 responsive ideengruen.de
 *
 */


/* ==========================================================================
   Mobile: bis 767px
   Inhalt, Blog, Sidebars, Module und Footer
   ========================================================================== */

@media (max-width: 767px) {

  html,
  body {
    font-size: clamp(1rem, 0.8vw + 0.85rem, 1.1rem);
    line-height: 140%;
  }

  .ig-main-body {
    width: 100% !important;
  }

  .ig-header {
    width: 100%;
  }

  .ig-header > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .camera_target {
    border-radius: 0 !important;
  }

  .camera_caption {
    border-radius: 0;
  }

  .blog-items.masonry-js {
    position: static !important;
    height: auto !important;
    display: block;
  }

  .blog-items.masonry-js .blog-item {
    position: static !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .item-title,
  .page-header h1 {
    line-height: clamp(1.1rem, 1vw + 1.4rem, 1.8rem);
    font-size: clamp(1.2rem, 3vw + 0.4rem, 1.7rem);
  }

  #ig-main-wrapper {
    gap: 1rem !important;
    display: flex;
    flex-direction: column !important;
    width: 100%;
    max-width: 100%;
  }

  #ig-main-wrapper #ig-main,
  #ig-main-wrapper #ig-left,
  #ig-main-wrapper #ig-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none;
    clear: both;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #ig-main-wrapper #ig-main {
    order: 0;
  }

  #ig-main-wrapper #ig-left {
    order: 1;
  }

  #ig-main-wrapper #ig-right {
    order: 2;
  }

  #ig-main-wrapper .grid-child {
    width: 100%;
    max-width: 100%;
  }

  #ig-main-wrapper .ig-sidebar-left,
  #ig-main-wrapper .ig-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  #ig-main-wrapper .ig-sidebar-left > *,
  #ig-main-wrapper .ig-sidebar-right > * {
    width: 100%;
    max-width: 100%;
  }

  .ig-module-row-3colums {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
  }

  .ig-module-row-3colums > * {
    width: 100%;
    max-width: 100%;
  }

  .ig-footer__inner {
    width: 90%;
    align-items: center;
  }

  .ig-footer__social,
  .ig-footer__columns,
  .ig-footer__copyright {
    width: 100%;
    text-align: center;
  }

  .ig-footer__columns {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ig-footer__col {
    width: 100%;
    text-align: center;
  }

  .ig-footer__col .mod-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .ig-footer__col .mod-menu > li > a {
    display: inline-block;
  }

  .ig-footer .soc_icons {
    gap: 2rem !important;
  }
}


/* ==========================================================================
   Tablet: 768px bis 959px
   Inhalt, Blog, Sidebars, Module und Footer
   ========================================================================== */

@media (min-width: 768px) and (max-width: 959px) {

  html,
  body {
    font-size: clamp(1rem, 0.55vw + 0.375rem, 1.1rem);
    line-height: 145%;
  }

  .ig-main-body {
    width: 100% !important;
  }

  .ig-header {
    width: 100%;
  }

  .ig-header > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .camera_target {
    border-radius: 0 !important;
  }

  .camera_caption {
    border-radius: 0;
  }

  .blog-items.masonry-js {
    position: static !important;
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .blog-items.masonry-js .blog-item {
    position: static !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .item-title,
  .page-header h1 {
    line-height: clamp(1.15rem, 1vw + 1.5rem, 2.1rem);
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.9rem);
  }

  #ig-main-wrapper {
    gap: 2rem !important;
    display: flex;
    flex-direction: column !important;
    width: 100%;
    max-width: 100%;
  }

  #ig-main-wrapper #ig-main,
  #ig-main-wrapper #ig-left,
  #ig-main-wrapper #ig-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none;
    clear: both;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #ig-main-wrapper #ig-main {
    order: 0;
  }

  #ig-main-wrapper #ig-left {
    order: 1;
  }

  #ig-main-wrapper #ig-right {
    order: 2;
  }

  #ig-main-wrapper .grid-child {
    width: 100%;
    max-width: 100%;
  }

  #ig-main-wrapper .ig-sidebar-left,
  #ig-main-wrapper .ig-sidebar-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
  }

  #ig-main-wrapper .ig-sidebar-left > *,
  #ig-main-wrapper .ig-sidebar-right > * {
    width: 100%;
    max-width: 100%;
  }

  .ig-module-row-3colums {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 1.5rem;
  }

  .ig-module-row-3colums > * {
    width: 100%;
    max-width: 100%;
  }

  .ig-footer__inner {
    width: 92%;
    align-items: center;
  }

  .ig-footer__social,
  .ig-footer__columns,
  .ig-footer__copyright {
    width: 100%;
    text-align: center;
  }

  .ig-footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    justify-items: center;
  }

  .ig-footer__col {
    width: 100%;
    text-align: center;
  }

  .ig-footer__col .mod-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ig-footer__col .mod-menu > li > a {
    display: inline-block;
  }

  .ig-footer .soc_icons {
    gap: 2rem !important;
  }
}


/* ==========================================================================
   ig Navigation – gemeinsam für Mobile und Tablet: bis 959px
   Reihenfolge: grüner Balken → Suche → Sprache → Burger
   ========================================================================== */

@media (max-width: 959px) {

  .ig-nav {
    display: flex;
    align-items: center;
    height: 90px;
    padding-top: 1rem;
    gap: 0;
  }

  .ig-nav-logo {
    flex: 0 0 auto;
    z-index: 3;
  }

  .ig-nav-right {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0;
  }

  /* Grüner Balken füllt den Platz zwischen Logo und Symbolen */
  .ig-nav-right-bg {
    display: block !important;
    position: static !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    align-self: center;
    height: 28px;
    min-width: 2rem;
    order: 0 !important;
    z-index: 1;
    border-radius: 0;
  }

  /* Desktop-Menü ausblenden */
  .ig-nav-menuwrap .dj-megamenu-wrapper {
    display: none !important;
  }

  /* Suche */
  .ig-nav-right .ig-nav-extra:has(.mod-finder),
  .ig-nav-menuwrap .ig-nav-extra:has(.mod-finder) {
    order: 1 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative;
    z-index: 3;
    height: 32px;
  }

  /* Sprache */
  .ig-nav-right .ig-nav-extra:has(.mod-languages),
  .ig-nav-menuwrap .ig-nav-extra:has(.mod-languages) {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative;
    z-index: 3;
    height: 32px;
  }

  /* Burger ganz rechts */
  .ig-nav-menuwrap {
    order: 3 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative;
    z-index: 3;
  }

  #dj-megamenu131mobileWrap {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Burger-Gruppe rechtsbündig */
  .navbar-collapse {
    order: 3;
    margin-right: 1rem;
  }

  /* Lupe grün */
  .mod-finder__search .btn-primary span.icon-search:before {
    color: var(--ig-green) !important;
  }

  /* Suchfeld klappt nach links auf */
  .mod-finder__search .form-control {
    right: 40px;
  }
}


/* ==========================================================================
   ig Navigation – Mobile: bis 767px
   ========================================================================== */

@media (max-width: 767px) {

  .ig-nav-left {
    flex: 0 0 0% !important;
    width: 0 !important;
    border-radius: 0 !important;
  }

  .ig-nav-right {
    gap: 0.5rem;
  }
}


/* ==========================================================================
   ig Navigation – Tablet: 768px bis 959px
   ========================================================================== */

@media (min-width: 768px) and (max-width: 959px) {

  .ig-nav-left {
    flex: 0 0 5% !important;
    width: 5% !important;
    border-radius: 0 !important;
  }

  .ig-nav-right {
    gap: 0.75rem;
  }
}


/* ==========================================================================
   Responsive Menüabstände – nur Desktop-Layout
   ========================================================================== */

@media (max-width: 1400px) {
  .ig-nav-menuwrap .dj-megamenu {
    gap: 0.25rem;
  }

  .ig-nav-menuwrap .dj-megamenu > li.dj-up > a.dj-up_a {
    padding: 0.12rem 0.3rem !important;
  }
}

@media (max-width: 1200px) {
  .ig-nav-menuwrap .dj-megamenu {
    gap: 0.2rem;
  }

  .ig-nav-menuwrap .dj-megamenu > li.dj-up > a.dj-up_a {
    padding: 0.1rem 0.25rem !important;
    font-size: clamp(0.62rem, 0.38vw + 0.38rem, 0.88rem) !important;
  }

  .ig-nav-menuwrap .dj-megamenu .arrow {
    margin-left: 0.28rem;
  }
}