/* =========================================================
   Mobile header bar (kan være som før)
   ========================================================= */
.input-mobile-header { display: none; }
.input-desktop-header { display: block; }

@media (max-width: 900px) {
  .input-desktop-header { display: none; }
  .input-mobile-header {
    display: block;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    position: relative;
    z-index: 60;
  }

  .input-mobile-header__bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 10px 14px;
    gap: 12px;
  }
  .input-mobile-header__logo img{ height: 34px; width:auto; display:block; }
  .input-mobile-header__actions{ display:flex; align-items:center; gap: 10px; }

  .input-mobile-search-toggle,
  .input-mobile-burger{
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: transparent;
    display:flex; align-items:center; justify-content:center;
    cursor: pointer;
  }

  .input-mobile-burger span{
    width: 18px; height: 2px; background: currentColor;
    position: relative; display:block;
  }
  .input-mobile-burger span::before,
  .input-mobile-burger span::after{
    content:""; position:absolute; left:0;
    width:18px; height:2px; background: currentColor;
  }
  .input-mobile-burger span::before{ top:-6px; }
  .input-mobile-burger span::after{ top: 6px; }

  /* =========================================================
     Fullscreen menu overlay (match screenshots)
     ========================================================= */
  .input-mobile-menu[hidden]{ display:none !important; }

  .input-mobile-menu{
    position: fixed;
    inset: 0;
    z-index: 9999;
  }

  .input-mobile-menu__backdrop{
    position:absolute;
    inset:0;
    background: #1f2126; /* mørk grå som screenshot */
    opacity: 0;
    transition: opacity 220ms ease;
    border:0;
    padding:0;
  }

  .input-mobile-menu__panel{
    position:absolute;
    inset:0;
    color: #f3f3f3;
    pointer-events: none; /* aktiveres når åben */
  }

  body.mobile-menu-open .input-mobile-menu__backdrop{ opacity: 1; }
  body.mobile-menu-open .input-mobile-menu__panel{ pointer-events: auto; }

  /* Close X centered at top */
  .input-mobile-menu__close{
    position: absolute;
    top: 54px; /* under notch */
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    color: #f3f3f3;
    font-size: 34px;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
  }

  .input-mobile-menu__content{
    height: 100%;
    display:flex;
    flex-direction: column;
    padding: 140px 26px 26px; /* luft i toppen som screenshot */
    gap: 18px;
  }

  /* Navigation styling (works with classic-menu output) */
  .input-mobile-nav .classic-menu ul{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .input-mobile-nav .classic-menu > ul > li{
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    position: relative;
  }

  /* Big uppercase headings */
  .input-mobile-nav .classic-menu > ul > li > a{
    display:flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #f3f3f3;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    font-size: 22px;
  }

  /* Chevron on items with children */
  .input-mobile-nav .menu-item-has-children > a::after{
    content: "▾";
    font-size: 18px;
    opacity: .9;
    margin-left: 12px;
    transform: translateY(-1px);
  }

  /* Submenu hidden by default */
  .input-mobile-nav .menu-item-has-children > ul{
    display:none;
    padding: 10px 0 4px;
  }

  /* When open */
  .input-mobile-nav .menu-item-has-children.is-open > a::after{
    content: "▴";
  }
  .input-mobile-nav .menu-item-has-children.is-open > ul{
    display:block;
  }

  /* Sub items look like screenshot (mixed-case, roomy) */
  .input-mobile-nav .menu-item-has-children > ul > li{
    padding: 10px 0;
  }
  .input-mobile-nav .menu-item-has-children > ul > li > a{
    color:#e9e9e9;
    text-decoration:none;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    display:block;
    padding-left: 6px;
  }

  /* Social row centered */
  .input-mobile-menu__social{
    list-style:none;
    display:flex;
    justify-content:center;
    gap: 24px;
    margin: 0;
    padding: 6px 0 0;
  }
  .input-mobile-menu__social a{
    color:#f3f3f3;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 38px;
    height: 38px;
    opacity: .95;
  }

  /* Search pill at bottom */
  .input-mobile-menu__search{
    margin-top: auto; /* skub ned som screenshot */
    padding-top: 10px;
  }
  .input-mobile-menu__search .wp-block-search__inside-wrapper{
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255,255,255,.06);
  }
  .input-mobile-menu__search input[type="search"]{
    background: transparent;
    border: 0 !important;
    color:#f3f3f3;
    outline: none;
    font-size: 18px;
  }
  .input-mobile-menu__search input::placeholder{
    color: rgba(243,243,243,.55);
  }

  /* Darkmode row (valgfri – hold den diskret) */
  .input-mobile-menu__tools{
    padding-top: 8px;
  }
  .input-mobile-tool{
    display:flex;
    align-items:center;
    gap: 10px;
    color:#f3f3f3;
    text-decoration:none;
    opacity: .9;
    padding: 10px 0;
  }
  .input-mobile-tool__text{ font-weight: 600; }

  /* Prevent background scroll */
  body.mobile-menu-open{ overflow:hidden; touch-action:none; }
}