/* =========================================================
   LamaVogel – Final Public UI Fix
   Artikelbilder + Mobile Navigation
   ========================================================= */


/* ---------------------------------------------------------
   ARTIKELBILDER
   Im Beitrag bewusst klein.
   Originalgröße erst nach Klick.
   --------------------------------------------------------- */

.article-v2 img:not(.lv-lightbox-target){
  display:block !important;

  width:auto !important;
  height:auto !important;

  max-width:min(420px,100%) !important;
  max-height:300px !important;

  margin-left:auto !important;
  margin-right:auto !important;

  object-fit:contain !important;
  object-position:center !important;

  cursor:zoom-in !important;
}


.article-v2 .content-image{
  width:100% !important;
  max-width:100% !important;

  text-align:center !important;
}


.article-v2 .content-image figcaption{
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}


/* ---------------------------------------------------------
   BILD-LIGHTBOX
   --------------------------------------------------------- */

.lv-image-lightbox{
  position:fixed;
  inset:0;

  z-index:999999;

  display:none;

  align-items:center;
  justify-content:center;

  padding:28px;

  background:rgba(2,4,8,.95);

  backdrop-filter:blur(7px);
}


.lv-image-lightbox.is-open{
  display:flex;
}


.lv-image-lightbox img{
  display:block !important;

  width:auto !important;
  height:auto !important;

  max-width:94vw !important;
  max-height:90vh !important;

  margin:0 !important;

  object-fit:contain !important;

  cursor:default !important;

  border-radius:12px;

  box-shadow:
    0 30px 100px
    rgba(0,0,0,.85);
}


.lv-image-lightbox-close{
  position:fixed;

  top:16px;
  right:18px;

  z-index:3;

  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  padding:0;

  border:
    1px solid rgba(255,255,255,.25);

  border-radius:50%;

  background:#11151e;

  color:#fff;

  font-size:30px;
  line-height:1;

  cursor:pointer;
}


/* ---------------------------------------------------------
   WEBSITE MOBILE NAVIGATION
   --------------------------------------------------------- */

.lv-site-mobile-toggle{
  display:none;
}


@media(max-width:820px){

  html,
  body{
    width:100%;
    max-width:100%;

    overflow-x:hidden !important;
  }


  .site-header{
    position:relative !important;

    width:100% !important;
    max-width:100% !important;

    min-width:0 !important;

    padding-left:14px !important;
    padding-right:14px !important;
  }


  /* alten evtl. vorhandenen Mobile-Button ausblenden,
     damit es nur EIN Menü gibt */

  .site-header > .menu{
    display:none !important;
  }


  .lv-site-mobile-toggle{
    display:flex !important;

    align-items:center;
    justify-content:center;

    width:44px;
    height:42px;

    margin-left:auto;

    flex:0 0 44px;

    border:
      1px solid rgba(255,255,255,.16);

    border-radius:9px;

    background:#11151e;

    color:#fff;

    font-size:21px;

    cursor:pointer;
  }


  .site-header nav{
    display:none !important;

    position:absolute !important;

    top:100%;
    left:0 !important;
    right:0 !important;

    z-index:10000;

    width:100% !important;
    max-width:none !important;

    margin:0 !important;

    padding:10px 14px 14px !important;

    flex-direction:column !important;
    align-items:stretch !important;

    gap:4px !important;

    white-space:normal !important;
    overflow:visible !important;

    border-top:
      1px solid rgba(255,255,255,.08);

    border-bottom:
      1px solid rgba(255,255,255,.13);

    background:#090d14;

    box-shadow:
      0 22px 50px
      rgba(0,0,0,.55);
  }


  .site-header nav.lv-mobile-open{
    display:flex !important;
  }


  .site-header nav a{
    display:block !important;

    width:100% !important;
    max-width:100% !important;

    padding:13px 12px !important;

    margin:0 !important;

    white-space:normal !important;

    text-align:left !important;
  }


  .article-v2{
    width:100% !important;
    max-width:100% !important;

    min-width:0 !important;

    overflow-x:hidden !important;
  }


  .article-v2 img:not(.lv-lightbox-target){
    max-width:min(360px,100%) !important;
    max-height:260px !important;
  }


  .lv-image-lightbox{
    padding:12px;
  }


  .lv-image-lightbox img{
    max-width:96vw !important;
    max-height:86vh !important;
  }
}
